From a134c52ef3e55e9556cfdcee9597b6e0140b0fc5 Mon Sep 17 00:00:00 2001 From: James Edward Gray II Date: Wed, 9 May 2012 09:18:26 -0500 Subject: Silencing warnings. --- highline.gemspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'highline.gemspec') 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") -- cgit v1.2.1