country-select 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/country-select.rb +14 -12
- metadata +40 -21
data/lib/country-select.rb
CHANGED
@@ -25,7 +25,8 @@ module ActionView
|
|
25
25
|
COUNTRIES = ["Afghanistan", "Aland Islands", "Albania", "Algeria", "American Samoa", "Andorra", "Angola",
|
26
26
|
"Anguilla", "Antarctica", "Antigua And Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria",
|
27
27
|
"Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin",
|
28
|
-
"Bermuda", "Bhutan", "Bolivia
|
28
|
+
"Bermuda", "Bhutan", "Bolivia, Plurinational State of", "Bonaire, Sint Eustatius and Saba", "Bosnia and Herzegovina",
|
29
|
+
"Botswana", "Bouvet Island", "Brazil",
|
29
30
|
"British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia",
|
30
31
|
"Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China",
|
31
32
|
"Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo",
|
@@ -33,8 +34,9 @@ module ActionView
|
|
33
34
|
"Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt",
|
34
35
|
"El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Islands (Malvinas)",
|
35
36
|
"Faroe Islands", "Fiji", "Finland", "France", "French Guiana", "French Polynesia",
|
36
|
-
"French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece",
|
37
|
-
|
37
|
+
"French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece",
|
38
|
+
"Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea",
|
39
|
+
"Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)",
|
38
40
|
"Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran, Islamic Republic of", "Iraq",
|
39
41
|
"Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya",
|
40
42
|
"Kiribati", "Korea, Democratic People's Republic of", "Korea, Republic of", "Kuwait", "Kyrgyzstan",
|
@@ -43,22 +45,22 @@ module ActionView
|
|
43
45
|
"Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique",
|
44
46
|
"Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldova, Republic of",
|
45
47
|
"Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru",
|
46
|
-
"Nepal", "Netherlands", "
|
48
|
+
"Nepal", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger",
|
47
49
|
"Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau",
|
48
50
|
"Palestinian Territory, Occupied", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines",
|
49
51
|
"Pitcairn", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation",
|
50
|
-
"Rwanda", "Saint Barthelemy", "Saint Helena", "Saint Kitts and Nevis", "Saint Lucia",
|
51
|
-
"Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino",
|
52
|
+
"Rwanda", "Saint Barthelemy", "Saint Helena, Ascension and Tristan da Cunha", "Saint Kitts and Nevis", "Saint Lucia",
|
53
|
+
"Saint Martin (French Part)", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino",
|
52
54
|
"Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore",
|
53
|
-
"Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa",
|
54
|
-
"South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "Sudan", "Suriname",
|
55
|
+
"Sint Maarten (Dutch Part)", "Slovakia", "Slovenia", "Solomon Islands", "Somalia", "South Africa",
|
56
|
+
"South Georgia and the South Sandwich Islands", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname",
|
55
57
|
"Svalbard and Jan Mayen", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic",
|
56
58
|
"Taiwan, Province of China", "Tajikistan", "Tanzania, United Republic of", "Thailand", "Timor-Leste",
|
57
59
|
"Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan",
|
58
60
|
"Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom",
|
59
|
-
"United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu",
|
60
|
-
|
61
|
-
|
61
|
+
"United States", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu",
|
62
|
+
"Venezuela, Bolivarian Republic of", "Viet Nam", "Virgin Islands, British", "Virgin Islands, U.S.",
|
63
|
+
"Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe"] unless const_defined?("COUNTRIES")
|
62
64
|
end
|
63
65
|
|
64
66
|
class InstanceTag
|
@@ -81,4 +83,4 @@ module ActionView
|
|
81
83
|
end
|
82
84
|
end
|
83
85
|
end
|
84
|
-
end
|
86
|
+
end
|
metadata
CHANGED
@@ -1,49 +1,68 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: country-select
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 4
|
10
|
+
version: 1.0.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Michael Koziarski
|
9
14
|
- James Dean Shepherd
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
18
|
+
|
19
|
+
date: 2011-09-23 00:00:00 +01:00
|
14
20
|
default_executable:
|
15
21
|
dependencies: []
|
16
|
-
|
17
|
-
|
22
|
+
|
23
|
+
description: Provides a form helper to insert a country select box using the ISO 3166 country list
|
18
24
|
email: jamesds2007@gmail.com
|
19
25
|
executables: []
|
26
|
+
|
20
27
|
extensions: []
|
28
|
+
|
21
29
|
extra_rdoc_files: []
|
22
|
-
|
30
|
+
|
31
|
+
files:
|
23
32
|
- lib/country-select.rb
|
24
33
|
has_rdoc: true
|
25
|
-
homepage: http://github.com/jamesds/
|
34
|
+
homepage: http://github.com/jamesds/country-select
|
26
35
|
licenses: []
|
36
|
+
|
27
37
|
post_install_message:
|
28
38
|
rdoc_options: []
|
29
|
-
|
39
|
+
|
40
|
+
require_paths:
|
30
41
|
- lib
|
31
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
43
|
none: false
|
33
|
-
requirements:
|
34
|
-
- -
|
35
|
-
- !ruby/object:Gem::Version
|
36
|
-
|
37
|
-
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 3
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
version: "0"
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
52
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
43
60
|
requirements: []
|
61
|
+
|
44
62
|
rubyforge_project:
|
45
|
-
rubygems_version: 1.
|
63
|
+
rubygems_version: 1.4.2
|
46
64
|
signing_key:
|
47
65
|
specification_version: 3
|
48
66
|
summary: Country select box
|
49
67
|
test_files: []
|
68
|
+
|