rails_generators/cucumber/templates/version_check.rb in cucumber-0.4.2 vs rails_generators/cucumber/templates/version_check.rb in cucumber-0.4.3
- old
+ new
@@ -1,10 +1,12 @@
+require 'cucumber/formatter/ansicolor'
+extend Cucumber::Formatter::ANSIColor
if Cucumber::VERSION != '<%= Cucumber::VERSION %>'
warning = <<-WARNING
-(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
+#{red_cukes(15)}
- (::) R O T T E N C U C U M B E R A L E R T (::)
+ #{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)}
Your #{__FILE__.gsub(/version_check.rb$/, 'env.rb')} file was generated with Cucumber <%= Cucumber::VERSION %>,
but you seem to be running Cucumber #{Cucumber::VERSION}. If you're running an older
version than #{Cucumber::VERSION}, just upgrade your gem. If you're running a newer
version than #{Cucumber::VERSION} you should:
@@ -16,14 +18,14 @@
ruby script/generate cucumber
If you get prompted to replace a file, hit 'd' to see the difference.
When you're sure you have captured any personal edits, confirm that you
want to overwrite #{__FILE__.gsub(/version_check.rb$/, 'env.rb')} by pressing 'y'. Then reapply any
-personal changes that may have been overwritten.
+personal changes that may have been overwritten, preferably in separate files.
This message will then self destruct.
-(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)
+#{red_cukes(15)}
WARNING
warn(warning)
at_exit {warn(warning)}
end
\ No newline at end of file