Class: Composer::Verify::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/composer/verify/ruby.rb

Instance Method Summary collapse

Instance Method Details

#ruby_versionObject



10
11
12
# File 'lib/composer/verify/ruby.rb', line 10

def ruby_version
  RUBY_VERSION
end

#verifyObject



4
5
6
7
8
# File 'lib/composer/verify/ruby.rb', line 4

def verify
  unless ruby_version >= '1.9.1'
    raise UnsupportedRubyVersion.new "Ruby version '#{ruby_version}' is less than 1.9.1"
  end
end