Hello community,

here is the log from the commit of package rubygem-mixlib-cli for 
openSUSE:Factory checked in at 2020-03-07 21:38:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-mixlib-cli (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-mixlib-cli.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-mixlib-cli"

Sat Mar  7 21:38:51 2020 rev:13 rq:773789 version:2.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-mixlib-cli/rubygem-mixlib-cli.changes    
2019-08-06 15:09:58.659787326 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-mixlib-cli.new.26092/rubygem-mixlib-cli.changes
 2020-03-07 21:38:54.656299389 +0100
@@ -1,0 +2,6 @@
+Mon Feb 10 15:08:41 UTC 2020 - Stephan Kulow <co...@suse.com>
+
+- updated to version 2.1.5
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  mixlib-cli-2.1.1.gem

New:
----
  mixlib-cli-2.1.5.gem

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

Other differences:
------------------
++++++ rubygem-mixlib-cli.spec ++++++
--- /var/tmp/diff_new_pack.k1Ipqx/_old  2020-03-07 21:38:55.184299746 +0100
+++ /var/tmp/diff_new_pack.k1Ipqx/_new  2020-03-07 21:38:55.188299749 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-mixlib-cli
 #
-# 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-mixlib-cli
-Version:        2.1.1
+Version:        2.1.5
 Release:        0
 %define mod_name mixlib-cli
 %define mod_full_name %{mod_name}-%{version}
@@ -32,7 +32,7 @@
 BuildRequires:  %{ruby >= 2.4}
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
-Url:            https://github.com/chef/mixlib-cli
+URL:            https://github.com/chef/mixlib-cli
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        A simple mixin for CLI interfaces, including option parsing

++++++ mixlib-cli-2.1.1.gem -> mixlib-cli-2.1.5.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mixlib/cli/formatter.rb 
new/lib/mixlib/cli/formatter.rb
--- old/lib/mixlib/cli/formatter.rb     2019-06-10 13:14:12.000000000 +0200
+++ new/lib/mixlib/cli/formatter.rb     2019-12-19 22:29:51.000000000 +0100
@@ -25,6 +25,7 @@
       def self.friendly_opt_list(opt_array)
         opts = opt_array.map { |x| "'#{x}'" }
         return opts.join(" or ") if opts.size < 3
+
         opts[0..-2].join(", ") + ", or " + opts[-1]
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mixlib/cli/version.rb 
new/lib/mixlib/cli/version.rb
--- old/lib/mixlib/cli/version.rb       2019-06-10 13:14:12.000000000 +0200
+++ new/lib/mixlib/cli/version.rb       2019-12-19 22:29:51.000000000 +0100
@@ -1,5 +1,5 @@
 module Mixlib
   module CLI
-    VERSION = "2.1.1".freeze
+    VERSION = "2.1.5".freeze
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/mixlib/cli.rb new/lib/mixlib/cli.rb
--- old/lib/mixlib/cli.rb       2019-06-10 13:14:12.000000000 +0200
+++ new/lib/mixlib/cli.rb       2019-12-19 22:29:51.000000000 +0100
@@ -52,8 +52,8 @@
       # contents will be iterated and cloned as well.
       def deep_dup(object)
         cloned_object = object.respond_to?(:dup) ? object.dup : object
-        if cloned_object.kind_of?(Enumerable)
-          if cloned_object.kind_of?(Hash)
+        if cloned_object.is_a?(Enumerable)
+          if cloned_object.is_a?(Hash)
             new_hash = cloned_object.class.new
             cloned_object.each do |key, value|
               cloned_key = deep_dup(key)
@@ -122,7 +122,8 @@
       # i
       def option(name, args)
         @options ||= {}
-        raise(ArgumentError, "Option name must be a symbol") unless 
name.kind_of?(Symbol)
+        raise(ArgumentError, "Option name must be a symbol") unless 
name.is_a?(Symbol)
+
         @options[name.to_sym] = args
       end
 
@@ -148,12 +149,12 @@
       # === Returns
       # <Hash> :: The config hash for the created option.
       def deprecated_option(name,
-                            replacement: nil,
-                            long: nil,
-                            short: nil,
-                            boolean: false,
-                            value_mapper: nil,
-                            keep: true)
+        replacement: nil,
+        long: nil,
+        short: nil,
+        boolean: false,
+        value_mapper: nil,
+        keep: true)
 
         description = if replacement
                         replacement_cfg = options[replacement]
@@ -165,15 +166,15 @@
         value_mapper ||= Proc.new { |v| v }
 
         option(name,
-               long: long,
-               short: short,
-               boolean: boolean,
-               description: description,
-               on: :tail,
-               deprecated: true,
-               keep: keep,
-               replacement: replacement,
-               value_mapper: value_mapper)
+          long: long,
+          short: short,
+          boolean: boolean,
+          description: description,
+          on: :tail,
+          deprecated: true,
+          keep: keep,
+          replacement: replacement,
+          value_mapper: value_mapper)
       end
 
       # Get the hash of current options.
@@ -193,7 +194,8 @@
       # === Returns
       # @options<Hash>:: The current options hash.
       def options=(val)
-        raise(ArgumentError, "Options must recieve a hash") unless 
val.kind_of?(Hash)
+        raise(ArgumentError, "Options must recieve a hash") unless 
val.is_a?(Hash)
+
         @options = val
       end
 
@@ -256,9 +258,9 @@
     # === Returns
     # object<Mixlib::Config>:: Returns an instance of whatever you wanted :)
     def initialize(*args)
-      @options = Hash.new
-      @config  = Hash.new
-      @default_config = Hash.new
+      @options = {}
+      @config  = {}
+      @default_config = {}
       @opt_parser = nil
 
       # Set the banner
@@ -316,9 +318,10 @@
           exit 2
         end
         if opt_config[:in]
-          unless opt_config[:in].kind_of?(Array)
+          unless opt_config[:in].is_a?(Array)
             raise(ArgumentError, "Options config key :in must receive an 
Array")
           end
+
           if config[opt_key] && !opt_config[:in].include?(config[opt_key])
             reqarg = 
Formatter.combined_option_display_name(opt_config[:short], opt_config[:long])
             puts "#{reqarg}: #{config[opt_key]} is not one of the allowed 
values: #{Formatter.friendly_opt_list(opt_config[:in])}"
@@ -358,7 +361,7 @@
                        end
 
           parse_block =
-            Proc.new() do |c|
+            Proc.new do |c|
               config[opt_key] = if opt_val[:proc]
                                   if opt_val[:proc].arity == 2
                                     # New hotness to allow for reducer-style 
procs.
@@ -427,7 +430,7 @@
     end
 
     def build_option_arguments(opt_setting)
-      arguments = Array.new
+      arguments = []
 
       arguments << opt_setting[:short] if opt_setting[:short]
       arguments << opt_setting[:long] if opt_setting[:long]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-06-10 13:14:12.000000000 +0200
+++ new/metadata        2019-12-19 22:29:51.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: mixlib-cli
 version: !ruby/object:Gem::Version
-  version: 2.1.1
+  version: 2.1.5
 platform: ruby
 authors:
 - Chef Software, Inc.
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-06-10 00:00:00.000000000 Z
+date: 2019-12-19 00:00:00.000000000 Z
 dependencies: []
 description: A simple mixin for CLI interfaces, including option parsing
 email: i...@chef.io


Reply via email to