Hello community,

here is the log from the commit of package rubygem-commander for 
openSUSE:Factory checked in at 2018-10-25 08:20:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-commander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-commander.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-commander"

Thu Oct 25 08:20:46 2018 rev:24 rq:643122 version:4.4.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-commander/rubygem-commander.changes      
2018-07-18 22:48:57.347952467 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-commander.new/rubygem-commander.changes 
2018-10-25 08:21:02.255946537 +0200
@@ -1,0 +2,10 @@
+Wed Sep  5 10:07:33 UTC 2018 - [email protected]
+
+- updated to version 4.4.6
+ see installed History.rdoc
+
+  === 4.4.6 / 2018-07-31
+  
+  * Fix unexpected internal behavior change introduced in 4.4.5.
+
+-------------------------------------------------------------------

Old:
----
  commander-4.4.5.gem

New:
----
  commander-4.4.6.gem

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

Other differences:
------------------
++++++ rubygem-commander.spec ++++++
--- /var/tmp/diff_new_pack.8RJDIY/_old  2018-10-25 08:21:02.731946325 +0200
+++ /var/tmp/diff_new_pack.8RJDIY/_new  2018-10-25 08:21:02.731946325 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-commander
-Version:        4.4.5
+Version:        4.4.6
 Release:        0
 %define mod_name commander
 %define mod_full_name %{mod_name}-%{version}

++++++ commander-4.4.5.gem -> commander-4.4.6.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2018-05-22 20:58:31.000000000 +0200
+++ new/History.rdoc    2018-08-01 05:56:22.000000000 +0200
@@ -1,3 +1,7 @@
+=== 4.4.6 / 2018-07-31
+
+* Fix unexpected internal behavior change introduced in 4.4.5.
+
 === 4.4.5 / 2018-05-22
 
 * Make internal command state less mutable. (@doriantaylor)
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/command.rb new/lib/commander/command.rb
--- old/lib/commander/command.rb        2018-05-22 20:58:31.000000000 +0200
+++ new/lib/commander/command.rb        2018-08-01 05:56:22.000000000 +0200
@@ -161,6 +161,9 @@
 
     def parse_options_and_call_procs(*args)
       return args if args.empty?
+      # empty proxy_options before populating via OptionParser
+      # prevents duplication of options if the command is run twice
+      proxy_options.clear
       @options.each_with_object(OptionParser.new) do |option, opts|
         opts.on(*option[:args], &option[:proc])
         opts
@@ -175,9 +178,6 @@
       meth ||= :call
       options = proxy_option_struct
 
-      # empty the proxy option stack before the next invocation
-      proxy_options.clear
-
       case object
       when Proc then object.call(args, options)
       when Class then meth != :call ? object.new.send(meth, args, options) : 
object.new(args, options)
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-05-22 20:58:31.000000000 +0200
+++ new/lib/commander/version.rb        2018-08-01 05:56:22.000000000 +0200
@@ -1,3 +1,3 @@
 module Commander
-  VERSION = '4.4.5'.freeze
+  VERSION = '4.4.6'.freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-05-22 20:58:31.000000000 +0200
+++ new/metadata        2018-08-01 05:56:22.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: commander
 version: !ruby/object:Gem::Version
-  version: 4.4.5
+  version: 4.4.6
 platform: ruby
 authors:
 - TJ Holowaychuk
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-05-22 00:00:00.000000000 Z
+date: 2018-08-01 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: highline
@@ -157,7 +157,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.11
+rubygems_version: 2.7.4
 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/command_spec.rb new/spec/command_spec.rb
--- old/spec/command_spec.rb    2018-05-22 20:58:31.000000000 +0200
+++ new/spec/command_spec.rb    2018-08-01 05:56:22.000000000 +0200
@@ -80,9 +80,11 @@
         expect(@command.run('twice')).to eql('test twice')
       end
 
-      it 'should empty @proxy_options after running' do
+      it 'should not accumulate entries in @proxy_options when run twice' do
         expect(@command.run('--verbose')).to eql('test ')
-        expect(@command.proxy_options.empty?).to be true
+        expect(@command.proxy_options).to eq([[:verbose, true]])
+        expect(@command.run('foo')).to eql('test foo')
+        expect(@command.proxy_options).to eq([])
       end
     end
 


Reply via email to