icu_name 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/icu_name/name.rb +1 -1
- data/lib/icu_name/version.rb +1 -1
- data/spec/name_spec.rb +1 -1
- metadata +2 -2
data/lib/icu_name/name.rb
CHANGED
@@ -278,7 +278,7 @@ module ICU
|
|
278
278
|
return if @@alts[type] && !force
|
279
279
|
unless data
|
280
280
|
file = File.expand_path(File.dirname(__FILE__) + "/../../config/#{type}_alternatives.yaml")
|
281
|
-
data = YAML.load(
|
281
|
+
data = File.open(file) { |fd| YAML.load(fd) }
|
282
282
|
end
|
283
283
|
@@cmps[type] ||= 0
|
284
284
|
@@alts[type] = Hash.new
|
data/lib/icu_name/version.rb
CHANGED
data/spec/name_spec.rb
CHANGED
@@ -6,7 +6,7 @@ module ICU
|
|
6
6
|
def load_alt_test(*types)
|
7
7
|
types.each do |type|
|
8
8
|
file = File.expand_path(File.dirname(__FILE__) + "/../config/test_#{type}_alts.yaml")
|
9
|
-
data = YAML.load(
|
9
|
+
data = File.open(file) { |fd| YAML.load(fd) }
|
10
10
|
Name.load_alternatives(type, data)
|
11
11
|
end
|
12
12
|
end
|