Top Level Namespace
Defined Under Namespace
Modules: Mongoid, Rack, Rails Classes: Symbol
Instance Method Summary collapse
- #invalid_version? ⇒ Boolean
-
#raise_version_error(message) ⇒ Object
Go ahead and fail if not using Ruby 1.9.3, no since in letting people squarm for answers.
Instance Method Details
#invalid_version? ⇒ Boolean
9 10 11 12 13 14 15 16 17 |
# File 'lib/support/ruby_version.rb', line 9 def invalid_version? RUBY_VERSION =~ /([\d]+)\.([\d]+)\.([\d]+)/ major, minor, revision = $1.to_i, $2.to_i, $3.to_i if defined?(JRUBY_VERSION) major <= 1 && minor <= 9 && revision <= 1 else major <= 1 && minor <= 9 && revision <= 2 end end |