Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2018-07-18 22:51:39 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-slop" Wed Jul 18 22:51:39 2018 rev:23 rq:621037 version:4.6.2 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2018-03-06 10:46:03.994931417 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2018-07-18 22:52:29.063250498 +0200 @@ -1,0 +2,11 @@ +Tue Mar 20 10:17:38 UTC 2018 - factory-a...@kulow.org + +- updated to version 4.6.2 + see installed CHANGELOG.md + + v4.6.2 (2018-03-12) + + Bug fixes/Enhancements + * Fix equals character (=) being parsed incorrectly in some cases. #226 + +------------------------------------------------------------------- Old: ---- slop-4.6.1.gem New: ---- slop-4.6.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-slop.spec ++++++ --- /var/tmp/diff_new_pack.2oaCuF/_old 2018-07-18 22:52:29.719248324 +0200 +++ /var/tmp/diff_new_pack.2oaCuF/_new 2018-07-18 22:52:29.723248310 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version: 4.6.1 +Version: 4.6.2 Release: 0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++++++ slop-4.6.1.gem -> slop-4.6.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2017-11-20 20:10:41.000000000 +0100 +++ new/CHANGELOG.md 2018-03-12 15:16:07.000000000 +0100 @@ -1,6 +1,11 @@ Changelog ========= +v4.6.2 (2018-03-12) + +Bug fixes/Enhancements + * Fix equals character (=) being parsed incorrectly in some cases. #226 + v4.6.1 (2017-11-20) ------------------- 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/parser.rb new/lib/slop/parser.rb --- old/lib/slop/parser.rb 2017-11-20 20:10:41.000000000 +0100 +++ new/lib/slop/parser.rb 2018-03-12 15:16:07.000000000 +0100 @@ -53,8 +53,8 @@ # support `foo=bar` orig_flag = flag.dup orig_arg = arg - if flag.include?("=") - flag, arg = flag.split("=") + if match = flag.match(/([^=]+)=([^=]+)/) + flag, arg = match.captures end if opt = try_process(flag, arg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb --- old/lib/slop.rb 2017-11-20 20:10:41.000000000 +0100 +++ new/lib/slop.rb 2018-03-12 15:16:07.000000000 +0100 @@ -6,7 +6,7 @@ require 'slop/error' module Slop - VERSION = '4.6.1' + VERSION = '4.6.2' # 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 2017-11-20 20:10:41.000000000 +0100 +++ new/metadata 2018-03-12 15:16:07.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: slop version: !ruby/object:Gem::Version - version: 4.6.1 + version: 4.6.2 platform: ruby authors: - Lee Jarvis autorequire: bindir: bin cert_chain: [] -date: 2017-11-20 00:00:00.000000000 Z +date: 2018-03-12 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -87,7 +87,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.5.2.1 +rubygems_version: 2.5.2 signing_key: specification_version: 4 summary: Simple Lightweight Option Parsing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/parser_test.rb new/test/parser_test.rb --- old/test/parser_test.rb 2017-11-20 20:10:41.000000000 +0100 +++ new/test/parser_test.rb 2018-03-12 15:16:07.000000000 +0100 @@ -21,6 +21,11 @@ @result.parser.parse %w(--name=bob -p=123) assert_equal "bob", @result[:name] assert_equal 123, @result[:port] + + @options.string "--foo" + @result.parser.parse %w(--foo = =) + assert_equal "=", @result[:foo] + assert_equal %w(=), @result.args end it "parses arg with leading -" do