aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-06-06 18:12:39 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-06-06 18:47:12 +0200
commit816752499f9b1aed7147bf260c9e9e882974b631 (patch)
treec307adc55ec5a16ab899b58161b5d55adb767e0c
parenta1799f13efd4fcecc6720344d55a5a8bc78fe86a (diff)
downloadpaludis-816752499f9b1aed7147bf260c9e9e882974b631.tar.gz
paludis-816752499f9b1aed7147bf260c9e9e882974b631.tar.xz
(ruby) demos: Fix TypeError in --version handling
~ $ ./find_unmanaged_files.rb --version ./find_unmanaged_files.rb:55:in `+': can't convert Fixnum into String (TypeError)
-rwxr-xr-xruby/demos/find_unmanaged_files.rb2
-rwxr-xr-xruby/demos/find_unused_distfiles.rb2
-rwxr-xr-xruby/demos/latest_stable.rb2
-rwxr-xr-xruby/demos/version_spec_distributions.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/ruby/demos/find_unmanaged_files.rb b/ruby/demos/find_unmanaged_files.rb
index 14584c8..3aac79a 100755
--- a/ruby/demos/find_unmanaged_files.rb
+++ b/ruby/demos/find_unmanaged_files.rb
@@ -52,7 +52,7 @@ opts.each do | opt, arg |
exit 0
when '--version'
- puts $0.to_s.split(/\//).last + " " + Paludis::Version
+ puts $0.to_s.split(/\//).last + " " + Paludis::Version.to_s
exit 0
when '--log-level'
diff --git a/ruby/demos/find_unused_distfiles.rb b/ruby/demos/find_unused_distfiles.rb
index 928be5f..16d6448 100755
--- a/ruby/demos/find_unused_distfiles.rb
+++ b/ruby/demos/find_unused_distfiles.rb
@@ -46,7 +46,7 @@ opts.each do | opt, arg |
exit 0
when '--version'
- puts $0.to_s.split(/\//).last + " " + Paludis::Version
+ puts $0.to_s.split(/\//).last + " " + Paludis::Version.to_s
exit 0
when '--log-level'
diff --git a/ruby/demos/latest_stable.rb b/ruby/demos/latest_stable.rb
index 162cd39..0a86079 100755
--- a/ruby/demos/latest_stable.rb
+++ b/ruby/demos/latest_stable.rb
@@ -37,7 +37,7 @@ opts.each do | opt, arg |
exit 0
when '--version'
- puts $0.to_s.split(/\//).last + " " + Paludis::Version
+ puts $0.to_s.split(/\//).last + " " + Paludis::Version.to_s
exit 0
when '--log-level'
diff --git a/ruby/demos/version_spec_distributions.rb b/ruby/demos/version_spec_distributions.rb
index 0151d5c..bac3e19 100755
--- a/ruby/demos/version_spec_distributions.rb
+++ b/ruby/demos/version_spec_distributions.rb
@@ -95,7 +95,7 @@ opts.each do | opt, arg |
exit 0
when '--version'
- puts $0.to_s.split(/\//).last + " " + Paludis::Version
+ puts $0.to_s.split(/\//).last + " " + Paludis::Version.to_s
exit 0
when '--log-level'