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.
data/iso_country_codes.gemspec
CHANGED
@@ -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(
|
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.
|
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.
|
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.
|