Class: Sly::VersionChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/sly/version.rb

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
# File 'lib/sly/version.rb', line 5

def self.run
  minimum_version = Gem::Version.new('1.9.2')
  current_version = Gem::Version.new(RUBY_VERSION)
  raise 'Ruby versions less than 1.9.2 are not supported by Sly' if minimum_version > current_version
end