Guest User

Untitled

a guest
Jul 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. diff -u -r ../jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb
  2. --- ../jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb 2010-06-06 10:49:08.000000000 -0500
  3. +++ lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb 2010-11-24 01:51:28.000000000 -0600
  4. @@ -76,3 +76,19 @@
  5.  
  6. end
  7.  
  8. +plugins = Gem.find_files 'rubygems_plugin'
  9. +
  10. +plugins.each do |plugin|
  11. +
  12. + # Skip older versions of the GemCutter plugin: Its commands are in
  13. + # RubyGems proper now.
  14. +
  15. + next if plugin =~ /gemcutter-0\.[0-3]/
  16. +
  17. + begin
  18. + load plugin
  19. + rescue => e
  20. + warn "error loading #{plugin.inspect}: #{e.message} (#{e.class})"
  21. + end
  22. +end
  23. +
  24. diff -u -r ../jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems.rb lib/ruby/site_ruby/1.8/rubygems.rb
  25. --- ../jruby-1.5.1/lib/ruby/site_ruby/1.8/rubygems.rb 2010-06-06 10:49:08.000000000 -0500
  26. +++ lib/ruby/site_ruby/1.8/rubygems.rb 2010-11-24 01:51:10.000000000 -0600
  27. @@ -1100,19 +1100,3 @@
  28.  
  29. Gem.clear_paths
  30.  
  31. -plugins = Gem.find_files 'rubygems_plugin'
  32. -
  33. -plugins.each do |plugin|
  34. -
  35. - # Skip older versions of the GemCutter plugin: Its commands are in
  36. - # RubyGems proper now.
  37. -
  38. - next if plugin =~ /gemcutter-0\.[0-3]/
  39. -
  40. - begin
  41. - load plugin
  42. - rescue => e
  43. - warn "error loading #{plugin.inspect}: #{e.message} (#{e.class})"
  44. - end
  45. -end
  46. -
Add Comment
Please, Sign In to add comment