lib/cucumber/platform.rb in cucumber-0.8.7 vs lib/cucumber/platform.rb in cucumber-0.9.0
- old
+ new
@@ -1,13 +1,11 @@
# Detect the platform we're running on so we can tweak behaviour
# in various places.
-require 'rbconfig'
-require 'yaml'
module Cucumber
- version = YAML.load_file(File.dirname(__FILE__) + '/../../VERSION.yml')
- VERSION = [version[:major], version[:minor], version[:patch], version[:build]].compact.join('.')
+unless defined?(Cucumber::VERSION)
+ VERSION = '0.9.0'
BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
JRUBY = defined?(JRUBY_VERSION)
IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby"
WINDOWS = Config::CONFIG['host_os'] =~ /mswin|mingw/
@@ -24,6 +22,7 @@
def file_mode(m) #:nodoc:
RUBY_1_9 ? "#{m}:UTF-8" : m
end
end
self.use_full_backtrace = false
+end
end