Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-slop for openSUSE:Factory 
checked in at 2022-10-12 18:25:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-slop.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-slop"

Wed Oct 12 18:25:15 2022 rev:30 rq:1010068 version:4.9.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes        
2022-04-30 22:53:08.764273627 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.2275/rubygem-slop.changes      
2022-10-12 18:27:04.742005201 +0200
@@ -1,0 +2,13 @@
+Mon Oct 10 13:23:21 UTC 2022 - Stephan Kulow <co...@suse.com>
+
+updated to version 4.9.3
+ see installed CHANGELOG.md
+
+  v4.9.3 (2022-09-30)
+  -------------------
+  
+  Bug fixes:
+    * Fix explicitly false boolean options and allow for additional false 
arguments [#276](https://github.com/leejarvis/slop/pull/276) (Eugene Otto)
+  
+
+-------------------------------------------------------------------

Old:
----
  slop-4.9.2.gem

New:
----
  slop-4.9.3.gem

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

Other differences:
------------------
++++++ rubygem-slop.spec ++++++
--- /var/tmp/diff_new_pack.E5iYkw/_old  2022-10-12 18:27:05.194006196 +0200
+++ /var/tmp/diff_new_pack.E5iYkw/_new  2022-10-12 18:27:05.202006214 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-slop
-Version:        4.9.2
+Version:        4.9.3
 Release:        0
 %define mod_name slop
 %define mod_full_name %{mod_name}-%{version}

++++++ slop-4.9.2.gem -> slop-4.9.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2022-03-26 10:01:48.000000000 +0100
+++ new/CHANGELOG.md    2022-09-30 16:13:32.000000000 +0200
@@ -1,6 +1,12 @@
 Changelog
 =========
 
+v4.9.3 (2022-09-30)
+-------------------
+
+Bug fixes:
+  * Fix explicitly false boolean options and allow for additional false 
arguments [#276](https://github.com/leejarvis/slop/pull/276) (Eugene Otto)
+
 v4.9.2 (2022-03-26)
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2022-03-26 10:01:48.000000000 +0100
+++ new/README.md       2022-09-30 16:13:32.000000000 +0200
@@ -22,17 +22,19 @@
   o.bool '-v', '--verbose', 'enable verbose mode'
   o.bool '-q', '--quiet', 'suppress output (quiet mode)'
   o.bool '-c', '--check-ssl-certificate', 'check SSL certificate for host'
+  o.bool '-k', '--use-keychain', 'store passphrase in OS keychain'
   o.on '--version', 'print the version' do
     puts Slop::VERSION
     exit
   end
 end
 
-ARGV #=> -v --login alice --host 192.168.0.1 -m post --check-ssl-certificate
+ARGV #=> -v --login alice --host 192.168.0.1 -m post --check-ssl-certificate 
--use-keychain false
 
 opts[:host]                 #=> 192.168.0.1
 opts[:login]                #=> alice
 opts[:method]               #=> :post
+opts[:use_keychain]         #=> false
 opts.verbose?               #=> true
 opts.quiet?                 #=> false
 opts.check_ssl_certificate? #=> true
@@ -53,7 +55,7 @@
 
 ```ruby
 o.string  #=> Slop::StringOption, expects an argument
-o.bool    #=> Slop::BoolOption, no argument, aliased to BooleanOption
+o.bool    #=> Slop::BoolOption, argument optional, aliased to BooleanOption
 o.integer #=> Slop::IntegerOption, expects an argument, aliased to IntOption
 o.float   #=> Slop::FloatOption, expects an argument
 o.array   #=> Slop::ArrayOption, expects an argument
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/slop/types.rb new/lib/slop/types.rb
--- old/lib/slop/types.rb       2022-03-26 10:01:48.000000000 +0100
+++ new/lib/slop/types.rb       2022-09-30 16:13:32.000000000 +0200
@@ -21,6 +21,8 @@
   class BoolOption < Option
     attr_accessor :explicit_value
 
+    FALSE_VALUES = [false, 'false', 'no', 'off', '0'].freeze
+
     def call(value)
       self.explicit_value = value
       !force_false?
@@ -35,7 +37,7 @@
     end
 
     def force_false?
-      explicit_value == false
+      FALSE_VALUES.include?(explicit_value)
     end
 
     def default_value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb
--- old/lib/slop.rb     2022-03-26 10:01:48.000000000 +0100
+++ new/lib/slop.rb     2022-09-30 16:13:32.000000000 +0200
@@ -6,7 +6,7 @@
 require 'slop/error'
 
 module Slop
-  VERSION = '4.9.2'
+  VERSION = '4.9.3'
 
   # Parse an array of options (defaults to ARGV). Accepts an
   # optional hash of configuration options and block.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2022-03-26 10:01:48.000000000 +0100
+++ new/metadata        2022-09-30 16:13:32.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: slop
 version: !ruby/object:Gem::Version
-  version: 4.9.2
+  version: 4.9.3
 platform: ruby
 authors:
 - Lee Jarvis
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2022-03-26 00:00:00.000000000 Z
+date: 2022-09-30 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
@@ -86,7 +86,7 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubygems_version: 3.2.32
+rubygems_version: 3.3.7
 signing_key:
 specification_version: 4
 summary: Simple Lightweight Option Parsing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/types_test.rb new/test/types_test.rb
--- old/test/types_test.rb      2022-03-26 10:01:48.000000000 +0100
+++ new/test/types_test.rb      2022-09-30 16:13:32.000000000 +0200
@@ -34,9 +34,11 @@
     @verbose  = @options.bool "--verbose"
     @quiet    = @options.bool "--quiet"
     @inversed = @options.bool "--inversed", default: true
+    @explicit = @options.bool "--explicit"
     @bloc     = @options.bool("--bloc"){|val| (@bloc_val ||= []) << val}
     @result   = @options.parse %w(--verbose --no-inversed
-                                  --bloc --no-bloc)
+                                  --bloc --no-bloc
+                                  --explicit=false)
   end
 
   it "returns true if used" do
@@ -54,6 +56,10 @@
   it "will invert the value passed to &block via --no- prefix" do
     assert_equal [true, false], @bloc_val
   end
+
+  it "returns false when explicitly false" do
+    assert_equal false, @result[:explicit]
+  end
 end
 
 describe Slop::IntegerOption do

Reply via email to