Skip to content
Browse files

Fix broken Rails cucumber generator. Release 0.3.9.

  • Loading branch information...
1 parent 6a0e944 commit b3f419826d0737f24a7c75b057479a986c610603 @sterrym sterrym committed with aslakhellesoy
View
6 History.txt
@@ -1,6 +1,10 @@
-== 0.3.9 (In Git)
+== 0.3.9 2009-05-27
+
+Bugfix release for 0.3.8 released earlier today. 0.3.8 had a bug in the Rails cucumber
+generator which is fixed in 0.3.9.
=== Bugfixes
+* Fix broken Rails cucumber generator (Tim Glen)
* The Cucumber Rake task in non-fork mode will properly cause Rake to exit with 1 when Cucumber fails. (Aslak Hellesøy)
== 0.3.8 2009-05-27
View
2 cucumber.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{cucumber}
- s.version = "0.3.8"
+ s.version = "0.3.9"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aslak Helles\303\270y"]
View
3 lib/cucumber/version.rb
@@ -2,10 +2,9 @@ module Cucumber #:nodoc:
class VERSION #:nodoc:
MAJOR = 0
MINOR = 3
- TINY = 8
+ TINY = 9
PATCH = nil # Set to nil for official release
STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
- STABLE_STRING = [MAJOR, MINOR, TINY].join('.')
end
end
View
5 rails_generators/cucumber/cucumber_generator.rb
@@ -1,4 +1,5 @@
require 'rbconfig'
+require 'cucumber/version'
# This generator bootstraps a Rails project for use with Cucumber
class CucumberGenerator < Rails::Generator::Base
@@ -11,7 +12,9 @@ def manifest
record do |m|
m.directory 'features/step_definitions'
m.template 'webrat_steps.rb', 'features/step_definitions/webrat_steps.rb'
- m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb'
+ m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb',
+ :assigns => { :cucumber_version => ::Cucumber::VERSION::STRING }
+
m.gsub_file 'config/database.yml', /test:.*\n/, "test: &TEST\n"
m.gsub_file 'config/database.yml', /\z/, "\ncucumber:\n <<: *TEST"
View
2 rails_generators/cucumber/templates/cucumber_environment.rb
@@ -15,7 +15,7 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
-config.gem "cucumber", :lib => false, :version => ">=<%= Cucumber::VERSION::STABLE_STRING %>"
+config.gem "cucumber", :lib => false, :version => ">=<%= cucumber_version %>"
config.gem "webrat", :lib => false, :version => ">=0.4.4"
config.gem "rspec", :lib => false, :version => ">=1.2.6"
config.gem "rspec-rails", :lib => 'spec/rails', :version => ">=1.2.6"

0 comments on commit b3f4198

Please sign in to comment.
Something went wrong with that request. Please try again.