[DRE-commits] [gem2deb] 01/01: dh_ruby: option to print supported Ruby versions

Antonio Terceiro terceiro at alioth.debian.org
Mon Aug 19 18:38:54 UTC 2013


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository gem2deb.

commit c53133dcefb09588c3fd15002a22b2423e40b84a
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Aug 19 15:38:25 2013 -0300

    dh_ruby: option to print supported Ruby versions
---
 bin/dh_ruby |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/bin/dh_ruby b/bin/dh_ruby
index 8aec523..4471d95 100755
--- a/bin/dh_ruby
+++ b/bin/dh_ruby
@@ -38,6 +38,13 @@ optparse = OptionParser.new do |opts|
     exit
   end
 
+  opts.on('', '--print-supported', 'prints supported Ruby versions') do
+    Gem2Deb::SUPPORTED_RUBY_VERSIONS.keys.sort.each do |v|
+      puts v
+    end
+    exit
+  end
+
   opts.on('', '--clean', 'debhelper clean helper') do
     engine.clean
     exit(0)
@@ -188,6 +195,10 @@ binary packages that don't have one will be ignored by B<dh_ruby>.
 
 Commands called by debhelper at various steps of the build process.
 
+=item B<--print-supported>
+
+Prints the supported Ruby versions.
+
 =item B<-h>, B<--help>
 
 Displays B<dh_ruby> usage information.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list