countries 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/countries.gemspec +2 -2
- data/lib/countries/select_helper.rb +3 -3
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/countries.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{countries}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{hexorx}]
|
12
|
-
s.date = %q{2011-09-
|
12
|
+
s.date = %q{2011-09-20}
|
13
13
|
s.description = %q{All sorts of useful information about every country packaged as pretty little country objects. It includes data from ISO 3166 (countries and subdivisions), ISO 4217 (currency), and E.164 (phone numbers). As a bonus it even adds a country_select helper to rails projects.}
|
14
14
|
s.email = %q{hexorx@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -11,12 +11,12 @@ module ActionView
|
|
11
11
|
country_options = ""
|
12
12
|
|
13
13
|
if priority_countries
|
14
|
-
priority_countries = [*priority_countries].map {|x| [x,Country::NameIndex[x]] }
|
14
|
+
priority_countries = [*priority_countries].map {|x| [x,ISO3166::Country::NameIndex[x]] }
|
15
15
|
country_options += options_for_select(priority_countries, selected)
|
16
16
|
country_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"
|
17
17
|
end
|
18
18
|
|
19
|
-
return country_options + options_for_select(Country::Names, selected)
|
19
|
+
return country_options + options_for_select(ISO3166::Country::Names, selected)
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
@@ -40,4 +40,4 @@ module ActionView
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
43
|
-
end
|
43
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: countries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- hexorx
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-20 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|