country_select 3.1.1 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +14 -26
  3. data/CHANGELOG.md +23 -1
  4. data/Gemfile +0 -6
  5. data/Gemfile.lock +63 -267
  6. data/README.md +31 -3
  7. data/Rakefile +3 -1
  8. data/country_select.gemspec +7 -9
  9. data/gemfiles/actionpack.edge.gemfile +0 -6
  10. data/gemfiles/actionpack.edge.gemfile.lock +63 -270
  11. data/gemfiles/actionpack5.2.gemfile +6 -0
  12. data/gemfiles/actionpack5.2.gemfile.lock +106 -0
  13. data/gemfiles/actionpack6.0.gemfile +6 -0
  14. data/gemfiles/actionpack6.0.gemfile.lock +108 -0
  15. data/gemfiles/actionpack6.1.gemfile +6 -0
  16. data/gemfiles/actionpack6.1.gemfile.lock +107 -0
  17. data/lib/country_select.rb +2 -6
  18. data/lib/country_select/defaults.rb +10 -0
  19. data/lib/country_select/formats.rb +3 -1
  20. data/lib/country_select/tag_helper.rb +7 -7
  21. data/lib/country_select/version.rb +1 -1
  22. data/lib/country_select_without_sort_alphabetical.rb +2 -6
  23. data/spec/country_select_spec.rb +43 -3
  24. metadata +27 -34
  25. data/gemfiles/actionpack3.2.gemfile +0 -11
  26. data/gemfiles/actionpack3.2.gemfile.lock +0 -300
  27. data/gemfiles/actionpack4.0.gemfile +0 -11
  28. data/gemfiles/actionpack4.0.gemfile.lock +0 -289
  29. data/gemfiles/actionpack4.1.gemfile +0 -11
  30. data/gemfiles/actionpack4.1.gemfile.lock +0 -293
  31. data/gemfiles/actionpack4.2.gemfile +0 -14
  32. data/gemfiles/actionpack4.2.gemfile.lock +0 -309
  33. data/gemfiles/actionpack5.0.gemfile +0 -12
  34. data/gemfiles/actionpack5.0.gemfile.lock +0 -314
  35. data/gemfiles/actionpack5.1.gemfile +0 -12
  36. data/gemfiles/actionpack5.1.gemfile.lock +0 -314
  37. data/lib/country_select/rails3/country_select_helper.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b802a86ebb12fc93ecedd4f2d76954057ae7e63d
4
- data.tar.gz: 47a93b79e3fc56a378076547501e211c56db2945
2
+ SHA256:
3
+ metadata.gz: 18cae0fad3906e7184ab1c457ae1b7d162b087f35e14f816a2e4fef4fab200ae
4
+ data.tar.gz: ed929514c9aef114176258c46dc50805774358bd2b393716939d183f8d26575d
5
5
  SHA512:
6
- metadata.gz: 7398753f73190c7e63f3acc849feab7062dfd7e3c67aa79b78f1c5a962114836106bf203222e2d58132d4aca86adb8c0694da6c06587b4fd65b104be3ab68fb9
7
- data.tar.gz: 8fbcaa15bba5707813232d5089efd788af4e5d0dcb433bcb379b1e663e626f255700970d1d6a00f7148aca8e9c661cc8766d99558af5afddc51733d08c266f8a
6
+ metadata.gz: 0b84fa702b6a06a80a8e5dc035c6fc17434ec2b33d0775d5d132f02ac4ee578d9b7a29d4a1482408b9d07ca4a034597715319c59c81a1391f0b1f6060699f1aa
7
+ data.tar.gz: c66b11dcb9b1574e66951e320b82a0ba5d8b580d82c18ecb2b4b0bae97a8a1072ab1d387b33b08846cafbf47fc6028e58ac1cd586ee5558b57ebf2f4a3828c6a
data/.travis.yml CHANGED
@@ -1,35 +1,23 @@
1
- sudo: false
1
+ os: linux
2
2
  cache: bundler
3
3
  language: ruby
4
- script: "bundle exec rspec"
4
+ bundler_args: ""
5
5
  rvm:
6
- - 2.0
7
- - 2.1
8
- - 2.2
9
- - 2.3
10
- - 2.4
6
+ - "2.5"
7
+ - "2.6"
8
+ - "2.7"
9
+ - "3.0"
11
10
  - ruby-head
12
11
  gemfile:
13
- - gemfiles/actionpack3.2.gemfile
14
- - gemfiles/actionpack4.0.gemfile
15
- - gemfiles/actionpack4.1.gemfile
16
- - gemfiles/actionpack4.2.gemfile
17
- - gemfiles/actionpack5.0.gemfile
18
- - gemfiles/actionpack5.1.gemfile
12
+ - gemfiles/actionpack5.2.gemfile
13
+ - gemfiles/actionpack6.0.gemfile
14
+ - gemfiles/actionpack6.1.gemfile
19
15
  - gemfiles/actionpack.edge.gemfile
20
- matrix:
21
- allow_failures:
22
- - rvm: ruby-head
16
+ jobs:
23
17
  exclude:
24
- - rvm: 2.0
18
+ - rvm: "2.5"
25
19
  gemfile: gemfiles/actionpack.edge.gemfile
26
- - rvm: 2.0
27
- gemfile: gemfiles/actionpack5.0.gemfile
28
- - rvm: 2.0
29
- gemfile: gemfiles/actionpack5.1.gemfile
30
- - rvm: 2.1
20
+ - rvm: "2.6"
31
21
  gemfile: gemfiles/actionpack.edge.gemfile
32
- - rvm: 2.1
33
- gemfile: gemfiles/actionpack5.0.gemfile
34
- - rvm: 2.1
35
- gemfile: gemfiles/actionpack5.1.gemfile
22
+ allow_failures:
23
+ - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -1,4 +1,26 @@
1
- ## 3.1.0 2017-07-18
1
+ ## 5.1.0 2021-05-18
2
+
3
+ * #184 - Add ability to configure defaults (@p-wall)
4
+ * Upgrade to countries 3.1.0
5
+
6
+ ## 5.0.1 2021-03-08
7
+
8
+ * #181 - Fix i18n fallback in country translations (@lavaturtle)
9
+
10
+ ## 5.0.0 2021-03-04
11
+
12
+ * #164,#172 - Remove support for EOL versions of Ruby and Ruby on Rails
13
+ * Ruby >= 2.5, Rails >= 5.2
14
+ * #175 - Add Rails 6.1 Support *(@andrehjr)
15
+ * #173 - Fallback even if translations cannot be loaded (@mikepluquin)
16
+ * #164 - Fixup travis build matrix (@olleolleolle)
17
+
18
+ ## 4.0.0 2018-12-20
19
+
20
+ * #160 - Upgrade to countries 3.0 - @gssbzn
21
+ * https://github.com/hexorx/countries/blob/master/CHANGELOG.md#v220-yanked-and-re-released-as-300-20181217-1020-0000
22
+
23
+ ## 3.1.1 2017-09-20
2
24
 
3
25
  * #146 - Fix value call on Rails edge (5.2+) - @ybart
4
26
 
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- platforms :rbx do
6
- gem 'racc'
7
- gem 'rubysl', '~> 2.0'
8
- gem 'psych'
9
- end
data/Gemfile.lock CHANGED
@@ -1,303 +1,99 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- country_select (3.1.1)
5
- countries (~> 2.0)
6
- sort_alphabetical (~> 1.0)
4
+ country_select (5.1.0)
5
+ countries (~> 3.0)
6
+ sort_alphabetical (~> 1.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (5.1.4)
12
- actionview (= 5.1.4)
13
- activesupport (= 5.1.4)
14
- rack (~> 2.0)
11
+ actionpack (6.1.3)
12
+ actionview (= 6.1.3)
13
+ activesupport (= 6.1.3)
14
+ rack (~> 2.0, >= 2.0.9)
15
15
  rack-test (>= 0.6.3)
16
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)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (6.1.3)
19
+ activesupport (= 6.1.3)
20
20
  builder (~> 3.1)
21
21
  erubi (~> 1.4)
22
22
  rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activesupport (5.1.4)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activesupport (6.1.3)
25
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 (2.1.2)
33
- i18n_data (~> 0.8.0)
34
- money (~> 6.9)
26
+ i18n (>= 1.6, < 2)
27
+ minitest (>= 5.1)
28
+ tzinfo (~> 2.0)
29
+ zeitwerk (~> 2.3)
30
+ builder (3.2.4)
31
+ coderay (1.1.3)
32
+ concurrent-ruby (1.1.8)
33
+ countries (3.1.0)
34
+ i18n_data (~> 0.11.0)
35
35
  sixarm_ruby_unaccent (~> 1.1)
36
36
  unicode_utils (~> 1.4)
37
- diff-lcs (1.2.5)
38
- erubi (1.6.1)
39
- ffi2-generators (0.1.1)
40
- i18n (0.8.6)
41
- i18n_data (0.8.0)
42
- loofah (2.0.3)
37
+ crass (1.0.6)
38
+ diff-lcs (1.4.4)
39
+ erubi (1.10.0)
40
+ i18n (1.8.9)
41
+ concurrent-ruby (~> 1.0)
42
+ i18n_data (0.11.0)
43
+ loofah (2.9.0)
44
+ crass (~> 1.0.2)
43
45
  nokogiri (>= 1.5.9)
44
- method_source (0.8.2)
45
- mini_portile2 (2.3.0)
46
- minitest (5.10.3)
47
- money (6.9.0)
48
- i18n (>= 0.6.4, < 0.9)
49
- nokogiri (1.8.1)
50
- mini_portile2 (~> 2.3.0)
51
- pry (0.10.1)
52
- coderay (~> 1.1.0)
53
- method_source (~> 0.8.1)
54
- slop (~> 3.4)
55
- psych (2.0.15)
56
- racc (1.4.12)
57
- rack (2.0.3)
58
- rack-test (0.7.0)
46
+ method_source (1.0.0)
47
+ mini_portile2 (2.5.0)
48
+ minitest (5.14.4)
49
+ nokogiri (1.11.1)
50
+ mini_portile2 (~> 2.5.0)
51
+ racc (~> 1.4)
52
+ pry (0.14.0)
53
+ coderay (~> 1.1)
54
+ method_source (~> 1.0)
55
+ racc (1.5.2)
56
+ rack (2.2.3)
57
+ rack-test (1.1.0)
59
58
  rack (>= 1.0, < 3)
60
59
  rails-dom-testing (2.0.3)
61
60
  activesupport (>= 4.2.0)
62
61
  nokogiri (>= 1.6)
63
- rails-html-sanitizer (1.0.3)
64
- loofah (~> 2.0)
65
- rake (10.4.2)
66
- rspec (3.3.0)
67
- rspec-core (~> 3.3.0)
68
- rspec-expectations (~> 3.3.0)
69
- rspec-mocks (~> 3.3.0)
70
- rspec-core (3.3.2)
71
- rspec-support (~> 3.3.0)
72
- rspec-expectations (3.3.1)
62
+ rails-html-sanitizer (1.3.0)
63
+ loofah (~> 2.3)
64
+ rake (13.0.3)
65
+ rspec (3.10.0)
66
+ rspec-core (~> 3.10.0)
67
+ rspec-expectations (~> 3.10.0)
68
+ rspec-mocks (~> 3.10.0)
69
+ rspec-core (3.10.1)
70
+ rspec-support (~> 3.10.0)
71
+ rspec-expectations (3.10.1)
73
72
  diff-lcs (>= 1.2.0, < 2.0)
74
- rspec-support (~> 3.3.0)
75
- rspec-mocks (3.3.2)
73
+ rspec-support (~> 3.10.0)
74
+ rspec-mocks (3.10.2)
76
75
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.3.0)
78
- rspec-support (3.3.0)
79
- rubysl (2.1.0)
80
- rubysl-abbrev (~> 2.0)
81
- rubysl-base64 (~> 2.0)
82
- rubysl-benchmark (~> 2.0)
83
- rubysl-bigdecimal (~> 2.0)
84
- rubysl-cgi (~> 2.0)
85
- rubysl-cgi-session (~> 2.0)
86
- rubysl-cmath (~> 2.0)
87
- rubysl-complex (~> 2.0)
88
- rubysl-continuation (~> 2.0)
89
- rubysl-coverage (~> 2.0)
90
- rubysl-csv (~> 2.0)
91
- rubysl-curses (~> 2.0)
92
- rubysl-date (~> 2.0)
93
- rubysl-delegate (~> 2.0)
94
- rubysl-digest (~> 2.0)
95
- rubysl-drb (~> 2.0)
96
- rubysl-e2mmap (~> 2.0)
97
- rubysl-english (~> 2.0)
98
- rubysl-enumerator (~> 2.0)
99
- rubysl-erb (~> 2.0)
100
- rubysl-etc (~> 2.0)
101
- rubysl-expect (~> 2.0)
102
- rubysl-fcntl (~> 2.0)
103
- rubysl-fiber (~> 2.0)
104
- rubysl-fileutils (~> 2.0)
105
- rubysl-find (~> 2.0)
106
- rubysl-forwardable (~> 2.0)
107
- rubysl-getoptlong (~> 2.0)
108
- rubysl-gserver (~> 2.0)
109
- rubysl-io-console (~> 2.0)
110
- rubysl-io-nonblock (~> 2.0)
111
- rubysl-io-wait (~> 2.0)
112
- rubysl-ipaddr (~> 2.0)
113
- rubysl-irb (~> 2.1)
114
- rubysl-logger (~> 2.0)
115
- rubysl-mathn (~> 2.0)
116
- rubysl-matrix (~> 2.0)
117
- rubysl-mkmf (~> 2.0)
118
- rubysl-monitor (~> 2.0)
119
- rubysl-mutex_m (~> 2.0)
120
- rubysl-net-ftp (~> 2.0)
121
- rubysl-net-http (~> 2.0)
122
- rubysl-net-imap (~> 2.0)
123
- rubysl-net-pop (~> 2.0)
124
- rubysl-net-protocol (~> 2.0)
125
- rubysl-net-smtp (~> 2.0)
126
- rubysl-net-telnet (~> 2.0)
127
- rubysl-nkf (~> 2.0)
128
- rubysl-observer (~> 2.0)
129
- rubysl-open-uri (~> 2.0)
130
- rubysl-open3 (~> 2.0)
131
- rubysl-openssl (~> 2.0)
132
- rubysl-optparse (~> 2.0)
133
- rubysl-ostruct (~> 2.0)
134
- rubysl-pathname (~> 2.0)
135
- rubysl-prettyprint (~> 2.0)
136
- rubysl-prime (~> 2.0)
137
- rubysl-profile (~> 2.0)
138
- rubysl-profiler (~> 2.0)
139
- rubysl-pstore (~> 2.0)
140
- rubysl-pty (~> 2.0)
141
- rubysl-rational (~> 2.0)
142
- rubysl-resolv (~> 2.0)
143
- rubysl-rexml (~> 2.0)
144
- rubysl-rinda (~> 2.0)
145
- rubysl-rss (~> 2.0)
146
- rubysl-scanf (~> 2.0)
147
- rubysl-securerandom (~> 2.0)
148
- rubysl-set (~> 2.0)
149
- rubysl-shellwords (~> 2.0)
150
- rubysl-singleton (~> 2.0)
151
- rubysl-socket (~> 2.0)
152
- rubysl-stringio (~> 2.0)
153
- rubysl-strscan (~> 2.0)
154
- rubysl-sync (~> 2.0)
155
- rubysl-syslog (~> 2.0)
156
- rubysl-tempfile (~> 2.0)
157
- rubysl-thread (~> 2.0)
158
- rubysl-thwait (~> 2.0)
159
- rubysl-time (~> 2.0)
160
- rubysl-timeout (~> 2.0)
161
- rubysl-tmpdir (~> 2.0)
162
- rubysl-tsort (~> 2.0)
163
- rubysl-un (~> 2.0)
164
- rubysl-uri (~> 2.0)
165
- rubysl-weakref (~> 2.0)
166
- rubysl-webrick (~> 2.0)
167
- rubysl-xmlrpc (~> 2.0)
168
- rubysl-yaml (~> 2.0)
169
- rubysl-zlib (~> 2.0)
170
- rubysl-abbrev (2.0.4)
171
- rubysl-base64 (2.0.0)
172
- rubysl-benchmark (2.0.1)
173
- rubysl-bigdecimal (2.0.2)
174
- rubysl-cgi (2.0.1)
175
- rubysl-cgi-session (2.0.1)
176
- rubysl-cmath (2.0.0)
177
- rubysl-complex (2.0.0)
178
- rubysl-continuation (2.0.0)
179
- rubysl-coverage (2.0.3)
180
- rubysl-csv (2.0.2)
181
- rubysl-english (~> 2.0)
182
- rubysl-curses (2.0.1)
183
- rubysl-date (2.0.9)
184
- rubysl-delegate (2.0.1)
185
- rubysl-digest (2.0.8)
186
- rubysl-drb (2.0.1)
187
- rubysl-e2mmap (2.0.0)
188
- rubysl-english (2.0.0)
189
- rubysl-enumerator (2.0.0)
190
- rubysl-erb (2.0.2)
191
- rubysl-etc (2.0.3)
192
- ffi2-generators (~> 0.1)
193
- rubysl-expect (2.0.0)
194
- rubysl-fcntl (2.0.4)
195
- ffi2-generators (~> 0.1)
196
- rubysl-fiber (2.0.0)
197
- rubysl-fileutils (2.0.3)
198
- rubysl-find (2.0.1)
199
- rubysl-forwardable (2.0.1)
200
- rubysl-getoptlong (2.0.0)
201
- rubysl-gserver (2.0.0)
202
- rubysl-socket (~> 2.0)
203
- rubysl-thread (~> 2.0)
204
- rubysl-io-console (2.0.0)
205
- rubysl-io-nonblock (2.0.0)
206
- rubysl-io-wait (2.0.0)
207
- rubysl-ipaddr (2.0.0)
208
- rubysl-irb (2.1.1)
209
- rubysl-e2mmap (~> 2.0)
210
- rubysl-mathn (~> 2.0)
211
- rubysl-thread (~> 2.0)
212
- rubysl-logger (2.1.0)
213
- rubysl-mathn (2.0.0)
214
- rubysl-matrix (2.1.0)
215
- rubysl-e2mmap (~> 2.0)
216
- rubysl-mkmf (2.0.1)
217
- rubysl-fileutils (~> 2.0)
218
- rubysl-shellwords (~> 2.0)
219
- rubysl-monitor (2.0.0)
220
- rubysl-mutex_m (2.0.0)
221
- rubysl-net-ftp (2.0.1)
222
- rubysl-net-http (2.0.4)
223
- rubysl-cgi (~> 2.0)
224
- rubysl-erb (~> 2.0)
225
- rubysl-singleton (~> 2.0)
226
- rubysl-net-imap (2.0.1)
227
- rubysl-net-pop (2.0.1)
228
- rubysl-net-protocol (2.0.1)
229
- rubysl-net-smtp (2.0.1)
230
- rubysl-net-telnet (2.0.0)
231
- rubysl-nkf (2.0.1)
232
- rubysl-observer (2.0.0)
233
- rubysl-open-uri (2.0.0)
234
- rubysl-open3 (2.0.0)
235
- rubysl-openssl (2.3.0)
236
- rubysl-optparse (2.0.1)
237
- rubysl-shellwords (~> 2.0)
238
- rubysl-ostruct (2.0.4)
239
- rubysl-pathname (2.1.0)
240
- rubysl-prettyprint (2.0.3)
241
- rubysl-prime (2.0.1)
242
- rubysl-profile (2.0.0)
243
- rubysl-profiler (2.0.1)
244
- rubysl-pstore (2.0.0)
245
- rubysl-pty (2.0.3)
246
- rubysl-rational (2.0.1)
247
- rubysl-resolv (2.1.2)
248
- rubysl-rexml (2.0.4)
249
- rubysl-rinda (2.0.1)
250
- rubysl-rss (2.0.0)
251
- rubysl-scanf (2.0.0)
252
- rubysl-securerandom (2.0.0)
253
- rubysl-set (2.0.1)
254
- rubysl-shellwords (2.0.0)
255
- rubysl-singleton (2.0.0)
256
- rubysl-socket (2.0.1)
257
- rubysl-stringio (2.0.0)
258
- rubysl-strscan (2.0.0)
259
- rubysl-sync (2.0.0)
260
- rubysl-syslog (2.1.0)
261
- ffi2-generators (~> 0.1)
262
- rubysl-tempfile (2.0.1)
263
- rubysl-thread (2.0.3)
264
- rubysl-thwait (2.0.0)
265
- rubysl-time (2.0.3)
266
- rubysl-timeout (2.0.0)
267
- rubysl-tmpdir (2.0.1)
268
- rubysl-tsort (2.0.1)
269
- rubysl-un (2.0.0)
270
- rubysl-fileutils (~> 2.0)
271
- rubysl-optparse (~> 2.0)
272
- rubysl-uri (2.0.0)
273
- rubysl-weakref (2.0.0)
274
- rubysl-webrick (2.0.0)
275
- rubysl-xmlrpc (2.0.0)
276
- rubysl-yaml (2.1.0)
277
- rubysl-zlib (2.0.1)
76
+ rspec-support (~> 3.10.0)
77
+ rspec-support (3.10.2)
278
78
  sixarm_ruby_unaccent (1.2.0)
279
- slop (3.6.0)
280
79
  sort_alphabetical (1.1.0)
281
80
  unicode_utils (>= 1.2.2)
282
- thread_safe (0.3.6)
283
- tzinfo (1.2.3)
284
- thread_safe (~> 0.1)
81
+ tzinfo (2.0.4)
82
+ concurrent-ruby (~> 1.0)
285
83
  unicode_utils (1.4.0)
286
- wwtd (1.1.1)
84
+ wwtd (1.4.1)
85
+ zeitwerk (2.4.2)
287
86
 
288
87
  PLATFORMS
289
88
  ruby
290
89
 
291
90
  DEPENDENCIES
292
- actionpack (~> 5)
91
+ actionpack (~> 6.1)
293
92
  country_select!
294
93
  pry (~> 0)
295
- psych
296
- racc
297
- rake
94
+ rake (~> 13)
298
95
  rspec (~> 3)
299
- rubysl (~> 2.0)
300
- wwtd
96
+ wwtd (~> 1)
301
97
 
302
98
  BUNDLED WITH
303
- 1.15.4
99
+ 2.2.13