country_select 8.0.0 → 8.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +14 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +56 -40
- data/README.md +2 -8
- data/Rakefile +11 -14
- data/country_select.gemspec +12 -8
- data/gemfiles/actionpack-5.2.gemfile +7 -4
- data/gemfiles/actionpack-5.2.gemfile.lock +52 -40
- data/gemfiles/actionpack-6.0.gemfile +7 -4
- data/gemfiles/actionpack-6.0.gemfile.lock +53 -41
- data/gemfiles/actionpack-6.1.gemfile +7 -4
- data/gemfiles/actionpack-6.1.gemfile.lock +53 -41
- data/gemfiles/actionpack-7.0.gemfile +7 -4
- data/gemfiles/actionpack-7.0.gemfile.lock +53 -41
- data/gemfiles/actionpack-7.1.gemfile +9 -0
- data/gemfiles/actionpack-7.1.gemfile.lock +133 -0
- data/lib/country_select/country_select_helper.rb +10 -3
- data/lib/country_select/defaults.rb +3 -1
- data/lib/country_select/formats.rb +2 -0
- data/lib/country_select/tag_helper.rb +59 -50
- data/lib/country_select/version.rb +3 -1
- data/lib/country_select.rb +1 -1
- data/spec/country_select_spec.rb +114 -96
- data/spec/spec_helper.rb +7 -3
- metadata +28 -10
- data/.github/workflows/build.yml +0 -25
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
country_select (
|
4
|
+
country_select (8.0.1)
|
5
5
|
countries (~> 5.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.0.
|
11
|
-
actionview (= 6.0.
|
12
|
-
activesupport (= 6.0.
|
10
|
+
actionpack (6.0.6.1)
|
11
|
+
actionview (= 6.0.6.1)
|
12
|
+
activesupport (= 6.0.6.1)
|
13
13
|
rack (~> 2.0, >= 2.0.8)
|
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.0.
|
18
|
-
activesupport (= 6.0.
|
17
|
+
actionview (6.0.6.1)
|
18
|
+
activesupport (= 6.0.6.1)
|
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.0.
|
23
|
+
activesupport (6.0.6.1)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
25
|
i18n (>= 0.7, < 2)
|
26
26
|
minitest (~> 5.1)
|
@@ -28,73 +28,85 @@ GEM
|
|
28
28
|
zeitwerk (~> 2.2, >= 2.2.2)
|
29
29
|
builder (3.2.4)
|
30
30
|
coderay (1.1.3)
|
31
|
-
concurrent-ruby (1.
|
32
|
-
countries (5.
|
33
|
-
|
31
|
+
concurrent-ruby (1.2.2)
|
32
|
+
countries (5.4.0)
|
33
|
+
unaccent (~> 0.3)
|
34
34
|
crass (1.0.6)
|
35
35
|
diff-lcs (1.5.0)
|
36
|
-
|
37
|
-
|
36
|
+
docile (1.4.0)
|
37
|
+
erubi (1.12.0)
|
38
|
+
i18n (1.13.0)
|
38
39
|
concurrent-ruby (~> 1.0)
|
39
|
-
loofah (2.
|
40
|
+
loofah (2.20.0)
|
40
41
|
crass (~> 1.0.2)
|
41
42
|
nokogiri (>= 1.5.9)
|
42
43
|
method_source (1.0.0)
|
43
|
-
minitest (5.
|
44
|
-
nokogiri (1.
|
44
|
+
minitest (5.18.0)
|
45
|
+
nokogiri (1.14.0.rc1-arm64-darwin)
|
45
46
|
racc (~> 1.4)
|
46
|
-
nokogiri (1.
|
47
|
+
nokogiri (1.14.0.rc1-x86_64-darwin)
|
47
48
|
racc (~> 1.4)
|
48
|
-
|
49
|
+
nokogiri (1.14.0.rc1-x86_64-linux)
|
50
|
+
racc (~> 1.4)
|
51
|
+
pry (0.14.2)
|
49
52
|
coderay (~> 1.1)
|
50
53
|
method_source (~> 1.0)
|
51
|
-
racc (1.6.
|
52
|
-
rack (2.2.
|
53
|
-
rack-test (2.0
|
54
|
+
racc (1.6.2)
|
55
|
+
rack (2.2.7)
|
56
|
+
rack-test (2.1.0)
|
54
57
|
rack (>= 1.3)
|
55
58
|
rails-dom-testing (2.0.3)
|
56
59
|
activesupport (>= 4.2.0)
|
57
60
|
nokogiri (>= 1.6)
|
58
|
-
rails-html-sanitizer (1.
|
59
|
-
loofah (~> 2.
|
60
|
-
railties (6.0.
|
61
|
-
actionpack (= 6.0.
|
62
|
-
activesupport (= 6.0.
|
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)
|
63
66
|
method_source
|
64
67
|
rake (>= 0.8.7)
|
65
68
|
thor (>= 0.20.3, < 2.0)
|
66
69
|
rake (13.0.6)
|
67
|
-
rspec (3.
|
68
|
-
rspec-core (~> 3.
|
69
|
-
rspec-expectations (~> 3.
|
70
|
-
rspec-mocks (~> 3.
|
71
|
-
rspec-core (3.
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-expectations (3.
|
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)
|
74
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-mocks (3.
|
78
|
+
rspec-support (~> 3.12.0)
|
79
|
+
rspec-mocks (3.12.5)
|
77
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-support (3.
|
80
|
-
|
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)
|
81
89
|
thor (1.2.1)
|
82
90
|
thread_safe (0.3.6)
|
83
|
-
tzinfo (1.2.
|
91
|
+
tzinfo (1.2.11)
|
84
92
|
thread_safe (~> 0.1)
|
85
|
-
|
93
|
+
unaccent (0.4.0)
|
94
|
+
zeitwerk (2.6.8)
|
86
95
|
|
87
96
|
PLATFORMS
|
88
|
-
|
97
|
+
arm64-darwin-22
|
98
|
+
x86_64-darwin-22
|
89
99
|
x86_64-linux
|
90
100
|
|
91
101
|
DEPENDENCIES
|
92
102
|
actionpack (~> 6.0.0)
|
93
103
|
country_select!
|
104
|
+
nokogiri (= 1.14.0.rc1)
|
94
105
|
pry (~> 0)
|
95
106
|
railties (~> 6.0.0)
|
96
107
|
rake (~> 13)
|
97
108
|
rspec (~> 3)
|
109
|
+
simplecov (~> 0.22)
|
98
110
|
|
99
111
|
BUNDLED WITH
|
100
|
-
2.
|
112
|
+
2.4.2
|
@@ -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', '~> 6.1.0'
|
8
|
+
gem 'actionpack', '~> 6.1.0'
|
9
|
+
gem 'nokogiri', '= 1.14.0.rc1'
|
@@ -1,26 +1,26 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
country_select (
|
4
|
+
country_select (8.0.1)
|
5
5
|
countries (~> 5.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.1.
|
11
|
-
actionview (= 6.1.
|
12
|
-
activesupport (= 6.1.
|
10
|
+
actionpack (6.1.7.3)
|
11
|
+
actionview (= 6.1.7.3)
|
12
|
+
activesupport (= 6.1.7.3)
|
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.
|
18
|
-
activesupport (= 6.1.
|
17
|
+
actionview (6.1.7.3)
|
18
|
+
activesupport (= 6.1.7.3)
|
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.
|
23
|
+
activesupport (6.1.7.3)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
25
|
i18n (>= 1.6, < 2)
|
26
26
|
minitest (>= 5.1)
|
@@ -28,72 +28,84 @@ GEM
|
|
28
28
|
zeitwerk (~> 2.3)
|
29
29
|
builder (3.2.4)
|
30
30
|
coderay (1.1.3)
|
31
|
-
concurrent-ruby (1.
|
32
|
-
countries (5.
|
33
|
-
|
31
|
+
concurrent-ruby (1.2.2)
|
32
|
+
countries (5.4.0)
|
33
|
+
unaccent (~> 0.3)
|
34
34
|
crass (1.0.6)
|
35
35
|
diff-lcs (1.5.0)
|
36
|
-
|
37
|
-
|
36
|
+
docile (1.4.0)
|
37
|
+
erubi (1.12.0)
|
38
|
+
i18n (1.13.0)
|
38
39
|
concurrent-ruby (~> 1.0)
|
39
|
-
loofah (2.
|
40
|
+
loofah (2.20.0)
|
40
41
|
crass (~> 1.0.2)
|
41
42
|
nokogiri (>= 1.5.9)
|
42
43
|
method_source (1.0.0)
|
43
|
-
minitest (5.
|
44
|
-
nokogiri (1.
|
44
|
+
minitest (5.18.0)
|
45
|
+
nokogiri (1.14.0.rc1-arm64-darwin)
|
45
46
|
racc (~> 1.4)
|
46
|
-
nokogiri (1.
|
47
|
+
nokogiri (1.14.0.rc1-x86_64-darwin)
|
47
48
|
racc (~> 1.4)
|
48
|
-
|
49
|
+
nokogiri (1.14.0.rc1-x86_64-linux)
|
50
|
+
racc (~> 1.4)
|
51
|
+
pry (0.14.2)
|
49
52
|
coderay (~> 1.1)
|
50
53
|
method_source (~> 1.0)
|
51
|
-
racc (1.6.
|
52
|
-
rack (2.2.
|
53
|
-
rack-test (2.0
|
54
|
+
racc (1.6.2)
|
55
|
+
rack (2.2.7)
|
56
|
+
rack-test (2.1.0)
|
54
57
|
rack (>= 1.3)
|
55
58
|
rails-dom-testing (2.0.3)
|
56
59
|
activesupport (>= 4.2.0)
|
57
60
|
nokogiri (>= 1.6)
|
58
|
-
rails-html-sanitizer (1.
|
59
|
-
loofah (~> 2.
|
60
|
-
railties (6.1.
|
61
|
-
actionpack (= 6.1.
|
62
|
-
activesupport (= 6.1.
|
61
|
+
rails-html-sanitizer (1.5.0)
|
62
|
+
loofah (~> 2.19, >= 2.19.1)
|
63
|
+
railties (6.1.7.3)
|
64
|
+
actionpack (= 6.1.7.3)
|
65
|
+
activesupport (= 6.1.7.3)
|
63
66
|
method_source
|
64
67
|
rake (>= 12.2)
|
65
68
|
thor (~> 1.0)
|
66
69
|
rake (13.0.6)
|
67
|
-
rspec (3.
|
68
|
-
rspec-core (~> 3.
|
69
|
-
rspec-expectations (~> 3.
|
70
|
-
rspec-mocks (~> 3.
|
71
|
-
rspec-core (3.
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-expectations (3.
|
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)
|
74
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-mocks (3.
|
78
|
+
rspec-support (~> 3.12.0)
|
79
|
+
rspec-mocks (3.12.5)
|
77
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-support (3.
|
80
|
-
|
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)
|
81
89
|
thor (1.2.1)
|
82
|
-
tzinfo (2.0.
|
90
|
+
tzinfo (2.0.6)
|
83
91
|
concurrent-ruby (~> 1.0)
|
84
|
-
|
92
|
+
unaccent (0.4.0)
|
93
|
+
zeitwerk (2.6.8)
|
85
94
|
|
86
95
|
PLATFORMS
|
87
|
-
|
96
|
+
arm64-darwin-22
|
97
|
+
x86_64-darwin-22
|
88
98
|
x86_64-linux
|
89
99
|
|
90
100
|
DEPENDENCIES
|
91
101
|
actionpack (~> 6.1.0)
|
92
102
|
country_select!
|
103
|
+
nokogiri (= 1.14.0.rc1)
|
93
104
|
pry (~> 0)
|
94
105
|
railties (~> 6.1.0)
|
95
106
|
rake (~> 13)
|
96
107
|
rspec (~> 3)
|
108
|
+
simplecov (~> 0.22)
|
97
109
|
|
98
110
|
BUNDLED WITH
|
99
|
-
2.
|
111
|
+
2.4.2
|
@@ -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.14.0.rc1'
|
@@ -1,99 +1,111 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
country_select (
|
4
|
+
country_select (8.0.1)
|
5
5
|
countries (~> 5.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (7.0.3)
|
11
|
-
actionview (= 7.0.3)
|
12
|
-
activesupport (= 7.0.3)
|
10
|
+
actionpack (7.0.4.3)
|
11
|
+
actionview (= 7.0.4.3)
|
12
|
+
activesupport (= 7.0.4.3)
|
13
13
|
rack (~> 2.0, >= 2.2.0)
|
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.3)
|
18
|
-
activesupport (= 7.0.3)
|
17
|
+
actionview (7.0.4.3)
|
18
|
+
activesupport (= 7.0.4.3)
|
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.3)
|
23
|
+
activesupport (7.0.4.3)
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
25
25
|
i18n (>= 1.6, < 2)
|
26
26
|
minitest (>= 5.1)
|
27
27
|
tzinfo (~> 2.0)
|
28
28
|
builder (3.2.4)
|
29
29
|
coderay (1.1.3)
|
30
|
-
concurrent-ruby (1.
|
31
|
-
countries (5.
|
32
|
-
|
30
|
+
concurrent-ruby (1.2.2)
|
31
|
+
countries (5.4.0)
|
32
|
+
unaccent (~> 0.3)
|
33
33
|
crass (1.0.6)
|
34
34
|
diff-lcs (1.5.0)
|
35
|
-
|
36
|
-
|
35
|
+
docile (1.4.0)
|
36
|
+
erubi (1.12.0)
|
37
|
+
i18n (1.13.0)
|
37
38
|
concurrent-ruby (~> 1.0)
|
38
|
-
loofah (2.
|
39
|
+
loofah (2.20.0)
|
39
40
|
crass (~> 1.0.2)
|
40
41
|
nokogiri (>= 1.5.9)
|
41
42
|
method_source (1.0.0)
|
42
|
-
minitest (5.
|
43
|
-
nokogiri (1.
|
43
|
+
minitest (5.18.0)
|
44
|
+
nokogiri (1.14.0.rc1-arm64-darwin)
|
44
45
|
racc (~> 1.4)
|
45
|
-
nokogiri (1.
|
46
|
+
nokogiri (1.14.0.rc1-x86_64-darwin)
|
46
47
|
racc (~> 1.4)
|
47
|
-
|
48
|
+
nokogiri (1.14.0.rc1-x86_64-linux)
|
49
|
+
racc (~> 1.4)
|
50
|
+
pry (0.14.2)
|
48
51
|
coderay (~> 1.1)
|
49
52
|
method_source (~> 1.0)
|
50
|
-
racc (1.6.
|
51
|
-
rack (2.2.
|
52
|
-
rack-test (2.0
|
53
|
+
racc (1.6.2)
|
54
|
+
rack (2.2.7)
|
55
|
+
rack-test (2.1.0)
|
53
56
|
rack (>= 1.3)
|
54
57
|
rails-dom-testing (2.0.3)
|
55
58
|
activesupport (>= 4.2.0)
|
56
59
|
nokogiri (>= 1.6)
|
57
|
-
rails-html-sanitizer (1.
|
58
|
-
loofah (~> 2.
|
59
|
-
railties (7.0.3)
|
60
|
-
actionpack (= 7.0.3)
|
61
|
-
activesupport (= 7.0.3)
|
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)
|
62
65
|
method_source
|
63
66
|
rake (>= 12.2)
|
64
67
|
thor (~> 1.0)
|
65
68
|
zeitwerk (~> 2.5)
|
66
69
|
rake (13.0.6)
|
67
|
-
rspec (3.
|
68
|
-
rspec-core (~> 3.
|
69
|
-
rspec-expectations (~> 3.
|
70
|
-
rspec-mocks (~> 3.
|
71
|
-
rspec-core (3.
|
72
|
-
rspec-support (~> 3.
|
73
|
-
rspec-expectations (3.
|
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)
|
74
77
|
diff-lcs (>= 1.2.0, < 2.0)
|
75
|
-
rspec-support (~> 3.
|
76
|
-
rspec-mocks (3.
|
78
|
+
rspec-support (~> 3.12.0)
|
79
|
+
rspec-mocks (3.12.5)
|
77
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
78
|
-
rspec-support (~> 3.
|
79
|
-
rspec-support (3.
|
80
|
-
|
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)
|
81
89
|
thor (1.2.1)
|
82
|
-
tzinfo (2.0.
|
90
|
+
tzinfo (2.0.6)
|
83
91
|
concurrent-ruby (~> 1.0)
|
84
|
-
|
92
|
+
unaccent (0.4.0)
|
93
|
+
zeitwerk (2.6.8)
|
85
94
|
|
86
95
|
PLATFORMS
|
87
|
-
|
96
|
+
arm64-darwin-22
|
97
|
+
x86_64-darwin-22
|
88
98
|
x86_64-linux
|
89
99
|
|
90
100
|
DEPENDENCIES
|
91
101
|
actionpack (~> 7.0.0)
|
92
102
|
country_select!
|
103
|
+
nokogiri (= 1.14.0.rc1)
|
93
104
|
pry (~> 0)
|
94
105
|
railties (~> 7.0.0)
|
95
106
|
rake (~> 13)
|
96
107
|
rspec (~> 3)
|
108
|
+
simplecov (~> 0.22)
|
97
109
|
|
98
110
|
BUNDLED WITH
|
99
|
-
2.
|
111
|
+
2.4.2
|
@@ -0,0 +1,133 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/rails/rails.git
|
3
|
+
revision: 5b2523edaa131eec7b18780b7916760828262df4
|
4
|
+
specs:
|
5
|
+
actionpack (7.1.0.alpha)
|
6
|
+
actionview (= 7.1.0.alpha)
|
7
|
+
activesupport (= 7.1.0.alpha)
|
8
|
+
nokogiri (>= 1.8.5)
|
9
|
+
rack (>= 2.2.4)
|
10
|
+
rack-session (>= 1.0.1)
|
11
|
+
rack-test (>= 0.6.3)
|
12
|
+
rails-dom-testing (~> 2.0)
|
13
|
+
rails-html-sanitizer (~> 1.6)
|
14
|
+
actionview (7.1.0.alpha)
|
15
|
+
activesupport (= 7.1.0.alpha)
|
16
|
+
builder (~> 3.1)
|
17
|
+
erubi (~> 1.11)
|
18
|
+
rails-dom-testing (~> 2.0)
|
19
|
+
rails-html-sanitizer (~> 1.6)
|
20
|
+
activesupport (7.1.0.alpha)
|
21
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
22
|
+
connection_pool (>= 2.2.5)
|
23
|
+
i18n (>= 1.6, < 2)
|
24
|
+
minitest (>= 5.1)
|
25
|
+
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:
|
44
|
+
builder (3.2.4)
|
45
|
+
coderay (1.1.3)
|
46
|
+
concurrent-ruby (1.2.2)
|
47
|
+
connection_pool (2.4.1)
|
48
|
+
countries (5.5.0)
|
49
|
+
unaccent (~> 0.3)
|
50
|
+
crass (1.0.6)
|
51
|
+
diff-lcs (1.5.0)
|
52
|
+
docile (1.4.0)
|
53
|
+
erubi (1.12.0)
|
54
|
+
i18n (1.14.1)
|
55
|
+
concurrent-ruby (~> 1.0)
|
56
|
+
io-console (0.6.0)
|
57
|
+
irb (1.7.0)
|
58
|
+
reline (>= 0.3.0)
|
59
|
+
loofah (2.21.3)
|
60
|
+
crass (~> 1.0.2)
|
61
|
+
nokogiri (>= 1.12.0)
|
62
|
+
method_source (1.0.0)
|
63
|
+
minitest (5.18.1)
|
64
|
+
nokogiri (1.15.2-arm64-darwin)
|
65
|
+
racc (~> 1.4)
|
66
|
+
nokogiri (1.15.2-x86_64-darwin)
|
67
|
+
racc (~> 1.4)
|
68
|
+
nokogiri (1.15.2-x86_64-linux)
|
69
|
+
racc (~> 1.4)
|
70
|
+
pry (0.14.2)
|
71
|
+
coderay (~> 1.1)
|
72
|
+
method_source (~> 1.0)
|
73
|
+
racc (1.7.1)
|
74
|
+
rack (3.0.8)
|
75
|
+
rack-session (2.0.0)
|
76
|
+
rack (>= 3.0.0)
|
77
|
+
rack-test (2.1.0)
|
78
|
+
rack (>= 1.3)
|
79
|
+
rackup (2.1.0)
|
80
|
+
rack (>= 3)
|
81
|
+
webrick (~> 1.8)
|
82
|
+
rails-dom-testing (2.0.3)
|
83
|
+
activesupport (>= 4.2.0)
|
84
|
+
nokogiri (>= 1.6)
|
85
|
+
rails-html-sanitizer (1.6.0)
|
86
|
+
loofah (~> 2.21)
|
87
|
+
nokogiri (~> 1.14)
|
88
|
+
rake (13.0.6)
|
89
|
+
reline (0.3.5)
|
90
|
+
io-console (~> 0.5)
|
91
|
+
rspec (3.12.0)
|
92
|
+
rspec-core (~> 3.12.0)
|
93
|
+
rspec-expectations (~> 3.12.0)
|
94
|
+
rspec-mocks (~> 3.12.0)
|
95
|
+
rspec-core (3.12.2)
|
96
|
+
rspec-support (~> 3.12.0)
|
97
|
+
rspec-expectations (3.12.3)
|
98
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
99
|
+
rspec-support (~> 3.12.0)
|
100
|
+
rspec-mocks (3.12.5)
|
101
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
102
|
+
rspec-support (~> 3.12.0)
|
103
|
+
rspec-support (3.12.1)
|
104
|
+
simplecov (0.22.0)
|
105
|
+
docile (~> 1.1)
|
106
|
+
simplecov-html (~> 0.11)
|
107
|
+
simplecov_json_formatter (~> 0.1)
|
108
|
+
simplecov-html (0.12.3)
|
109
|
+
simplecov_json_formatter (0.1.4)
|
110
|
+
thor (1.2.2)
|
111
|
+
tzinfo (2.0.6)
|
112
|
+
concurrent-ruby (~> 1.0)
|
113
|
+
unaccent (0.4.0)
|
114
|
+
webrick (1.8.1)
|
115
|
+
zeitwerk (2.6.8)
|
116
|
+
|
117
|
+
PLATFORMS
|
118
|
+
arm64-darwin-22
|
119
|
+
x86_64-darwin-22
|
120
|
+
x86_64-linux
|
121
|
+
|
122
|
+
DEPENDENCIES
|
123
|
+
actionpack (~> 7.1.0.alpha)!
|
124
|
+
country_select!
|
125
|
+
nokogiri (~> 1.14)
|
126
|
+
pry (~> 0)
|
127
|
+
railties (~> 7.1.0.alpha)!
|
128
|
+
rake (~> 13)
|
129
|
+
rspec (~> 3)
|
130
|
+
simplecov (~> 0.22)
|
131
|
+
|
132
|
+
BUNDLED WITH
|
133
|
+
2.4.2
|
@@ -1,15 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module ActionView
|
2
4
|
module Helpers
|
3
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
|
4
9
|
def country_select(method, priority_or_options = {}, options = {}, html_options = {})
|
5
|
-
if Hash
|
10
|
+
if priority_or_options.is_a? Hash
|
6
11
|
html_options = options
|
7
12
|
options = priority_or_options
|
8
13
|
else
|
9
14
|
if RUBY_VERSION =~ /^3\.\d\.\d/
|
10
|
-
warn
|
15
|
+
warn 'DEPRECATION WARNING: Setting priority countries with the 1.x syntax is deprecated. \
|
16
|
+
Please use the `priority_countries:` option.', uplevel: 1, category: :deprecated
|
11
17
|
else
|
12
|
-
warn
|
18
|
+
warn 'DEPRECATION WARNING: Setting priority countries with the 1.x syntax is deprecated. \
|
19
|
+
Please use the `priority_countries:` option.', uplevel: 1
|
13
20
|
end
|
14
21
|
options[:priority_countries] = priority_or_options
|
15
22
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module CountrySelect
|
2
4
|
DEFAULTS = {
|
3
5
|
except: nil,
|
@@ -5,7 +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,
|
9
11
|
sort_provided: true
|
10
12
|
}
|
11
13
|
end
|