freebsd-ports/devel/rubygem-gettext/files/extra::patch-lib_gettext_runtime_locale_path.rb
Stanislav Sedov 847e2e6525 - Unbreak with recent version of rubygems. This library uses method deprecated
in the new version of rubygems which prevented it from working.
2011-09-07 07:49:43 +00:00

12 lines
470 B
Ruby

--- lib/gettext/runtime/locale_path.rb.orig 2011-09-07 00:13:32.000000000 -0700
+++ lib/gettext/runtime/locale_path.rb 2011-09-07 00:13:46.000000000 -0700
@@ -52,9 +52,6 @@
default_path_rules += DEFAULT_RULES
load_path = $LOAD_PATH
- if defined? ::Gem
- load_path += Gem.all_load_paths
- end
load_path.map!{|v| v.match(/(.*?)(\/lib)*?$/); $1}
load_path.each {|path|
default_path_rules += [