Hello community,

here is the log from the commit of package rubygem-commander for 
openSUSE:Factory checked in at 2015-04-25 14:09:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-commander (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-commander.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-commander"

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-commander/rubygem-commander.changes      
2015-04-10 09:53:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-commander.new/rubygem-commander.changes 
2015-04-25 14:09:06.000000000 +0200
@@ -1,0 +2,10 @@
+Thu Apr 23 08:07:36 UTC 2015 - [email protected]
+
+- updated to version 4.3.3
+ see installed History.rdoc
+
+  === 4.3.3 / 2015-04-21
+  
+  * Updated to highline 1.7.2 to fix a regression with terminal size 
(https://github.com/JEG2/highline/pull/139).
+
+-------------------------------------------------------------------

Old:
----
  commander-4.3.2.gem

New:
----
  commander-4.3.3.gem

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

Other differences:
------------------
++++++ rubygem-commander.spec ++++++
--- /var/tmp/diff_new_pack.P5xoEA/_old  2015-04-25 14:09:06.000000000 +0200
+++ /var/tmp/diff_new_pack.P5xoEA/_new  2015-04-25 14:09:06.000000000 +0200
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-commander
-Version:        4.3.2
+Version:        4.3.3
 Release:        0
 %define mod_name commander
 %define mod_full_name %{mod_name}-%{version}

++++++ commander-4.3.2.gem -> commander-4.3.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/History.rdoc new/History.rdoc
--- old/History.rdoc    2015-04-01 07:55:48.000000000 +0200
+++ new/History.rdoc    2015-04-21 20:31:51.000000000 +0200
@@ -1,3 +1,7 @@
+=== 4.3.3 / 2015-04-21
+
+* Updated to highline 1.7.2 to fix a regression with terminal size 
(https://github.com/JEG2/highline/pull/139).
+
 === 4.3.2 / 2015-03-31
 
 * Version bump to publish new location of Commander to Rubygems. Moved to 
https://github.com/commander-rb/commander
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       2015-04-01 07:55:48.000000000 +0200
+++ new/commander.gemspec       2015-04-21 20:31:51.000000000 +0200
@@ -17,7 +17,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.1')
+  s.add_runtime_dependency('highline', '~> 1.7.2')
 
   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/help_formatters/terminal/help.erb 
new/lib/commander/help_formatters/terminal/help.erb
--- old/lib/commander/help_formatters/terminal/help.erb 2015-04-01 
07:55:48.000000000 +0200
+++ new/lib/commander/help_formatters/terminal/help.erb 2015-04-21 
20:31:51.000000000 +0200
@@ -1,3 +1,10 @@
+<%
+  # TODO: move into formatter?
+  longest_command = @commands.keys.max_by(&:size)
+  max_command_length = longest_command ? longest_command.size : 20
+  longest_alias = @aliases.keys.max_by(&:size)
+  max_aliases_length = longest_alias ? longest_alias.size : 20
+%>
   <%= $terminal.color "NAME", :bold %>:
 
     <%= program :name %>
@@ -9,13 +16,13 @@
   <%= $terminal.color "COMMANDS", :bold %>:
 <% for name, command in @commands.sort -%>
        <% unless alias? name %>
-    <%= "%-20s %s" % [command.name, command.summary || command.description] -%>
+    <%= "%-#{max_command_length}s %s" % [command.name, command.summary || 
command.description] -%>
        <% end -%>
 <% end %>
 <% unless @aliases.empty? %>
   <%= $terminal.color "ALIASES", :bold %>:
   <% for alias_name, args in @aliases.sort %>
-    <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] 
-%>
+    <%= "%-#{max_aliases_length}s %s %s" % [alias_name, 
command(alias_name).name, args.join(' ')] -%>
   <% end %>
 <% end %>
 <% unless @options.empty? -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/lib/commander/help_formatters/terminal_compact/help.erb 
new/lib/commander/help_formatters/terminal_compact/help.erb
--- old/lib/commander/help_formatters/terminal_compact/help.erb 2015-04-01 
07:55:48.000000000 +0200
+++ new/lib/commander/help_formatters/terminal_compact/help.erb 2015-04-21 
20:31:51.000000000 +0200
@@ -1,3 +1,5 @@
+<% max_command_length = @commands.keys.max_by(&:size).size %>
+<% max_aliases_length = @aliases.keys.max_by(&:size).size %>
   <%= program :name %>
 
   <%= program :description %>
@@ -5,13 +7,13 @@
   Commands:
 <% for name, command in @commands.sort -%>
 <% unless alias? name -%>
-    <%= "%-20s %s" % [command.name, command.summary || command.description] %>
+    <%= "%-#{max_command_length}s %s" % [command.name, command.summary || 
command.description] %>
 <% end -%>
 <% end -%>
 <% unless @aliases.empty? %>
   Aliases:
 <% for alias_name, args in @aliases.sort -%>
-    <%= "%-20s %s %s" % [alias_name, command(alias_name).name, args.join(' ')] 
%>
+    <%= "%-#{max_aliases_length}s %s %s" % [alias_name, 
command(alias_name).name, args.join(' ')] %>
 <% end -%>
 <% end %>
 <% unless @options.empty? -%>
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        2015-04-01 07:55:48.000000000 +0200
+++ new/lib/commander/version.rb        2015-04-21 20:31:51.000000000 +0200
@@ -1,3 +1,3 @@
 module Commander
-  VERSION = '4.3.2'
+  VERSION = '4.3.3'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2015-04-01 07:55:48.000000000 +0200
+++ new/metadata        2015-04-21 20:31:51.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: commander
 version: !ruby/object:Gem::Version
-  version: 4.3.2
+  version: 4.3.3
 platform: ruby
 authors:
 - TJ Holowaychuk
@@ -9,7 +9,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2015-04-01 00:00:00.000000000 Z
+date: 2015-04-21 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: highline
@@ -17,14 +17,14 @@
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 1.7.1
+        version: 1.7.2
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: 1.7.1
+        version: 1.7.2
 - !ruby/object:Gem::Dependency
   name: rspec
   requirement: !ruby/object:Gem::Requirement


Reply via email to