holden-iso_country_codes 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{iso_country_codes}
5
- s.version = "0.2.3"
5
+ s.version = "0.2.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["alex"]
@@ -23,9 +23,8 @@ class IsoCountryCodes # :nodoc:
23
23
  else
24
24
  instance = all.select { |c| c.name.upcase == code }.first
25
25
  if opts[:fuzzy]
26
- instance = []
27
- instance = all.select { |c| c.name.match(/^#{code}/i) }.all if instance.nil?
28
- instance = all.select { |c| c.name.match(/#{code}/i) }.all if instance.nil?
26
+ instance = all.select { |c| c.name.match(/^#{code}/i) }.first if instance.nil?
27
+ instance = all.select { |c| c.name.match(/#{code}/i) }.first if instance.nil?
29
28
  end
30
29
  end
31
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: holden-iso_country_codes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex
@@ -41,7 +41,6 @@ files:
41
41
  - test/iso_country_codes_test.rb
42
42
  has_rdoc: false
43
43
  homepage: http://github.com/alexrabarts/iso_country_codes
44
- licenses:
45
44
  post_install_message:
46
45
  rdoc_options:
47
46
  - --charset=UTF-8
@@ -62,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
61
  requirements: []
63
62
 
64
63
  rubyforge_project:
65
- rubygems_version: 1.3.5
64
+ rubygems_version: 1.2.0
66
65
  signing_key:
67
66
  specification_version: 3
68
67
  summary: Provides ISO 3166-1 country codes/names and ISO 4217 currencies.