country_select 3.0.0 → 3.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 025e605430365a2ed7487f33c32d38369133b215
4
- data.tar.gz: f368ff7295998c59f96837685163c05776263d83
3
+ metadata.gz: 5a0b49887be335ea4a50f736e7768d267adb0851
4
+ data.tar.gz: 13db26a37a192cb6a31a557f28fa7daf4811a8d7
5
5
  SHA512:
6
- metadata.gz: 80c11a66e83d8ae22df1d81cc9e25ba6108814e394aba2c5d10ead28cbd32f837cdfa8a6c49735a2100d1a6c036bbd74e5595451b0d145234b01e046c36a00a9
7
- data.tar.gz: c3dfea28c3c2c17b75d3c77ad7ad9f02335d946bb4c184f2f789f3425cee04de9c461e17f736d6d6832981587ace7aa68b40e1c2b7cbe8bb42b7fe6a62f9c75e
6
+ metadata.gz: b572d405c2601801b0e57c9e76beffb8fdbbbe8b2a2acc0bddbc241c5c3d4d2d0e4626aa7ed429b683404498894b3d7949112d27656898f9b09b351ac6ccb702
7
+ data.tar.gz: 390fffb2d462fa8b18620ed6b52d01329abdf411484f45bd7e6ec9d9f8618ae7cbab0345c0f009daf67c0f6c78abfd207761b9814c4633f383ac80bf201f76f6
@@ -5,10 +5,9 @@ script: "bundle exec rspec"
5
5
  rvm:
6
6
  - 2.0.0
7
7
  - 2.1.10
8
- - 2.2.6
9
- - 2.3.2
10
- - jruby-head
11
- - rbx-2
8
+ - 2.2.7
9
+ - 2.3.4
10
+ - 2.4.1
12
11
  - ruby-head
13
12
  gemfile:
14
13
  - gemfiles/actionpack3.2.gemfile
@@ -16,22 +15,21 @@ gemfile:
16
15
  - gemfiles/actionpack4.1.gemfile
17
16
  - gemfiles/actionpack4.2.gemfile
18
17
  - gemfiles/actionpack5.0.gemfile
18
+ - gemfiles/actionpack5.1.gemfile
19
19
  - gemfiles/actionpack.edge.gemfile
20
20
  matrix:
21
21
  allow_failures:
22
22
  - rvm: ruby-head
23
- - rvm: jruby-head
24
- - rvm: rbx-2
25
23
  exclude:
26
24
  - rvm: 2.0.0
27
25
  gemfile: gemfiles/actionpack.edge.gemfile
28
26
  - rvm: 2.0.0
29
27
  gemfile: gemfiles/actionpack5.0.gemfile
28
+ - rvm: 2.0.0
29
+ gemfile: gemfiles/actionpack5.1.gemfile
30
30
  - rvm: 2.1.10
31
31
  gemfile: gemfiles/actionpack.edge.gemfile
32
32
  - rvm: 2.1.10
33
33
  gemfile: gemfiles/actionpack5.0.gemfile
34
- - rvm: rbx-2
35
- gemfile: gemfiles/actionpack.edge.gemfile
36
- - rvm: rbx-2
37
- gemfile: gemfiles/actionpack5.0.gemfile
34
+ - rvm: 2.1.10
35
+ gemfile: gemfiles/actionpack5.1.gemfile
@@ -1,4 +1,8 @@
1
- ## 3.0.0
1
+ ## 3.1.0 2017-07-18
2
+
3
+ * #144 - Provide a possibility to opt out of `sort_alphabetical` - @fschwahn
4
+
5
+ ## 3.0.0 2016-11-25
2
6
 
3
7
  * #138 - Upgrade to Countries 2.0
4
8
  * #136 - Drop support for Ruby 1.9.3 as countries 2.0 no longer supports it
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- country_select (3.0.0.alpha1)
4
+ country_select (3.0.0)
5
5
  countries (~> 2.0)
6
6
  sort_alphabetical (~> 1.0)
7
7
 
@@ -26,9 +26,10 @@ GEM
26
26
  multi_json (~> 1.0)
27
27
  builder (3.0.4)
28
28
  coderay (1.1.0)
29
- countries (2.0.2)
29
+ countries (2.0.8)
30
30
  i18n_data (~> 0.7.0)
31
31
  money (~> 6.7)
32
+ sixarm_ruby_unaccent (~> 1.1)
32
33
  unicode_utils (~> 1.4)
33
34
  diff-lcs (1.2.5)
34
35
  erubis (2.7.0)
@@ -38,9 +39,8 @@ GEM
38
39
  i18n_data (0.7.0)
39
40
  journey (1.0.4)
40
41
  method_source (0.8.2)
41
- money (6.7.1)
42
- i18n (>= 0.6.4, <= 0.7.0)
43
- sixarm_ruby_unaccent (>= 1.1.1, < 2)
42
+ money (6.9.0)
43
+ i18n (>= 0.6.4, < 0.9)
44
44
  multi_json (1.11.2)
45
45
  pry (0.10.1)
46
46
  coderay (~> 1.1.0)
@@ -294,4 +294,4 @@ DEPENDENCIES
294
294
  wwtd
295
295
 
296
296
  BUNDLED WITH
297
- 1.13.6
297
+ 1.14.4
data/README.md CHANGED
@@ -29,8 +29,22 @@ Or put the following in your Gemfile
29
29
  gem 'country_select'
30
30
  ```
31
31
 
32
+ If you don't want to require `sort_alphabetical` (it depends on `unicode_utils` which is known to use lots of memory) you can opt out of using it as follows:
33
+
34
+ ```ruby
35
+ gem 'country_select', require: 'country_select_without_sort_alphabetical'
36
+ ```
37
+
32
38
  ## Usage
33
39
 
40
+ Within `form_for` you can use this select like other form elements:
41
+
42
+ ```ruby
43
+ <%= form_for User.new, url: root_url do |f| %>
44
+ <%= f.country_select :country_code %>
45
+ <% end %>
46
+ ```
47
+
34
48
  Simple use supplying model and attribute as parameters:
35
49
 
36
50
  ```ruby
@@ -1,86 +1,86 @@
1
1
  GIT
2
2
  remote: https://github.com/rails/rails.git
3
- revision: bce3d1f8c01a125ef56d82967cb23daa258bb58d
3
+ revision: f4d52eee07954c510a8318176d6d11100afabf7b
4
4
  specs:
5
- actionpack (5.1.0.alpha)
6
- actionview (= 5.1.0.alpha)
7
- activesupport (= 5.1.0.alpha)
5
+ actionpack (5.2.0.alpha)
6
+ actionview (= 5.2.0.alpha)
7
+ activesupport (= 5.2.0.alpha)
8
8
  rack (~> 2.0)
9
9
  rack-test (~> 0.6.3)
10
10
  rails-dom-testing (~> 2.0)
11
11
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
12
- actionview (5.1.0.alpha)
13
- activesupport (= 5.1.0.alpha)
12
+ actionview (5.2.0.alpha)
13
+ activesupport (= 5.2.0.alpha)
14
14
  builder (~> 3.1)
15
- erubis (~> 2.7.0)
15
+ erubi (~> 1.4)
16
16
  rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- activesupport (5.1.0.alpha)
17
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
18
+ activesupport (5.2.0.alpha)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
20
  i18n (~> 0.7)
21
21
  minitest (~> 5.1)
22
22
  tzinfo (~> 1.1)
23
23
 
24
24
  PATH
25
- remote: ../
25
+ remote: ..
26
26
  specs:
27
- country_select (3.0.0.alpha1)
27
+ country_select (3.0.0)
28
28
  countries (~> 2.0)
29
29
  sort_alphabetical (~> 1.0)
30
30
 
31
31
  GEM
32
32
  remote: https://rubygems.org/
33
33
  specs:
34
- builder (3.2.2)
34
+ builder (3.2.3)
35
35
  coderay (1.1.1)
36
- concurrent-ruby (1.0.2)
37
- countries (2.0.1)
36
+ concurrent-ruby (1.0.5)
37
+ countries (2.0.8)
38
38
  i18n_data (~> 0.7.0)
39
- money (~> 6.0)
39
+ money (~> 6.7)
40
+ sixarm_ruby_unaccent (~> 1.1)
40
41
  unicode_utils (~> 1.4)
41
- diff-lcs (1.2.5)
42
- erubis (2.7.0)
42
+ diff-lcs (1.3)
43
+ erubi (1.6.1)
43
44
  ffi2-generators (0.1.1)
44
- i18n (0.7.0)
45
+ i18n (0.8.6)
45
46
  i18n_data (0.7.0)
46
47
  loofah (2.0.3)
47
48
  nokogiri (>= 1.5.9)
48
49
  method_source (0.8.2)
49
- mini_portile2 (2.1.0)
50
- minitest (5.9.1)
51
- money (6.7.1)
52
- i18n (>= 0.6.4, <= 0.7.0)
53
- sixarm_ruby_unaccent (>= 1.1.1, < 2)
54
- nokogiri (1.6.8.1)
55
- mini_portile2 (~> 2.1.0)
50
+ mini_portile2 (2.2.0)
51
+ minitest (5.10.2)
52
+ money (6.9.0)
53
+ i18n (>= 0.6.4, < 0.9)
54
+ nokogiri (1.8.0)
55
+ mini_portile2 (~> 2.2.0)
56
56
  pry (0.10.4)
57
57
  coderay (~> 1.1.0)
58
58
  method_source (~> 0.8.1)
59
59
  slop (~> 3.4)
60
- psych (2.2.0)
60
+ psych (2.2.4)
61
61
  racc (1.4.14)
62
- rack (2.0.1)
62
+ rack (2.0.3)
63
63
  rack-test (0.6.3)
64
64
  rack (>= 1.0)
65
- rails-dom-testing (2.0.1)
66
- activesupport (>= 4.2.0, < 6.0)
67
- nokogiri (~> 1.6.0)
65
+ rails-dom-testing (2.0.3)
66
+ activesupport (>= 4.2.0)
67
+ nokogiri (>= 1.6)
68
68
  rails-html-sanitizer (1.0.3)
69
69
  loofah (~> 2.0)
70
- rake (11.3.0)
71
- rspec (3.5.0)
72
- rspec-core (~> 3.5.0)
73
- rspec-expectations (~> 3.5.0)
74
- rspec-mocks (~> 3.5.0)
75
- rspec-core (3.5.4)
76
- rspec-support (~> 3.5.0)
77
- rspec-expectations (3.5.0)
70
+ rake (12.0.0)
71
+ rspec (3.6.0)
72
+ rspec-core (~> 3.6.0)
73
+ rspec-expectations (~> 3.6.0)
74
+ rspec-mocks (~> 3.6.0)
75
+ rspec-core (3.6.0)
76
+ rspec-support (~> 3.6.0)
77
+ rspec-expectations (3.6.0)
78
78
  diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.5.0)
80
- rspec-mocks (3.5.0)
79
+ rspec-support (~> 3.6.0)
80
+ rspec-mocks (3.6.0)
81
81
  diff-lcs (>= 1.2.0, < 2.0)
82
- rspec-support (~> 3.5.0)
83
- rspec-support (3.5.0)
82
+ rspec-support (~> 3.6.0)
83
+ rspec-support (3.6.0)
84
84
  rubysl (2.2.0)
85
85
  rubysl-abbrev (~> 2.0)
86
86
  rubysl-base64 (~> 2.0)
@@ -259,7 +259,7 @@ GEM
259
259
  rubysl-set (2.0.1)
260
260
  rubysl-shellwords (2.0.0)
261
261
  rubysl-singleton (2.0.0)
262
- rubysl-socket (2.2)
262
+ rubysl-socket (2.2.1)
263
263
  rubysl-fcntl (~> 2.0)
264
264
  rubysl-stringio (2.1.0)
265
265
  rubysl-strscan (2.0.0)
@@ -283,12 +283,12 @@ GEM
283
283
  rubysl-xmlrpc (2.0.0)
284
284
  rubysl-yaml (2.1.0)
285
285
  rubysl-zlib (2.0.1)
286
- sixarm_ruby_unaccent (1.1.1)
286
+ sixarm_ruby_unaccent (1.1.2)
287
287
  slop (3.6.0)
288
- sort_alphabetical (1.0.2)
288
+ sort_alphabetical (1.1.0)
289
289
  unicode_utils (>= 1.2.2)
290
- thread_safe (0.3.5)
291
- tzinfo (1.2.2)
290
+ thread_safe (0.3.6)
291
+ tzinfo (1.2.3)
292
292
  thread_safe (~> 0.1)
293
293
  unicode_utils (1.4.0)
294
294
  wwtd (1.3.0)
@@ -310,4 +310,4 @@ DEPENDENCIES
310
310
  wwtd
311
311
 
312
312
  BUNDLED WITH
313
- 1.13.6
313
+ 1.15.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- country_select (3.0.0.alpha1)
4
+ country_select (3.0.0)
5
5
  countries (~> 2.0)
6
6
  sort_alphabetical (~> 1.0)
7
7
 
@@ -26,47 +26,47 @@ GEM
26
26
  multi_json (~> 1.0)
27
27
  builder (3.0.4)
28
28
  coderay (1.1.1)
29
- countries (2.0.1)
29
+ countries (2.0.8)
30
30
  i18n_data (~> 0.7.0)
31
- money (~> 6.0)
31
+ money (~> 6.7)
32
+ sixarm_ruby_unaccent (~> 1.1)
32
33
  unicode_utils (~> 1.4)
33
- diff-lcs (1.2.5)
34
+ diff-lcs (1.3)
34
35
  erubis (2.7.0)
35
36
  ffi2-generators (0.1.1)
36
37
  hike (1.2.3)
37
- i18n (0.7.0)
38
+ i18n (0.8.6)
38
39
  i18n_data (0.7.0)
39
40
  journey (1.0.4)
40
41
  method_source (0.8.2)
41
- money (6.7.1)
42
- i18n (>= 0.6.4, <= 0.7.0)
43
- sixarm_ruby_unaccent (>= 1.1.1, < 2)
42
+ money (6.9.0)
43
+ i18n (>= 0.6.4, < 0.9)
44
44
  multi_json (1.12.1)
45
45
  pry (0.10.4)
46
46
  coderay (~> 1.1.0)
47
47
  method_source (~> 0.8.1)
48
48
  slop (~> 3.4)
49
- psych (2.2.0)
49
+ psych (2.2.4)
50
50
  racc (1.4.14)
51
51
  rack (1.4.7)
52
- rack-cache (1.6.1)
52
+ rack-cache (1.7.0)
53
53
  rack (>= 0.4)
54
54
  rack-test (0.6.3)
55
55
  rack (>= 1.0)
56
- rake (11.3.0)
57
- rspec (3.5.0)
58
- rspec-core (~> 3.5.0)
59
- rspec-expectations (~> 3.5.0)
60
- rspec-mocks (~> 3.5.0)
61
- rspec-core (3.5.4)
62
- rspec-support (~> 3.5.0)
63
- rspec-expectations (3.5.0)
56
+ rake (12.0.0)
57
+ rspec (3.6.0)
58
+ rspec-core (~> 3.6.0)
59
+ rspec-expectations (~> 3.6.0)
60
+ rspec-mocks (~> 3.6.0)
61
+ rspec-core (3.6.0)
62
+ rspec-support (~> 3.6.0)
63
+ rspec-expectations (3.6.0)
64
64
  diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.5.0)
66
- rspec-mocks (3.5.0)
65
+ rspec-support (~> 3.6.0)
66
+ rspec-mocks (3.6.0)
67
67
  diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.5.0)
69
- rspec-support (3.5.0)
68
+ rspec-support (~> 3.6.0)
69
+ rspec-support (3.6.0)
70
70
  rubysl (2.2.0)
71
71
  rubysl-abbrev (~> 2.0)
72
72
  rubysl-base64 (~> 2.0)
@@ -245,7 +245,7 @@ GEM
245
245
  rubysl-set (2.0.1)
246
246
  rubysl-shellwords (2.0.0)
247
247
  rubysl-singleton (2.0.0)
248
- rubysl-socket (2.2)
248
+ rubysl-socket (2.2.1)
249
249
  rubysl-fcntl (~> 2.0)
250
250
  rubysl-stringio (2.1.0)
251
251
  rubysl-strscan (2.0.0)
@@ -269,9 +269,9 @@ GEM
269
269
  rubysl-xmlrpc (2.0.0)
270
270
  rubysl-yaml (2.1.0)
271
271
  rubysl-zlib (2.0.1)
272
- sixarm_ruby_unaccent (1.1.1)
272
+ sixarm_ruby_unaccent (1.1.2)
273
273
  slop (3.6.0)
274
- sort_alphabetical (1.0.2)
274
+ sort_alphabetical (1.1.0)
275
275
  unicode_utils (>= 1.2.2)
276
276
  sprockets (2.2.3)
277
277
  hike (~> 1.2)
@@ -297,4 +297,4 @@ DEPENDENCIES
297
297
  wwtd
298
298
 
299
299
  BUNDLED WITH
300
- 1.13.6
300
+ 1.15.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
- country_select (3.0.0.alpha1)
4
+ country_select (3.0.0)
5
5
  countries (~> 2.0)
6
6
  sort_alphabetical (~> 1.0)
7
7
 
@@ -22,44 +22,44 @@ GEM
22
22
  tzinfo (~> 0.3.37)
23
23
  builder (3.1.4)
24
24
  coderay (1.1.1)
25
- countries (2.0.1)
25
+ countries (2.0.8)
26
26
  i18n_data (~> 0.7.0)
27
- money (~> 6.0)
27
+ money (~> 6.7)
28
+ sixarm_ruby_unaccent (~> 1.1)
28
29
  unicode_utils (~> 1.4)
29
- diff-lcs (1.2.5)
30
+ diff-lcs (1.3)
30
31
  erubis (2.7.0)
31
32
  ffi2-generators (0.1.1)
32
- i18n (0.7.0)
33
+ i18n (0.8.6)
33
34
  i18n_data (0.7.0)
34
35
  method_source (0.8.2)
35
36
  minitest (4.7.5)
36
- money (6.7.1)
37
- i18n (>= 0.6.4, <= 0.7.0)
38
- sixarm_ruby_unaccent (>= 1.1.1, < 2)
37
+ money (6.9.0)
38
+ i18n (>= 0.6.4, < 0.9)
39
39
  multi_json (1.12.1)
40
40
  pry (0.10.4)
41
41
  coderay (~> 1.1.0)
42
42
  method_source (~> 0.8.1)
43
43
  slop (~> 3.4)
44
- psych (2.2.0)
44
+ psych (2.2.4)
45
45
  racc (1.4.14)
46
46
  rack (1.5.5)
47
47
  rack-test (0.6.3)
48
48
  rack (>= 1.0)
49
- rake (11.3.0)
50
- rspec (3.5.0)
51
- rspec-core (~> 3.5.0)
52
- rspec-expectations (~> 3.5.0)
53
- rspec-mocks (~> 3.5.0)
54
- rspec-core (3.5.4)
55
- rspec-support (~> 3.5.0)
56
- rspec-expectations (3.5.0)
49
+ rake (12.0.0)
50
+ rspec (3.6.0)
51
+ rspec-core (~> 3.6.0)
52
+ rspec-expectations (~> 3.6.0)
53
+ rspec-mocks (~> 3.6.0)
54
+ rspec-core (3.6.0)
55
+ rspec-support (~> 3.6.0)
56
+ rspec-expectations (3.6.0)
57
57
  diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.5.0)
59
- rspec-mocks (3.5.0)
58
+ rspec-support (~> 3.6.0)
59
+ rspec-mocks (3.6.0)
60
60
  diff-lcs (>= 1.2.0, < 2.0)
61
- rspec-support (~> 3.5.0)
62
- rspec-support (3.5.0)
61
+ rspec-support (~> 3.6.0)
62
+ rspec-support (3.6.0)
63
63
  rubysl (2.2.0)
64
64
  rubysl-abbrev (~> 2.0)
65
65
  rubysl-base64 (~> 2.0)
@@ -238,7 +238,7 @@ GEM
238
238
  rubysl-set (2.0.1)
239
239
  rubysl-shellwords (2.0.0)
240
240
  rubysl-singleton (2.0.0)
241
- rubysl-socket (2.2)
241
+ rubysl-socket (2.2.1)
242
242
  rubysl-fcntl (~> 2.0)
243
243
  rubysl-stringio (2.1.0)
244
244
  rubysl-strscan (2.0.0)
@@ -262,12 +262,12 @@ GEM
262
262
  rubysl-xmlrpc (2.0.0)
263
263
  rubysl-yaml (2.1.0)
264
264
  rubysl-zlib (2.0.1)
265
- sixarm_ruby_unaccent (1.1.1)
265
+ sixarm_ruby_unaccent (1.1.2)
266
266
  slop (3.6.0)
267
- sort_alphabetical (1.0.2)
267
+ sort_alphabetical (1.1.0)
268
268
  unicode_utils (>= 1.2.2)
269
- thread_safe (0.3.5)
270
- tzinfo (0.3.52)
269
+ thread_safe (0.3.6)
270
+ tzinfo (0.3.53)
271
271
  unicode_utils (1.4.0)
272
272
  wwtd (1.3.0)
273
273
 
@@ -286,4 +286,4 @@ DEPENDENCIES
286
286
  wwtd
287
287
 
288
288
  BUNDLED WITH
289
- 1.13.6
289
+ 1.15.1