commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2020-10-05 19:33:56 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new.4249 (New) Package is "rubygem-slop" Mon Oct 5 19:33:56 2020 rev:27 rq:838084 version:4.8.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2020-05-11 13:39:57.996943108 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.4249/rubygem-slop.changes 2020-10-05 19:33:59.297250784 +0200 @@ -1,0 +2,14 @@ +Fri Sep 25 14:58:11 UTC 2020 - Stephan Kulow + +updated to version 4.8.2 + see installed CHANGELOG.md + + v4.8.2 (2020-07-10) + --- + + Bug fixes: +* Fix bug where separator position was messed up if using `help: false` + [#253](https://github.com/leejarvis/slop/issues/253) + + +--- Old: slop-4.8.1.gem New: slop-4.8.2.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.A4QTS5/_old 2020-10-05 19:33:59.989251460 +0200 +++ /var/tmp/diff_new_pack.A4QTS5/_new 2020-10-05 19:33:59.993251464 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.8.1 +Version:4.8.2 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.8.1.gem -> slop-4.8.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2020-03-31 09:01:15.0 +0200 +++ new/CHANGELOG.md2020-07-10 09:41:33.0 +0200 @@ -1,6 +1,13 @@ Changelog = +v4.8.2 (2020-07-10) +--- + +Bug fixes: + * Fix bug where separator position was messed up if using `help: false` +[#253](https://github.com/leejarvis/slop/issues/253) + v4.8.1 (2020-03-31) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2020-03-31 09:01:15.0 +0200 +++ new/README.md 2020-07-10 09:41:33.0 +0200 @@ -3,9 +3,6 @@ Slop is a simple option parser with an easy to remember syntax and friendly API. -Version 4 of Slop is aimed at Ruby 2.0 or later. Please use -[Version 3](https://github.com/leejarvis/slop/tree/v3) for Ruby 1.9 support. - [![Build Status](https://travis-ci.org/leejarvis/slop.svg?branch=master)](http://travis-ci.org/leejarvis/slop) Installation @@ -275,87 +272,4 @@ Commands -As of version 4, Slop does not have built in support for git-style subcommands. -You can use version 3 of Slop (see `v3` branch). - -Upgrading from version 3 - - -Slop v4 is not backwards compatible. The code has been completely rewritten. -If you're already using version 3 you *have* to update your code to use version 4. -Here's an overview of the large changes: - - No more `instance_eval` - -Before: - -```ruby -Slop.parse do - on 'v', 'version' do -puts VERSION - end -end -``` - -After: - -```ruby -Slop.parse do |o| - o.on '-v', '--version' do -puts VERSION - end -end -``` - - No more `as` for option types - -Instead, the type is declared in the method call. Before: - -```ruby -on 'port=', as: Integer -``` - -After: - -```ruby -o.int '--port' # or integer -``` - -See the custom types section of the document. - - No more trailing `=` - -Instead, the "does this option expect an argument?" question is answered by -the option type (i.e `on` and `bool` options do not expect arguments, all -others do). They handle type conversion, too. - - Hyphens are required - -This was a hard decision to make, but you must provide prefixed hyphens when -declaring your flags. This improves the implementation nicer and makes things -much less ambiguous, which leads to less error prone code. It also means you -can easily support single hyphen prefix for a long flag, i.e `-hostname` which -you could not do before. It also means you can provide infinite flag aliases: -`o.string '-f', '-x', '--foo', '--bar', 'this is insane'` - - Strict is now on by default - -v3 had a `strict` option. v4 has no such option. To suppress errors you can -instead provide the `suppress_errors: true` option to Slop. - - No more parse! - -Where v3 has both `Slop.parse` and `Slop.parse!`, v4 only has `parse`. The -former was used to decide whether Slop should or should not mutate the -original args (usually ARGV). This is almost never what you want, and it -can lead to confusion. Instead, `Slop::Result` provides an `arguments` -methods: - -```ruby -opts =
commit rubygem-slop for openSUSE:Factory
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 + +- 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.md2020-01-17 09:53:14.0 +0100 +++ new/CHANGELOG.md2020-03-31 09:01:15.0 +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.0 +0100 +++ new/lib/slop.rb 2020-03-31 09:01:15.0 +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, ) -Options.new(config, ).parse(items) +Options.new(**config, ).parse(items) end # Example: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2020-01-17 09:53:14.0 +0100 +++ new/metadata2020-03-31 09:01:15.0 +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.0 Z +date: 2020-03-31 00:00:00.0 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.0 +0100 +++ new/test/slop_test.rb 2020-03-31 09:01:15.0 +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")
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2020-03-07 21:40:09 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new.26092 (New) Package is "rubygem-slop" Sat Mar 7 21:40:09 2020 rev:25 rq:773853 version:4.8.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2019-08-06 15:10:44.547764418 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.26092/rubygem-slop.changes 2020-03-07 21:40:13.832352851 +0100 @@ -1,0 +2,19 @@ +Mon Feb 10 15:50:51 UTC 2020 - Stephan Kulow + +- updated to version 4.8.0 + see installed CHANGELOG.md + + v4.8.0 (2020-01-17) + --- + + Features: +* Add support for prefixing integer values with `+` character +[#243](https://github.com/leejarvis/slop/pull/243) (Juha Ylitalo) +* Add support for parsing floats with scientific notation +[#250](https://github.com/leejarvis/slop/pull/250) (Hansuk Hong) + + Maintenance: +* Add 2.7.0 to CI and fix warnings +[#248](https://github.com/leejarvis/slop/pull/248) (Juha Ylitalo, Andrew Kane) + +--- Old: slop-4.7.0.gem New: slop-4.8.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.YTz0p2/_old 2020-03-07 21:40:14.612353377 +0100 +++ /var/tmp/diff_new_pack.YTz0p2/_new 2020-03-07 21:40:14.616353380 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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.7.0 +Version:4.8.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -32,7 +32,7 @@ BuildRequires: %{ruby >= 2.0.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:http://github.com/leejarvis/slop +URL:http://github.com/leejarvis/slop Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Simple Lightweight Option Parsing ++ slop-4.7.0.gem -> slop-4.8.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2019-06-29 16:39:12.0 +0200 +++ new/.travis.yml 2020-01-17 09:53:14.0 +0100 @@ -13,12 +13,15 @@ - 2.1 - 2.2 - 2.3.4 - - 2.4.1 - - 2.5.3 - - 2.6.0 - - jruby-9.2.5.0 + - 2.4.9 + - 2.5.7 + - 2.6.5 + - 2.7.0 + - jruby-9.2.9.0 - jruby-head - ruby-head +jdk: + - openjdk8 notifications: email: on_success: change diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2019-06-29 16:39:12.0 +0200 +++ new/CHANGELOG.md2020-01-17 09:53:14.0 +0100 @@ -1,12 +1,26 @@ Changelog = +v4.8.0 (2020-01-17) +--- + +Features: + * Add support for prefixing integer values with `+` character + [#243](https://github.com/leejarvis/slop/pull/243) (Juha Ylitalo) + * Add support for parsing floats with scientific notation + [#250](https://github.com/leejarvis/slop/pull/250) (Hansuk Hong) + +Maintenance: + * Add 2.7.0 to CI and fix warnings + [#248](https://github.com/leejarvis/slop/pull/248) (Juha Ylitalo, Andrew Kane) + v4.7.0 (2019-06-29) --- Features: * Add `Slop::Result#fetch`. It returns the value of given option, or raises an error if given option is not present. [#232](https://github.com/leejarvis/slop/pull/232) ([Giovanni Benussi](https://github.com/giovannibenussi)) * Adding a separator without passing any arguments now creates a separator with the empty string. [#238](https://github.com/leejarvis/slop/pull/238) ([Teemu Matilainen](https://github.com/tmatilai)) + Bug fixes * Ensure non-string option types have their flags consumed properly [#241] (Sutou Kouhei) 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/options.rb new/lib/slop/options.rb --- old/lib/slop/options.rb 2019-06-29 16:39:12.0 +0200 +++ new/lib/slop/options.rb 2020-01-17 09:53:14.0 +0100 @@ -24,12 +24,12 @@ # The String banner prefixed to the help string. attr_accessor :banner -def initialize(**config) +def
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2019-08-06 15:10:43 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new.4126 (New) Package is "rubygem-slop" Tue Aug 6 15:10:43 2019 rev:24 rq:717323 version:4.7.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2018-07-18 22:52:29.063250498 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new.4126/rubygem-slop.changes 2019-08-06 15:10:44.547764418 +0200 @@ -1,0 +2,15 @@ +Fri Jul 19 09:37:55 UTC 2019 - Stephan Kulow + +- updated to version 4.7.0 + see installed CHANGELOG.md + + v4.7.0 (2019-06-29) + --- + + Features: +* Add `Slop::Result#fetch`. It returns the value of given option, or raises an error if given option is not present. [#232](https://github.com/leejarvis/slop/pull/232) ([Giovanni Benussi](https://github.com/giovannibenussi)) +* Adding a separator without passing any arguments now creates a separator with the empty string. [#238](https://github.com/leejarvis/slop/pull/238) ([Teemu Matilainen](https://github.com/tmatilai)) + Bug fixes +* Ensure non-string option types have their flags consumed properly [#241] (Sutou Kouhei) + +--- Old: slop-4.6.2.gem New: slop-4.7.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.dBARlo/_old 2019-08-06 15:10:45.199764116 +0200 +++ /var/tmp/diff_new_pack.dBARlo/_new 2019-08-06 15:10:45.199764116 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.6.2 +Version:4.7.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.6.2.gem -> slop-4.7.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2018-03-12 15:16:07.0 +0100 +++ new/.travis.yml 2019-06-29 16:39:12.0 +0200 @@ -1,13 +1,22 @@ cache: bundler before_install: - - gem install bundler + - | +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.1 - - jruby-9.1.13.0 + - 2.5.3 + - 2.6.0 + - jruby-9.2.5.0 - jruby-head - ruby-head notifications: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2018-03-12 15:16:07.0 +0100 +++ new/CHANGELOG.md2019-06-29 16:39:12.0 +0200 @@ -1,31 +1,42 @@ Changelog = +v4.7.0 (2019-06-29) +--- + +Features: + * Add `Slop::Result#fetch`. It returns the value of given option, or raises an error if given option is not present. [#232](https://github.com/leejarvis/slop/pull/232) ([Giovanni Benussi](https://github.com/giovannibenussi)) + * Adding a separator without passing any arguments now creates a separator with the empty string. [#238](https://github.com/leejarvis/slop/pull/238) ([Teemu Matilainen](https://github.com/tmatilai)) +Bug fixes + * Ensure non-string option types have their flags consumed properly [#241] (Sutou Kouhei) + + v4.6.2 (2018-03-12) +--- Bug fixes/Enhancements - * Fix equals character (=) being parsed incorrectly in some cases. #226 + * Fix equals character (=) being parsed incorrectly in some cases. [#226](https://github.com/leejarvis/slop/issues/226) v4.6.1 (2017-11-20) --- Bug fixes/Enhancements - * Fix separator so it doesn't mutate user data. #223 (Marc-André Lafortune) + * Fix separator so it doesn't mutate user data. [#223](https://github.com/leejarvis/slop/issues/223) (Marc-André Lafortune) * Add additional tests for `Options#separator` and fix issue where -the last separator was ignored. #222 +the last
commit rubygem-slop for openSUSE:Factory
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.md2017-11-20 20:10:41.0 +0100 +++ new/CHANGELOG.md2018-03-12 15:16:07.0 +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.0 +0100 +++ new/lib/slop/parser.rb 2018-03-12 15:16:07.0 +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.0 +0100 +++ new/lib/slop.rb 2018-03-12 15:16:07.0 +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/metadata2017-11-20 20:10:41.0 +0100 +++ new/metadata2018-03-12 15:16:07.0 +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.0 Z +date: 2018-03-12 00:00:00.0 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.0 +0100 +++ new/test/parser_test.rb 2018-03-12 15:16:07.0 +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
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2018-03-06 10:46:03 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Tue Mar 6 10:46:03 2018 rev:22 rq:581503 version:4.6.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2017-12-07 13:51:22.570649523 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2018-03-06 10:46:03.994931417 +0100 @@ -1,0 +2,14 @@ +Tue Feb 27 05:34:59 UTC 2018 - factory-a...@kulow.org + +- updated to version 4.6.1 + see installed CHANGELOG.md + + v4.6.1 (2017-11-20) + --- + + Bug fixes/Enhancements +* Fix separator so it doesn't mutate user data. #223 (Marc-André Lafortune) +* Add additional tests for `Options#separator` and fix issue where + the last separator was ignored. #222 + +--- Old: slop-4.6.0.gem New: slop-4.6.1.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.gKRwAY/_old 2018-03-06 10:46:04.998895149 +0100 +++ /var/tmp/diff_new_pack.gKRwAY/_new 2018-03-06 10:46:05.002895005 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.6.0 +Version:4.6.1 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.6.0.gem -> slop-4.6.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2017-10-06 14:34:48.0 +0200 +++ new/CHANGELOG.md2017-11-20 20:10:41.0 +0100 @@ -1,6 +1,14 @@ Changelog = +v4.6.1 (2017-11-20) +--- + +Bug fixes/Enhancements + * Fix separator so it doesn't mutate user data. #223 (Marc-André Lafortune) + * Add additional tests for `Options#separator` and fix issue where +the last separator was ignored. #222 + v4.6.0 (2017-10-06) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-10-06 14:34:48.0 +0200 +++ new/README.md 2017-11-20 20:10:41.0 +0100 @@ -30,14 +30,15 @@ end end -ARGV #=> -v --host 192.168.0.1 --check-ssl-certificate +ARGV #=> -v --login alice --host 192.168.0.1 --check-ssl-certificate opts[:host] #=> 192.168.0.1 +opts[:login]#=> alice opts.verbose? #=> true opts.quiet? #=> false opts.check_ssl_certificate? #=> true -opts.to_hash #=> { host: "192.168.0.1", port: 80, verbose: true, quiet: false, check_ssl_certificate: true } +opts.to_hash #=> { host: "192.168.0.1", login: "alice", port: 80, verbose: true, quiet: false, check_ssl_certificate: true } ``` Note that the block we've added to the `--version` flag will be executed 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/options.rb new/lib/slop/options.rb --- old/lib/slop/options.rb 2017-10-06 14:34:48.0 +0200 +++ new/lib/slop/options.rb 2017-11-20 20:10:41.0 +0100 @@ -61,7 +61,7 @@ # the help text. def separator(string) if separators[options.size] -separators.last << "\n#{string}" +separators[-1] += "\n#{string}" else separators[options.size] = string end @@ -111,6 +111,10 @@ str << "#{prefix}#{opt.to_s(offset: len)}\n" end + if sep = separators[options.size] +str << "#{sep}\n" + end + str end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb --- old/lib/slop.rb 2017-10-06 14:34:48.0 +0200 +++ new/lib/slop.rb 2017-11-20 20:10:41.0 +0100 @@ -6,7 +6,7 @@ require 'slop/error' module Slop - VERSION = '4.6.0' + VERSION = '4.6.1' # 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
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2017-12-07 13:51:18 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Thu Dec 7 13:51:18 2017 rev:21 rq:533900 version:4.6.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2017-06-08 15:00:23.717106049 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2017-12-07 13:51:22.570649523 +0100 @@ -1,0 +2,12 @@ +Wed Oct 11 06:18:38 UTC 2017 - co...@suse.com + +- updated to version 4.6.0 + see installed CHANGELOG.md + + v4.6.0 (2017-10-06) + --- + + Features +* Add support for required options. #218 (William Woodruff) + +--- Old: slop-4.5.0.gem New: slop-4.6.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.KNSdcN/_old 2017-12-07 13:51:25.786532402 +0100 +++ /var/tmp/diff_new_pack.KNSdcN/_new 2017-12-07 13:51:25.790532256 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.5.0 +Version:4.6.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url:http://github.com/leejarvis/slop -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:Simple Lightweight Option Parsing License:MIT ++ slop-4.5.0.gem -> slop-4.6.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2017-05-22 21:29:25.0 +0200 +++ new/.travis.yml 2017-10-06 14:34:48.0 +0200 @@ -7,7 +7,7 @@ - 2.2 - 2.3.4 - 2.4.1 - - jruby-9.1.8.0 + - jruby-9.1.13.0 - jruby-head - ruby-head notifications: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2017-05-22 21:29:25.0 +0200 +++ new/CHANGELOG.md2017-10-06 14:34:48.0 +0200 @@ -1,6 +1,12 @@ Changelog = +v4.6.0 (2017-10-06) +--- + +Features + * Add support for required options. #218 (William Woodruff) + v4.5.0 (2017-05-22) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-05-22 21:29:25.0 +0200 +++ new/README.md 2017-10-06 14:34:48.0 +0200 @@ -20,6 +20,7 @@ opts = Slop.parse do |o| o.string '-h', '--host', 'a hostname' o.integer '--port', 'custom port', default: 80 + o.string '-l', '--login', required: true 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' @@ -39,6 +40,12 @@ opts.to_hash #=> { host: "192.168.0.1", port: 80, verbose: true, quiet: false, check_ssl_certificate: true } ``` +Note that the block we've added to the `--version` flag will be executed +during parse time. Therefore these blocks should be reserved +for immediately reacting to the presence of a flag. If you want to +access other options or mutate values, check out the "Custom option types" +section below and implement the `#finish` method. + Option types @@ -191,6 +198,7 @@ * An option used without an argument when it expects one: `Slop::MissingArgument` * An option used that Slop doesn't know about: `Slop::UnknownOption` +* An option marked as `required` when not provided: `Slop::MissingRequiredOption` These errors inherit from `Slop::Error`, so you can rescue them all. Alternatively you can suppress these errors with the `suppress_errors` config 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/error.rb new/lib/slop/error.rb --- old/lib/slop/error.rb 2017-05-22 21:29:25.0 +0200 +++ new/lib/slop/error.rb 2017-10-06 14:34:48.0 +0200 @@ -32,4 +32,9 @@ @flag = flag end end + + # Raised when a required option is *not* parsed. + # Suppress with the `suppress_errors` config option. + class MissingRequiredOption < Error + end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/option.rb
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2017-06-08 15:00:22 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Thu Jun 8 15:00:22 2017 rev:20 rq:497679 version:4.5.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2016-10-10 16:22:38.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2017-06-08 15:00:23.717106049 +0200 @@ -1,0 +2,26 @@ +Tue May 23 10:22:40 UTC 2017 - co...@suse.com + +- updated to version 4.5.0 + see installed CHANGELOG.md + + v4.5.0 (2017-05-22) + --- + + Features: +* Added config option to avoid translating flags-with-dashes into +underscores. #206 (@lbriais) + + v4.4.3 (2017-05-02) + --- + + Bug fixes: +* Ruby 2.0.0 support broken in v4.4.2 + + v4.4.2 (2017-04-29) + --- + + Bug fixes: +* Fix support for parsing -x5 or -nfoo. #199 +* Fix removing arguments after `--`. #194 + +--- Old: slop-4.4.1.gem New: slop-4.5.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.a4bVGT/_old 2017-06-08 15:00:25.392869546 +0200 +++ /var/tmp/diff_new_pack.a4bVGT/_new 2017-06-08 15:00:25.396868981 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.4.1 +Version:4.5.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.4.1.gem -> slop-4.5.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2016-08-21 15:52:42.0 +0200 +++ new/.travis.yml 2017-05-22 21:29:25.0 +0200 @@ -1,18 +1,15 @@ cache: bundler before_install: - - gem update bundler + - gem install bundler rvm: - 2.0.0 - 2.1 - 2.2 - - 2.3.0 - - rbx-2 + - 2.3.4 + - 2.4.1 + - jruby-9.1.8.0 - jruby-head - ruby-head -matrix: - allow_failures: -- rvm: ruby-head -- rvm: jruby-head notifications: email: on_success: change diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2016-08-21 15:52:42.0 +0200 +++ new/CHANGELOG.md2017-05-22 21:29:25.0 +0200 @@ -1,6 +1,26 @@ Changelog = +v4.5.0 (2017-05-22) +--- + +Features: + * Added config option to avoid translating flags-with-dashes into + underscores. #206 (@lbriais) + +v4.4.3 (2017-05-02) +--- + +Bug fixes: + * Ruby 2.0.0 support broken in v4.4.2 + +v4.4.2 (2017-04-29) +--- + +Bug fixes: + * Fix support for parsing -x5 or -nfoo. #199 + * Fix removing arguments after `--`. #194 + v4.4.1 (2016-08-21) --- 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/option.rb new/lib/slop/option.rb --- old/lib/slop/option.rb 2016-08-21 15:52:42.0 +0200 +++ new/lib/slop/option.rb 2017-05-22 21:29:25.0 +0200 @@ -3,6 +3,7 @@ DEFAULT_CONFIG = { help: true, tail: false, + underscore_flags: true, } # An Array of flags this option matches. @@ -107,7 +108,14 @@ # Returns the last key as a symbol. Used in Options.to_hash. def key - (config[:key] || flags.last.sub(/\A--?/, '')).tr("-", "_").to_sym + key = config[:key] || flags.last.sub(/\A--?/, '') + key = key.tr '-', '_' if underscore_flags? + key.to_sym +end + +# Returns true if this option should be displayed with dashes transformed into underscores. +def underscore_flags? + config[:underscore_flags] end # Returns true if this option should be displayed in help text. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/options.rb new/lib/slop/options.rb --- old/lib/slop/options.rb 2016-08-21 15:52:42.0 +0200 +++ new/lib/slop/options.rb 2017-05-22 21:29:25.0 +0200 @@ -3,9 +3,10 @@ include Enumerable DEFAULT_CONFIG = {
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2016-10-10 16:22:37 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2016-09-12 13:26:30.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2016-10-10 16:22:38.0 +0200 @@ -1,0 +2,13 @@ +Sat Sep 10 04:39:20 UTC 2016 - co...@suse.com + +- updated to version 4.4.1 + see installed CHANGELOG.md + + v4.4.1 (2016-08-21) + --- + + Bug fixes: +* Handle bad constant names in `Slop.option_defined?`. #198 + (Ellen Marie Dash) + +--- Old: slop-4.4.0.gem New: slop-4.4.1.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.M2awSI/_old 2016-10-10 16:22:42.0 +0200 +++ /var/tmp/diff_new_pack.M2awSI/_new 2016-10-10 16:22:42.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.4.0 +Version:4.4.1 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.4.0.gem -> slop-4.4.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2016-08-15 11:18:08.0 +0200 +++ new/CHANGELOG.md2016-08-21 15:52:42.0 +0200 @@ -1,6 +1,13 @@ Changelog = +v4.4.1 (2016-08-21) +--- + +Bug fixes: + * Handle bad constant names in `Slop.option_defined?`. #198 +(Ellen Marie Dash) + v4.4.0 (2016-08-15) --- 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 2016-08-15 11:18:08.0 +0200 +++ new/lib/slop.rb 2016-08-21 15:52:42.0 +0200 @@ -6,7 +6,7 @@ require 'slop/error' module Slop - VERSION = '4.4.0' + VERSION = '4.4.1' # Parse an array of options (defaults to ARGV). Accepts an # optional hash of configuration options and block. @@ -31,6 +31,10 @@ # Returns true if an option is defined. def self.option_defined?(name) const_defined?(string_to_option(name.to_s)) + rescue NameError +# If a NameError is raised, it wasn't a valid constant name, +# and thus couldn't have been defined. +false end # Example: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2016-08-15 11:18:08.0 +0200 +++ new/metadata2016-08-21 15:52:42.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: slop version: !ruby/object:Gem::Version - version: 4.4.0 + version: 4.4.1 platform: ruby authors: - Lee Jarvis autorequire: bindir: bin cert_chain: [] -date: 2016-08-15 00:00:00.0 Z +date: 2016-08-21 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -64,6 +64,7 @@ - test/options_test.rb - test/parser_test.rb - test/result_test.rb +- test/slop_test.rb - test/test_helper.rb - test/types_test.rb homepage: http://github.com/leejarvis/slop @@ -96,6 +97,7 @@ - test/options_test.rb - test/parser_test.rb - test/result_test.rb +- test/slop_test.rb - test/test_helper.rb - test/types_test.rb has_rdoc: 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 1970-01-01 01:00:00.0 +0100 +++ new/test/slop_test.rb 2016-08-21 15:52:42.0 +0200 @@ -0,0 +1,17 @@ +require "test_helper" + +describe Slop do + describe ".option_defined?" do +it "handles bad constant names" do + assert_equal false, Slop.option_defined?("Foo?Bar") +end + +it "returns false if the option is not defined" do + assert_equal false, Slop.option_defined?("Foo") +end + +it "returns true if the option is defined" do + assert_equal true, Slop.option_defined?("String") +end + end +end
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2016-09-12 13:26:29 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2016-03-26 18:14:34.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2016-09-12 13:26:30.0 +0200 @@ -1,0 +2,15 @@ +Tue Aug 16 04:33:56 UTC 2016 - co...@suse.com + +- updated to version 4.4.0 + see installed CHANGELOG.md + + v4.4.0 (2016-08-15) + --- + + Features +* Support parsing arguments prefixed with dashes. #192 (Andrew Clemons) + + Bug fixes: +* Retain sort order inside tail sort. #193 (Caio Chassot) + +--- Old: slop-4.3.0.gem New: slop-4.4.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.dH7jr1/_old 2016-09-12 13:26:31.0 +0200 +++ /var/tmp/diff_new_pack.dH7jr1/_new 2016-09-12 13:26:31.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.3.0 +Version:4.4.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.3.0.gem -> slop-4.4.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2016-03-19 11:25:22.0 +0100 +++ new/CHANGELOG.md2016-08-15 11:18:08.0 +0200 @@ -1,6 +1,15 @@ Changelog = +v4.4.0 (2016-08-15) +--- + +Features + * Support parsing arguments prefixed with dashes. #192 (Andrew Clemons) + +Bug fixes: + * Retain sort order inside tail sort. #193 (Caio Chassot) + v4.3.0 (2016-03-19) --- Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/options.rb new/lib/slop/options.rb --- old/lib/slop/options.rb 2016-03-19 11:25:22.0 +0100 +++ new/lib/slop/options.rb 2016-08-15 11:18:08.0 +0200 @@ -101,7 +101,7 @@ str = config[:banner] ? "#{banner}\n" : "" len = longest_flag_length - options.select(&:help?).sort_by(&:tail).each_with_index do |opt, i| + options.select(&:help?).each_with_index.sort_by{ |o,i| [o.tail, i] }.each do |opt, i| # use the index to fetch an associated separator if sep = separators[i] str << "#{sep}\n" 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 2016-03-19 11:25:22.0 +0100 +++ new/lib/slop/parser.rb 2016-08-15 11:18:08.0 +0200 @@ -43,7 +43,8 @@ @arguments = strings.dup - pairs.each do |flag, arg| + pairs.each_with_index do |pair, idx| +flag, arg = pair break if !flag # ignore everything after '--', flag or not @@ -54,6 +55,7 @@ # support `foo=bar` orig_flag = flag.dup +orig_arg = arg if flag.include?("=") flag, arg = flag.split("=") end @@ -63,6 +65,12 @@ # arguments (plus the arg if necessary) # delete argument first while we can find its index. if opt.expects_argument? + +# if we consumed the argument, remove the next pair +if orig_arg == opt.value.to_s + pairs.delete_at(idx + 1) +end + arguments.each_with_index do |argument, i| if argument == orig_flag && !orig_flag.include?("=") arguments.delete_at(i + 1) 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 2016-03-19 11:25:22.0 +0100 +++ new/lib/slop/types.rb 2016-08-15 11:18:08.0 +0200 @@ -44,7 +44,7 @@ # Cast the option argument to an Integer. class IntegerOption < Option def call(value) - value =~ /\A\d+\z/ && value.to_i + value =~ /\A-?\d+\z/ && value.to_i end end IntOption = IntegerOption @@ -53,7 +53,7 @@ class FloatOption < Option def call(value) # TODO: scientific notation, etc. - value =~ /\A\d*\.*\d+\z/ && value.to_f + value =~ /\A-?\d*\.*\d+\z/ && value.to_f end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop.rb new/lib/slop.rb ---
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2016-03-26 15:28:29 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2015-12-01 09:18:50.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2016-03-26 18:14:34.0 +0100 @@ -1,0 +2,13 @@ +Sun Mar 20 05:32:11 UTC 2016 - co...@suse.com + +- updated to version 4.3.0 + see installed CHANGELOG.md + + v4.3.0 (2016-03-19) + --- + + Features +* Allow disabling array delimiter. #189 (Mike Pastore) +* Allow passing custom banner as config. #191 (Philip Rees) + +--- Old: slop-4.2.1.gem New: slop-4.3.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.LqH9lV/_old 2016-03-26 18:14:35.0 +0100 +++ /var/tmp/diff_new_pack.LqH9lV/_new 2016-03-26 18:14:35.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.2.1 +Version:4.3.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.2.1.gem -> slop-4.3.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2015-11-25 08:47:55.0 +0100 +++ new/.travis.yml 2016-03-19 11:25:22.0 +0100 @@ -1,8 +1,11 @@ cache: bundler +before_install: + - gem update bundler rvm: - 2.0.0 - 2.1 - 2.2 + - 2.3.0 - rbx-2 - jruby-head - ruby-head diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2015-11-25 08:47:55.0 +0100 +++ new/CHANGELOG.md2016-03-19 11:25:22.0 +0100 @@ -1,6 +1,13 @@ Changelog = +v4.3.0 (2016-03-19) +--- + +Features + * Allow disabling array delimiter. #189 (Mike Pastore) + * Allow passing custom banner as config. #191 (Philip Rees) + v4.2.1 (2015-11-25) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2015-11-25 08:47:55.0 +0100 +++ new/README.md 2016-03-19 11:25:22.0 +0100 @@ -132,6 +132,9 @@ # --files foo.txt --files bar.rb ``` +If you want to disable the built-in string-splitting, set the delimiter to +`nil`. + Custom option types --- @@ -272,7 +275,7 @@ Slop v4 is completely non-backwards compatible. The code has been rewritten -from the group up. If you're already using version 3 you have *have* to update +from the ground up. If you're already using version 3 you *have* to update your code to use version 4. Here's an overview of the more fundamental changes: No more `instance_eval` Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/options.rb new/lib/slop/options.rb --- old/lib/slop/options.rb 2015-11-25 08:47:55.0 +0100 +++ new/lib/slop/options.rb 2016-03-19 11:25:22.0 +0100 @@ -26,7 +26,7 @@ def initialize(**config) @options= [] @separators = [] - @banner = "usage: #{$0} [options]" + @banner = config[:banner].is_a?(String) ? config[:banner] : config.fetch(:banner, "usage: #{$0} [options]") @config = DEFAULT_CONFIG.merge(config) @parser = Parser.new(self, @config) 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 2015-11-25 08:47:55.0 +0100 +++ new/lib/slop/types.rb 2016-03-19 11:25:22.0 +0100 @@ -62,7 +62,11 @@ class ArrayOption < Option def call(value) @value ||= [] - @value.concat value.split(delimiter, limit) + if delimiter +@value.concat value.split(delimiter, limit) + else +@value << value + end end def default_value @@ -70,7 +74,7 @@ end def
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2015-12-01 09:18:49 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is "rubygem-slop" Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2015-06-23 11:57:58.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2015-12-01 09:18:50.0 +0100 @@ -1,0 +2,21 @@ +Thu Nov 26 05:35:58 UTC 2015 - co...@suse.com + +- updated to version 4.2.1 + see installed CHANGELOG.md + + v4.2.1 (2015-11-25) + --- + + Features: +* Better handling of option names with multiple words. #169 (Tim Rogers) + + Minor enhancements: +* add ARGF notes to Arguments (README). #173 (Rick Hull) + + Bug fixes: +* Fix arguments removed with option arguments. #182 (Naoki Mizuno) +* Fix bug where true is passed to BoolOption block regardless + of --no- prefix. #184 (Ben Brady) +* only raise MissingArgument if not `default_value`. #163 (Ben Brady) + +--- Old: slop-4.2.0.gem New: slop-4.2.1.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.uac0vT/_old 2015-12-01 09:18:51.0 +0100 +++ /var/tmp/diff_new_pack.uac0vT/_new 2015-12-01 09:18:51.0 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.2.0 +Version:4.2.1 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.2.0.gem -> slop-4.2.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2015-06-18 16:44:52.0 +0200 +++ new/.travis.yml 2015-11-25 08:47:55.0 +0100 @@ -1,8 +1,15 @@ +cache: bundler rvm: - 2.0.0 - 2.1 - 2.2 - rbx-2 + - jruby-head + - ruby-head +matrix: + allow_failures: +- rvm: ruby-head +- rvm: jruby-head notifications: email: on_success: change diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2015-06-18 16:44:52.0 +0200 +++ new/CHANGELOG.md2015-11-25 08:47:55.0 +0100 @@ -1,6 +1,21 @@ Changelog = +v4.2.1 (2015-11-25) +--- + +Features: + * Better handling of option names with multiple words. #169 (Tim Rogers) + +Minor enhancements: + * add ARGF notes to Arguments (README). #173 (Rick Hull) + +Bug fixes: + * Fix arguments removed with option arguments. #182 (Naoki Mizuno) + * Fix bug where true is passed to BoolOption block regardless +of --no- prefix. #184 (Ben Brady) + * only raise MissingArgument if not `default_value`. #163 (Ben Brady) + v4.2.0 (2015-04-18) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2015-06-18 16:44:52.0 +0200 +++ new/README.md 2015-11-25 08:47:55.0 +0100 @@ -101,6 +101,21 @@ p opts.arguments #=> ["connect", "GET"] # also aliased to `args` ``` +This is particularly useful when writing scripts with `ARGF`: + +```ruby +opts = Slop.parse do |blah| + # ... +end + +# make sure sloptions aren't consumed by ARGF +ARGV.replace opts.arguments + +ARGF.each { |line| + # ... +} +``` + Arrays -- Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/option.rb new/lib/slop/option.rb --- old/lib/slop/option.rb 2015-06-18 16:44:52.0 +0200 +++ new/lib/slop/option.rb 2015-11-25 08:47:55.0 +0100 @@ -47,11 +47,16 @@ def ensure_call(value) @count += 1 - if value.nil? && expects_argument? && !suppress_errors? -raise Slop::MissingArgument.new("missing argument for #{flag}", flags) + if value.nil? && expects_argument? +if default_value + @value = default_value +elsif !suppress_errors? + raise Slop::MissingArgument.new("missing argument for #{flag}", flags) +end + else +@value = call(value) end - @value = call(value) block.call(@value) if block.respond_to?(:call) end 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 2015-06-18 16:44:52.0 +0200 +++ new/lib/slop/parser.rb 2015-11-25
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2015-06-23 11:57:57 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2015-04-25 11:25:44.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2015-06-23 11:57:58.0 +0200 @@ -1,0 +2,15 @@ +Fri Jun 19 04:34:15 UTC 2015 - co...@suse.com + +- updated to version 4.2.0 + see installed CHANGELOG.md + + v4.2.0 (2015-04-18) + --- + + Features: +* Support for Regexp option type #167 (Laurent Arnoud) +* Support prefixed `--no-` for explicitly setting boolean options + to `false` #168 +* Better handling of flags with multiple words #169 (Tim Rogers) + +--- Old: slop-4.1.0.gem New: slop-4.2.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.yEhLPH/_old 2015-06-23 11:58:01.0 +0200 +++ /var/tmp/diff_new_pack.yEhLPH/_new 2015-06-23 11:58:01.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.1.0 +Version:4.2.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} ++ slop-4.1.0.gem - slop-4.2.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2015-04-18 12:21:36.0 +0200 +++ new/CHANGELOG.md2015-06-18 16:44:52.0 +0200 @@ -1,6 +1,15 @@ Changelog = +v4.2.0 (2015-04-18) +--- + +Features: + * Support for Regexp option type #167 (Laurent Arnoud) + * Support prefixed `--no-` for explicitly setting boolean options +to `false` #168 + * Better handling of flags with multiple words #169 (Tim Rogers) + v4.1.0 (2015-04-18) --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2015-04-18 12:21:36.0 +0200 +++ new/README.md 2015-06-18 16:44:52.0 +0200 @@ -6,7 +6,7 @@ Version 4 of Slop is aimed at Ruby 2.0 or later. Please use [Version 3](https://github.com/leejarvis/slop/tree/v3) for Ruby 1.9 support. -[![Build Status](https://travis-ci.org/leejarvis/slop.png?branch=master)](http://travis-ci.org/leejarvis/slop) +[![Build Status](https://travis-ci.org/leejarvis/slop.svg?branch=master)](http://travis-ci.org/leejarvis/slop) Installation @@ -22,19 +22,21 @@ o.integer '--port', 'custom port', default: 80 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.on '--version', 'print the version' do puts Slop::VERSION exit end end -ARGV #= -v --host 192.168.0.1 +ARGV #= -v --host 192.168.0.1 --check-ssl-certificate -opts[:host] #= 192.168.0.1 -opts.verbose? #= true -opts.quiet? #= false +opts[:host] #= 192.168.0.1 +opts.verbose? #= true +opts.quiet? #= false +opts.check_ssl_certificate? #= true -opts.to_hash #= { host: 192.168.0.1, port: 80, verbose: true, quiet: false } +opts.to_hash #= { host: 192.168.0.1, port: 80, verbose: true, quiet: false, check_ssl_certificate: true } ``` Option types @@ -48,6 +50,7 @@ o.integer #= Slop::IntegerOption, expects an argument, aliased to IntOption o.float #= Slop::FloatOption, expects an argument o.array #= Slop::ArrayOption, expects an argument +o.regexp #= Slop::RegexpOption, expects an argument o.null#= Slop::NullOption, no argument and ignored from `to_hash` o.on #= alias for o.null ``` @@ -71,10 +74,10 @@ opts.separator opts.separator Extra options: opts.array --files, a list of files to import -opts.bool -v, --verbose, enable verbose mode +opts.bool -v, --verbose, enable verbose mode, default: true parser = Slop::Parser.new(opts) -result = parser.parse([--hostname, 192.168.0.1]) +result = parser.parse([--hostname, 192.168.0.1, --no-verbose]) result.to_hash #= { hostname: 192.168.0.1, port: 80, # files: [], verbose: false } Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/slop/option.rb new/lib/slop/option.rb --- old/lib/slop/option.rb 2015-04-18 12:21:36.0 +0200 +++ new/lib/slop/option.rb
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2015-04-25 09:53:04 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2015-02-11 16:45:48.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2015-04-25 11:25:44.0 +0200 @@ -1,0 +2,19 @@ +Thu Apr 23 08:19:27 UTC 2015 - co...@suse.com + +- updated to version 4.1.0 + Features: + * Support for FloatOption #156 (Rick Hull) + * Support for `limit` config to ArrayOption. + * Support for `tail` config to add options to the bottom of + the help text. + * Add explicit setter (#[]=) to Result class. #162 + * Implement flag gettings for UnknownOption and MissingArgument + error classes. #165 (sigurdsvela) + + Minor enhancements: + * Reset parser every time `parse` is called. + + Bug fixes: + * Remove -- from unprocessed arguments #157 (David Rodríguez). + +--- Old: slop-4.0.0.gem New: slop-4.1.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.A4RJ8Q/_old 2015-04-25 11:25:45.0 +0200 +++ /var/tmp/diff_new_pack.A4RJ8Q/_new 2015-04-25 11:25:45.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-slop -Version:4.0.0 +Version:4.1.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -48,7 +48,7 @@ %install %gem_install \ - --doc-files=LICENSE README.md \ + --doc-files=CHANGELOG.md LICENSE README.md \ -f %gem_packages ++ slop-4.0.0.gem - slop-4.1.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2014-12-27 18:58:23.0 +0100 +++ new/.travis.yml 2015-04-18 12:21:36.0 +0200 @@ -1,5 +1,8 @@ rvm: - 2.0.0 + - 2.1 + - 2.2 + - rbx-2 notifications: email: on_success: change diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md1970-01-01 01:00:00.0 +0100 +++ new/CHANGELOG.md2015-04-18 12:21:36.0 +0200 @@ -0,0 +1,27 @@ +Changelog += + +v4.1.0 (2015-04-18) +--- + +Features: + * Support for FloatOption #156 (Rick Hull) + * Support for `limit` config to ArrayOption. + * Support for `tail` config to add options to the bottom of +the help text. + * Add explicit setter (#[]=) to Result class. #162 + * Implement flag gettings for UnknownOption and MissingArgument +error classes. #165 (sigurdsvela) + +Minor enhancements: + * Reset parser every time `parse` is called. + +Bug fixes: + * Remove -- from unprocessed arguments #157 (David Rodríguez). + +v4.0.0 (2014-12-27) +--- + +Features: + * Rebuilt from the ground up. See the v3 changelog for all existing +changes: https://github.com/leejarvis/slop/blob/v3/CHANGES.md diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-12-27 18:58:23.0 +0100 +++ new/README.md 2015-04-18 12:21:36.0 +0200 @@ -46,6 +46,7 @@ o.string #= Slop::StringOption, expects an argument o.bool#= Slop::BoolOption, no argument, 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 o.null#= Slop::NullOption, no argument and ignored from `to_hash` o.on #= alias for o.null @@ -248,3 +249,85 @@ You can use version 3 of Slop (see `v3` branch). I also expect there to be some external libraries released soon that wrap around Slop to provide support for this feature. I'll update this document when that happens. + +Upgrading from version 3 + + +Slop v4 is completely non-backwards compatible. The code has been rewritten +from the group up. If you're already using version 3 you have *have* to update +your code to use version 4. Here's an overview of the more fundamental changes: + + No more `instance_eval` + +Before: + +```ruby +Slop.parse do + on 'v', 'version' do +puts VERSION + end +end +``` + +After: + +```ruby +Slop.parse do |o| + o.on '-v', '--version' do +puts VERSION + end +end +``` + + No more `as` for option types + +Instead, the type is declared in the method call. Before: + +```ruby +on
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2015-02-11 16:45:46 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2014-10-15 16:20:01.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2015-02-11 16:45:48.0 +0100 @@ -1,0 +2,5 @@ +Tue Feb 10 18:34:28 UTC 2015 - co...@suse.com + +- updated to version 4.0.0 + +--- Old: slop-3.6.0.gem New: gem2rpm.yml slop-4.0.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.nSilHx/_old 2015-02-11 16:45:49.0 +0100 +++ /var/tmp/diff_new_pack.nSilHx/_new 2015-02-11 16:45:49.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,23 +16,31 @@ # +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-slop -Version:3.6.0 +Version:4.0.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby = 1.8.7} +BuildRequires: %{ruby = 2.0.0} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros = 5 Url:http://github.com/leejarvis/slop Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml Summary:Simple Lightweight Option Parsing License:MIT Group: Development/Languages/Ruby %description -A simple DSL for gathering options and parsing the command line. +A DSL for gathering options and parsing command line flags. %prep @@ -40,7 +48,7 @@ %install %gem_install \ - --doc-files=CHANGES.md LICENSE README.md \ + --doc-files=LICENSE README.md \ -f %gem_packages ++ gem2rpm.yml ++ # --- # ## used by gem2rpm # :summary: this is a custom summary # ## used by gem2rpm # :description: |- # this is a custom description # # it can be multiline # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages # :version_suffix: -x_y # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm # :disable_automatic_rdoc_dep: true # ## used by gem2rpm # :preamble: |- # BuildRequires: foobar # Requires: foobar # ## used by gem2rpm # :patches: # foo.patch: -p1 # bar.patch: # ## used by gem2rpm :sources: # - foo.desktop # - bar.desktop # :gem_install_args: '' # ## used by gem2rpm # :pre_install: |- # %if 0%{?use_system_libev} # export USE_VENDORED_LIBEV=no # %endif # ## used by gem2rpm # :post_install: |- # # delete custom files here or do other fancy stuff # install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse # ## used by gem2rpm # :testsuite_command: |- # (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} rake test) # ## used by gem2rpm # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem2rpm # :scripts: # :post: |- # /bin/echo foo # ## used by gem_packages # :main: # :preamble: |- # Requires: util-linux # Recommends: pwgen # :filelist: |- # /usr/bin/gem2rpm-opensuse # ## used by gem_packages # :custom: # apache: # :preamble: |- # Requires: . # :filelist: |- # /etc/apache2/conf.d/passenger.conf # :summary: Custom summary is optional # :description: |- # Custom description is optional # # bar # :post: |- # /bin/echo foo # ++ slop-3.6.0.gem - slop-4.0.0.gem ++ 3620 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2014-10-15 16:19:52 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2014-03-21 13:50:52.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2014-10-15 16:20:01.0 +0200 @@ -1,0 +2,8 @@ +Sun Oct 12 17:11:28 UTC 2014 - co...@suse.com + +- updated to version 3.6.0 + * Add example of rest arguments usage in the readme file #139 + * Default values on options are printed in the help message #134 +- new rubygem packaging + +--- Old: slop-3.5.0.gem New: slop-3.6.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.e8NjvP/_old 2014-10-15 16:20:02.0 +0200 +++ /var/tmp/diff_new_pack.e8NjvP/_new 2014-10-15 16:20:02.0 +0200 @@ -17,15 +17,14 @@ Name: rubygem-slop -Version:3.5.0 +Version:3.6.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} - BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros = 3 -Requires: ruby = 1.8.7 -BuildRequires: ruby = 1.8.7 +BuildRequires: %{ruby = 1.8.7} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: ruby-macros = 5 Url:http://github.com/leejarvis/slop Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Simple Lightweight Option Parsing @@ -33,53 +32,17 @@ Group: Development/Languages/Ruby %description -A simple DSL for gathering options and parsing the command line - -%package doc -Summary:RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -%package testsuite -Summary:Test suite for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description testsuite -Test::Unit or RSpec files, useful for developers. +A simple DSL for gathering options and parsing the command line. %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%gem_install -f -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{gem_base}/gems/%{mod_full_name}/CHANGES.md %buildroot/%{_docdir}/%{name}/CHANGES.md -ln -s %{gem_base}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE -ln -s %{gem_base}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md - -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{gem_base}/cache/%{mod_full_name}.gem -%{gem_base}/gems/%{mod_full_name}/ -%exclude %{gem_base}/gems/%{mod_full_name}/test -%{gem_base}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{gem_base}/doc - -%files testsuite -%defattr(-,root,root,-) -%{gem_base}/gems/%{mod_full_name}/test +%gem_install \ + --doc-files=CHANGES.md LICENSE README.md \ + -f + +%gem_packages %changelog ++ slop-3.5.0.gem - slop-3.6.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2014-03-12 22:16:52.0 +0100 +++ new/.travis.yml 1970-01-01 01:00:00.0 +0100 @@ -1,11 +1,8 @@ rvm: - - 1.8.7 - - 1.9.2 - 1.9.3 + - 2.1 - ruby-head - - jruby-18mode - jruby-19mode - - rbx-18mode notifications: email: on_success: change diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGES.md new/CHANGES.md --- old/CHANGES.md 2014-03-12 22:16:52.0 +0100 +++ new/CHANGES.md 1970-01-01 01:00:00.0 +0100 @@ -1,3 +1,9 @@ +3.6.0 (2014-06-18) +-- + +* Add example of rest arguments usage in the readme file #139 +* Default values on options are printed in the help message #134 + 3.5.0 (2014-03-12) -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2014-03-12 22:16:52.0 +0100 +++ new/README.md 1970-01-01 01:00:00.0 +0100 @@ -41,20 +41,16 @@ All of these options can be sent to `Slop.new` or `Slop.parse` in Hash form. -* `strict` - Enable strict mode. When processing unknown options, Slop will - raise an `InvalidOptionError`. **default:**
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2014-03-21 13:50:51 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2013-11-24 18:14:27.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2014-03-21 13:50:52.0 +0100 @@ -1,0 +2,6 @@ +Tue Mar 18 14:57:15 UTC 2014 - co...@suse.com + +- updated to version 3.5.0 + * Add support for `as: Regexp` #132 + +--- Old: slop-3.4.7.gem New: slop-3.5.0.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.Ikvl6m/_old 2014-03-21 13:50:53.0 +0100 +++ /var/tmp/diff_new_pack.Ikvl6m/_new 2014-03-21 13:50:53.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,15 @@ Name: rubygem-slop -Version:3.4.7 +Version:3.5.0 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros = 1 +BuildRequires: ruby-macros = 3 Requires: ruby = 1.8.7 -BuildRequires: ruby-devel = 1.8.7 +BuildRequires: ruby = 1.8.7 Url:http://github.com/leejarvis/slop Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Simple Lightweight Option Parsing @@ -62,24 +62,24 @@ %install %gem_install -f mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGES.md %buildroot/%{_docdir}/%{name}/CHANGES.md -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md +ln -s %{gem_base}/gems/%{mod_full_name}/CHANGES.md %buildroot/%{_docdir}/%{name}/CHANGES.md +ln -s %{gem_base}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE +ln -s %{gem_base}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) %{_docdir}/%{name} -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec +%{gem_base}/cache/%{mod_full_name}.gem +%{gem_base}/gems/%{mod_full_name}/ +%exclude %{gem_base}/gems/%{mod_full_name}/test +%{gem_base}/specifications/%{mod_full_name}.gemspec %files doc %defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ +%doc %{gem_base}/doc %files testsuite %defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test +%{gem_base}/gems/%{mod_full_name}/test %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2013-11-24 18:14:26 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2013-08-04 23:52:44.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2013-11-24 18:14:27.0 +0100 @@ -1,0 +2,7 @@ +Fri Nov 22 08:40:30 UTC 2013 - co...@suse.com + +- updated to version 3.4.7 + * Ensure trash is cleared on every parse so you can parse multiple + times with the same instance (#130) + +--- Old: slop-3.4.6.gem New: slop-3.4.7.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.1YUyji/_old 2013-11-24 18:14:28.0 +0100 +++ /var/tmp/diff_new_pack.1YUyji/_new 2013-11-24 18:14:28.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-slop -Version:3.4.6 +Version:3.4.7 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -26,7 +26,7 @@ BuildRequires: ruby-macros = 1 Requires: ruby = 1.8.7 BuildRequires: ruby-devel = 1.8.7 -Url:http://github.com/injekt/slop +Url:http://github.com/leejarvis/slop Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Simple Lightweight Option Parsing License:MIT -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2013-08-04 20:54:44 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2013-05-27 10:01:04.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2013-08-04 23:52:44.0 +0200 @@ -1,0 +2,7 @@ +Tue Jul 30 18:46:52 UTC 2013 - co...@suse.com + +- updated to version 3.4.6 + * Ensure short-options still consume trailing arguments, ie `-abc foo` + should assign `foo` to the option `c` if it expects an argument (#114). + +--- Old: slop-3.4.5.gem New: slop-3.4.6.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.adeuyP/_old 2013-08-04 23:52:45.0 +0200 +++ /var/tmp/diff_new_pack.adeuyP/_new 2013-08-04 23:52:45.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-slop -Version:3.4.5 +Version:3.4.6 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -62,6 +62,7 @@ %install %gem_install -f mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGES.md %buildroot/%{_docdir}/%{name}/CHANGES.md ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2013-05-27 10:01:02 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2013-03-26 07:01:53.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2013-05-27 10:01:04.0 +0200 @@ -1,0 +2,6 @@ +Wed May 15 03:52:17 UTC 2013 - co...@suse.com + +- updated to version 3.4.5 + * Allow specifying long options starting with numbers (#110, Peter Zotov) + +--- Old: slop-3.4.4.gem New: slop-3.4.5.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.zrEM6U/_old 2013-05-27 10:01:05.0 +0200 +++ /var/tmp/diff_new_pack.zrEM6U/_new 2013-05-27 10:01:05.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-slop -Version:3.4.4 +Version:3.4.5 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -27,7 +27,7 @@ Requires: ruby = 1.8.7 BuildRequires: ruby-devel = 1.8.7 Url:http://github.com/injekt/slop -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:Simple Lightweight Option Parsing License:MIT Group: Development/Languages/Ruby @@ -61,9 +61,13 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE %buildroot/%{_docdir}/%{name}/LICENSE +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) +%{_docdir}/%{name} %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2013-03-26 07:01:52 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2013-03-08 11:20:50.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2013-03-26 07:01:53.0 +0100 @@ -1,0 +2,8 @@ +Mon Mar 18 06:18:24 UTC 2013 - co...@suse.com + +- updated to version 3.4.4 + * Disable the run callback when the help option is used and `-h` + or `--help` is passed. #106 + * Ensure default `--help` option exits by default (#107, Autumn Perrault). + +--- Old: slop-3.4.3.gem New: slop-3.4.4.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.V2XBlP/_old 2013-03-26 07:01:55.0 +0100 +++ /var/tmp/diff_new_pack.V2XBlP/_new 2013-03-26 07:01:55.0 +0100 @@ -17,7 +17,7 @@ Name: rubygem-slop -Version:3.4.3 +Version:3.4.4 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} @@ -28,7 +28,7 @@ BuildRequires: ruby-devel = 1.8.7 Url:http://github.com/injekt/slop Source: %{mod_full_name}.gem -Summary:Option gathering made easy +Summary:Simple Lightweight Option Parsing License:MIT Group: Development/Languages/Ruby -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2013-03-08 10:58:53 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2012-08-31 10:00:54.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2013-03-08 10:58:54.0 +0100 @@ -1,0 +2,16 @@ +Sun Jan 20 07:26:54 UTC 2013 - co...@suse.com + +- updated to version 3.4.3 + * Ensure `parse!` removes commands and their options. + * Expose the Hash commands as public API. + * Deprecated `Slop.optspec`. + * Ensure help output prints to stdout, not stderr. + * Ensure options replace any existing duplicates + * Command config options now inherit config options from top level Slop. + * Command help output now adds command in usage string. + * Implement new command system (#95) + * Deprecate Slop::Commands + * Ensure 'no-foo' options are not inverted when parsing '--no-foo' (#86) + * Code refactoring and simplification (Kenichi Kamiya, #84, #85) + +--- Old: slop-3.3.3.gem New: slop-3.4.3.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.ClKzya/_old 2013-03-08 10:58:55.0 +0100 +++ /var/tmp/diff_new_pack.ClKzya/_new 2013-03-08 10:58:55.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slop # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,13 +17,15 @@ Name: rubygem-slop -Version:3.3.3 +Version:3.4.3 Release:0 %define mod_name slop %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros = 1 +Requires: ruby = 1.8.7 +BuildRequires: ruby-devel = 1.8.7 Url:http://github.com/injekt/slop Source: %{mod_full_name}.gem Summary:Option gathering made easy -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-slop for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-slop for openSUSE:Factory checked in at 2012-08-31 10:00:50 Comparing /work/SRC/openSUSE:Factory/rubygem-slop (Old) and /work/SRC/openSUSE:Factory/.rubygem-slop.new (New) Package is rubygem-slop, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/rubygem-slop/rubygem-slop.changes 2012-06-26 17:31:35.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slop.new/rubygem-slop.changes 2012-08-31 10:00:54.0 +0200 @@ -1,0 +2,8 @@ +Thu Aug 30 05:33:53 UTC 2012 - co...@suse.com + +- update to 3.3.3 and merge rubygem-slop-3_3 + * Ensure autocreate arguments are not created as options (#77) + * Ensure options are not swallowed when using short options with argument + included (#74) + +--- Old: slop-2.4.4.gem New: slop-3.3.3.gem Other differences: -- ++ rubygem-slop.spec ++ --- /var/tmp/diff_new_pack.tJBoay/_old 2012-08-31 10:00:55.0 +0200 +++ /var/tmp/diff_new_pack.tJBoay/_new 2012-08-31 10:00:55.0 +0200 @@ -15,19 +15,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: rubygem-slop -Version:2.4.4 +Version:3.3.3 Release:0 -License:MIT -Summary:Option gathering made easy -Url:http://github.com/injekt/slop -Group: Development/Languages/Ruby %define mod_name slop %define mod_full_name %{mod_name}-%{version} -Source: %{mod_full_name}.gem -BuildRequires: rubygems_with_buildroot_patch + BuildRoot: %{_tmppath}/%{name}-%{version}-build -%rubygems_requires +BuildRequires: ruby-macros = 1 +Url:http://github.com/injekt/slop +Source: %{mod_full_name}.gem +Summary:Option gathering made easy +License:MIT +Group: Development/Languages/Ruby %description A simple DSL for gathering options and parsing the command line @@ -50,9 +51,14 @@ Test::Unit or RSpec files, useful for developers. %prep +#gem_unpack +#if you need patches, apply them here and replace the # with a % sign in the surrounding lines +#gem_build + %build + %install -%gem_install %{SOURCE0} +%gem_install -f %files %defattr(-,root,root,-) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org