From b9de09b662029fd470c9dbf898600135db7664af Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Sat, 20 Feb 2010 10:32:21 -0600 Subject: [PATCH] move version to VERSION file --- VERSION | 1 + lib/rspec/version.rb | 11 +---------- rspec.gemspec | 23 ++++++++++++----------- 3 files changed, 14 insertions(+), 21 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..6f1686b9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +2.0.0.a7 diff --git a/lib/rspec/version.rb b/lib/rspec/version.rb index 92d049b9..6b7e5b4c 100644 --- a/lib/rspec/version.rb +++ b/lib/rspec/version.rb @@ -1,14 +1,5 @@ module Rspec # :nodoc: module Version # :nodoc: - unless defined?(MAJOR) - MAJOR = 2 - MINOR = 0 - TINY = 0 - PRE = 'a6' - - STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') - - SUMMARY = "rspec-meta " + STRING - end + STRING = File.read(File.expand_path('../../../VERSION', __FILE__)) end end diff --git a/rspec.gemspec b/rspec.gemspec index fe3f1866..cd3eec21 100644 --- a/rspec.gemspec +++ b/rspec.gemspec @@ -5,11 +5,11 @@ Gem::Specification.new do |s| s.name = %q{rspec} - s.version = "2.0.0.a6" + s.version = "2.0.0.a7" s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version= s.authors = ["David Chelimsky", "Chad Humphries"] - s.date = %q{2010-02-15} + s.date = %q{2010-02-20} s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com} s.extra_rdoc_files = [ "README.markdown" @@ -20,6 +20,7 @@ Gem::Specification.new do |s| "License.txt", "README.markdown", "Rakefile", + "VERSION", "lib/rspec.rb", "lib/rspec/version.rb", "rspec.gemspec" @@ -36,18 +37,18 @@ Gem::Specification.new do |s| s.specification_version = 3 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q, [">= 2.0.0.a6"]) - s.add_runtime_dependency(%q, [">= 2.0.0.a6"]) - s.add_runtime_dependency(%q, [">= 2.0.0.a6"]) + s.add_runtime_dependency(%q, [">= 2.0.0.a7"]) + s.add_runtime_dependency(%q, [">= 2.0.0.a7"]) + s.add_runtime_dependency(%q, [">= 2.0.0.a7"]) else - s.add_dependency(%q, [">= 2.0.0.a6"]) - s.add_dependency(%q, [">= 2.0.0.a6"]) - s.add_dependency(%q, [">= 2.0.0.a6"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) end else - s.add_dependency(%q, [">= 2.0.0.a6"]) - s.add_dependency(%q, [">= 2.0.0.a6"]) - s.add_dependency(%q, [">= 2.0.0.a6"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) + s.add_dependency(%q, [">= 2.0.0.a7"]) end end