Sha256: 2460ed04478af710a9c01d41f57581c5137b20a50d6a43f640d8c3ce6175a7dc

Contents?: true

Size: 707 Bytes

Versions: 10

Compression:

Stored size: 707 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH << File.join(__dir__, "../lib")

require "set"

IS_RUBY_27 = Gem::Version.new(RUBY_VERSION).yield_self do |ruby_version|
  Gem::Version.new('2.7.0') <= ruby_version &&
    ruby_version <= Gem::Version.new('2.8.0')
end

unless IS_RUBY_27
  STDERR.puts "⚠️⚠️⚠️⚠️ stdlib test assumes Ruby 2.7 but RUBY_VERSION==#{RUBY_VERSION} ⚠️⚠️⚠️⚠️"
end

KNOWN_FAILS = %w(dbm).map do |lib|
  /cannot load such file -- #{lib}/
end

ARGV.each do |arg|
  begin
    load arg
  rescue LoadError => exn
    if KNOWN_FAILS.any? {|pat| pat =~ exn.message }
      STDERR.puts "Loading #{arg} failed, ignoring it: #{exn.inspect}"
    else
      raise
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbs-1.0.0 bin/test_runner.rb
rbs-1.0.0.pre2 bin/test_runner.rb
rbs-1.0.0.pre bin/test_runner.rb
rbs-0.20.1 bin/test_runner.rb
rbs-0.20.0 bin/test_runner.rb
rbs-0.19.0 bin/test_runner.rb
rbs-0.18.1 bin/test_runner.rb
rbs-0.18.0 bin/test_runner.rb
rbs-0.17.0 bin/test_runner.rb
rbs-0.16.0 bin/test_runner.rb