Skip to content
Browse files

Release 0.2.0

  • Loading branch information...
1 parent 11e6614 commit f20ab53cef1980873e298d460c50a41e08759c2c @aslakhellesoy aslakhellesoy committed
View
28 History.txt
@@ -1,4 +1,30 @@
-== In Git
+== 0.2.0
+
+This is the first release of cucumber-rails, which was factored out of cucumber.
+We're calling it 0.2.0 just because we did some prereleases in the 0.1 series,
+and to celebrate that cucumber-rails now supports Capybara as an alternative to Webrat.
+
+=== UPGRADING FROM A PREVIOUS CUCUMBER SETUP
+
+1) Remove your features/support/version_check.rb
+2) Remove your features/step_definitions/webrat_steps.rb
+ If you have added your own custom step definitions to this file,
+ put them in a different file under features/step_definitions
+3) run "ruby script/generate cucumber --help" to see what options you have.
+4) run "ruby script/generate cucumber" - plus whatever options you think fit for you.
+ Answer "n" (no) when asked to overwrite paths.rb.
+ Answer "y" (yes) when asked to overwrite other files, but do "d" (diff) first.
+ If you have edits in some of these files that you want to keep, store the diff
+ in a temporary file and reapply after you have overwritten the file. ALso consider
+ adding your custom code to another file that won't be overwritten the next time
+ you upgrade.
+
+ Many people have edits in their env.rb file. This is something you should try
+ to avoid in the future. Instead, keep your custom setup in a different file
+ under features/support - Cucumber loads all files under features/**/*.rb anyway.
+
+ If you have a Spork setup, see the end of this thread:
+ http://groups.google.com/group/cukes/browse_thread/thread/475385cc26377215
=== New features
* Added an @emulate_rails_javascript tag that will emulate onclick with Capybara (Aslak Hellesøy, Rob Holland)
View
2 Rakefile
@@ -9,7 +9,7 @@ begin
gemspec.authors = ["Dennis Blöte", "Aslak Hellesøy", "Rob Holland"]
gemspec.homepage = "http://github.com/dbloete/cucumber-rails"
- gemspec.add_dependency 'cucumber', '>= 0.4.5.rc2'
+ gemspec.add_dependency 'cucumber', '>= 0.5.0'
end
Jeweler::GemcutterTasks.new
rescue LoadError
View
2 VERSION
@@ -1 +1 @@
-0.1.1.rc6
+0.2.0
View
12 cucumber-rails.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{cucumber-rails}
- s.version = "0.1.1.rc6"
+ s.version = "0.2.0"
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Dennis Bl\303\266te", "Aslak Helles\303\270y", "Rob Holland"]
- s.date = %q{2009-12-09}
+ s.date = %q{2009-12-15}
s.description = %q{Cucumber Generators and Runtime for Rails}
s.email = %q{cukes@googlegroups.com}
s.extra_rdoc_files = [
@@ -71,12 +71,12 @@ 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<cucumber>, [">= 0.4.5.rc2"])
+ s.add_runtime_dependency(%q<cucumber>, [">= 0.5.0"])
else
- s.add_dependency(%q<cucumber>, [">= 0.4.5.rc2"])
+ s.add_dependency(%q<cucumber>, [">= 0.5.0"])
end
else
- s.add_dependency(%q<cucumber>, [">= 0.4.5.rc2"])
+ s.add_dependency(%q<cucumber>, [">= 0.5.0"])
end
end
View
15 generators/cucumber/cucumber_generator.rb
@@ -17,6 +17,17 @@ def initialize(runtime_args, runtime_options = {})
def manifest
record do |m|
+ if File.exist?('features/step_definitions/webrat_steps.rb')
+ STDERR.puts "Please remove features/step_definitions/webrat_steps.rb\n" +
+ "See upgrading instructions for 0.2.0 in History.txt"
+ exit(1)
+ end
+ if File.exist?('features/support/version_check.rb')
+ STDERR.puts "Please remove features/support/version_check\n" +
+ "See upgrading instructions for 0.2.0 in History.txt"
+ exit(1)
+ end
+
m.template 'config/cucumber.yml.erb', 'config/cucumber.yml'
m.template 'environments/cucumber.rb.erb', 'config/environments/cucumber.rb'
@@ -70,6 +81,10 @@ def embed_template(source, indent='')
ERB.new(IO.read(template), nil, '-').result(binding).gsub(/^/, indent)
end
+ def version
+ IO.read(File.dirname(__FILE__) + '/../../VERSION').chomp
+ end
+
private
def first_loadable(libraries)
View
8 generators/cucumber/templates/environments/cucumber.rb.erb
@@ -21,11 +21,11 @@ config.action_controller.allow_forgery_protection = false
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
-config.gem 'cucumber', :lib => false, :version => '>=<%= Cucumber::VERSION %>' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
+config.gem 'cucumber-rails', :lib => false, :version => '>=<%= version %>' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails'))
<% if driver == :capybara -%>
-config.gem 'capybara', :lib => false, :version => '>=0.1.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/capybara'))
+config.gem 'capybara', :lib => false, :version => '>=0.2.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/capybara'))
<% else -%>
-config.gem 'webrat', :lib => false, :version => '>=0.5.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
+config.gem 'webrat', :lib => false, :version => '>=0.6.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
<% end -%>
<% if framework == :rspec -%>
config.gem 'rspec', :lib => false, :version => '>=1.2.9' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
@@ -34,5 +34,5 @@ config.gem 'rspec-rails', :lib => false, :version => '>=1.2.9' unless File.
config.gem 'database_cleaner', :lib => false, :version => '>=0.2.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/database_cleaner'))
<% end %>
<% if spork? -%>
-config.gem 'spork', :lib => false, :version => '>=0.7.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/spork'))
+config.gem 'spork', :lib => false, :version => '>=0.7.4' unless File.directory?(File.join(Rails.root, 'vendor/plugins/spork'))
<% end %>

0 comments on commit f20ab53

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