[DRE-commits] [ruby-beautify] 06/10: Fixed NameError caused by calling with '-V' option.

Tomasz Nitecki tnnn-guest at moszumanska.debian.org
Thu Apr 9 14:35:21 UTC 2015


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

tnnn-guest pushed a commit to branch master
in repository ruby-beautify.

commit fbbd2752fc49e0726eb7e1da669b162d734f0e00
Author: Tomasz Nitecki <tnnn at tnnn.pl>
Date:   Thu Apr 9 11:17:39 2015 +0200

    Fixed NameError caused by calling with '-V' option.
    
    Fix sent upstream.
---
 debian/patches/0030_fix_for_broken_version_output.patch | 15 +++++++++++++++
 debian/patches/series                                   |  1 +
 2 files changed, 16 insertions(+)

diff --git a/debian/patches/0030_fix_for_broken_version_output.patch b/debian/patches/0030_fix_for_broken_version_output.patch
new file mode 100644
index 0000000..b4b7019
--- /dev/null
+++ b/debian/patches/0030_fix_for_broken_version_output.patch
@@ -0,0 +1,15 @@
+Description: This patch fixes  NameError that occurs when we call ruby-beautify with '-V' switch. Fix was also sent upstream.
+Author: Tomasz Nitecki <tnnn at tnnn.pl>
+Last-Update: 2015-04-08
+
+--- a/bin/ruby-beautify
++++ b/bin/ruby-beautify
+@@ -6,7 +6,7 @@
+ my_argv = config_argv
+ 
+ Options = OptionParser.new do |opts|
+-	opts.on("-V", "--version", "Print version") { |version| puts RBeautify::VERSION;exit 0}
++	opts.on("-V", "--version", "Print version") { |version| puts RubyBeautify::VERSION;exit 0}
+ 	opts.on("-c", "--indent_count [COUNT]", Integer, "Count of characters to use for indenting. (default: 1)") { |count| @indent_count = count}
+ 	opts.on("-t", "--tabs", "Use tabs for the indent character (default)") { @indent_token = "\t" }
+ 	opts.on("-s", "--spaces", "Use spaces for the indent character") { @indent_token = " " }
diff --git a/debian/patches/series b/debian/patches/series
index 12abd9b..c8e429a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0010_disable_codeclimate_test_reporter.patch
 0020_remove_unnecessary_bundler_usage.patch
+0030_fix_for_broken_version_output.patch

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



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