country_select 8.0.2 → 8.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +41 -20
- data/README.md +2 -2
- data/gemfiles/actionpack-6.1.gemfile.lock +25 -24
- data/gemfiles/actionpack-7.0.gemfile +1 -1
- data/gemfiles/actionpack-7.0.gemfile.lock +33 -31
- data/gemfiles/actionpack-7.1.gemfile +3 -3
- data/gemfiles/actionpack-7.1.gemfile.lock +57 -45
- data/lib/country_select/country_select_helper.rb +0 -3
- data/lib/country_select/tag_helper.rb +2 -2
- data/lib/country_select/version.rb +1 -1
- metadata +3 -7
- data/gemfiles/actionpack-5.2.gemfile +0 -9
- data/gemfiles/actionpack-5.2.gemfile.lock +0 -110
- data/gemfiles/actionpack-6.0.gemfile +0 -9
- data/gemfiles/actionpack-6.0.gemfile.lock +0 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c801f19e2389f6c0fd8d88b666bc31b382e5b7321033b94de1378df8c020726b
|
4
|
+
data.tar.gz: 92d3b1031fb53cd0ae189e84391553436281680aaceaffd8540192d629ad5940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a8ff3e9f846e6b2081e925f4edac27409eeb9c62918bb6dec07a0a39540ec5f501792da09299d8de3d340118ae227c8d09c408da04ee92dd489a72f76ea73c5
|
7
|
+
data.tar.gz: 9f56a57c00a86df1e5d38fc98b269764c6c7938951a77481dac5edfe57c09f9011fb386d5501296556f6d45ede72272199c70ec6140a2e9c5fa6a9f7e1127015
|
data/.github/workflows/test.yml
CHANGED
@@ -16,8 +16,8 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [
|
20
|
-
gemfile: [
|
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
data/Gemfile.lock
CHANGED
@@ -1,38 +1,50 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
country_select (8.0.
|
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
|
11
|
-
actionview (= 7.0
|
12
|
-
activesupport (= 7.0
|
13
|
-
|
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.
|
16
|
-
rails-html-sanitizer (~> 1.
|
17
|
-
actionview (7.0
|
18
|
-
activesupport (= 7.0
|
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.
|
21
|
-
rails-dom-testing (~> 2.
|
22
|
-
rails-html-sanitizer (~> 1.
|
23
|
-
activesupport (7.0
|
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
|
-
|
44
|
-
|
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.
|
61
|
+
nokogiri (1.15.4-arm64-darwin)
|
47
62
|
racc (~> 1.4)
|
48
|
-
nokogiri (1.15.
|
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 (
|
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.
|
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.
|
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 [
|
191
|
-
The relevant view files live [here](https://github.com/
|
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.
|
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.
|
11
|
-
actionview (= 6.1.7.
|
12
|
-
activesupport (= 6.1.7.
|
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.
|
18
|
-
activesupport (= 6.1.7.
|
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.
|
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.
|
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.
|
38
|
+
i18n (1.14.1)
|
39
39
|
concurrent-ruby (~> 1.0)
|
40
|
-
loofah (2.
|
40
|
+
loofah (2.21.3)
|
41
41
|
crass (~> 1.0.2)
|
42
|
-
nokogiri (>= 1.
|
42
|
+
nokogiri (>= 1.12.0)
|
43
43
|
method_source (1.0.0)
|
44
|
-
minitest (5.
|
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.
|
55
|
-
rack (2.2.
|
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
|
59
|
-
activesupport (>=
|
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.
|
64
|
-
actionpack (= 6.1.7.
|
65
|
-
activesupport (= 6.1.7.
|
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.
|
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.
|
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.
|
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.
|
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.
|
112
|
+
2.4.19
|
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
country_select (8.0.
|
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.
|
11
|
-
actionview (= 7.0.
|
12
|
-
activesupport (= 7.0.
|
13
|
-
rack (~> 2.0, >= 2.2.
|
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.
|
18
|
-
activesupport (= 7.0.
|
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.
|
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.
|
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.
|
37
|
+
i18n (1.14.1)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
|
-
loofah (2.
|
39
|
+
loofah (2.21.3)
|
40
40
|
crass (~> 1.0.2)
|
41
|
-
nokogiri (>= 1.
|
41
|
+
nokogiri (>= 1.12.0)
|
42
42
|
method_source (1.0.0)
|
43
|
-
minitest (5.
|
44
|
-
nokogiri (1.
|
43
|
+
minitest (5.20.0)
|
44
|
+
nokogiri (1.15.4-arm64-darwin)
|
45
45
|
racc (~> 1.4)
|
46
|
-
nokogiri (1.
|
46
|
+
nokogiri (1.15.4-x86_64-darwin)
|
47
47
|
racc (~> 1.4)
|
48
|
-
nokogiri (1.
|
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.
|
54
|
-
rack (2.2.
|
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
|
58
|
-
activesupport (>=
|
57
|
+
rails-dom-testing (2.2.0)
|
58
|
+
activesupport (>= 5.0.0)
|
59
|
+
minitest
|
59
60
|
nokogiri (>= 1.6)
|
60
|
-
rails-html-sanitizer (1.
|
61
|
-
loofah (~> 2.
|
62
|
-
|
63
|
-
|
64
|
-
|
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.
|
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.
|
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.
|
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.
|
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 (
|
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.
|
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
|
8
|
-
gem 'actionpack', '~> 7.1.0
|
9
|
-
gem 'nokogiri', '~> 1.
|
7
|
+
gem 'railties', '~> 7.1.0'
|
8
|
+
gem 'actionpack', '~> 7.1.0'
|
9
|
+
gem 'nokogiri', '~> 1.15'
|
@@ -1,75 +1,74 @@
|
|
1
|
-
|
2
|
-
remote:
|
3
|
-
|
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
|
6
|
-
actionview (= 7.1.0
|
7
|
-
activesupport (= 7.1.0
|
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.
|
17
|
+
rails-dom-testing (~> 2.2)
|
13
18
|
rails-html-sanitizer (~> 1.6)
|
14
|
-
actionview (7.1.0
|
15
|
-
activesupport (= 7.1.0
|
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.
|
23
|
+
rails-dom-testing (~> 2.2)
|
19
24
|
rails-html-sanitizer (~> 1.6)
|
20
|
-
activesupport (7.1.0
|
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
|
-
|
27
|
-
|
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.
|
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.
|
58
|
-
|
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.
|
64
|
-
|
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.
|
63
|
+
nokogiri (1.15.4-x86_64-darwin)
|
67
64
|
racc (~> 1.4)
|
68
|
-
nokogiri (1.15.
|
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
|
83
|
-
activesupport (>=
|
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
|
-
|
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.
|
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.
|
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
|
135
|
+
actionpack (~> 7.1.0)
|
124
136
|
country_select!
|
125
|
-
nokogiri (~> 1.
|
137
|
+
nokogiri (~> 1.15)
|
126
138
|
pry (~> 0)
|
127
|
-
railties (~> 7.1.0
|
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.
|
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:
|
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
|
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.
|
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-
|
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.
|
158
|
+
rubygems_version: 3.4.19
|
163
159
|
signing_key:
|
164
160
|
specification_version: 4
|
165
161
|
summary: Country Select Plugin
|
@@ -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,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
|