Hello community,

here is the log from the commit of package rubygem-slop for openSUSE:Factory 
checked in at 2020-05-11 13:39:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-slop.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-slop"

Mon May 11 13:39:55 2020 rev:26 rq:802377 version:4.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes        
2020-03-07 21:40:13.832352851 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.2738/rubygem-slop.changes      
2020-05-11 13:39:57.996943108 +0200
@@ -1,0 +2,12 @@
+Thu May  7 21:32:15 UTC 2020 - Stephan Kulow <[email protected]>
+
+- updated to version 4.8.1
+ see installed CHANGELOG.md
+
+  v4.8.1 (2020-03-31)
+  -------------------
+  
+  Bug fixes:
+    * Fix keyword argument warning. 
[#251](https://github.com/leejarvis/slop/pull/251)
+
+-------------------------------------------------------------------

Old:
----
  slop-4.8.0.gem

New:
----
  slop-4.8.1.gem

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

Other differences:
------------------
++++++ rubygem-slop.spec ++++++
--- /var/tmp/diff_new_pack.44iiUe/_old  2020-05-11 13:39:59.028945271 +0200
+++ /var/tmp/diff_new_pack.44iiUe/_new  2020-05-11 13:39:59.032945280 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-slop
-Version:        4.8.0
+Version:        4.8.1
 Release:        0
 %define mod_name slop
 %define mod_full_name %{mod_name}-%{version}

++++++ slop-4.8.0.gem -> slop-4.8.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2020-01-17 09:53:14.000000000 +0100
+++ new/CHANGELOG.md    2020-03-31 09:01:15.000000000 +0200
@@ -1,6 +1,13 @@
 Changelog
 =========
 
+v4.8.1 (2020-03-31)
+-------------------
+
+Bug fixes:
+  * Fix keyword argument warning. 
[#251](https://github.com/leejarvis/slop/pull/251)
+
+
 v4.8.0 (2020-01-17)
 -------------------
 
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.rb new/lib/slop.rb
--- old/lib/slop.rb     2020-01-17 09:53:14.000000000 +0100
+++ new/lib/slop.rb     2020-03-31 09:01:15.000000000 +0200
@@ -6,7 +6,7 @@
 require 'slop/error'
 
 module Slop
-  VERSION = '4.8.0'
+  VERSION = '4.8.1'
 
   # Parse an array of options (defaults to ARGV). Accepts an
   # optional hash of configuration options and block.
@@ -20,7 +20,7 @@
   #
   # Returns a Slop::Result.
   def self.parse(items = ARGV, **config, &block)
-    Options.new(config, &block).parse(items)
+    Options.new(**config, &block).parse(items)
   end
 
   # Example:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-01-17 09:53:14.000000000 +0100
+++ new/metadata        2020-03-31 09:01:15.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: slop
 version: !ruby/object:Gem::Version
-  version: 4.8.0
+  version: 4.8.1
 platform: ruby
 authors:
 - Lee Jarvis
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2020-01-17 00:00:00.000000000 Z
+date: 2020-03-31 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/slop_test.rb new/test/slop_test.rb
--- old/test/slop_test.rb       2020-01-17 09:53:14.000000000 +0100
+++ new/test/slop_test.rb       2020-03-31 09:01:15.000000000 +0200
@@ -1,6 +1,16 @@
 require "test_helper"
 
 describe Slop do
+  describe ".parse" do
+    it "parses a list of arguments" do
+      result = Slop.parse(%w[--name Lee]) do |o|
+        o.string "--name"
+      end
+
+      assert_equal "Lee", result[:name]
+    end
+  end
+
   describe ".option_defined?" do
     it "handles bad constant names" do
       assert_equal false, Slop.option_defined?("Foo?Bar")


Reply via email to