commit rubygem-slop for openSUSE:Factory

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-04-30 22:52:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-slop" Sat Apr 30 22:52:55 2022 rev:29 rq:974080 version:4.9.2 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2021-07-02 13:28:52.828102604 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.1538/rubygem-slop.changes 2022-04-30 22:53:08.764273627 +0200 @@ -1,0 +2,13 @@ +Thu Apr 28 05:51:32 UTC 2022 - Stephan Kulow <coolo@suse.com> + +updated to version 4.9.2 + see installed CHANGELOG.md + + v4.9.2 (2022-03-26) + ------------------- + + Bug fixes: + * Handle flag arguments that contain equals character [#275](https://github.com/leejarvis/slop/pull/275) (ConnorWGarvey) + + +------------------------------------------------------------------- Old: ---- slop-4.9.1.gem New: ---- slop-4.9.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-slop.spec ++++++ --- /var/tmp/diff_new_pack.NqeRPL/_old 2022-04-30 22:53:09.352274422 +0200 +++ /var/tmp/diff_new_pack.NqeRPL/_new 2022-04-30 22:53:09.356274428 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 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-slop -Version: 4.9.1 +Version: 4.9.2 Release: 0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++++++ slop-4.9.1.gem -> slop-4.9.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/ci.yml new/.github/workflows/ci.yml --- old/.github/workflows/ci.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/.github/workflows/ci.yml 2022-03-26 10:01:48.000000000 +0100 @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [ master ] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + pull_request: + branches: ["**"] + paths: + - "lib/**" + - "test/**" + - ".github/**" + - "Rakefile" + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [ "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", head, jruby, truffleruby ] + name: Ruby ${{ matrix.ruby }} + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler: none + - name: Run tests + run: rake test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2021-05-28 20:25:35.000000000 +0200 +++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,30 +0,0 @@ -cache: bundler -before_install: - - | - export RVM_CURRENT=`rvm current|cut -c6-8` - if [ "${RVM_CURRENT}" = "2.0" ] || \ - [ "${RVM_CURRENT}" = "2.1" ] || \ - [ "${RVM_CURRENT}" = "2.2" ]; then - gem install bundler -v '< 2' - fi - -rvm: - - 2.0.0 - - 2.1 - - 2.2 - - 2.3.4 - - 2.4.10 - - 2.5.9 - - 2.6.7 - - 2.7.3 - - 3.0.1 - - jruby-9.2.17.0 - - jruby-head - - ruby-head - - truffleruby-head -jdk: - - openjdk8 -notifications: - email: - on_success: change - on_failure: always diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2021-05-28 20:25:35.000000000 +0200 +++ new/CHANGELOG.md 2022-03-26 10:01:48.000000000 +0100 @@ -1,6 +1,12 @@ Changelog ========= +v4.9.2 (2022-03-26) +------------------- + +Bug fixes: + * Handle flag arguments that contain equals character [#275](https://github.com/leejarvis/slop/pull/275) (ConnorWGarvey) + v4.9.1 (2021-05-28) ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2021-05-28 20:25:35.000000000 +0200 +++ new/README.md 2022-03-26 10:01:48.000000000 +0100 @@ -3,7 +3,7 @@ Slop is a simple option parser with an easy to remember syntax and friendly API. -[](http://travis-ci.org/leejarvis/slop) +[](https://github.com/leejarvis/slop/actions/workflows/ci.yml) Installation ------------ 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 2021-05-28 20:25:35.000000000 +0200 +++ new/lib/slop/parser.rb 2022-03-26 10:01:48.000000000 +0100 @@ -52,7 +52,7 @@ # support `foo=bar` orig_flag = flag.dup - if match = flag.match(/([^=]+)=([^=]*)/) + if match = flag.match(/([^=]+)=(.*)/) flag, arg = match.captures end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb --- old/lib/slop.rb 2021-05-28 20:25:35.000000000 +0200 +++ new/lib/slop.rb 2022-03-26 10:01:48.000000000 +0100 @@ -6,7 +6,7 @@ require 'slop/error' module Slop - VERSION = '4.9.1' + VERSION = '4.9.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 2021-05-28 20:25:35.000000000 +0200 +++ new/metadata 2022-03-26 10:01:48.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: slop version: !ruby/object:Gem::Version - version: 4.9.1 + version: 4.9.2 platform: ruby authors: - Lee Jarvis autorequire: bindir: bin cert_chain: [] -date: 2021-05-28 00:00:00.000000000 Z +date: 2022-03-26 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -44,8 +44,8 @@ extensions: [] extra_rdoc_files: [] files: +- ".github/workflows/ci.yml" - ".gitignore" -- ".travis.yml" - CHANGELOG.md - Gemfile - LICENSE @@ -86,7 +86,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.0.3 +rubygems_version: 3.2.32 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 2021-05-28 20:25:35.000000000 +0200 +++ new/test/parser_test.rb 2022-03-26 10:01:48.000000000 +0100 @@ -17,16 +17,25 @@ assert_equal ["-v", "--name", "lee"], @parser.arguments end - it "parses flag=argument" do - @options.integer "-p", "--port" - @result.parser.parse %w(--name=bob -p=123) - assert_equal "bob", @result[:name] - assert_equal 123, @result[:port] + describe "for flag=argument" do + it "parses names and values" do + @options.integer "-p", "--port" + @result.parser.parse %w(--name=bob -p=123) + assert_equal "bob", @result[:name] + assert_equal 123, @result[:port] + end - @options.string "--foo" - @result.parser.parse %w(--foo = =) - assert_equal "=", @result[:foo] - assert_equal %w(=), @result.args + it "treats an = separated by a space as a value" do + @options.string "--foo" + @result.parser.parse %w(--foo = =) + assert_equal "=", @result[:foo] + assert_equal %w(=), @result.args + end + + it "includes = in strings" do + @result.parser.parse(%w(--name=b=b)) + assert_equal "b=b", @result[:name] + end end it "parses flag=''" do
participants (1)
-
Source-Sync