diff options
author | James Edward Gray II <james@graysoftinc.com> | 2012-01-24 08:55:00 -0600 |
---|---|---|
committer | James Edward Gray II <james@graysoftinc.com> | 2012-01-24 08:55:00 -0600 |
commit | fd87246f505080894ca7e64f366cd4a2cbeeac18 (patch) | |
tree | 9104db93a633295676e9bae97bdfc08a1af3f7f7 | |
parent | eacab7c6db937c5c9e4db3eee29867a2a0b7f257 (diff) | |
download | highline-fd87246f505080894ca7e64f366cd4a2cbeeac18.tar.gz |
Fixing version handling.
-rw-r--r-- | Rakefile | 2 | ||||
-rw-r--r-- | highline.gemspec | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ require "rubygems" dir = File.dirname(__FILE__) lib = File.join(dir, "lib", "highline.rb") -version = File.read(lib)[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d)\1/, 2] +version = File.read(lib)[/^\s*VERSION\s*=\s*(['"])(\d+\.\d+\.\d+)\1/, 2] task :default => [:test] diff --git a/highline.gemspec b/highline.gemspec index 52ca72f..fb41628 100644 --- a/highline.gemspec +++ b/highline.gemspec @@ -2,7 +2,7 @@ DIR = File.dirname(__FILE__) LIB = File.join(DIR, *%w[lib highline.rb]) VERSION = open(LIB) { |lib| lib.each { |line| - if v = line[/^\s*VERSION\s*=\s*(['"])(\d\.\d\.\d)\1/, 2] + if v = line[/^\s*VERSION\s*=\s*(['"])(\d+\.\d+\.\d+)\1/, 2] break v end } |