Skip to content

Commit

Permalink
move version to VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Feb 20, 2010
1 parent 046fc5c commit 8c8d50f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -14,7 +14,7 @@ begin
Jeweler::Tasks.new do |gem|
gem.name = "rspec-core"
gem.version = Rspec::Core::Version::STRING
gem.summary = Rspec::Core::Version::SUMMARY
gem.summary = "rspec-core-#{Rspec::Core::Version::STRING}"
gem.description = 'Rspec runner and example group classes'
gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com"
gem.homepage = "http://github.com/rspec/core"
Expand Down
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
2.0.0.a7
11 changes: 1 addition & 10 deletions lib/rspec/core/version.rb
@@ -1,16 +1,7 @@
module Rspec # :nodoc:
module Core # :nodoc:
module Version # :nodoc:
unless defined?(MAJOR)
MAJOR = 2
MINOR = 0
TINY = 0
PRE = 'a6'

STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')

SUMMARY = "rspec-core " + STRING
end
STRING = File.read(File.expand_path('../../../../VERSION', __FILE__))
end
end
end
22 changes: 10 additions & 12 deletions rspec-core.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{rspec-core}
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 = ["Chad Humphries", "David Chelimsky"]
s.date = %q{2010-02-19}
s.date = %q{2010-02-20}
s.default_executable = %q{rspec}
s.description = %q{Rspec runner and example group classes}
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
Expand All @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
"README.markdown",
"Rakefile",
"TODO.markdown",
"VERSION",
"bin/rspec",
"cucumber.yml",
"example_specs/failing/README.txt",
Expand Down Expand Up @@ -97,12 +98,9 @@ Gem::Specification.new do |s|
"features/configuration/spec_opts.feature",
"features/example_groups/describe_aliases.feature",
"features/example_groups/nested_groups.feature",
"features/expectations/customized_message.feature",
"features/hooks/around_hook.feature",
"features/hooks/before_and_after_hooks.feature",
"features/hooks/halt.feature",
"features/matchers/define_matcher.feature",
"features/matchers/define_matcher_outside_rspec.feature",
"features/mock_framework_integration/use_flexmock.feature",
"features/mock_framework_integration/use_mocha.feature",
"features/mock_framework_integration/use_rr.feature",
Expand Down Expand Up @@ -178,7 +176,7 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
s.rubyforge_project = %q{rspec}
s.rubygems_version = %q{1.3.5}
s.summary = %q{rspec-core 2.0.0.a6}
s.summary = %q{rspec-core-2.0.0.a7}
s.test_files = [
"spec/rspec/core/command_line_options_spec.rb",
"spec/rspec/core/configuration_spec.rb",
Expand Down Expand Up @@ -211,17 +209,17 @@ Gem::Specification.new do |s|
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rspec-expectations>, [">= 2.0.0.a6"])
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.a6"])
s.add_development_dependency(%q<rspec-expectations>, [">= 2.0.0.a7"])
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.a7"])
s.add_development_dependency(%q<cucumber>, [">= 0.5.3"])
else
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a6"])
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a6"])
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a7"])
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a7"])
s.add_dependency(%q<cucumber>, [">= 0.5.3"])
end
else
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a6"])
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a6"])
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a7"])
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a7"])
s.add_dependency(%q<cucumber>, [">= 0.5.3"])
end
end
Expand Down

0 comments on commit 8c8d50f

Please sign in to comment.