Hello community,

here is the log from the commit of package rubygem-commander for 
openSUSE:Factory checked in at 2019-01-21 10:25:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-commander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-commander.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-commander"

Mon Jan 21 10:25:57 2019 rev:25 rq:656382 version:4.4.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-commander/rubygem-commander.changes      
2018-10-25 08:21:02.255946537 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-commander.new.28833/rubygem-commander.changes
   2019-01-21 10:25:59.261708814 +0100
@@ -1,0 +2,10 @@
+Sat Dec  8 16:19:53 UTC 2018 - Stephan Kulow <[email protected]>
+
+- updated to version 4.4.7
+ see installed History.rdoc
+
+  === 4.4.7 / 2018-10-22
+  
+  * Update HighLine dependency to 2.0.0. (@rohitpaulk)
+
+-------------------------------------------------------------------

Old:
----
  commander-4.4.6.gem

New:
----
  commander-4.4.7.gem

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

Other differences:
------------------
++++++ rubygem-commander.spec ++++++
--- /var/tmp/diff_new_pack.eSlm0Z/_old  2019-01-21 10:25:59.649708388 +0100
+++ /var/tmp/diff_new_pack.eSlm0Z/_new  2019-01-21 10:25:59.665708370 +0100
@@ -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-commander
-Version:        4.4.6
+Version:        4.4.7
 Release:        0
 %define mod_name commander
 %define mod_full_name %{mod_name}-%{version}

++++++ commander-4.4.6.gem -> commander-4.4.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2018-08-01 05:56:22.000000000 +0200
+++ new/History.rdoc    2018-10-22 23:58:30.000000000 +0200
@@ -1,3 +1,7 @@
+=== 4.4.7 / 2018-10-22
+
+* Update HighLine dependency to 2.0.0. (@rohitpaulk)
+
 === 4.4.6 / 2018-07-31
 
 * Fix unexpected internal behavior change introduced in 4.4.5.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/commander.gemspec new/commander.gemspec
--- old/commander.gemspec       2018-08-01 05:56:22.000000000 +0200
+++ new/commander.gemspec       2018-10-22 23:58:30.000000000 +0200
@@ -18,7 +18,7 @@
   s.executables   = `git ls-files -- bin/*`.split("\n").map { |f| 
File.basename(f) }
   s.require_paths = ['lib']
 
-  s.add_runtime_dependency('highline', '~> 1.7.2')
+  s.add_runtime_dependency('highline', '~> 2.0.0')
 
   s.add_development_dependency('rspec', '~> 3.2')
   s.add_development_dependency('rake')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/core_ext/array.rb 
new/lib/commander/core_ext/array.rb
--- old/lib/commander/core_ext/array.rb 2018-08-01 05:56:22.000000000 +0200
+++ new/lib/commander/core_ext/array.rb 2018-10-22 23:58:30.000000000 +0200
@@ -1,7 +1,7 @@
 class Array
   ##
   # Split _string_ into an array. Used in
-  # conjunction with Highline's #ask, or #ask_for_array
+  # conjunction with HighLine's #ask, or #ask_for_array
   # methods, which must respond to #parse.
   #
   # This method allows escaping of whitespace. For example
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/lib/commander/help_formatters/terminal/command_help.erb 
new/lib/commander/help_formatters/terminal/command_help.erb
--- old/lib/commander/help_formatters/terminal/command_help.erb 2018-08-01 
05:56:22.000000000 +0200
+++ new/lib/commander/help_formatters/terminal/command_help.erb 2018-10-22 
23:58:30.000000000 +0200
@@ -1,22 +1,22 @@
 
-  <%= $terminal.color "NAME", :bold %>:
+  <%= HighLine.default_instance.color "NAME", :bold %>:
 
     <%= @name %>
 <% if @syntax -%>
 
-  <%= $terminal.color "SYNOPSIS", :bold %>:
+  <%= HighLine.default_instance.color "SYNOPSIS", :bold %>:
 
     <%= @syntax -%>
 
 <% end -%>
 
-  <%= $terminal.color "DESCRIPTION", :bold %>:
+  <%= HighLine.default_instance.color "DESCRIPTION", :bold %>:
 
     <%= Commander::HelpFormatter.indent 4, (@description || @summary || 'No 
description.') -%>
 
 <% unless @examples.empty? -%>
 
-  <%= $terminal.color "EXAMPLES", :bold %>:
+  <%= HighLine.default_instance.color "EXAMPLES", :bold %>:
        <% for description, command in @examples -%>
 
     # <%= description %>
@@ -25,10 +25,10 @@
 <% end -%>
 <% unless @options.empty? -%>
 
-  <%= $terminal.color "OPTIONS", :bold %>:
+  <%= HighLine.default_instance.color "OPTIONS", :bold %>:
        <% for option in @options -%>
 
-    <%= option[:switches].join ', ' %> 
+    <%= option[:switches].join ', ' %>
         <%= Commander::HelpFormatter.indent 8, option[:description] %>
        <% end -%>
 <% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/help_formatters/terminal/help.erb 
new/lib/commander/help_formatters/terminal/help.erb
--- old/lib/commander/help_formatters/terminal/help.erb 2018-08-01 
05:56:22.000000000 +0200
+++ new/lib/commander/help_formatters/terminal/help.erb 2018-10-22 
23:58:30.000000000 +0200
@@ -1,34 +1,34 @@
-  <%= $terminal.color "NAME", :bold %>:
+  <%= HighLine.default_instance.color "NAME", :bold %>:
 
     <%= program :name %>
 
-  <%= $terminal.color "DESCRIPTION", :bold %>:
+  <%= HighLine.default_instance.color "DESCRIPTION", :bold %>:
 
     <%= Commander::HelpFormatter.indent 4, program(:description) %>
 
-  <%= $terminal.color "COMMANDS", :bold %>:
+  <%= HighLine.default_instance.color "COMMANDS", :bold %>:
 <% for name, command in @commands.sort -%>
        <% unless alias? name %>
     <%= "%-#{max_command_length}s %s" % [command.name, command.summary || 
command.description] -%>
        <% end -%>
 <% end %>
 <% unless @aliases.empty? %>
-  <%= $terminal.color "ALIASES", :bold %>:
+  <%= HighLine.default_instance.color "ALIASES", :bold %>:
   <% for alias_name, args in @aliases.sort %>
     <%= "%-#{max_aliases_length}s %s %s" % [alias_name, 
command(alias_name).name, args.join(' ')] -%>
   <% end %>
 <% end %>
 <% unless @options.empty? -%>
-  <%= $terminal.color "GLOBAL OPTIONS", :bold %>:
+  <%= HighLine.default_instance.color "GLOBAL OPTIONS", :bold %>:
        <% for option in @options -%>
 
-    <%= option[:switches].join ', ' %> 
+    <%= option[:switches].join ', ' %>
         <%= option[:description] %>
        <% end -%>
 <% end -%>
 <% if program :help -%>
   <% for title, body in program(:help) %>
-  <%= $terminal.color title.to_s.upcase, :bold %>:
+  <%= HighLine.default_instance.color title.to_s.upcase, :bold %>:
 
     <%= body %>
   <% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/methods.rb new/lib/commander/methods.rb
--- old/lib/commander/methods.rb        2018-08-01 05:56:22.000000000 +0200
+++ new/lib/commander/methods.rb        2018-10-22 23:58:30.000000000 +0200
@@ -4,8 +4,8 @@
     include Commander::UI::AskForClass
     include Commander::Delegates
 
-    if $stdin.tty? && (cols = $terminal.output_cols) >= 40
-      $terminal.wrap_at = cols - 5
+    if $stdin.tty? && (cols = HighLine.default_instance.output_cols) >= 40
+      HighLine.default_instance.wrap_at = cols - 5
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/runner.rb new/lib/commander/runner.rb
--- old/lib/commander/runner.rb 2018-08-01 05:56:22.000000000 +0200
+++ new/lib/commander/runner.rb 2018-10-22 23:58:30.000000000 +0200
@@ -448,7 +448,7 @@
     end
 
     def say(*args) #:nodoc:
-      $terminal.say(*args)
+      HighLine.default_instance.say(*args)
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/user_interaction.rb 
new/lib/commander/user_interaction.rb
--- old/lib/commander/user_interaction.rb       2018-08-01 05:56:22.000000000 
+0200
+++ new/lib/commander/user_interaction.rb       2018-10-22 23:58:30.000000000 
+0200
@@ -66,7 +66,7 @@
 
     def say_ok(*args)
       args.each do |arg|
-        say $terminal.color(arg, :green)
+        say HighLine.default_instance.color(arg, :green)
       end
     end
 
@@ -80,7 +80,7 @@
 
     def say_warning(*args)
       args.each do |arg|
-        say $terminal.color(arg, :yellow)
+        say HighLine.default_instance.color(arg, :yellow)
       end
     end
 
@@ -94,7 +94,7 @@
 
     def say_error(*args)
       args.each do |arg|
-        say $terminal.color(arg, :red)
+        say HighLine.default_instance.color(arg, :red)
       end
     end
 
@@ -113,7 +113,7 @@
     #   * highligh: on_<color>
 
     def color(*args)
-      say $terminal.color(*args)
+      say HighLine.default_instance.color(*args)
     end
 
     ##
@@ -329,7 +329,7 @@
       # define methods for common classes
       [Float, Integer, String, Symbol, Regexp, Array, File, Pathname].each do 
|klass|
         define_method "ask_for_#{klass.to_s.downcase}" do |prompt|
-          $terminal.ask(prompt, klass)
+          HighLine.default_instance.ask(prompt, klass)
         end
       end
 
@@ -351,7 +351,7 @@
 
           klass = available_classes.find { |k| k.to_s.downcase == 
requested_class }
           if klass
-            $terminal.ask(prompt, klass)
+            HighLine.default_instance.ask(prompt, klass)
           else
             super
           end
@@ -509,9 +509,9 @@
         return if finished?
         erase_line
         if completed?
-          $terminal.say UI.replace_tokens(@complete_message, generate_tokens) 
if @complete_message.is_a? String
+          HighLine.default_instance.say UI.replace_tokens(@complete_message, 
generate_tokens) if @complete_message.is_a? String
         else
-          $terminal.say UI.replace_tokens(@format, generate_tokens) << ' '
+          HighLine.default_instance.say UI.replace_tokens(@format, 
generate_tokens) << ' '
         end
       end
 
@@ -544,7 +544,7 @@
 
       def erase_line
         # highline does not expose the output stream
-        $terminal.instance_variable_get('@output').print "\r\e[K"
+        HighLine.default_instance.instance_variable_get('@output').print 
"\r\e[K"
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/commander/version.rb new/lib/commander/version.rb
--- old/lib/commander/version.rb        2018-08-01 05:56:22.000000000 +0200
+++ new/lib/commander/version.rb        2018-10-22 23:58:30.000000000 +0200
@@ -1,3 +1,3 @@
 module Commander
-  VERSION = '4.4.6'.freeze
+  VERSION = '4.4.7'.freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-08-01 05:56:22.000000000 +0200
+++ new/metadata        2018-10-22 23:58:30.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: commander
 version: !ruby/object:Gem::Version
-  version: 4.4.6
+  version: 4.4.7
 platform: ruby
 authors:
 - TJ Holowaychuk
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-08-01 00:00:00.000000000 Z
+date: 2018-10-22 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: highline
@@ -17,14 +17,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 1.7.2
+        version: 2.0.0
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 1.7.2
+        version: 2.0.0
 - !ruby/object:Gem::Dependency
   name: rspec
   requirement: !ruby/object:Gem::Requirement
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/methods_spec.rb new/spec/methods_spec.rb
--- old/spec/methods_spec.rb    2018-08-01 05:56:22.000000000 +0200
+++ new/spec/methods_spec.rb    2018-10-22 23:58:30.000000000 +0200
@@ -16,12 +16,12 @@
 
       before do
         allow(terminal).to receive(:ask)
-        $_old_terminal = $terminal
-        $terminal = terminal
+        @old_highline = HighLine.default_instance
+        HighLine.default_instance = terminal
       end
 
       after do
-        $terminal = $_old_terminal
+        HighLine.default_instance = @old_highline
       end
 
       subject do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb     2018-08-01 05:56:22.000000000 +0200
+++ new/spec/spec_helper.rb     2018-10-22 23:58:30.000000000 +0200
@@ -18,7 +18,7 @@
 def mock_terminal
   @input = StringIO.new
   @output = StringIO.new
-  $terminal = HighLine.new @input, @output
+  HighLine.default_instance = HighLine.new(@input, @output)
 end
 
 # Create test command for usage within several specs


Reply via email to