Sha256: 2b3505c6869d4fbc60be4d3771c8d4ee89f8d7e99de7dff72f4e271480a7fc6e
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# -*- ruby -*- Gem.refresh require 'autotest/restart' require 'autotest/isolate' Autotest.add_hook :initialize do |at| at.testlib = 'minitest/autorun' at.add_exception %r%/\.git/% at.add_exception %r%/\.svn/% at.add_exception %r%\.rbc$% at.add_exception %r%test/rubygems/rubygems% at.find_directories.clear at.find_directories.push 'lib', 'test' at.add_mapping %r%^lib/rubygems.rb$% do |_, m| "test/rubygems/test_gem.rb" end at.add_mapping %r%^lib/rubygems/(.*).rb$% do |_, m| "test/rubygems/test_gem_#{m[1].gsub '/', '_'}.rb" end at.add_mapping %r%^test/support/(.*).rb$% do |_, m| at.files_matching %r%^test/rubygems/test_(.*)\.rb$% end args = ARGV.reject { |a| a =~ /^-/ } at.find_directories = args unless args.empty? end class Autotest alias :old_path_to_classname :path_to_classname def path_to_classname s classname = old_path_to_classname(s.sub(/test.rubygems.test_/, "")) classname = classname.gsub('Rdoc', 'RDoc') classname = classname.gsub('Api', 'API') classname end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubygems-update-2.0.2 | .autotest |