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 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(File.open file)
281
+ data = File.open(file) { |fd| YAML.load(fd) }
282
282
  end
283
283
  @@cmps[type] ||= 0
284
284
  @@alts[type] = Hash.new
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ICU
4
4
  class Name
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
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(File.open file)
9
+ data = File.open(file) { |fd| YAML.load(fd) }
10
10
  Name.load_alternatives(type, data)
11
11
  end
12
12
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark Orr