updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / alexandria / alexandria.patch
blob1768e197ea02c129a53f3c49364ff35fa148dbdb
1 diff --git a/bin/alexandria b/bin/alexandria
2 index ea844a6..de81e4a 100644
3 --- a/bin/alexandria
4 +++ b/bin/alexandria
5 @@ -1,6 +1,6 @@
6 -#!/usr/bin/env ruby
7 +#!/usr/bin/ruby -Ku
9 -$KCODE = 'U'
10 +ENV['LC_ALL'] = 'C'
12 begin
13 require 'gettext'
14 diff --git a/lib/alexandria/book_providers.rb b/lib/alexandria/book_providers.rb
15 index ee102b3..738c8b8 100644
16 --- a/lib/alexandria/book_providers.rb
17 +++ b/lib/alexandria/book_providers.rb
18 @@ -374,7 +374,7 @@ module Alexandria
19 providers = {}
20 self.class.constants.each do |constant|
21 next unless md = /(.+)Provider$/.match(constant)
22 - klass = self.class.module_eval(constant)
23 + klass = self.class.module_eval("#{constant}")
24 if klass.ancestors.include?(AbstractProvider) and
25 klass != GenericProvider and
26 klass != WebsiteBasedProvider and
27 diff --git a/lib/alexandria/smart_library.rb b/lib/alexandria/smart_library.rb
28 index d30b20b..9858d09 100644
29 --- a/lib/alexandria/smart_library.rb
30 +++ b/lib/alexandria/smart_library.rb
31 @@ -472,7 +472,7 @@ begin
34 ALL = self.constants.map \
35 - { |x| self.module_eval(x) }.select \
36 + { |x| self.module_eval("#{x}") }.select \
37 { |x| x.is_a?(Operator) }
38 end