Sha256: 480d8f98ea06b09d01c48cb95da1c53e7a8ddabe7e9e4ed14c5eebb89ec727b9

Contents?: true

Size: 710 Bytes

Versions: 9

Compression:

Stored size: 710 Bytes

Contents

#!/usr/bin/env ruby

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

require "set"

IS_LATEST_RUBY = Gem::Version.new(RUBY_VERSION).yield_self do |ruby_version|
  Gem::Version.new('3.0.0') <= ruby_version && ruby_version < Gem::Version.new('3.1.0')
end

unless IS_LATEST_RUBY
  STDERR.puts "⚠️⚠️⚠️⚠️ stdlib test assumes Ruby 3.0 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

9 entries across 9 versions & 1 rubygems

Version Path
rbs-1.2.0 bin/test_runner.rb
rbs-1.1.1 bin/test_runner.rb
rbs-1.1.0 bin/test_runner.rb
rbs-1.0.6 bin/test_runner.rb
rbs-1.0.5 bin/test_runner.rb
rbs-1.0.4 bin/test_runner.rb
rbs-1.0.3 bin/test_runner.rb
rbs-1.0.2 bin/test_runner.rb
rbs-1.0.1 bin/test_runner.rb