holden-iso_country_codes 0.2.2 → 0.2.3

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.2"
5
+ s.version = "0.2.3"
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,6 +23,7 @@ class IsoCountryCodes # :nodoc:
23
23
  else
24
24
  instance = all.select { |c| c.name.upcase == code }.first
25
25
  if opts[:fuzzy]
26
+ instance = []
26
27
  instance = all.select { |c| c.name.match(/^#{code}/i) }.all if instance.nil?
27
28
  instance = all.select { |c| c.name.match(/#{code}/i) }.all if instance.nil?
28
29
  end
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex