country_select 1.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +35 -11
  5. data/CHANGELOG.md +74 -1
  6. data/Gemfile +6 -1
  7. data/Gemfile.lock +300 -0
  8. data/README.md +138 -25
  9. data/Rakefile +3 -17
  10. data/UPGRADING.md +69 -0
  11. data/country_select.gemspec +11 -9
  12. data/gemfiles/actionpack.edge.gemfile +15 -0
  13. data/gemfiles/actionpack.edge.gemfile.lock +310 -0
  14. data/gemfiles/actionpack3.2.gemfile +8 -4
  15. data/gemfiles/actionpack3.2.gemfile.lock +265 -39
  16. data/gemfiles/actionpack4.0.gemfile +7 -3
  17. data/gemfiles/actionpack4.0.gemfile.lock +260 -36
  18. data/gemfiles/actionpack4.1.gemfile +11 -0
  19. data/gemfiles/actionpack4.1.gemfile.lock +290 -0
  20. data/gemfiles/actionpack4.2.gemfile +14 -0
  21. data/gemfiles/actionpack4.2.gemfile.lock +306 -0
  22. data/gemfiles/actionpack5.0.gemfile +12 -0
  23. data/gemfiles/actionpack5.0.gemfile.lock +311 -0
  24. data/gemfiles/actionpack5.1.gemfile +12 -0
  25. data/gemfiles/actionpack5.1.gemfile.lock +311 -0
  26. data/gemfiles/actionpack5.2.gemfile +12 -0
  27. data/gemfiles/actionpack5.2.gemfile.lock +312 -0
  28. data/lib/country_select.rb +10 -118
  29. data/lib/country_select/country_select_helper.rb +38 -0
  30. data/lib/country_select/formats.rb +7 -0
  31. data/lib/country_select/rails3/country_select_helper.rb +39 -0
  32. data/lib/country_select/tag_helper.rb +118 -0
  33. data/lib/country_select/version.rb +1 -1
  34. data/lib/country_select_without_sort_alphabetical.rb +13 -0
  35. data/spec/country_select_spec.rb +239 -111
  36. data/spec/spec_helper.rb +85 -7
  37. metadata +88 -42
  38. data/Appraisals +0 -19
  39. data/gemfiles/actionpack3.0.gemfile +0 -7
  40. data/gemfiles/actionpack3.0.gemfile.lock +0 -64
  41. data/gemfiles/actionpack3.1.gemfile +0 -7
  42. data/gemfiles/actionpack3.1.gemfile.lock +0 -72
  43. data/lib/country_select/countries.rb +0 -256
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4e90ff1708be525b5240f5c5925e8fa20d6e9cf059754bc771318d744367f032
4
+ data.tar.gz: 40177946a4f9d3a7996e24509d83d2b0b552b946e684344c62f3d0d0e1d6c178
5
+ SHA512:
6
+ metadata.gz: '0919c2bbb415b69e38e4f5b24f3a80d630591b98bf51b76ab9002147a6cfa263ed7e22b44ea98a034ae2e3c2e7fc4ce78ea2b050c3ae61e5b0d6a23824180a8f'
7
+ data.tar.gz: 2a779b0d4177bd82c45b523bdfc60d9ce949dafc85c3334b57a5a31d6c15e25f35bdc48fd8e7f99fb49bee6979cb23fb3ff9eb87c4f503aa5d53e4692c967bc1
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.sqlite
3
3
  .bundle
4
- Gemfile.lock
5
4
  pkg/*
5
+ .ruby-version
6
+ vendor/bundle
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --color
2
+ --require spec_helper
2
3
  --format progress
@@ -1,17 +1,41 @@
1
+ sudo: false
2
+ cache: bundler
1
3
  language: ruby
2
- script: "bundle exec rake appraisal:integration"
4
+ script: "bundle exec rspec"
3
5
  rvm:
6
+ - 2.0
7
+ - 2.1
8
+ - 2.2
9
+ - 2.3
10
+ - 2.4
11
+ - 2.5
4
12
  - ruby-head
5
- - 2.0.0
6
- - 1.9.3
7
- - 1.9.2
8
- - 1.8.7
9
- - ree
10
- - jruby-head
11
- - jruby-19mode
12
- - jruby-18mode
13
- - rbx-19mode
14
- - rbx-18mode
13
+ gemfile:
14
+ - gemfiles/actionpack3.2.gemfile
15
+ - gemfiles/actionpack4.0.gemfile
16
+ - gemfiles/actionpack4.1.gemfile
17
+ - gemfiles/actionpack4.2.gemfile
18
+ - gemfiles/actionpack5.0.gemfile
19
+ - gemfiles/actionpack5.1.gemfile
20
+ - gemfiles/actionpack5.2.gemfile
21
+ - gemfiles/actionpack.edge.gemfile
15
22
  matrix:
16
23
  allow_failures:
17
24
  - rvm: ruby-head
25
+ exclude:
26
+ - rvm: 2.0
27
+ gemfile: gemfiles/actionpack.edge.gemfile
28
+ - rvm: 2.0
29
+ gemfile: gemfiles/actionpack5.0.gemfile
30
+ - rvm: 2.0
31
+ gemfile: gemfiles/actionpack5.1.gemfile
32
+ - rvm: 2.0
33
+ gemfile: gemfiles/actionpack5.2.gemfile
34
+ - rvm: 2.1
35
+ gemfile: gemfiles/actionpack.edge.gemfile
36
+ - rvm: 2.1
37
+ gemfile: gemfiles/actionpack5.0.gemfile
38
+ - rvm: 2.1
39
+ gemfile: gemfiles/actionpack5.1.gemfile
40
+ - rvm: 2.1
41
+ gemfile: gemfiles/actionpack5.2.gemfile
@@ -1,4 +1,77 @@
1
- == 1.2.0 2013-07-06
1
+ ## 4.0.0 2018-12-20
2
+
3
+ * #160 - Upgrade to countries 3.0 - @gssbzn
4
+ * https://github.com/hexorx/countries/blob/master/CHANGELOG.md#v220-yanked-and-re-released-as-300-20181217-1020-0000
5
+
6
+ ## 3.1.1 2017-09-20
7
+
8
+ * #146 - Fix value call on Rails edge (5.2+) - @ybart
9
+
10
+ ## 3.1.0 2017-07-18
11
+
12
+ * #144 - Provide a possibility to opt out of `sort_alphabetical` - @fschwahn
13
+
14
+ ## 3.0.0 2016-11-25
15
+
16
+ * #138 - Upgrade to Countries 2.0
17
+ * #136 - Drop support for Ruby 1.9.3 as countries 2.0 no longer supports it
18
+
19
+ ## 2.5.2 2015-11-10
20
+
21
+ * #127 - Fix multi-selects - @jjballano
22
+
23
+ ## 2.5.1 2015-11-10
24
+
25
+ * #118 - Fix bad require of countries gem that caused issues if you
26
+ already had a `Country` class
27
+
28
+ ## 2.5.0 2015-11-06
29
+
30
+ * #117 - Update countries gem to ~> v1.2.0
31
+
32
+ ## 2.4.0 2015-08-25
33
+
34
+ * #111 - Update countries gem to ~> v1.1.0
35
+
36
+ ## 2.3.0 2015-08-25
37
+
38
+ * #107,#108 - Update countries gem to ~> v1.0.0
39
+
40
+ ## 2.2.0 2015-03-19
41
+
42
+ * #101 - Update countries gem to ~> v0.11.0
43
+
44
+ ## 2.1.1 2015-02-02
45
+
46
+ * #94 - Prevent usage of countries v0.10.0 due to poor performance
47
+
48
+ ## 2.1.0 2014-09-29
49
+
50
+ * #70 - Allow custom formats for option tag text – See README.md
51
+
52
+ ## 2.0.1 2014-09-18
53
+
54
+ * #72 - Fixed `include_blank` and `prompt` in Rails 3.2
55
+ * #75 - Raise `CountrySelect::CountryNotFound` error when given a country
56
+ name or code that is not found in https://github.com/hexorx/countries
57
+
58
+ ## 2.0.0 2014-08-10
59
+
60
+ * Removed support for Ruby < 1.9.3
61
+ * ISO-3166 alpha-2 codes are now on by default, stored in uppercase
62
+ (e.g., US)
63
+ * Localization is always on
64
+ * The `country_select` method will always attempt to localize
65
+ country names based on the value of `I18n.locale` via translations
66
+ stored in the `countries` gem
67
+ * Priority countries should now be set via the `priority_countries` option
68
+ * The original 1.x syntax is still available
69
+ * The list of countries can now be limited with the `only` and
70
+ `except` options
71
+ * Add best-guess support for country names when codes aren't provided
72
+ in options (e.g., priority_countries)
73
+
74
+ ## 1.2.0 2013-07-06
2
75
 
3
76
  * Country names have been synced with UTF-8 encoding to the list of
4
77
  countries on [Wikipedia's page for the ISO-3166 standard](https://en.wikipedia.org/wiki/ISO_3166-1).
data/Gemfile CHANGED
@@ -1,4 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in country_select.gemspec
4
3
  gemspec
4
+
5
+ platforms :rbx do
6
+ gem 'racc'
7
+ gem 'rubysl', '~> 2.0'
8
+ gem 'psych'
9
+ end
@@ -0,0 +1,300 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ country_select (4.0.0)
5
+ countries (~> 3.0)
6
+ sort_alphabetical (~> 1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (5.1.4)
12
+ actionview (= 5.1.4)
13
+ activesupport (= 5.1.4)
14
+ rack (~> 2.0)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
+ actionview (5.1.4)
19
+ activesupport (= 5.1.4)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
+ activesupport (5.1.4)
25
+ concurrent-ruby (~> 1.0, >= 1.0.2)
26
+ i18n (~> 0.7)
27
+ minitest (~> 5.1)
28
+ tzinfo (~> 1.1)
29
+ builder (3.2.3)
30
+ coderay (1.1.0)
31
+ concurrent-ruby (1.0.5)
32
+ countries (3.0.0)
33
+ i18n_data (~> 0.8.0)
34
+ sixarm_ruby_unaccent (~> 1.1)
35
+ unicode_utils (~> 1.4)
36
+ diff-lcs (1.2.5)
37
+ erubi (1.6.1)
38
+ ffi2-generators (0.1.1)
39
+ i18n (0.8.6)
40
+ i18n_data (0.8.0)
41
+ loofah (2.0.3)
42
+ nokogiri (>= 1.5.9)
43
+ method_source (0.8.2)
44
+ mini_portile2 (2.3.0)
45
+ minitest (5.10.3)
46
+ nokogiri (1.8.1)
47
+ mini_portile2 (~> 2.3.0)
48
+ pry (0.10.1)
49
+ coderay (~> 1.1.0)
50
+ method_source (~> 0.8.1)
51
+ slop (~> 3.4)
52
+ psych (2.0.15)
53
+ racc (1.4.12)
54
+ rack (2.0.3)
55
+ rack-test (0.7.0)
56
+ rack (>= 1.0, < 3)
57
+ rails-dom-testing (2.0.3)
58
+ activesupport (>= 4.2.0)
59
+ nokogiri (>= 1.6)
60
+ rails-html-sanitizer (1.0.3)
61
+ loofah (~> 2.0)
62
+ rake (10.4.2)
63
+ rspec (3.3.0)
64
+ rspec-core (~> 3.3.0)
65
+ rspec-expectations (~> 3.3.0)
66
+ rspec-mocks (~> 3.3.0)
67
+ rspec-core (3.3.2)
68
+ rspec-support (~> 3.3.0)
69
+ rspec-expectations (3.3.1)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.3.0)
72
+ rspec-mocks (3.3.2)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.3.0)
75
+ rspec-support (3.3.0)
76
+ rubysl (2.1.0)
77
+ rubysl-abbrev (~> 2.0)
78
+ rubysl-base64 (~> 2.0)
79
+ rubysl-benchmark (~> 2.0)
80
+ rubysl-bigdecimal (~> 2.0)
81
+ rubysl-cgi (~> 2.0)
82
+ rubysl-cgi-session (~> 2.0)
83
+ rubysl-cmath (~> 2.0)
84
+ rubysl-complex (~> 2.0)
85
+ rubysl-continuation (~> 2.0)
86
+ rubysl-coverage (~> 2.0)
87
+ rubysl-csv (~> 2.0)
88
+ rubysl-curses (~> 2.0)
89
+ rubysl-date (~> 2.0)
90
+ rubysl-delegate (~> 2.0)
91
+ rubysl-digest (~> 2.0)
92
+ rubysl-drb (~> 2.0)
93
+ rubysl-e2mmap (~> 2.0)
94
+ rubysl-english (~> 2.0)
95
+ rubysl-enumerator (~> 2.0)
96
+ rubysl-erb (~> 2.0)
97
+ rubysl-etc (~> 2.0)
98
+ rubysl-expect (~> 2.0)
99
+ rubysl-fcntl (~> 2.0)
100
+ rubysl-fiber (~> 2.0)
101
+ rubysl-fileutils (~> 2.0)
102
+ rubysl-find (~> 2.0)
103
+ rubysl-forwardable (~> 2.0)
104
+ rubysl-getoptlong (~> 2.0)
105
+ rubysl-gserver (~> 2.0)
106
+ rubysl-io-console (~> 2.0)
107
+ rubysl-io-nonblock (~> 2.0)
108
+ rubysl-io-wait (~> 2.0)
109
+ rubysl-ipaddr (~> 2.0)
110
+ rubysl-irb (~> 2.1)
111
+ rubysl-logger (~> 2.0)
112
+ rubysl-mathn (~> 2.0)
113
+ rubysl-matrix (~> 2.0)
114
+ rubysl-mkmf (~> 2.0)
115
+ rubysl-monitor (~> 2.0)
116
+ rubysl-mutex_m (~> 2.0)
117
+ rubysl-net-ftp (~> 2.0)
118
+ rubysl-net-http (~> 2.0)
119
+ rubysl-net-imap (~> 2.0)
120
+ rubysl-net-pop (~> 2.0)
121
+ rubysl-net-protocol (~> 2.0)
122
+ rubysl-net-smtp (~> 2.0)
123
+ rubysl-net-telnet (~> 2.0)
124
+ rubysl-nkf (~> 2.0)
125
+ rubysl-observer (~> 2.0)
126
+ rubysl-open-uri (~> 2.0)
127
+ rubysl-open3 (~> 2.0)
128
+ rubysl-openssl (~> 2.0)
129
+ rubysl-optparse (~> 2.0)
130
+ rubysl-ostruct (~> 2.0)
131
+ rubysl-pathname (~> 2.0)
132
+ rubysl-prettyprint (~> 2.0)
133
+ rubysl-prime (~> 2.0)
134
+ rubysl-profile (~> 2.0)
135
+ rubysl-profiler (~> 2.0)
136
+ rubysl-pstore (~> 2.0)
137
+ rubysl-pty (~> 2.0)
138
+ rubysl-rational (~> 2.0)
139
+ rubysl-resolv (~> 2.0)
140
+ rubysl-rexml (~> 2.0)
141
+ rubysl-rinda (~> 2.0)
142
+ rubysl-rss (~> 2.0)
143
+ rubysl-scanf (~> 2.0)
144
+ rubysl-securerandom (~> 2.0)
145
+ rubysl-set (~> 2.0)
146
+ rubysl-shellwords (~> 2.0)
147
+ rubysl-singleton (~> 2.0)
148
+ rubysl-socket (~> 2.0)
149
+ rubysl-stringio (~> 2.0)
150
+ rubysl-strscan (~> 2.0)
151
+ rubysl-sync (~> 2.0)
152
+ rubysl-syslog (~> 2.0)
153
+ rubysl-tempfile (~> 2.0)
154
+ rubysl-thread (~> 2.0)
155
+ rubysl-thwait (~> 2.0)
156
+ rubysl-time (~> 2.0)
157
+ rubysl-timeout (~> 2.0)
158
+ rubysl-tmpdir (~> 2.0)
159
+ rubysl-tsort (~> 2.0)
160
+ rubysl-un (~> 2.0)
161
+ rubysl-uri (~> 2.0)
162
+ rubysl-weakref (~> 2.0)
163
+ rubysl-webrick (~> 2.0)
164
+ rubysl-xmlrpc (~> 2.0)
165
+ rubysl-yaml (~> 2.0)
166
+ rubysl-zlib (~> 2.0)
167
+ rubysl-abbrev (2.0.4)
168
+ rubysl-base64 (2.0.0)
169
+ rubysl-benchmark (2.0.1)
170
+ rubysl-bigdecimal (2.0.2)
171
+ rubysl-cgi (2.0.1)
172
+ rubysl-cgi-session (2.0.1)
173
+ rubysl-cmath (2.0.0)
174
+ rubysl-complex (2.0.0)
175
+ rubysl-continuation (2.0.0)
176
+ rubysl-coverage (2.0.3)
177
+ rubysl-csv (2.0.2)
178
+ rubysl-english (~> 2.0)
179
+ rubysl-curses (2.0.1)
180
+ rubysl-date (2.0.9)
181
+ rubysl-delegate (2.0.1)
182
+ rubysl-digest (2.0.8)
183
+ rubysl-drb (2.0.1)
184
+ rubysl-e2mmap (2.0.0)
185
+ rubysl-english (2.0.0)
186
+ rubysl-enumerator (2.0.0)
187
+ rubysl-erb (2.0.2)
188
+ rubysl-etc (2.0.3)
189
+ ffi2-generators (~> 0.1)
190
+ rubysl-expect (2.0.0)
191
+ rubysl-fcntl (2.0.4)
192
+ ffi2-generators (~> 0.1)
193
+ rubysl-fiber (2.0.0)
194
+ rubysl-fileutils (2.0.3)
195
+ rubysl-find (2.0.1)
196
+ rubysl-forwardable (2.0.1)
197
+ rubysl-getoptlong (2.0.0)
198
+ rubysl-gserver (2.0.0)
199
+ rubysl-socket (~> 2.0)
200
+ rubysl-thread (~> 2.0)
201
+ rubysl-io-console (2.0.0)
202
+ rubysl-io-nonblock (2.0.0)
203
+ rubysl-io-wait (2.0.0)
204
+ rubysl-ipaddr (2.0.0)
205
+ rubysl-irb (2.1.1)
206
+ rubysl-e2mmap (~> 2.0)
207
+ rubysl-mathn (~> 2.0)
208
+ rubysl-thread (~> 2.0)
209
+ rubysl-logger (2.1.0)
210
+ rubysl-mathn (2.0.0)
211
+ rubysl-matrix (2.1.0)
212
+ rubysl-e2mmap (~> 2.0)
213
+ rubysl-mkmf (2.0.1)
214
+ rubysl-fileutils (~> 2.0)
215
+ rubysl-shellwords (~> 2.0)
216
+ rubysl-monitor (2.0.0)
217
+ rubysl-mutex_m (2.0.0)
218
+ rubysl-net-ftp (2.0.1)
219
+ rubysl-net-http (2.0.4)
220
+ rubysl-cgi (~> 2.0)
221
+ rubysl-erb (~> 2.0)
222
+ rubysl-singleton (~> 2.0)
223
+ rubysl-net-imap (2.0.1)
224
+ rubysl-net-pop (2.0.1)
225
+ rubysl-net-protocol (2.0.1)
226
+ rubysl-net-smtp (2.0.1)
227
+ rubysl-net-telnet (2.0.0)
228
+ rubysl-nkf (2.0.1)
229
+ rubysl-observer (2.0.0)
230
+ rubysl-open-uri (2.0.0)
231
+ rubysl-open3 (2.0.0)
232
+ rubysl-openssl (2.3.0)
233
+ rubysl-optparse (2.0.1)
234
+ rubysl-shellwords (~> 2.0)
235
+ rubysl-ostruct (2.0.4)
236
+ rubysl-pathname (2.1.0)
237
+ rubysl-prettyprint (2.0.3)
238
+ rubysl-prime (2.0.1)
239
+ rubysl-profile (2.0.0)
240
+ rubysl-profiler (2.0.1)
241
+ rubysl-pstore (2.0.0)
242
+ rubysl-pty (2.0.3)
243
+ rubysl-rational (2.0.1)
244
+ rubysl-resolv (2.1.2)
245
+ rubysl-rexml (2.0.4)
246
+ rubysl-rinda (2.0.1)
247
+ rubysl-rss (2.0.0)
248
+ rubysl-scanf (2.0.0)
249
+ rubysl-securerandom (2.0.0)
250
+ rubysl-set (2.0.1)
251
+ rubysl-shellwords (2.0.0)
252
+ rubysl-singleton (2.0.0)
253
+ rubysl-socket (2.0.1)
254
+ rubysl-stringio (2.0.0)
255
+ rubysl-strscan (2.0.0)
256
+ rubysl-sync (2.0.0)
257
+ rubysl-syslog (2.1.0)
258
+ ffi2-generators (~> 0.1)
259
+ rubysl-tempfile (2.0.1)
260
+ rubysl-thread (2.0.3)
261
+ rubysl-thwait (2.0.0)
262
+ rubysl-time (2.0.3)
263
+ rubysl-timeout (2.0.0)
264
+ rubysl-tmpdir (2.0.1)
265
+ rubysl-tsort (2.0.1)
266
+ rubysl-un (2.0.0)
267
+ rubysl-fileutils (~> 2.0)
268
+ rubysl-optparse (~> 2.0)
269
+ rubysl-uri (2.0.0)
270
+ rubysl-weakref (2.0.0)
271
+ rubysl-webrick (2.0.0)
272
+ rubysl-xmlrpc (2.0.0)
273
+ rubysl-yaml (2.1.0)
274
+ rubysl-zlib (2.0.1)
275
+ sixarm_ruby_unaccent (1.2.0)
276
+ slop (3.6.0)
277
+ sort_alphabetical (1.1.0)
278
+ unicode_utils (>= 1.2.2)
279
+ thread_safe (0.3.6)
280
+ tzinfo (1.2.3)
281
+ thread_safe (~> 0.1)
282
+ unicode_utils (1.4.0)
283
+ wwtd (1.1.1)
284
+
285
+ PLATFORMS
286
+ ruby
287
+
288
+ DEPENDENCIES
289
+ actionpack (~> 5)
290
+ country_select!
291
+ pry (~> 0)
292
+ psych
293
+ racc
294
+ rake
295
+ rspec (~> 3)
296
+ rubysl (~> 2.0)
297
+ wwtd
298
+
299
+ BUNDLED WITH
300
+ 1.17.1