Hello community, here is the log from the commit of package rubygem-cri for openSUSE:Factory checked in at 2019-06-19 20:59:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-cri (Old) and /work/SRC/openSUSE:Factory/.rubygem-cri.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-cri" Wed Jun 19 20:59:36 2019 rev:9 rq:705984 version:2.15.5 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-cri/rubygem-cri.changes 2018-11-26 10:35:07.488689324 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-cri.new.4811/rubygem-cri.changes 2019-06-19 20:59:38.986048236 +0200 @@ -1,0 +2,30 @@ +Sun May 5 09:22:48 UTC 2019 - Stephan Kulow <[email protected]> + +- updated to version 2.15.5 + see installed NEWS.md + + ## 2.15.5 + + Fixes: + + * Restored compatibility with Ruby 2.3. (#91) + + ## 2.15.4 + + Fixes: + + * Removed dependency on `colored`, which restores functionality to gems that `colored` breaks (e.g. `awesome_print`) (#89, #90) + +------------------------------------------------------------------- +Sat Mar 2 15:10:08 UTC 2019 - Stephan Kulow <[email protected]> + +- updated to version 2.15.3 + see installed NEWS.md + + ## 2.15.3 + + Fixes: + + * Made `ArgumentList#each` callable without a block, in which case it returns an `Enumerator` (mimicking `Array`) (#87, #88) + +------------------------------------------------------------------- Old: ---- cri-2.15.2.gem New: ---- cri-2.15.5.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-cri.spec ++++++ --- /var/tmp/diff_new_pack.iFp5Gz/_old 2019-06-19 20:59:39.566048756 +0200 +++ /var/tmp/diff_new_pack.iFp5Gz/_new 2019-06-19 20:59:39.570048759 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-cri # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-cri -Version: 2.15.2 +Version: 2.15.5 Release: 0 %define mod_name cri %define mod_full_name %{mod_name}-%{version} @@ -34,7 +34,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} BuildRequires: ruby-macros >= 5 -Url: http://stoneship.org/software/cri/ +Url: https://github.com/ddfreyne/cri Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml Summary: a library for building easy-to-use command-line tools ++++++ cri-2.15.2.gem -> cri-2.15.5.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile.lock new/Gemfile.lock --- old/Gemfile.lock 2018-10-20 09:24:36.000000000 +0200 +++ new/Gemfile.lock 2019-04-29 23:57:46.000000000 +0200 @@ -1,14 +1,12 @@ PATH remote: . specs: - cri (2.15.2) - colored (~> 1.2) + cri (2.15.5) GEM remote: https://rubygems.org/ specs: ast (2.4.0) - colored (1.2) coveralls (0.8.22) json (>= 1.8, < 3) simplecov (~> 0.16.1) @@ -16,41 +14,38 @@ thor (~> 0.19.4) tins (~> 1.6) docile (1.3.1) - jaro_winkler (1.5.1) - json (2.1.0) + jaro_winkler (1.5.2) + json (2.2.0) minitest (5.11.3) - parallel (1.12.1) - parser (2.5.1.2) + parallel (1.17.0) + parser (2.6.3.0) ast (~> 2.4.0) - powerpack (0.1.2) rainbow (3.0.0) - rake (12.3.1) - rubocop (0.59.2) + rake (12.3.2) + rubocop (0.68.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) parser (>= 2.5, != 2.5.1.1) - powerpack (~> 0.1) rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) - unicode-display_width (~> 1.0, >= 1.0.1) + unicode-display_width (>= 1.4.0, < 1.6) ruby-progressbar (1.10.0) simplecov (0.16.1) docile (~> 1.1) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - term-ansicolor (1.6.0) + term-ansicolor (1.7.1) tins (~> 1.0) thor (0.19.4) - tins (1.17.0) - unicode-display_width (1.4.0) - yard (0.9.16) + tins (1.20.2) + unicode-display_width (1.5.0) + yard (0.9.19) PLATFORMS ruby DEPENDENCIES - bundler (~> 1.6) coveralls cri! minitest @@ -59,4 +54,4 @@ yard BUNDLED WITH - 1.16.2 + 2.0.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/NEWS.md new/NEWS.md --- old/NEWS.md 2018-10-20 09:24:36.000000000 +0200 +++ new/NEWS.md 2019-04-29 23:57:46.000000000 +0200 @@ -1,5 +1,23 @@ # Cri News +## 2.15.5 + +Fixes: + +* Restored compatibility with Ruby 2.3. (#91) + +## 2.15.4 + +Fixes: + +* Removed dependency on `colored`, which restores functionality to gems that `colored` breaks (e.g. `awesome_print`) (#89, #90) + +## 2.15.3 + +Fixes: + +* Made `ArgumentList#each` callable without a block, in which case it returns an `Enumerator` (mimicking `Array`) (#87, #88) + ## 2.15.2 Fixes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-10-20 09:24:36.000000000 +0200 +++ new/README.md 2019-04-29 23:57:46.000000000 +0200 @@ -1,6 +1,7 @@ # Cri [](http://rubygems.org/gems/cri) +[](http://rubygems.org/gems/cri) [](https://travis-ci.org/ddfreyne/cri) [](https://coveralls.io/r/ddfreyne/cri) [](https://codeclimate.com/github/ddfreyne/cri) Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cri.gemspec new/cri.gemspec --- old/cri.gemspec 2018-10-20 09:24:36.000000000 +0200 +++ new/cri.gemspec 2019-04-29 23:57:46.000000000 +0200 @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = 'cri' s.version = Cri::VERSION - s.homepage = 'http://stoneship.org/software/cri/' # TODO: CREATE A WEB SITE YOU SILLY PERSON + s.homepage = 'https://github.com/ddfreyne/cri' s.summary = 'a library for building easy-to-use command-line tools' s.description = 'Cri allows building easy-to-use command-line interfaces with support for subcommands.' s.license = 'MIT' @@ -18,10 +18,6 @@ s.required_ruby_version = '~> 2.3' - s.add_dependency('colored', '~> 1.2') - - s.add_development_dependency('bundler', '~> 1.6') - s.rdoc_options = ['--main', 'README.md'] s.extra_rdoc_files = ['LICENSE', 'README.md', 'NEWS.md'] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri/argument_list.rb new/lib/cri/argument_list.rb --- old/lib/cri/argument_list.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri/argument_list.rb 2019-04-29 23:57:46.000000000 +0200 @@ -37,6 +37,8 @@ end def each + return to_enum(__method__) unless block_given? + @arguments_array.each { |e| yield(e) } self end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri/command_dsl.rb new/lib/cri/command_dsl.rb --- old/lib/cri/command_dsl.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri/command_dsl.rb 2019-04-29 23:57:46.000000000 +0200 @@ -160,15 +160,15 @@ transform: nil, &block) @command.option_definitions << Cri::OptionDefinition.new( - short: short&.to_s, - long: long&.to_s, - desc: desc, - argument: argument, - multiple: multiple, - hidden: hidden, - default: default, + short: short&.to_s, + long: long&.to_s, + desc: desc, + argument: argument, + multiple: multiple, + hidden: hidden, + default: default, transform: transform, - block: block, + block: block, ) end alias opt option diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri/option_definition.rb new/lib/cri/option_definition.rb --- old/lib/cri/option_definition.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri/option_definition.rb 2019-04-29 23:57:46.000000000 +0200 @@ -35,14 +35,14 @@ def to_h { - short: @short, - long: @long, - desc: @desc, - argument: @argument, - multiple: @multiple, - block: @block, - hidden: @hidden, - default: @default, + short: @short, + long: @long, + desc: @desc, + argument: @argument, + multiple: @multiple, + block: @block, + hidden: @hidden, + default: @default, transform: @transform, } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri/string_formatter.rb new/lib/cri/string_formatter.rb --- old/lib/cri/string_formatter.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri/string_formatter.rb 2019-04-29 23:57:46.000000000 +0200 @@ -82,7 +82,7 @@ # in the help def format_as_title(str, io) if Cri::Platform.color?(io) - str.upcase.red.bold + bold(red(str.upcase)) else str.upcase end @@ -94,7 +94,7 @@ # in the help def format_as_command(str, io) if Cri::Platform.color?(io) - str.green + green(str) else str end @@ -106,10 +106,26 @@ # of a command in the help def format_as_option(str, io) if Cri::Platform.color?(io) - str.yellow + yellow(str) else str end end + + def red(str) + "\e[31m#{str}\e[0m" + end + + def green(str) + "\e[32m#{str}\e[0m" + end + + def yellow(str) + "\e[33m#{str}\e[0m" + end + + def bold(str) + "\e[1m#{str}\e[0m" + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri/version.rb new/lib/cri/version.rb --- old/lib/cri/version.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri/version.rb 2019-04-29 23:57:46.000000000 +0200 @@ -2,5 +2,5 @@ module Cri # The current Cri version. - VERSION = '2.15.2' + VERSION = '2.15.5' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/cri.rb new/lib/cri.rb --- old/lib/cri.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/lib/cri.rb 2019-04-29 23:57:46.000000000 +0200 @@ -20,8 +20,6 @@ require 'set' -require 'colored' - require_relative 'cri/version' require_relative 'cri/argument_list' require_relative 'cri/command' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2018-10-20 09:24:36.000000000 +0200 +++ new/metadata 2019-04-29 23:57:46.000000000 +0200 @@ -1,43 +1,15 @@ --- !ruby/object:Gem::Specification name: cri version: !ruby/object:Gem::Version - version: 2.15.2 + version: 2.15.5 platform: ruby authors: - Denis Defreyne autorequire: bindir: bin cert_chain: [] -date: 2018-10-20 00:00:00.000000000 Z -dependencies: -- !ruby/object:Gem::Dependency - name: colored - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.2' - type: :runtime - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.2' -- !ruby/object:Gem::Dependency - name: bundler - requirement: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.6' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - "~>" - - !ruby/object:Gem::Version - version: '1.6' +date: 2019-04-29 00:00:00.000000000 Z +dependencies: [] description: Cri allows building easy-to-use command-line interfaces with support for subcommands. email: [email protected] @@ -81,7 +53,7 @@ - test/test_help_renderer.rb - test/test_parser.rb - test/test_string_formatter.rb -homepage: http://stoneship.org/software/cri/ +homepage: https://github.com/ddfreyne/cri licenses: - MIT metadata: {} @@ -102,8 +74,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubyforge_project: -rubygems_version: 2.7.7 +rubygems_version: 3.0.3 signing_key: specification_version: 4 summary: a library for building easy-to-use command-line tools diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_argument_list.rb new/test/test_argument_list.rb --- old/test/test_argument_list.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/test/test_argument_list.rb 2019-04-29 23:57:46.000000000 +0200 @@ -33,6 +33,12 @@ assert_equal(%w[A B C], args.map(&:upcase)) end + def test_enum_without_block + args = Cri::ArgumentList.new(%w[a b c], false, []) + + assert_equal(%w[A B C], args.each.map(&:upcase)) + end + def test_no_method_error args = Cri::ArgumentList.new(%w[a b c], false, []) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/test_parser.rb new/test/test_parser.rb --- old/test/test_parser.rb 2018-10-20 09:24:36.000000000 +0200 +++ new/test/test_parser.rb 2019-04-29 23:57:46.000000000 +0200 @@ -552,14 +552,14 @@ def make_opt_defn(hash) Cri::OptionDefinition.new( - short: hash.fetch(:short, nil), - long: hash.fetch(:long, nil), - desc: hash.fetch(:desc, nil), - argument: hash.fetch(:argument, nil), - multiple: hash.fetch(:multiple, nil), - block: hash.fetch(:block, nil), - hidden: hash.fetch(:hidden, nil), - default: hash.fetch(:default, nil), + short: hash.fetch(:short, nil), + long: hash.fetch(:long, nil), + desc: hash.fetch(:desc, nil), + argument: hash.fetch(:argument, nil), + multiple: hash.fetch(:multiple, nil), + block: hash.fetch(:block, nil), + hidden: hash.fetch(:hidden, nil), + default: hash.fetch(:default, nil), transform: hash.fetch(:transform, nil), ) end
