country_select 8.0.2 → 8.0.3

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
  SHA256:
3
- metadata.gz: b0ab413cfc742ffce2e82b682f27a55857426b0ddfa7f3c8aa8b5d1ffb1714a7
4
- data.tar.gz: 42cf3f9594fd3c9a1dc60856c9374937f9903e9f515348e7bf53952c84d1128f
3
+ metadata.gz: c801f19e2389f6c0fd8d88b666bc31b382e5b7321033b94de1378df8c020726b
4
+ data.tar.gz: 92d3b1031fb53cd0ae189e84391553436281680aaceaffd8540192d629ad5940
5
5
  SHA512:
6
- metadata.gz: 6eb1c29bef6dd596bbc38233cf41472293c49027fc9b226b70895e26c8aed0af5d055d9ad4af4ed51cda6c186b47f129327dabb3cefb57b191ddaf7116f58ce1
7
- data.tar.gz: 87f2779bd161ca535964364f75afe4eb1ddd064e18628e9901ba01dfaf6a28893de2c7944dfb69ff8e77cc1b3e8f59b60bead3e678999909ed26d21e79620b8d
6
+ metadata.gz: 6a8ff3e9f846e6b2081e925f4edac27409eeb9c62918bb6dec07a0a39540ec5f501792da09299d8de3d340118ae227c8d09c408da04ee92dd489a72f76ea73c5
7
+ data.tar.gz: 9f56a57c00a86df1e5d38fc98b269764c6c7938951a77481dac5edfe57c09f9011fb386d5501296556f6d45ede72272199c70ec6140a2e9c5fa6a9f7e1127015
@@ -16,8 +16,8 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [2.7, '3.0', 3.1, 3.2]
20
- gemfile: [5.2, '6.0', 6.1, '7.0', 7.1]
19
+ ruby: ['3.0', 3.1, 3.2]
20
+ gemfile: [6.1, '7.0', 7.1]
21
21
  env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
22
22
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/actionpack-${{ matrix.gemfile }}.gemfile
23
23
  CC_TEST_REPORTER_ID: 0d09e6611c01dedd75511b1c60f62329d01729289e06375cfe67cefe67013d9f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 8.0.3 2023-10-07
2
+
3
+ * Fix when country name is nil. (@zerobearing2)
4
+
1
5
  ## 8.0.2 2023-08-01
2
6
 
3
7
  * Code cleanup (@pmor)
data/Gemfile.lock CHANGED
@@ -1,38 +1,50 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- country_select (8.0.1)
4
+ country_select (8.0.3)
5
5
  countries (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (7.0.6)
11
- actionview (= 7.0.6)
12
- activesupport (= 7.0.6)
13
- rack (~> 2.0, >= 2.2.4)
10
+ actionpack (7.1.0)
11
+ actionview (= 7.1.0)
12
+ activesupport (= 7.1.0)
13
+ nokogiri (>= 1.8.5)
14
+ rack (>= 2.2.4)
15
+ rack-session (>= 1.0.1)
14
16
  rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (7.0.6)
18
- activesupport (= 7.0.6)
17
+ rails-dom-testing (~> 2.2)
18
+ rails-html-sanitizer (~> 1.6)
19
+ actionview (7.1.0)
20
+ activesupport (= 7.1.0)
19
21
  builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (7.0.6)
22
+ erubi (~> 1.11)
23
+ rails-dom-testing (~> 2.2)
24
+ rails-html-sanitizer (~> 1.6)
25
+ activesupport (7.1.0)
26
+ base64
27
+ bigdecimal
24
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
+ connection_pool (>= 2.2.5)
30
+ drb
25
31
  i18n (>= 1.6, < 2)
26
32
  minitest (>= 5.1)
33
+ mutex_m
27
34
  tzinfo (~> 2.0)
35
+ base64 (0.1.1)
36
+ bigdecimal (3.1.4)
28
37
  builder (3.2.4)
29
38
  coderay (1.1.3)
30
39
  concurrent-ruby (1.2.2)
40
+ connection_pool (2.4.1)
31
41
  countries (5.6.0)
32
42
  unaccent (~> 0.3)
33
43
  crass (1.0.6)
34
44
  diff-lcs (1.5.0)
35
45
  docile (1.4.0)
46
+ drb (2.1.1)
47
+ ruby2_keywords
36
48
  erubi (1.12.0)
37
49
  i18n (1.14.1)
38
50
  concurrent-ruby (~> 1.0)
@@ -40,21 +52,28 @@ GEM
40
52
  crass (~> 1.0.2)
41
53
  nokogiri (>= 1.12.0)
42
54
  method_source (1.0.0)
43
- minitest (5.19.0)
44
- nokogiri (1.15.3-arm64-darwin)
55
+ mini_portile2 (2.8.4)
56
+ minitest (5.20.0)
57
+ mutex_m (0.1.2)
58
+ nokogiri (1.15.4)
59
+ mini_portile2 (~> 2.8.2)
45
60
  racc (~> 1.4)
46
- nokogiri (1.15.3-x86_64-darwin)
61
+ nokogiri (1.15.4-arm64-darwin)
47
62
  racc (~> 1.4)
48
- nokogiri (1.15.3-x86_64-linux)
63
+ nokogiri (1.15.4-x86_64-darwin)
64
+ racc (~> 1.4)
65
+ nokogiri (1.15.4-x86_64-linux)
49
66
  racc (~> 1.4)
50
67
  pry (0.14.2)
51
68
  coderay (~> 1.1)
52
69
  method_source (~> 1.0)
53
70
  racc (1.7.1)
54
- rack (2.2.8)
71
+ rack (3.0.8)
72
+ rack-session (2.0.0)
73
+ rack (>= 3.0.0)
55
74
  rack-test (2.1.0)
56
75
  rack (>= 1.3)
57
- rails-dom-testing (2.1.1)
76
+ rails-dom-testing (2.2.0)
58
77
  activesupport (>= 5.0.0)
59
78
  minitest
60
79
  nokogiri (>= 1.6)
@@ -75,6 +94,7 @@ GEM
75
94
  diff-lcs (>= 1.2.0, < 2.0)
76
95
  rspec-support (~> 3.12.0)
77
96
  rspec-support (3.12.1)
97
+ ruby2_keywords (0.0.5)
78
98
  simplecov (0.22.0)
79
99
  docile (~> 1.1)
80
100
  simplecov-html (~> 0.11)
@@ -87,6 +107,7 @@ GEM
87
107
 
88
108
  PLATFORMS
89
109
  arm64-darwin-22
110
+ ruby
90
111
  x86_64-darwin-22
91
112
  x86_64-linux
92
113
 
@@ -99,4 +120,4 @@ DEPENDENCIES
99
120
  simplecov (~> 0.22)
100
121
 
101
122
  BUNDLED WITH
102
- 2.4.12
123
+ 2.4.19
data/README.md CHANGED
@@ -187,8 +187,8 @@ end
187
187
  ## Example Application
188
188
 
189
189
  An example Rails application demonstrating the different options is
190
- available at [scudco/country_select_test](https://github.com/scudco/country_select_test).
191
- The relevant view files live [here](https://github.com/scudco/country_select_test/tree/master/app/views/welcome).
190
+ available at [countries/country_select_demo](https://github.com/countries/country_select_demo) and deployed to [country-select-demo.onrender.com](https://country-select-demo.onrender.com).
191
+ The relevant view files live [here](https://github.com/countries/country_select_demo/tree/master/app/views/demo).
192
192
 
193
193
  ## Contributing
194
194
 
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- country_select (8.0.1)
4
+ country_select (8.0.3)
5
5
  countries (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (6.1.7.3)
11
- actionview (= 6.1.7.3)
12
- activesupport (= 6.1.7.3)
10
+ actionpack (6.1.7.6)
11
+ actionview (= 6.1.7.6)
12
+ activesupport (= 6.1.7.6)
13
13
  rack (~> 2.0, >= 2.0.9)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.1.7.3)
18
- activesupport (= 6.1.7.3)
17
+ actionview (6.1.7.6)
18
+ activesupport (= 6.1.7.6)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
22
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (6.1.7.3)
23
+ activesupport (6.1.7.6)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
25
  i18n (>= 1.6, < 2)
26
26
  minitest (>= 5.1)
@@ -29,19 +29,19 @@ GEM
29
29
  builder (3.2.4)
30
30
  coderay (1.1.3)
31
31
  concurrent-ruby (1.2.2)
32
- countries (5.4.0)
32
+ countries (5.6.0)
33
33
  unaccent (~> 0.3)
34
34
  crass (1.0.6)
35
35
  diff-lcs (1.5.0)
36
36
  docile (1.4.0)
37
37
  erubi (1.12.0)
38
- i18n (1.13.0)
38
+ i18n (1.14.1)
39
39
  concurrent-ruby (~> 1.0)
40
- loofah (2.20.0)
40
+ loofah (2.21.3)
41
41
  crass (~> 1.0.2)
42
- nokogiri (>= 1.5.9)
42
+ nokogiri (>= 1.12.0)
43
43
  method_source (1.0.0)
44
- minitest (5.18.0)
44
+ minitest (5.20.0)
45
45
  nokogiri (1.14.0.rc1-arm64-darwin)
46
46
  racc (~> 1.4)
47
47
  nokogiri (1.14.0.rc1-x86_64-darwin)
@@ -51,18 +51,19 @@ GEM
51
51
  pry (0.14.2)
52
52
  coderay (~> 1.1)
53
53
  method_source (~> 1.0)
54
- racc (1.6.2)
55
- rack (2.2.7)
54
+ racc (1.7.1)
55
+ rack (2.2.8)
56
56
  rack-test (2.1.0)
57
57
  rack (>= 1.3)
58
- rails-dom-testing (2.0.3)
59
- activesupport (>= 4.2.0)
58
+ rails-dom-testing (2.2.0)
59
+ activesupport (>= 5.0.0)
60
+ minitest
60
61
  nokogiri (>= 1.6)
61
62
  rails-html-sanitizer (1.5.0)
62
63
  loofah (~> 2.19, >= 2.19.1)
63
- railties (6.1.7.3)
64
- actionpack (= 6.1.7.3)
65
- activesupport (= 6.1.7.3)
64
+ railties (6.1.7.6)
65
+ actionpack (= 6.1.7.6)
66
+ activesupport (= 6.1.7.6)
66
67
  method_source
67
68
  rake (>= 12.2)
68
69
  thor (~> 1.0)
@@ -76,21 +77,21 @@ GEM
76
77
  rspec-expectations (3.12.3)
77
78
  diff-lcs (>= 1.2.0, < 2.0)
78
79
  rspec-support (~> 3.12.0)
79
- rspec-mocks (3.12.5)
80
+ rspec-mocks (3.12.6)
80
81
  diff-lcs (>= 1.2.0, < 2.0)
81
82
  rspec-support (~> 3.12.0)
82
- rspec-support (3.12.0)
83
+ rspec-support (3.12.1)
83
84
  simplecov (0.22.0)
84
85
  docile (~> 1.1)
85
86
  simplecov-html (~> 0.11)
86
87
  simplecov_json_formatter (~> 0.1)
87
88
  simplecov-html (0.12.3)
88
89
  simplecov_json_formatter (0.1.4)
89
- thor (1.2.1)
90
+ thor (1.2.2)
90
91
  tzinfo (2.0.6)
91
92
  concurrent-ruby (~> 1.0)
92
93
  unaccent (0.4.0)
93
- zeitwerk (2.6.8)
94
+ zeitwerk (2.6.12)
94
95
 
95
96
  PLATFORMS
96
97
  arm64-darwin-22
@@ -108,4 +109,4 @@ DEPENDENCIES
108
109
  simplecov (~> 0.22)
109
110
 
110
111
  BUNDLED WITH
111
- 2.4.2
112
+ 2.4.19
@@ -6,4 +6,4 @@ gemspec path: '../'
6
6
 
7
7
  gem 'railties', '~> 7.0.0'
8
8
  gem 'actionpack', '~> 7.0.0'
9
- gem 'nokogiri', '= 1.14.0.rc1'
9
+ gem 'nokogiri', '~> 1.15'
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- country_select (8.0.1)
4
+ country_select (8.0.3)
5
5
  countries (~> 5.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (7.0.4.3)
11
- actionview (= 7.0.4.3)
12
- activesupport (= 7.0.4.3)
13
- rack (~> 2.0, >= 2.2.0)
10
+ actionpack (7.0.8)
11
+ actionview (= 7.0.8)
12
+ activesupport (= 7.0.8)
13
+ rack (~> 2.0, >= 2.2.4)
14
14
  rack-test (>= 0.6.3)
15
15
  rails-dom-testing (~> 2.0)
16
16
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (7.0.4.3)
18
- activesupport (= 7.0.4.3)
17
+ actionview (7.0.8)
18
+ activesupport (= 7.0.8)
19
19
  builder (~> 3.1)
20
20
  erubi (~> 1.4)
21
21
  rails-dom-testing (~> 2.0)
22
22
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (7.0.4.3)
23
+ activesupport (7.0.8)
24
24
  concurrent-ruby (~> 1.0, >= 1.0.2)
25
25
  i18n (>= 1.6, < 2)
26
26
  minitest (>= 5.1)
@@ -28,40 +28,42 @@ GEM
28
28
  builder (3.2.4)
29
29
  coderay (1.1.3)
30
30
  concurrent-ruby (1.2.2)
31
- countries (5.4.0)
31
+ countries (5.6.0)
32
32
  unaccent (~> 0.3)
33
33
  crass (1.0.6)
34
34
  diff-lcs (1.5.0)
35
35
  docile (1.4.0)
36
36
  erubi (1.12.0)
37
- i18n (1.13.0)
37
+ i18n (1.14.1)
38
38
  concurrent-ruby (~> 1.0)
39
- loofah (2.20.0)
39
+ loofah (2.21.3)
40
40
  crass (~> 1.0.2)
41
- nokogiri (>= 1.5.9)
41
+ nokogiri (>= 1.12.0)
42
42
  method_source (1.0.0)
43
- minitest (5.18.0)
44
- nokogiri (1.14.0.rc1-arm64-darwin)
43
+ minitest (5.20.0)
44
+ nokogiri (1.15.4-arm64-darwin)
45
45
  racc (~> 1.4)
46
- nokogiri (1.14.0.rc1-x86_64-darwin)
46
+ nokogiri (1.15.4-x86_64-darwin)
47
47
  racc (~> 1.4)
48
- nokogiri (1.14.0.rc1-x86_64-linux)
48
+ nokogiri (1.15.4-x86_64-linux)
49
49
  racc (~> 1.4)
50
50
  pry (0.14.2)
51
51
  coderay (~> 1.1)
52
52
  method_source (~> 1.0)
53
- racc (1.6.2)
54
- rack (2.2.7)
53
+ racc (1.7.1)
54
+ rack (2.2.8)
55
55
  rack-test (2.1.0)
56
56
  rack (>= 1.3)
57
- rails-dom-testing (2.0.3)
58
- activesupport (>= 4.2.0)
57
+ rails-dom-testing (2.2.0)
58
+ activesupport (>= 5.0.0)
59
+ minitest
59
60
  nokogiri (>= 1.6)
60
- rails-html-sanitizer (1.5.0)
61
- loofah (~> 2.19, >= 2.19.1)
62
- railties (7.0.4.3)
63
- actionpack (= 7.0.4.3)
64
- activesupport (= 7.0.4.3)
61
+ rails-html-sanitizer (1.6.0)
62
+ loofah (~> 2.21)
63
+ nokogiri (~> 1.14)
64
+ railties (7.0.8)
65
+ actionpack (= 7.0.8)
66
+ activesupport (= 7.0.8)
65
67
  method_source
66
68
  rake (>= 12.2)
67
69
  thor (~> 1.0)
@@ -76,21 +78,21 @@ GEM
76
78
  rspec-expectations (3.12.3)
77
79
  diff-lcs (>= 1.2.0, < 2.0)
78
80
  rspec-support (~> 3.12.0)
79
- rspec-mocks (3.12.5)
81
+ rspec-mocks (3.12.6)
80
82
  diff-lcs (>= 1.2.0, < 2.0)
81
83
  rspec-support (~> 3.12.0)
82
- rspec-support (3.12.0)
84
+ rspec-support (3.12.1)
83
85
  simplecov (0.22.0)
84
86
  docile (~> 1.1)
85
87
  simplecov-html (~> 0.11)
86
88
  simplecov_json_formatter (~> 0.1)
87
89
  simplecov-html (0.12.3)
88
90
  simplecov_json_formatter (0.1.4)
89
- thor (1.2.1)
91
+ thor (1.2.2)
90
92
  tzinfo (2.0.6)
91
93
  concurrent-ruby (~> 1.0)
92
94
  unaccent (0.4.0)
93
- zeitwerk (2.6.8)
95
+ zeitwerk (2.6.12)
94
96
 
95
97
  PLATFORMS
96
98
  arm64-darwin-22
@@ -100,7 +102,7 @@ PLATFORMS
100
102
  DEPENDENCIES
101
103
  actionpack (~> 7.0.0)
102
104
  country_select!
103
- nokogiri (= 1.14.0.rc1)
105
+ nokogiri (~> 1.15)
104
106
  pry (~> 0)
105
107
  railties (~> 7.0.0)
106
108
  rake (~> 13)
@@ -108,4 +110,4 @@ DEPENDENCIES
108
110
  simplecov (~> 0.22)
109
111
 
110
112
  BUNDLED WITH
111
- 2.4.2
113
+ 2.4.19
@@ -4,6 +4,6 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec path: '../'
6
6
 
7
- gem 'railties', '~> 7.1.0.alpha', github: 'rails/rails'
8
- gem 'actionpack', '~> 7.1.0.alpha', github: 'rails/rails'
9
- gem 'nokogiri', '~> 1.14'
7
+ gem 'railties', '~> 7.1.0'
8
+ gem 'actionpack', '~> 7.1.0'
9
+ gem 'nokogiri', '~> 1.15'
@@ -1,75 +1,74 @@
1
- GIT
2
- remote: https://github.com/rails/rails.git
3
- revision: 5b2523edaa131eec7b18780b7916760828262df4
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ country_select (8.0.3)
5
+ countries (~> 5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
4
9
  specs:
5
- actionpack (7.1.0.alpha)
6
- actionview (= 7.1.0.alpha)
7
- activesupport (= 7.1.0.alpha)
10
+ actionpack (7.1.0)
11
+ actionview (= 7.1.0)
12
+ activesupport (= 7.1.0)
8
13
  nokogiri (>= 1.8.5)
9
14
  rack (>= 2.2.4)
10
15
  rack-session (>= 1.0.1)
11
16
  rack-test (>= 0.6.3)
12
- rails-dom-testing (~> 2.0)
17
+ rails-dom-testing (~> 2.2)
13
18
  rails-html-sanitizer (~> 1.6)
14
- actionview (7.1.0.alpha)
15
- activesupport (= 7.1.0.alpha)
19
+ actionview (7.1.0)
20
+ activesupport (= 7.1.0)
16
21
  builder (~> 3.1)
17
22
  erubi (~> 1.11)
18
- rails-dom-testing (~> 2.0)
23
+ rails-dom-testing (~> 2.2)
19
24
  rails-html-sanitizer (~> 1.6)
20
- activesupport (7.1.0.alpha)
25
+ activesupport (7.1.0)
26
+ base64
27
+ bigdecimal
21
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
22
29
  connection_pool (>= 2.2.5)
30
+ drb
23
31
  i18n (>= 1.6, < 2)
24
32
  minitest (>= 5.1)
33
+ mutex_m
25
34
  tzinfo (~> 2.0)
26
- railties (7.1.0.alpha)
27
- actionpack (= 7.1.0.alpha)
28
- activesupport (= 7.1.0.alpha)
29
- irb
30
- rackup (>= 1.0.0)
31
- rake (>= 12.2)
32
- thor (~> 1.0, >= 1.2.2)
33
- zeitwerk (~> 2.6)
34
-
35
- PATH
36
- remote: ..
37
- specs:
38
- country_select (8.0.1)
39
- countries (~> 5.0)
40
-
41
- GEM
42
- remote: https://rubygems.org/
43
- specs:
35
+ base64 (0.1.1)
36
+ bigdecimal (3.1.4)
44
37
  builder (3.2.4)
45
38
  coderay (1.1.3)
46
39
  concurrent-ruby (1.2.2)
47
40
  connection_pool (2.4.1)
48
- countries (5.5.0)
41
+ countries (5.6.0)
49
42
  unaccent (~> 0.3)
50
43
  crass (1.0.6)
51
44
  diff-lcs (1.5.0)
52
45
  docile (1.4.0)
46
+ drb (2.1.1)
47
+ ruby2_keywords
53
48
  erubi (1.12.0)
54
49
  i18n (1.14.1)
55
50
  concurrent-ruby (~> 1.0)
56
51
  io-console (0.6.0)
57
- irb (1.7.0)
58
- reline (>= 0.3.0)
52
+ irb (1.8.1)
53
+ rdoc
54
+ reline (>= 0.3.8)
59
55
  loofah (2.21.3)
60
56
  crass (~> 1.0.2)
61
57
  nokogiri (>= 1.12.0)
62
58
  method_source (1.0.0)
63
- minitest (5.18.1)
64
- nokogiri (1.15.2-arm64-darwin)
59
+ minitest (5.20.0)
60
+ mutex_m (0.1.2)
61
+ nokogiri (1.15.4-arm64-darwin)
65
62
  racc (~> 1.4)
66
- nokogiri (1.15.2-x86_64-darwin)
63
+ nokogiri (1.15.4-x86_64-darwin)
67
64
  racc (~> 1.4)
68
- nokogiri (1.15.2-x86_64-linux)
65
+ nokogiri (1.15.4-x86_64-linux)
69
66
  racc (~> 1.4)
70
67
  pry (0.14.2)
71
68
  coderay (~> 1.1)
72
69
  method_source (~> 1.0)
70
+ psych (5.1.0)
71
+ stringio
73
72
  racc (1.7.1)
74
73
  rack (3.0.8)
75
74
  rack-session (2.0.0)
@@ -79,14 +78,25 @@ GEM
79
78
  rackup (2.1.0)
80
79
  rack (>= 3)
81
80
  webrick (~> 1.8)
82
- rails-dom-testing (2.0.3)
83
- activesupport (>= 4.2.0)
81
+ rails-dom-testing (2.2.0)
82
+ activesupport (>= 5.0.0)
83
+ minitest
84
84
  nokogiri (>= 1.6)
85
85
  rails-html-sanitizer (1.6.0)
86
86
  loofah (~> 2.21)
87
87
  nokogiri (~> 1.14)
88
+ railties (7.1.0)
89
+ actionpack (= 7.1.0)
90
+ activesupport (= 7.1.0)
91
+ irb
92
+ rackup (>= 1.0.0)
93
+ rake (>= 12.2)
94
+ thor (~> 1.0, >= 1.2.2)
95
+ zeitwerk (~> 2.6)
88
96
  rake (13.0.6)
89
- reline (0.3.5)
97
+ rdoc (6.5.0)
98
+ psych (>= 4.0.0)
99
+ reline (0.3.9)
90
100
  io-console (~> 0.5)
91
101
  rspec (3.12.0)
92
102
  rspec-core (~> 3.12.0)
@@ -97,22 +107,24 @@ GEM
97
107
  rspec-expectations (3.12.3)
98
108
  diff-lcs (>= 1.2.0, < 2.0)
99
109
  rspec-support (~> 3.12.0)
100
- rspec-mocks (3.12.5)
110
+ rspec-mocks (3.12.6)
101
111
  diff-lcs (>= 1.2.0, < 2.0)
102
112
  rspec-support (~> 3.12.0)
103
113
  rspec-support (3.12.1)
114
+ ruby2_keywords (0.0.5)
104
115
  simplecov (0.22.0)
105
116
  docile (~> 1.1)
106
117
  simplecov-html (~> 0.11)
107
118
  simplecov_json_formatter (~> 0.1)
108
119
  simplecov-html (0.12.3)
109
120
  simplecov_json_formatter (0.1.4)
121
+ stringio (3.0.8)
110
122
  thor (1.2.2)
111
123
  tzinfo (2.0.6)
112
124
  concurrent-ruby (~> 1.0)
113
125
  unaccent (0.4.0)
114
126
  webrick (1.8.1)
115
- zeitwerk (2.6.8)
127
+ zeitwerk (2.6.12)
116
128
 
117
129
  PLATFORMS
118
130
  arm64-darwin-22
@@ -120,14 +132,14 @@ PLATFORMS
120
132
  x86_64-linux
121
133
 
122
134
  DEPENDENCIES
123
- actionpack (~> 7.1.0.alpha)!
135
+ actionpack (~> 7.1.0)
124
136
  country_select!
125
- nokogiri (~> 1.14)
137
+ nokogiri (~> 1.15)
126
138
  pry (~> 0)
127
- railties (~> 7.1.0.alpha)!
139
+ railties (~> 7.1.0)
128
140
  rake (~> 13)
129
141
  rspec (~> 3)
130
142
  simplecov (~> 0.22)
131
143
 
132
144
  BUNDLED WITH
133
- 2.4.2
145
+ 2.4.19
@@ -3,9 +3,6 @@
3
3
  module ActionView
4
4
  module Helpers
5
5
  class FormBuilder
6
- # def country_select(method, options = {}, html_options = {})
7
- # @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options))
8
- # end
9
6
  def country_select(method, priority_or_options = {}, options = {}, html_options = {})
10
7
  if priority_or_options.is_a? Hash
11
8
  html_options = options
@@ -73,11 +73,11 @@ module CountrySelect
73
73
  country_options_for(codes, sorted: sort)
74
74
  end
75
75
 
76
- def country_options_for(country_codes, sorted: rue)
76
+ def country_options_for(country_codes, sorted: true)
77
77
  I18n.with_locale(locale) do
78
78
  country_list = country_codes.map { |code_or_name| get_formatted_country(code_or_name) }
79
79
 
80
- country_list.sort_by! { |name, _| [I18n.transliterate(name), name] } if sorted
80
+ country_list.sort_by! { |name, _| [I18n.transliterate(name.to_s), name] } if sorted
81
81
  country_list
82
82
  end
83
83
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CountrySelect
4
- VERSION = '8.0.2'
4
+ VERSION = '8.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: country_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 8.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Penner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-01 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -118,10 +118,6 @@ files:
118
118
  - Rakefile
119
119
  - UPGRADING.md
120
120
  - country_select.gemspec
121
- - gemfiles/actionpack-5.2.gemfile
122
- - gemfiles/actionpack-5.2.gemfile.lock
123
- - gemfiles/actionpack-6.0.gemfile
124
- - gemfiles/actionpack-6.0.gemfile.lock
125
121
  - gemfiles/actionpack-6.1.gemfile
126
122
  - gemfiles/actionpack-6.1.gemfile.lock
127
123
  - gemfiles/actionpack-7.0.gemfile
@@ -159,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
155
  - !ruby/object:Gem::Version
160
156
  version: '0'
161
157
  requirements: []
162
- rubygems_version: 3.4.12
158
+ rubygems_version: 3.4.19
163
159
  signing_key:
164
160
  specification_version: 4
165
161
  summary: Country Select Plugin
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec path: '../'
6
-
7
- gem 'railties', '~> 5.2.0'
8
- gem 'actionpack', '~> 5.2.0'
9
- gem 'nokogiri', '= 1.14.0.rc1'
@@ -1,110 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- country_select (8.0.1)
5
- countries (~> 5.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (5.2.8.1)
11
- actionview (= 5.2.8.1)
12
- activesupport (= 5.2.8.1)
13
- rack (~> 2.0, >= 2.0.8)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (5.2.8.1)
18
- activesupport (= 5.2.8.1)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
23
- activesupport (5.2.8.1)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 0.7, < 2)
26
- minitest (~> 5.1)
27
- tzinfo (~> 1.1)
28
- builder (3.2.4)
29
- coderay (1.1.3)
30
- concurrent-ruby (1.2.2)
31
- countries (5.4.0)
32
- unaccent (~> 0.3)
33
- crass (1.0.6)
34
- diff-lcs (1.5.0)
35
- docile (1.4.0)
36
- erubi (1.12.0)
37
- i18n (1.13.0)
38
- concurrent-ruby (~> 1.0)
39
- loofah (2.20.0)
40
- crass (~> 1.0.2)
41
- nokogiri (>= 1.5.9)
42
- method_source (1.0.0)
43
- minitest (5.18.0)
44
- nokogiri (1.14.0.rc1-arm64-darwin)
45
- racc (~> 1.4)
46
- nokogiri (1.14.0.rc1-x86_64-darwin)
47
- racc (~> 1.4)
48
- nokogiri (1.14.0.rc1-x86_64-linux)
49
- racc (~> 1.4)
50
- pry (0.14.2)
51
- coderay (~> 1.1)
52
- method_source (~> 1.0)
53
- racc (1.6.2)
54
- rack (2.2.7)
55
- rack-test (2.1.0)
56
- rack (>= 1.3)
57
- rails-dom-testing (2.0.3)
58
- activesupport (>= 4.2.0)
59
- nokogiri (>= 1.6)
60
- rails-html-sanitizer (1.5.0)
61
- loofah (~> 2.19, >= 2.19.1)
62
- railties (5.2.8.1)
63
- actionpack (= 5.2.8.1)
64
- activesupport (= 5.2.8.1)
65
- method_source
66
- rake (>= 0.8.7)
67
- thor (>= 0.19.0, < 2.0)
68
- rake (13.0.6)
69
- rspec (3.12.0)
70
- rspec-core (~> 3.12.0)
71
- rspec-expectations (~> 3.12.0)
72
- rspec-mocks (~> 3.12.0)
73
- rspec-core (3.12.2)
74
- rspec-support (~> 3.12.0)
75
- rspec-expectations (3.12.3)
76
- diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.12.0)
78
- rspec-mocks (3.12.5)
79
- diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.12.0)
81
- rspec-support (3.12.0)
82
- simplecov (0.22.0)
83
- docile (~> 1.1)
84
- simplecov-html (~> 0.11)
85
- simplecov_json_formatter (~> 0.1)
86
- simplecov-html (0.12.3)
87
- simplecov_json_formatter (0.1.4)
88
- thor (1.2.1)
89
- thread_safe (0.3.6)
90
- tzinfo (1.2.11)
91
- thread_safe (~> 0.1)
92
- unaccent (0.4.0)
93
-
94
- PLATFORMS
95
- arm64-darwin-22
96
- x86_64-darwin-22
97
- x86_64-linux
98
-
99
- DEPENDENCIES
100
- actionpack (~> 5.2.0)
101
- country_select!
102
- nokogiri (= 1.14.0.rc1)
103
- pry (~> 0)
104
- railties (~> 5.2.0)
105
- rake (~> 13)
106
- rspec (~> 3)
107
- simplecov (~> 0.22)
108
-
109
- BUNDLED WITH
110
- 2.4.2
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gemspec path: '../'
6
-
7
- gem 'railties', '~> 6.0.0'
8
- gem 'actionpack', '~> 6.0.0'
9
- gem 'nokogiri', '= 1.14.0.rc1'
@@ -1,112 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- country_select (8.0.1)
5
- countries (~> 5.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionpack (6.0.6.1)
11
- actionview (= 6.0.6.1)
12
- activesupport (= 6.0.6.1)
13
- rack (~> 2.0, >= 2.0.8)
14
- rack-test (>= 0.6.3)
15
- rails-dom-testing (~> 2.0)
16
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
- actionview (6.0.6.1)
18
- activesupport (= 6.0.6.1)
19
- builder (~> 3.1)
20
- erubi (~> 1.4)
21
- rails-dom-testing (~> 2.0)
22
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
23
- activesupport (6.0.6.1)
24
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
- i18n (>= 0.7, < 2)
26
- minitest (~> 5.1)
27
- tzinfo (~> 1.1)
28
- zeitwerk (~> 2.2, >= 2.2.2)
29
- builder (3.2.4)
30
- coderay (1.1.3)
31
- concurrent-ruby (1.2.2)
32
- countries (5.4.0)
33
- unaccent (~> 0.3)
34
- crass (1.0.6)
35
- diff-lcs (1.5.0)
36
- docile (1.4.0)
37
- erubi (1.12.0)
38
- i18n (1.13.0)
39
- concurrent-ruby (~> 1.0)
40
- loofah (2.20.0)
41
- crass (~> 1.0.2)
42
- nokogiri (>= 1.5.9)
43
- method_source (1.0.0)
44
- minitest (5.18.0)
45
- nokogiri (1.14.0.rc1-arm64-darwin)
46
- racc (~> 1.4)
47
- nokogiri (1.14.0.rc1-x86_64-darwin)
48
- racc (~> 1.4)
49
- nokogiri (1.14.0.rc1-x86_64-linux)
50
- racc (~> 1.4)
51
- pry (0.14.2)
52
- coderay (~> 1.1)
53
- method_source (~> 1.0)
54
- racc (1.6.2)
55
- rack (2.2.7)
56
- rack-test (2.1.0)
57
- rack (>= 1.3)
58
- rails-dom-testing (2.0.3)
59
- activesupport (>= 4.2.0)
60
- nokogiri (>= 1.6)
61
- rails-html-sanitizer (1.5.0)
62
- loofah (~> 2.19, >= 2.19.1)
63
- railties (6.0.6.1)
64
- actionpack (= 6.0.6.1)
65
- activesupport (= 6.0.6.1)
66
- method_source
67
- rake (>= 0.8.7)
68
- thor (>= 0.20.3, < 2.0)
69
- rake (13.0.6)
70
- rspec (3.12.0)
71
- rspec-core (~> 3.12.0)
72
- rspec-expectations (~> 3.12.0)
73
- rspec-mocks (~> 3.12.0)
74
- rspec-core (3.12.2)
75
- rspec-support (~> 3.12.0)
76
- rspec-expectations (3.12.3)
77
- diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.12.0)
79
- rspec-mocks (3.12.5)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.12.0)
82
- rspec-support (3.12.0)
83
- simplecov (0.22.0)
84
- docile (~> 1.1)
85
- simplecov-html (~> 0.11)
86
- simplecov_json_formatter (~> 0.1)
87
- simplecov-html (0.12.3)
88
- simplecov_json_formatter (0.1.4)
89
- thor (1.2.1)
90
- thread_safe (0.3.6)
91
- tzinfo (1.2.11)
92
- thread_safe (~> 0.1)
93
- unaccent (0.4.0)
94
- zeitwerk (2.6.8)
95
-
96
- PLATFORMS
97
- arm64-darwin-22
98
- x86_64-darwin-22
99
- x86_64-linux
100
-
101
- DEPENDENCIES
102
- actionpack (~> 6.0.0)
103
- country_select!
104
- nokogiri (= 1.14.0.rc1)
105
- pry (~> 0)
106
- railties (~> 6.0.0)
107
- rake (~> 13)
108
- rspec (~> 3)
109
- simplecov (~> 0.22)
110
-
111
- BUNDLED WITH
112
- 2.4.2