Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 19:32:18 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380160 - in head/devel/rubygem-clamp: . files
Message-ID:  <201502281932.t1SJWI1j043190@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Sat Feb 28 19:32:17 2015
New Revision: 380160
URL: https://svnweb.freebsd.org/changeset/ports/380160
QAT: https://qat.redports.org/buildarchive/r380160/

Log:
  devel/rubygem-clamp: update to 0.6.4
  
  PR:		198055
  Submitted by:	Michael Moll <kvedulv@kvedulv.de> (maintainer)

Modified:
  head/devel/rubygem-clamp/Makefile
  head/devel/rubygem-clamp/distinfo   (contents, props changed)
  head/devel/rubygem-clamp/files/patch-i18n

Modified: head/devel/rubygem-clamp/Makefile
==============================================================================
--- head/devel/rubygem-clamp/Makefile	Sat Feb 28 19:16:34 2015	(r380159)
+++ head/devel/rubygem-clamp/Makefile	Sat Feb 28 19:32:17 2015	(r380160)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	clamp
-PORTVERSION=	0.6.3
-PORTREVISION=	1
+PORTVERSION=	0.6.4
 CATEGORIES=	devel ruby
 MASTER_SITES=	RG
 

Modified: head/devel/rubygem-clamp/distinfo
==============================================================================
--- head/devel/rubygem-clamp/distinfo	Sat Feb 28 19:16:34 2015	(r380159)
+++ head/devel/rubygem-clamp/distinfo	Sat Feb 28 19:32:17 2015	(r380160)
@@ -1,2 +1,2 @@
-SHA256 (rubygem/clamp-0.6.3.gem) = 6e5feb738879f3ec8e74ac1d9a6339c316a65fdc054ef587851b0397ced1bab8
-SIZE (rubygem/clamp-0.6.3.gem) = 24064
+SHA256 (rubygem/clamp-0.6.4.gem) = e806278bee5df0aeaa7f15c55405a4d39ffe6182a1292c21462e1b771b60e138
+SIZE (rubygem/clamp-0.6.4.gem) = 24576

Modified: head/devel/rubygem-clamp/files/patch-i18n
==============================================================================
--- head/devel/rubygem-clamp/files/patch-i18n	Sat Feb 28 19:16:34 2015	(r380159)
+++ head/devel/rubygem-clamp/files/patch-i18n	Sat Feb 28 19:32:17 2015	(r380160)
@@ -1,7 +1,7 @@
-diff --git a/clamp-0.6.3.gemspec b/clamp-0.6.3.gemspec
+diff --git a/clamp-0.6.4.gemspec b/clamp-0.6.4.gemspec
 index 8f51cc3..acab485 100644
---- clamp-0.6.3.gemspec
-+++ clamp-0.6.3.gemspec
+--- clamp-0.6.4.gemspec
++++ clamp-0.6.4.gemspec
 @@ -43,6 +43,7 @@
  - lib/clamp/command.rb
  - lib/clamp/errors.rb
@@ -15,7 +15,7 @@ diff --git a/lib/clamp/attribute/instanc
 index 8f51cc3..acab485 100644
 --- lib/clamp/attribute/instance.rb
 +++ lib/clamp/attribute/instance.rb
-@@ -72,7 +72,7 @@ def default_from_environment
+@@ -69,7 +69,7 @@ def default_from_environment
          begin
            take(value)
          rescue ArgumentError => e
@@ -46,7 +46,29 @@ diff --git a/lib/clamp/help.rb b/lib/cla
 index e09731a..1e57530 100644
 --- lib/clamp/help.rb
 +++ lib/clamp/help.rb
-@@ -61,7 +61,7 @@ def string
+@@ -1,4 +1,5 @@
+ require 'stringio'
++require 'clamp/messages'
+ 
+ module Clamp
+ 
+@@ -41,12 +42,12 @@ def help(invocation_path, builder = Builder.new)
+       help.add_usage(invocation_path, usage_descriptions)
+       help.add_description(description)
+       if has_parameters?
+-        help.add_list("Parameters", parameters)
++        help.add_list(Clamp.message(:parameters_heading), parameters)
+       end
+       if has_subcommands?
+-        help.add_list("Subcommands", recognised_subcommands)
++        help.add_list(Clamp.message(:subcommands_heading), recognised_subcommands)
+       end
+-      help.add_list("Options", recognised_options)
++      help.add_list(Clamp.message(:options_heading), recognised_options)
+       help.string
+     end
+ 
+@@ -61,7 +62,7 @@ def string
        end
  
        def add_usage(invocation_path, usage_descriptions)
@@ -55,14 +77,14 @@ index e09731a..1e57530 100644
          usage_descriptions.each do |usage|
            puts "    #{invocation_path} #{usage}".rstrip
          end
-@@ -87,6 +87,12 @@ def add_list(heading, items)
+@@ -87,6 +88,12 @@ def add_list(heading, items)
          end
        end
  
 +      protected
 +
 +      def usage_heading
-+        "Usage:"
++        Clamp.message(:usage_heading) + ":"
 +      end
 +
        private
@@ -73,7 +95,7 @@ new file mode 100644
 index 0000000..61cce94
 --- /dev/null
 +++ lib/clamp/messages.rb
-@@ -0,0 +1,39 @@
+@@ -0,0 +1,43 @@
 +module Clamp
 +
 +  def self.messages=(messages)
@@ -96,7 +118,11 @@ index 0000000..61cce94
 +      :env_argument_error => "$%<env>s: %<message>s",
 +      :unrecognised_option => "Unrecognised option '%<switch>s'",
 +      :no_such_subcommand => "No such sub-command '%<name>s'",
-+      :no_value_provided => "no value provided"
++      :no_value_provided => "no value provided",
++      :usage_heading => "Usage",
++      :parameters_heading => "Parameters",
++      :subcommands_heading => "Subcommands",
++      :options_heading => "Options"
 +    }
 +  end
 +



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502281932.t1SJWI1j043190>