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.36 lib/origen/ruby_version_check.rb
origen-0.7.35 lib/origen/ruby_version_check.rb
origen-0.7.34 lib/origen/ruby_version_check.rb
origen-0.7.33 lib/origen/ruby_version_check.rb
origen-0.7.32 lib/origen/ruby_version_check.rb
origen-0.7.31 lib/origen/ruby_version_check.rb
origen-0.7.30 lib/origen/ruby_version_check.rb
origen-0.7.29 lib/origen/ruby_version_check.rb
origen-0.7.28 lib/origen/ruby_version_check.rb
origen-0.7.27 lib/origen/ruby_version_check.rb
origen-0.7.26 lib/origen/ruby_version_check.rb
origen-0.7.25 lib/origen/ruby_version_check.rb
origen-0.7.24 lib/origen/ruby_version_check.rb
origen-0.7.23 lib/origen/ruby_version_check.rb
origen-0.7.22 lib/origen/ruby_version_check.rb
origen-0.7.21 lib/origen/ruby_version_check.rb
origen-0.7.20 lib/origen/ruby_version_check.rb
origen-0.7.19 lib/origen/ruby_version_check.rb
origen-0.7.18 lib/origen/ruby_version_check.rb
origen-0.7.17 lib/origen/ruby_version_check.rb