Hello community,

here is the log from the commit of package rubygem-commander for 
openSUSE:Factory checked in at 2020-03-07 21:37:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-commander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-commander.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-commander"

Sat Mar  7 21:37:37 2020 rev:26 rq:773747 version:4.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-commander/rubygem-commander.changes      
2019-01-21 10:25:59.261708814 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-commander.new.26092/rubygem-commander.changes
   2020-03-07 21:37:37.872247544 +0100
@@ -1,0 +2,11 @@
+Mon Feb 10 14:22:00 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 4.5.0
+ see installed History.rdoc
+
+  === 4.5.0 / 2020-01-21
+  
+  * Drop support for Ruby < 2.3.
+  * Fix bug parsing double dash (#75).
+
+-------------------------------------------------------------------

Old:
----
  commander-4.4.7.gem

New:
----
  commander-4.5.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-commander.spec ++++++
--- /var/tmp/diff_new_pack.AwVEQQ/_old  2020-03-07 21:37:38.308247838 +0100
+++ /var/tmp/diff_new_pack.AwVEQQ/_new  2020-03-07 21:37:38.312247841 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-commander
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # 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-commander
-Version:        4.4.7
+Version:        4.5.0
 Release:        0
 %define mod_name commander
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
-Url:            https://github.com/commander-rb/commander
+URL:            https://github.com/commander-rb/commander
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        The complete solution for Ruby command-line executables

++++++ commander-4.4.7.gem -> commander-4.5.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2018-10-22 23:58:30.000000000 +0200
+++ new/.travis.yml     2020-01-21 19:34:25.000000000 +0100
@@ -4,11 +4,10 @@
   - gem update --system
   - gem update bundler
 rvm:
-  - 1.9.3
-  - 2.0.0
-  - 2.1.10
-  - 2.2.9
-  - 2.3.6
-  - 2.4.3
-  - 2.5.0
-  - jruby-19mode
+  - 2.3
+  - 2.4
+  - 2.5
+  - 2.6
+  - 2.7
+  - jruby
+  - ruby-head
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2018-10-22 23:58:30.000000000 +0200
+++ new/History.rdoc    2020-01-21 19:34:25.000000000 +0100
@@ -1,3 +1,8 @@
+=== 4.5.0 / 2020-01-21
+
+* Drop support for Ruby < 2.3.
+* Fix bug parsing double dash (#75).
+
 === 4.4.7 / 2018-10-22
 
 * Update HighLine dependency to 2.0.0. (@rohitpaulk)
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/runner.rb new/lib/commander/runner.rb
--- old/lib/commander/runner.rb 2018-10-22 23:58:30.000000000 +0200
+++ new/lib/commander/runner.rb 2020-01-21 19:34:25.000000000 +0100
@@ -328,7 +328,6 @@
     # again for the command.
 
     def remove_global_options(options, args)
-      # TODO: refactor with flipflop, please TJ ! have time to refactor me !
       options.each do |option|
         switches = option[:switches].dup
         next if switches.empty?
@@ -341,6 +340,7 @@
 
         past_switch, arg_removed = false, false
         args.delete_if do |arg|
+          break if arg == '--'
           if switches.any? { |s| s[0, arg.length] == arg }
             arg_removed = !switch_has_arg
             past_switch = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/version.rb new/lib/commander/version.rb
--- old/lib/commander/version.rb        2018-10-22 23:58:30.000000000 +0200
+++ new/lib/commander/version.rb        2020-01-21 19:34:25.000000000 +0100
@@ -1,3 +1,3 @@
 module Commander
-  VERSION = '4.4.7'.freeze
+  VERSION = '4.5.0'.freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-10-22 23:58:30.000000000 +0200
+++ new/metadata        2020-01-21 19:34:25.000000000 +0100
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: commander
 version: !ruby/object:Gem::Version
-  version: 4.4.7
+  version: 4.5.0
 platform: ruby
 authors:
 - TJ Holowaychuk
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-10-22 00:00:00.000000000 Z
+date: 2020-01-21 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: highline
@@ -156,8 +156,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.7.4
+rubygems_version: 3.0.2
 signing_key: 
 specification_version: 4
 summary: The complete solution for Ruby command-line executables
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/runner_spec.rb new/spec/runner_spec.rb
--- old/spec/runner_spec.rb     2018-10-22 23:58:30.000000000 +0200
+++ new/spec/runner_spec.rb     2020-01-21 19:34:25.000000000 +0100
@@ -643,4 +643,18 @@
       end.run!
     end
   end
+
+  describe 'with double dash' do
+    it 'should interpret the remainder as arguments' do
+      new_command_runner 'foo', '--', '-x' do
+        command('foo') do |c|
+          c.option '-x', 'Switch'
+          c.when_called do |args, options|
+            expect(args).to eq(%w(-x))
+            expect(options.x).to be_nil
+          end
+        end
+      end.run!
+    end
+  end
 end


Reply via email to