diff options
author | James Edward Gray II <james@graysoftinc.com> | 2012-05-09 09:18:26 -0500 |
---|---|---|
committer | James Edward Gray II <james@graysoftinc.com> | 2012-05-09 09:18:26 -0500 |
commit | a134c52ef3e55e9556cfdcee9597b6e0140b0fc5 (patch) | |
tree | 8ba8afa8191f1658721c141c44735c766648acc2 /highline.gemspec | |
parent | 5f3c7d5037826cb24379fe3b3c68f1348226ca8a (diff) | |
download | highline-a134c52ef3e55e9556cfdcee9597b6e0140b0fc5.tar.gz |
Silencing warnings.
Diffstat (limited to 'highline.gemspec')
-rw-r--r-- | highline.gemspec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/highline.gemspec b/highline.gemspec index fb41628..1d5a1a1 100644 --- a/highline.gemspec +++ b/highline.gemspec @@ -1,6 +1,6 @@ -DIR = File.dirname(__FILE__) -LIB = File.join(DIR, *%w[lib highline.rb]) -VERSION = open(LIB) { |lib| +DIR = File.dirname(__FILE__) +LIB = File.join(DIR, *%w[lib highline.rb]) +GEM_VERSION = open(LIB) { |lib| lib.each { |line| if v = line[/^\s*VERSION\s*=\s*(['"])(\d+\.\d+\.\d+)\1/, 2] break v @@ -10,7 +10,7 @@ VERSION = open(LIB) { |lib| SPEC = Gem::Specification.new do |spec| spec.name = "highline" - spec.version = VERSION + spec.version = GEM_VERSION spec.platform = Gem::Platform::RUBY spec.summary = "HighLine is a high-level command-line IO library." spec.files = `git ls-files`.split("\n") |