cucumber-rails 0.1.1.rc3 → 0.1.1.rc4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gemspec.authors = ["Dennis Blöte", "Aslak Hellesøy", "Rob Holland"]
10
10
  gemspec.homepage = "http://github.com/dbloete/cucumber-rails"
11
11
 
12
- gemspec.add_dependency 'cucumber', '>= 0.4.5.rc1'
12
+ gemspec.add_dependency 'cucumber', '>= 0.4.5.rc2'
13
13
  end
14
14
  Jeweler::GemcutterTasks.new
15
15
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1.rc3
1
+ 0.1.1.rc4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber-rails}
8
- s.version = "0.1.1.rc3"
8
+ s.version = "0.1.1.rc4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dennis Bl\303\266te", "Aslak Helles\303\270y", "Rob Holland"]
@@ -31,7 +31,6 @@ Gem::Specification.new do |s|
31
31
  "generators/cucumber/templates/env.rb",
32
32
  "generators/cucumber/templates/paths.rb",
33
33
  "generators/cucumber/templates/spork_env.rb",
34
- "generators/cucumber/templates/version_check.rb",
35
34
  "generators/cucumber/templates/web_steps/capybara_steps.rb",
36
35
  "generators/cucumber/templates/web_steps/web_steps_de.rb",
37
36
  "generators/cucumber/templates/web_steps/web_steps_no.rb",
@@ -67,12 +66,12 @@ Gem::Specification.new do |s|
67
66
  s.specification_version = 3
68
67
 
69
68
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
70
- s.add_runtime_dependency(%q<cucumber>, [">= 0.4.5.rc1"])
69
+ s.add_runtime_dependency(%q<cucumber>, [">= 0.4.5.rc2"])
71
70
  else
72
- s.add_dependency(%q<cucumber>, [">= 0.4.5.rc1"])
71
+ s.add_dependency(%q<cucumber>, [">= 0.4.5.rc2"])
73
72
  end
74
73
  else
75
- s.add_dependency(%q<cucumber>, [">= 0.4.5.rc1"])
74
+ s.add_dependency(%q<cucumber>, [">= 0.4.5.rc2"])
76
75
  end
77
76
  end
78
77
 
@@ -23,8 +23,7 @@ class CucumberGenerator < Rails::Generator::Base
23
23
  if language != 'en'
24
24
  m.template "web_steps/web_steps_#{language}.rb", "features/step_definitions/web_steps_#{language}.rb"
25
25
  end
26
- m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb',
27
- :assigns => { :cucumber_version => ::Cucumber::VERSION }
26
+ m.template 'cucumber_environment.rb', 'config/environments/cucumber.rb'
28
27
 
29
28
  m.gsub_file 'config/database.yml', /test:.*\n/, "test: &TEST\n"
30
29
  unless File.read('config/database.yml').include? 'cucumber:'
@@ -39,7 +38,6 @@ class CucumberGenerator < Rails::Generator::Base
39
38
  m.template "#{driver}_env.rb", "features/support/#{driver}.rb"
40
39
  end
41
40
  m.template 'paths.rb', 'features/support/paths.rb'
42
- m.template 'version_check.rb', 'features/support/version_check.rb'
43
41
 
44
42
  m.directory 'lib/tasks'
45
43
  m.template'cucumber.rake', 'lib/tasks/cucumber.rake'
@@ -70,8 +68,7 @@ private
70
68
  begin
71
69
  require library[0]
72
70
  return library[1]
73
- rescue LoadError => e
74
- puts e.inspect
71
+ rescue LoadError => ignore
75
72
  end
76
73
  end
77
74
  return nil
@@ -1,4 +1,3 @@
1
- # IMPORTANT: This file was generated by Cucumber <%= Cucumber::VERSION %>
2
1
  # Edit at your own peril - it's recommended to regenerate this file
3
2
  # in the future when you upgrade to a newer version of Cucumber.
4
3
 
@@ -22,7 +21,7 @@ config.action_controller.allow_forgery_protection = false
22
21
  # ActionMailer::Base.deliveries array.
23
22
  config.action_mailer.delivery_method = :test
24
23
 
25
- config.gem 'cucumber', :lib => false, :version => '>=<%= cucumber_version %>' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
24
+ config.gem 'cucumber', :lib => false, :version => '>=<%= Cucumber::VERSION %>' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber'))
26
25
  <% if driver == :capybara -%>
27
26
  config.gem 'capybara', :lib => false, :version => '>=0.1.3' unless File.directory?(File.join(Rails.root, 'vendor/plugins/capybara'))
28
27
  <% else -%>
@@ -1,4 +1,3 @@
1
- # IMPORTANT: This file was generated by Cucumber <%= Cucumber::VERSION %>
2
1
  # Edit at your own peril - it's recommended to regenerate this file
3
2
  # in the future when you upgrade to a newer version of Cucumber.
4
3
  # Consider adding your own code to a new file instead of editing this one.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.rc3
4
+ version: 0.1.1.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Dennis Bl\xC3\xB6te"
@@ -22,7 +22,7 @@ dependencies:
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 0.4.5.rc1
25
+ version: 0.4.5.rc2
26
26
  version:
27
27
  description: Cucumber Generators and Runtime for Rails
28
28
  email: cukes@googlegroups.com
@@ -48,7 +48,6 @@ files:
48
48
  - generators/cucumber/templates/env.rb
49
49
  - generators/cucumber/templates/paths.rb
50
50
  - generators/cucumber/templates/spork_env.rb
51
- - generators/cucumber/templates/version_check.rb
52
51
  - generators/cucumber/templates/web_steps/capybara_steps.rb
53
52
  - generators/cucumber/templates/web_steps/web_steps_de.rb
54
53
  - generators/cucumber/templates/web_steps/web_steps_no.rb
@@ -1,31 +0,0 @@
1
- require 'cucumber/formatter/ansicolor'
2
- extend Cucumber::Formatter::ANSIColor
3
- if Cucumber::VERSION != '<%= Cucumber::VERSION %>'
4
- warning = <<-WARNING
5
- #{red_cukes(15)}
6
-
7
- #{red_cukes(1)} R O T T E N C U C U M B E R A L E R T #{red_cukes(1)}
8
-
9
- Your #{__FILE__.gsub(/version_check.rb$/, 'env.rb')} file was generated with Cucumber <%= Cucumber::VERSION %>,
10
- but you seem to be running Cucumber #{Cucumber::VERSION}. If you're running an older
11
- version than #{Cucumber::VERSION}, just upgrade your gem. If you're running a newer
12
- version than #{Cucumber::VERSION} you should:
13
-
14
- 1) Read http://wiki.github.com/aslakhellesoy/cucumber/upgrading
15
-
16
- 2) Regenerate your cucumber environment with the following command:
17
-
18
- ruby script/generate cucumber
19
-
20
- If you get prompted to replace a file, hit 'd' to see the difference.
21
- When you're sure you have captured any personal edits, confirm that you
22
- want to overwrite #{__FILE__.gsub(/version_check.rb$/, 'env.rb')} by pressing 'y'. Then reapply any
23
- personal changes that may have been overwritten, preferably in separate files.
24
-
25
- This message will then self destruct.
26
-
27
- #{red_cukes(15)}
28
- WARNING
29
- warn(warning)
30
- at_exit {warn(warning)}
31
- end