country_select 7.0.0 → 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 +4 -4
- data/.codeclimate.yml +61 -0
- data/.github/workflows/codeql-analysis.yml +3 -3
- data/.github/workflows/test.yml +36 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +34 -0
- data/CHANGELOG.md +25 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +83 -54
- data/README.md +10 -12
- data/Rakefile +23 -0
- data/country_select.gemspec +12 -9
- data/gemfiles/actionpack-6.1.gemfile +7 -4
- data/gemfiles/actionpack-6.1.gemfile.lock +62 -57
- data/gemfiles/actionpack-7.0.gemfile +7 -4
- data/gemfiles/actionpack-7.0.gemfile.lock +63 -57
- data/gemfiles/actionpack-7.1.gemfile +9 -0
- data/gemfiles/actionpack-7.1.gemfile.lock +145 -0
- data/lib/country_select/country_select_helper.rb +10 -1
- data/lib/country_select/defaults.rb +4 -1
- data/lib/country_select/formats.rb +2 -0
- data/lib/country_select/tag_helper.rb +59 -54
- data/lib/country_select/version.rb +3 -1
- data/lib/country_select.rb +1 -2
- data/spec/country_select_spec.rb +142 -95
- data/spec/spec_helper.rb +7 -3
- metadata +21 -24
- data/.github/workflows/build.yml +0 -25
- data/gemfiles/actionpack-5.2.gemfile +0 -6
- data/gemfiles/actionpack-5.2.gemfile.lock +0 -106
- data/gemfiles/actionpack-6.0.gemfile +0 -6
- data/gemfiles/actionpack-6.0.gemfile.lock +0 -107
- data/gemfiles/actionpack-head.gemfile +0 -9
- data/gemfiles/actionpack-head.gemfile.lock +0 -104
- data/lib/country_select_without_sort_alphabetical.rb +0 -9
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
country_select (
|
|
4
|
+
country_select (8.0.3)
|
|
5
5
|
countries (~> 5.0)
|
|
6
|
-
sort_alphabetical (~> 1.1)
|
|
7
6
|
|
|
8
7
|
GEM
|
|
9
8
|
remote: https://rubygems.org/
|
|
10
9
|
specs:
|
|
11
|
-
actionpack (6.1.
|
|
12
|
-
actionview (= 6.1.
|
|
13
|
-
activesupport (= 6.1.
|
|
10
|
+
actionpack (6.1.7.6)
|
|
11
|
+
actionview (= 6.1.7.6)
|
|
12
|
+
activesupport (= 6.1.7.6)
|
|
14
13
|
rack (~> 2.0, >= 2.0.9)
|
|
15
14
|
rack-test (>= 0.6.3)
|
|
16
15
|
rails-dom-testing (~> 2.0)
|
|
17
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
18
|
-
actionview (6.1.
|
|
19
|
-
activesupport (= 6.1.
|
|
17
|
+
actionview (6.1.7.6)
|
|
18
|
+
activesupport (= 6.1.7.6)
|
|
20
19
|
builder (~> 3.1)
|
|
21
20
|
erubi (~> 1.4)
|
|
22
21
|
rails-dom-testing (~> 2.0)
|
|
23
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
24
|
-
activesupport (6.1.
|
|
23
|
+
activesupport (6.1.7.6)
|
|
25
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
26
25
|
i18n (>= 1.6, < 2)
|
|
27
26
|
minitest (>= 5.1)
|
|
@@ -29,79 +28,85 @@ GEM
|
|
|
29
28
|
zeitwerk (~> 2.3)
|
|
30
29
|
builder (3.2.4)
|
|
31
30
|
coderay (1.1.3)
|
|
32
|
-
concurrent-ruby (1.
|
|
33
|
-
countries (5.
|
|
34
|
-
|
|
35
|
-
sixarm_ruby_unaccent (~> 1.1)
|
|
31
|
+
concurrent-ruby (1.2.2)
|
|
32
|
+
countries (5.6.0)
|
|
33
|
+
unaccent (~> 0.3)
|
|
36
34
|
crass (1.0.6)
|
|
37
35
|
diff-lcs (1.5.0)
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
docile (1.4.0)
|
|
37
|
+
erubi (1.12.0)
|
|
38
|
+
i18n (1.14.1)
|
|
40
39
|
concurrent-ruby (~> 1.0)
|
|
41
|
-
|
|
42
|
-
simple_po_parser (~> 1.1)
|
|
43
|
-
loofah (2.16.0)
|
|
40
|
+
loofah (2.21.3)
|
|
44
41
|
crass (~> 1.0.2)
|
|
45
|
-
nokogiri (>= 1.
|
|
42
|
+
nokogiri (>= 1.12.0)
|
|
46
43
|
method_source (1.0.0)
|
|
47
|
-
minitest (5.
|
|
48
|
-
nokogiri (1.
|
|
44
|
+
minitest (5.20.0)
|
|
45
|
+
nokogiri (1.14.0.rc1-arm64-darwin)
|
|
49
46
|
racc (~> 1.4)
|
|
50
|
-
nokogiri (1.
|
|
47
|
+
nokogiri (1.14.0.rc1-x86_64-darwin)
|
|
51
48
|
racc (~> 1.4)
|
|
52
|
-
|
|
49
|
+
nokogiri (1.14.0.rc1-x86_64-linux)
|
|
50
|
+
racc (~> 1.4)
|
|
51
|
+
pry (0.14.2)
|
|
53
52
|
coderay (~> 1.1)
|
|
54
53
|
method_source (~> 1.0)
|
|
55
|
-
racc (1.
|
|
56
|
-
rack (2.2.
|
|
57
|
-
rack-test (
|
|
58
|
-
rack (>= 1.
|
|
59
|
-
rails-dom-testing (2.0
|
|
60
|
-
activesupport (>=
|
|
54
|
+
racc (1.7.1)
|
|
55
|
+
rack (2.2.8)
|
|
56
|
+
rack-test (2.1.0)
|
|
57
|
+
rack (>= 1.3)
|
|
58
|
+
rails-dom-testing (2.2.0)
|
|
59
|
+
activesupport (>= 5.0.0)
|
|
60
|
+
minitest
|
|
61
61
|
nokogiri (>= 1.6)
|
|
62
|
-
rails-html-sanitizer (1.
|
|
63
|
-
loofah (~> 2.
|
|
64
|
-
railties (6.1.
|
|
65
|
-
actionpack (= 6.1.
|
|
66
|
-
activesupport (= 6.1.
|
|
62
|
+
rails-html-sanitizer (1.5.0)
|
|
63
|
+
loofah (~> 2.19, >= 2.19.1)
|
|
64
|
+
railties (6.1.7.6)
|
|
65
|
+
actionpack (= 6.1.7.6)
|
|
66
|
+
activesupport (= 6.1.7.6)
|
|
67
67
|
method_source
|
|
68
|
-
rake (>=
|
|
68
|
+
rake (>= 12.2)
|
|
69
69
|
thor (~> 1.0)
|
|
70
70
|
rake (13.0.6)
|
|
71
|
-
rspec (3.
|
|
72
|
-
rspec-core (~> 3.
|
|
73
|
-
rspec-expectations (~> 3.
|
|
74
|
-
rspec-mocks (~> 3.
|
|
75
|
-
rspec-core (3.
|
|
76
|
-
rspec-support (~> 3.
|
|
77
|
-
rspec-expectations (3.
|
|
71
|
+
rspec (3.12.0)
|
|
72
|
+
rspec-core (~> 3.12.0)
|
|
73
|
+
rspec-expectations (~> 3.12.0)
|
|
74
|
+
rspec-mocks (~> 3.12.0)
|
|
75
|
+
rspec-core (3.12.2)
|
|
76
|
+
rspec-support (~> 3.12.0)
|
|
77
|
+
rspec-expectations (3.12.3)
|
|
78
78
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
79
|
-
rspec-support (~> 3.
|
|
80
|
-
rspec-mocks (3.
|
|
79
|
+
rspec-support (~> 3.12.0)
|
|
80
|
+
rspec-mocks (3.12.6)
|
|
81
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
82
|
-
rspec-support (~> 3.
|
|
83
|
-
rspec-support (3.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
rspec-support (~> 3.12.0)
|
|
83
|
+
rspec-support (3.12.1)
|
|
84
|
+
simplecov (0.22.0)
|
|
85
|
+
docile (~> 1.1)
|
|
86
|
+
simplecov-html (~> 0.11)
|
|
87
|
+
simplecov_json_formatter (~> 0.1)
|
|
88
|
+
simplecov-html (0.12.3)
|
|
89
|
+
simplecov_json_formatter (0.1.4)
|
|
90
|
+
thor (1.2.2)
|
|
91
|
+
tzinfo (2.0.6)
|
|
90
92
|
concurrent-ruby (~> 1.0)
|
|
91
|
-
|
|
92
|
-
zeitwerk (2.
|
|
93
|
+
unaccent (0.4.0)
|
|
94
|
+
zeitwerk (2.6.12)
|
|
93
95
|
|
|
94
96
|
PLATFORMS
|
|
95
|
-
|
|
97
|
+
arm64-darwin-22
|
|
98
|
+
x86_64-darwin-22
|
|
96
99
|
x86_64-linux
|
|
97
100
|
|
|
98
101
|
DEPENDENCIES
|
|
99
|
-
actionpack (~> 6.1)
|
|
102
|
+
actionpack (~> 6.1.0)
|
|
100
103
|
country_select!
|
|
104
|
+
nokogiri (= 1.14.0.rc1)
|
|
101
105
|
pry (~> 0)
|
|
102
|
-
railties (~> 6.1)
|
|
106
|
+
railties (~> 6.1.0)
|
|
103
107
|
rake (~> 13)
|
|
104
108
|
rspec (~> 3)
|
|
109
|
+
simplecov (~> 0.22)
|
|
105
110
|
|
|
106
111
|
BUNDLED WITH
|
|
107
|
-
2.
|
|
112
|
+
2.4.19
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
source 'https://rubygems.org'
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
gemspec path: '../'
|
|
6
|
+
|
|
7
|
+
gem 'railties', '~> 7.0.0'
|
|
8
|
+
gem 'actionpack', '~> 7.0.0'
|
|
9
|
+
gem 'nokogiri', '~> 1.15'
|
|
@@ -1,107 +1,113 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ..
|
|
3
3
|
specs:
|
|
4
|
-
country_select (
|
|
4
|
+
country_select (8.0.3)
|
|
5
5
|
countries (~> 5.0)
|
|
6
|
-
sort_alphabetical (~> 1.1)
|
|
7
6
|
|
|
8
7
|
GEM
|
|
9
8
|
remote: https://rubygems.org/
|
|
10
9
|
specs:
|
|
11
|
-
actionpack (7.0.
|
|
12
|
-
actionview (= 7.0.
|
|
13
|
-
activesupport (= 7.0.
|
|
14
|
-
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)
|
|
15
14
|
rack-test (>= 0.6.3)
|
|
16
15
|
rails-dom-testing (~> 2.0)
|
|
17
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
|
18
|
-
actionview (7.0.
|
|
19
|
-
activesupport (= 7.0.
|
|
17
|
+
actionview (7.0.8)
|
|
18
|
+
activesupport (= 7.0.8)
|
|
20
19
|
builder (~> 3.1)
|
|
21
20
|
erubi (~> 1.4)
|
|
22
21
|
rails-dom-testing (~> 2.0)
|
|
23
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
|
24
|
-
activesupport (7.0.
|
|
23
|
+
activesupport (7.0.8)
|
|
25
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
26
25
|
i18n (>= 1.6, < 2)
|
|
27
26
|
minitest (>= 5.1)
|
|
28
27
|
tzinfo (~> 2.0)
|
|
29
28
|
builder (3.2.4)
|
|
30
29
|
coderay (1.1.3)
|
|
31
|
-
concurrent-ruby (1.
|
|
32
|
-
countries (5.
|
|
33
|
-
|
|
34
|
-
sixarm_ruby_unaccent (~> 1.1)
|
|
30
|
+
concurrent-ruby (1.2.2)
|
|
31
|
+
countries (5.6.0)
|
|
32
|
+
unaccent (~> 0.3)
|
|
35
33
|
crass (1.0.6)
|
|
36
34
|
diff-lcs (1.5.0)
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
docile (1.4.0)
|
|
36
|
+
erubi (1.12.0)
|
|
37
|
+
i18n (1.14.1)
|
|
39
38
|
concurrent-ruby (~> 1.0)
|
|
40
|
-
|
|
41
|
-
simple_po_parser (~> 1.1)
|
|
42
|
-
loofah (2.16.0)
|
|
39
|
+
loofah (2.21.3)
|
|
43
40
|
crass (~> 1.0.2)
|
|
44
|
-
nokogiri (>= 1.
|
|
41
|
+
nokogiri (>= 1.12.0)
|
|
45
42
|
method_source (1.0.0)
|
|
46
|
-
minitest (5.
|
|
47
|
-
nokogiri (1.
|
|
43
|
+
minitest (5.20.0)
|
|
44
|
+
nokogiri (1.15.4-arm64-darwin)
|
|
48
45
|
racc (~> 1.4)
|
|
49
|
-
nokogiri (1.
|
|
46
|
+
nokogiri (1.15.4-x86_64-darwin)
|
|
50
47
|
racc (~> 1.4)
|
|
51
|
-
|
|
48
|
+
nokogiri (1.15.4-x86_64-linux)
|
|
49
|
+
racc (~> 1.4)
|
|
50
|
+
pry (0.14.2)
|
|
52
51
|
coderay (~> 1.1)
|
|
53
52
|
method_source (~> 1.0)
|
|
54
|
-
racc (1.
|
|
55
|
-
rack (2.2.
|
|
56
|
-
rack-test (
|
|
57
|
-
rack (>= 1.
|
|
58
|
-
rails-dom-testing (2.0
|
|
59
|
-
activesupport (>=
|
|
53
|
+
racc (1.7.1)
|
|
54
|
+
rack (2.2.8)
|
|
55
|
+
rack-test (2.1.0)
|
|
56
|
+
rack (>= 1.3)
|
|
57
|
+
rails-dom-testing (2.2.0)
|
|
58
|
+
activesupport (>= 5.0.0)
|
|
59
|
+
minitest
|
|
60
60
|
nokogiri (>= 1.6)
|
|
61
|
-
rails-html-sanitizer (1.
|
|
62
|
-
loofah (~> 2.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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)
|
|
66
67
|
method_source
|
|
67
68
|
rake (>= 12.2)
|
|
68
69
|
thor (~> 1.0)
|
|
69
70
|
zeitwerk (~> 2.5)
|
|
70
71
|
rake (13.0.6)
|
|
71
|
-
rspec (3.
|
|
72
|
-
rspec-core (~> 3.
|
|
73
|
-
rspec-expectations (~> 3.
|
|
74
|
-
rspec-mocks (~> 3.
|
|
75
|
-
rspec-core (3.
|
|
76
|
-
rspec-support (~> 3.
|
|
77
|
-
rspec-expectations (3.
|
|
72
|
+
rspec (3.12.0)
|
|
73
|
+
rspec-core (~> 3.12.0)
|
|
74
|
+
rspec-expectations (~> 3.12.0)
|
|
75
|
+
rspec-mocks (~> 3.12.0)
|
|
76
|
+
rspec-core (3.12.2)
|
|
77
|
+
rspec-support (~> 3.12.0)
|
|
78
|
+
rspec-expectations (3.12.3)
|
|
78
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
79
|
-
rspec-support (~> 3.
|
|
80
|
-
rspec-mocks (3.
|
|
80
|
+
rspec-support (~> 3.12.0)
|
|
81
|
+
rspec-mocks (3.12.6)
|
|
81
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
82
|
-
rspec-support (~> 3.
|
|
83
|
-
rspec-support (3.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
rspec-support (~> 3.12.0)
|
|
84
|
+
rspec-support (3.12.1)
|
|
85
|
+
simplecov (0.22.0)
|
|
86
|
+
docile (~> 1.1)
|
|
87
|
+
simplecov-html (~> 0.11)
|
|
88
|
+
simplecov_json_formatter (~> 0.1)
|
|
89
|
+
simplecov-html (0.12.3)
|
|
90
|
+
simplecov_json_formatter (0.1.4)
|
|
91
|
+
thor (1.2.2)
|
|
92
|
+
tzinfo (2.0.6)
|
|
90
93
|
concurrent-ruby (~> 1.0)
|
|
91
|
-
|
|
92
|
-
zeitwerk (2.
|
|
94
|
+
unaccent (0.4.0)
|
|
95
|
+
zeitwerk (2.6.12)
|
|
93
96
|
|
|
94
97
|
PLATFORMS
|
|
95
|
-
|
|
98
|
+
arm64-darwin-22
|
|
99
|
+
x86_64-darwin-22
|
|
96
100
|
x86_64-linux
|
|
97
101
|
|
|
98
102
|
DEPENDENCIES
|
|
99
|
-
actionpack (~> 7.0)
|
|
103
|
+
actionpack (~> 7.0.0)
|
|
100
104
|
country_select!
|
|
105
|
+
nokogiri (~> 1.15)
|
|
101
106
|
pry (~> 0)
|
|
102
|
-
railties (~> 7.0)
|
|
107
|
+
railties (~> 7.0.0)
|
|
103
108
|
rake (~> 13)
|
|
104
109
|
rspec (~> 3)
|
|
110
|
+
simplecov (~> 0.22)
|
|
105
111
|
|
|
106
112
|
BUNDLED WITH
|
|
107
|
-
2.
|
|
113
|
+
2.4.19
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
country_select (8.0.3)
|
|
5
|
+
countries (~> 5.0)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: https://rubygems.org/
|
|
9
|
+
specs:
|
|
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)
|
|
16
|
+
rack-test (>= 0.6.3)
|
|
17
|
+
rails-dom-testing (~> 2.2)
|
|
18
|
+
rails-html-sanitizer (~> 1.6)
|
|
19
|
+
actionview (7.1.0)
|
|
20
|
+
activesupport (= 7.1.0)
|
|
21
|
+
builder (~> 3.1)
|
|
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
|
|
28
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
29
|
+
connection_pool (>= 2.2.5)
|
|
30
|
+
drb
|
|
31
|
+
i18n (>= 1.6, < 2)
|
|
32
|
+
minitest (>= 5.1)
|
|
33
|
+
mutex_m
|
|
34
|
+
tzinfo (~> 2.0)
|
|
35
|
+
base64 (0.1.1)
|
|
36
|
+
bigdecimal (3.1.4)
|
|
37
|
+
builder (3.2.4)
|
|
38
|
+
coderay (1.1.3)
|
|
39
|
+
concurrent-ruby (1.2.2)
|
|
40
|
+
connection_pool (2.4.1)
|
|
41
|
+
countries (5.6.0)
|
|
42
|
+
unaccent (~> 0.3)
|
|
43
|
+
crass (1.0.6)
|
|
44
|
+
diff-lcs (1.5.0)
|
|
45
|
+
docile (1.4.0)
|
|
46
|
+
drb (2.1.1)
|
|
47
|
+
ruby2_keywords
|
|
48
|
+
erubi (1.12.0)
|
|
49
|
+
i18n (1.14.1)
|
|
50
|
+
concurrent-ruby (~> 1.0)
|
|
51
|
+
io-console (0.6.0)
|
|
52
|
+
irb (1.8.1)
|
|
53
|
+
rdoc
|
|
54
|
+
reline (>= 0.3.8)
|
|
55
|
+
loofah (2.21.3)
|
|
56
|
+
crass (~> 1.0.2)
|
|
57
|
+
nokogiri (>= 1.12.0)
|
|
58
|
+
method_source (1.0.0)
|
|
59
|
+
minitest (5.20.0)
|
|
60
|
+
mutex_m (0.1.2)
|
|
61
|
+
nokogiri (1.15.4-arm64-darwin)
|
|
62
|
+
racc (~> 1.4)
|
|
63
|
+
nokogiri (1.15.4-x86_64-darwin)
|
|
64
|
+
racc (~> 1.4)
|
|
65
|
+
nokogiri (1.15.4-x86_64-linux)
|
|
66
|
+
racc (~> 1.4)
|
|
67
|
+
pry (0.14.2)
|
|
68
|
+
coderay (~> 1.1)
|
|
69
|
+
method_source (~> 1.0)
|
|
70
|
+
psych (5.1.0)
|
|
71
|
+
stringio
|
|
72
|
+
racc (1.7.1)
|
|
73
|
+
rack (3.0.8)
|
|
74
|
+
rack-session (2.0.0)
|
|
75
|
+
rack (>= 3.0.0)
|
|
76
|
+
rack-test (2.1.0)
|
|
77
|
+
rack (>= 1.3)
|
|
78
|
+
rackup (2.1.0)
|
|
79
|
+
rack (>= 3)
|
|
80
|
+
webrick (~> 1.8)
|
|
81
|
+
rails-dom-testing (2.2.0)
|
|
82
|
+
activesupport (>= 5.0.0)
|
|
83
|
+
minitest
|
|
84
|
+
nokogiri (>= 1.6)
|
|
85
|
+
rails-html-sanitizer (1.6.0)
|
|
86
|
+
loofah (~> 2.21)
|
|
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)
|
|
96
|
+
rake (13.0.6)
|
|
97
|
+
rdoc (6.5.0)
|
|
98
|
+
psych (>= 4.0.0)
|
|
99
|
+
reline (0.3.9)
|
|
100
|
+
io-console (~> 0.5)
|
|
101
|
+
rspec (3.12.0)
|
|
102
|
+
rspec-core (~> 3.12.0)
|
|
103
|
+
rspec-expectations (~> 3.12.0)
|
|
104
|
+
rspec-mocks (~> 3.12.0)
|
|
105
|
+
rspec-core (3.12.2)
|
|
106
|
+
rspec-support (~> 3.12.0)
|
|
107
|
+
rspec-expectations (3.12.3)
|
|
108
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
109
|
+
rspec-support (~> 3.12.0)
|
|
110
|
+
rspec-mocks (3.12.6)
|
|
111
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
112
|
+
rspec-support (~> 3.12.0)
|
|
113
|
+
rspec-support (3.12.1)
|
|
114
|
+
ruby2_keywords (0.0.5)
|
|
115
|
+
simplecov (0.22.0)
|
|
116
|
+
docile (~> 1.1)
|
|
117
|
+
simplecov-html (~> 0.11)
|
|
118
|
+
simplecov_json_formatter (~> 0.1)
|
|
119
|
+
simplecov-html (0.12.3)
|
|
120
|
+
simplecov_json_formatter (0.1.4)
|
|
121
|
+
stringio (3.0.8)
|
|
122
|
+
thor (1.2.2)
|
|
123
|
+
tzinfo (2.0.6)
|
|
124
|
+
concurrent-ruby (~> 1.0)
|
|
125
|
+
unaccent (0.4.0)
|
|
126
|
+
webrick (1.8.1)
|
|
127
|
+
zeitwerk (2.6.12)
|
|
128
|
+
|
|
129
|
+
PLATFORMS
|
|
130
|
+
arm64-darwin-22
|
|
131
|
+
x86_64-darwin-22
|
|
132
|
+
x86_64-linux
|
|
133
|
+
|
|
134
|
+
DEPENDENCIES
|
|
135
|
+
actionpack (~> 7.1.0)
|
|
136
|
+
country_select!
|
|
137
|
+
nokogiri (~> 1.15)
|
|
138
|
+
pry (~> 0)
|
|
139
|
+
railties (~> 7.1.0)
|
|
140
|
+
rake (~> 13)
|
|
141
|
+
rspec (~> 3)
|
|
142
|
+
simplecov (~> 0.22)
|
|
143
|
+
|
|
144
|
+
BUNDLED WITH
|
|
145
|
+
2.4.19
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module ActionView
|
|
2
4
|
module Helpers
|
|
3
5
|
class FormBuilder
|
|
4
6
|
def country_select(method, priority_or_options = {}, options = {}, html_options = {})
|
|
5
|
-
if Hash
|
|
7
|
+
if priority_or_options.is_a? Hash
|
|
6
8
|
html_options = options
|
|
7
9
|
options = priority_or_options
|
|
8
10
|
else
|
|
11
|
+
if RUBY_VERSION =~ /^3\.\d\.\d/
|
|
12
|
+
warn 'DEPRECATION WARNING: Setting priority countries with the 1.x syntax is deprecated. \
|
|
13
|
+
Please use the `priority_countries:` option.', uplevel: 1, category: :deprecated
|
|
14
|
+
else
|
|
15
|
+
warn 'DEPRECATION WARNING: Setting priority countries with the 1.x syntax is deprecated. \
|
|
16
|
+
Please use the `priority_countries:` option.', uplevel: 1
|
|
17
|
+
end
|
|
9
18
|
options[:priority_countries] = priority_or_options
|
|
10
19
|
end
|
|
11
20
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module CountrySelect
|
|
2
4
|
DEFAULTS = {
|
|
3
5
|
except: nil,
|
|
@@ -5,6 +7,7 @@ module CountrySelect
|
|
|
5
7
|
locale: nil,
|
|
6
8
|
only: nil,
|
|
7
9
|
priority_countries: nil,
|
|
8
|
-
priority_countries_divider:
|
|
10
|
+
priority_countries_divider: '-' * 15,
|
|
11
|
+
sort_provided: true
|
|
9
12
|
}
|
|
10
13
|
end
|