Sha256: 9ee3cf9beb17691e3ae01339abd879f5af8b62490986b14ae3a938bdaa5b7213

Contents?: true

Size: 356 Bytes

Versions: 200

Compression:

Stored size: 356 Bytes

Contents

require 'pathname'

def ruby_acceptable_to_run?
  RUBY_VERSION >= min_ruby_version
end

def min_ruby_version
  if Origen.os.windows?
    '1.9.3'
  else
    '2.1.0'
  end
end

unless ruby_acceptable_to_run?
  puts <<-END

  You are currently running Ruby version #{RUBY_VERSION}, however Origen supports a minimum version of #{min_ruby_version}.

  END
end

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
origen-0.7.16 lib/origen/ruby_version_check.rb
origen-0.7.15 lib/origen/ruby_version_check.rb
origen-0.7.14 lib/origen/ruby_version_check.rb
origen-0.7.13 lib/origen/ruby_version_check.rb
origen-0.7.12 lib/origen/ruby_version_check.rb
origen-0.7.11 lib/origen/ruby_version_check.rb
origen-0.7.10 lib/origen/ruby_version_check.rb
origen-0.7.9 lib/origen/ruby_version_check.rb
origen-0.7.8 lib/origen/ruby_version_check.rb
origen-0.7.7 lib/origen/ruby_version_check.rb
origen-0.7.6 lib/origen/ruby_version_check.rb
origen-0.7.5 lib/origen/ruby_version_check.rb
origen-0.7.4 lib/origen/ruby_version_check.rb
origen-0.7.3 lib/origen/ruby_version_check.rb
origen-0.7.2 lib/origen/ruby_version_check.rb
origen-0.7.1 lib/origen/ruby_version_check.rb
origen-0.7.0 lib/origen/ruby_version_check.rb
origen-0.6.12 lib/origen/ruby_version_check.rb
origen-0.6.11 lib/origen/ruby_version_check.rb
origen-0.6.10 lib/origen/ruby_version_check.rb