country_select 10.0.0 → 11.0.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
  SHA256:
3
- metadata.gz: ad1367d0d5496b47fad1f2952b50ea69c3debd17fccfa78ba0614d146ac5739f
4
- data.tar.gz: cedbc815ad549d03c5b8c84c7595b17dc8ca317a20225955f4e87a372e3a03ed
3
+ metadata.gz: 7a466635fed31b8e5cec2aa2e027b660fbe29192ea904148b0868d9e02de0c32
4
+ data.tar.gz: ec49cffffa6bfef5fbae3ce77534ef0d287d4dab4eb1657b26d51fd21be4873a
5
5
  SHA512:
6
- metadata.gz: 9698b322475af128513c1aa5ca91afcfc8764830b8e5e8e8f2c86892aede617f88218045a63da8ea794d8587bb68427608e3746dbcd8dc6c84177245922304f4
7
- data.tar.gz: f12aff843e0e7a1f8df6d51b2c3373c983be5b6f98012647f439ea6d34cbec69a9a2ea87885f02949903353eef9a639fc82e48ffbfd08fc2575e7ff8217fb43a
6
+ metadata.gz: 3f4b1672b7fa38662430f15305ae861864152767b78fc1df8b88918c967f5f32c54ac7c29b813225b2d0476a0af19043b3ae3817742a069d4e9ac12ae4e3304b
7
+ data.tar.gz: 756db308e0954e380982a08c2df10d9b58437e537c4502ac51e79bdfad8ff41437713760d4da9865d2e65a995d6ad5030860428ba943801670e036c850103555
@@ -16,8 +16,8 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [3.1, 3.2, 3.3]
20
- gemfile: [6.1, '7.0', 7.1, 7.2]
19
+ ruby: [3.2, 3.3, 3.4]
20
+ gemfile: [7.1, 7.2, '8.0']
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
@@ -28,7 +28,7 @@ jobs:
28
28
  with:
29
29
  ruby-version: ${{ matrix.ruby }}
30
30
  bundler-cache: true
31
- cache-version: 9
31
+ cache-version: 10
32
32
  - name: Run tests
33
33
 
34
34
  run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 11.0.0 2025-05-31
2
+
3
+ * fix: Improve sorting for non-Latin country names by @kiyohara in https://github.com/countries/country_select/pull/230
4
+ * Drop support for Ruby 3.1, Rails 7.0 and countries gem 5.x. Allow countries gem 8.x by @pmor in https://github.com/countries/country_select/pull/232
5
+ * Use <hr> as divider by @ursm in https://github.com/countries/country_select/pull/229
6
+
7
+ ## 10.0.1 2025-01-04
8
+
9
+ * Add Ruby 3.4 and Rails 8.0 to the test matrix and drop Rails 6.1 tests. by @pmor in https://github.com/countries/country_select/pull/228
10
+
1
11
  ## 10.0.0 2024-09-29
2
12
 
3
13
  * Drop support for Ruby 3.0 (EOL 2024-04-23) (@pmor)
data/Gemfile CHANGED
@@ -3,3 +3,5 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ gem 'actionpack', '> 7.0'
data/Gemfile.lock CHANGED
@@ -1,31 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- country_select (9.0.0)
5
- countries (> 5.0, < 8.0)
4
+ country_select (10.0.1)
5
+ countries (> 6.0, < 9.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (7.2.1)
11
- actionview (= 7.2.1)
12
- activesupport (= 7.2.1)
10
+ actionpack (8.0.2)
11
+ actionview (= 8.0.2)
12
+ activesupport (= 8.0.2)
13
13
  nokogiri (>= 1.8.5)
14
- racc
15
- rack (>= 2.2.4, < 3.2)
14
+ rack (>= 2.2.4)
16
15
  rack-session (>= 1.0.1)
17
16
  rack-test (>= 0.6.3)
18
17
  rails-dom-testing (~> 2.2)
19
18
  rails-html-sanitizer (~> 1.6)
20
19
  useragent (~> 0.16)
21
- actionview (7.2.1)
22
- activesupport (= 7.2.1)
20
+ actionview (8.0.2)
21
+ activesupport (= 8.0.2)
23
22
  builder (~> 3.1)
24
23
  erubi (~> 1.11)
25
24
  rails-dom-testing (~> 2.2)
26
25
  rails-html-sanitizer (~> 1.6)
27
- activesupport (7.2.1)
26
+ activesupport (8.0.2)
28
27
  base64
28
+ benchmark (>= 0.3)
29
29
  bigdecimal
30
30
  concurrent-ruby (~> 1.0, >= 1.3.1)
31
31
  connection_pool (>= 2.2.5)
@@ -35,68 +35,81 @@ GEM
35
35
  minitest (>= 5.1)
36
36
  securerandom (>= 0.3)
37
37
  tzinfo (~> 2.0, >= 2.0.5)
38
- base64 (0.2.0)
39
- bigdecimal (3.1.8)
38
+ uri (>= 0.13.1)
39
+ base64 (0.3.0)
40
+ benchmark (0.4.1)
41
+ bigdecimal (3.2.1)
40
42
  builder (3.3.0)
41
43
  coderay (1.1.3)
42
- concurrent-ruby (1.3.4)
43
- connection_pool (2.4.1)
44
- countries (7.0.0)
44
+ concurrent-ruby (1.3.5)
45
+ connection_pool (2.5.3)
46
+ countries (8.0.0)
45
47
  unaccent (~> 0.3)
46
48
  crass (1.0.6)
47
- diff-lcs (1.5.1)
49
+ diff-lcs (1.6.2)
48
50
  docile (1.4.1)
49
- drb (2.2.1)
50
- erubi (1.13.0)
51
- i18n (1.14.6)
51
+ drb (2.2.3)
52
+ erubi (1.13.1)
53
+ i18n (1.14.7)
52
54
  concurrent-ruby (~> 1.0)
53
- logger (1.6.1)
54
- loofah (2.22.0)
55
+ logger (1.7.0)
56
+ loofah (2.24.1)
55
57
  crass (~> 1.0.2)
56
58
  nokogiri (>= 1.12.0)
57
59
  method_source (1.1.0)
58
- mini_portile2 (2.8.7)
59
- minitest (5.25.1)
60
- nokogiri (1.16.7)
60
+ mini_portile2 (2.8.9)
61
+ minitest (5.25.5)
62
+ nokogiri (1.18.8)
61
63
  mini_portile2 (~> 2.8.2)
62
64
  racc (~> 1.4)
63
- nokogiri (1.16.7-arm64-darwin)
65
+ nokogiri (1.18.8-aarch64-linux-gnu)
64
66
  racc (~> 1.4)
65
- nokogiri (1.16.7-x86_64-darwin)
67
+ nokogiri (1.18.8-aarch64-linux-musl)
66
68
  racc (~> 1.4)
67
- nokogiri (1.16.7-x86_64-linux)
69
+ nokogiri (1.18.8-arm-linux-gnu)
68
70
  racc (~> 1.4)
69
- pry (0.14.2)
71
+ nokogiri (1.18.8-arm-linux-musl)
72
+ racc (~> 1.4)
73
+ nokogiri (1.18.8-arm64-darwin)
74
+ racc (~> 1.4)
75
+ nokogiri (1.18.8-x86_64-darwin)
76
+ racc (~> 1.4)
77
+ nokogiri (1.18.8-x86_64-linux-gnu)
78
+ racc (~> 1.4)
79
+ nokogiri (1.18.8-x86_64-linux-musl)
80
+ racc (~> 1.4)
81
+ pry (0.15.2)
70
82
  coderay (~> 1.1)
71
83
  method_source (~> 1.0)
72
84
  racc (1.8.1)
73
- rack (3.1.7)
74
- rack-session (2.0.0)
85
+ rack (3.1.15)
86
+ rack-session (2.1.1)
87
+ base64 (>= 0.1.0)
75
88
  rack (>= 3.0.0)
76
- rack-test (2.1.0)
89
+ rack-test (2.2.0)
77
90
  rack (>= 1.3)
78
- rails-dom-testing (2.2.0)
91
+ rails-dom-testing (2.3.0)
79
92
  activesupport (>= 5.0.0)
80
93
  minitest
81
94
  nokogiri (>= 1.6)
82
- rails-html-sanitizer (1.6.0)
95
+ rails-html-sanitizer (1.6.2)
83
96
  loofah (~> 2.21)
84
- nokogiri (~> 1.14)
85
- rake (13.2.1)
86
- rspec (3.13.0)
97
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
98
+ rake (13.3.0)
99
+ rspec (3.13.1)
87
100
  rspec-core (~> 3.13.0)
88
101
  rspec-expectations (~> 3.13.0)
89
102
  rspec-mocks (~> 3.13.0)
90
- rspec-core (3.13.1)
103
+ rspec-core (3.13.4)
91
104
  rspec-support (~> 3.13.0)
92
- rspec-expectations (3.13.3)
105
+ rspec-expectations (3.13.5)
93
106
  diff-lcs (>= 1.2.0, < 2.0)
94
107
  rspec-support (~> 3.13.0)
95
- rspec-mocks (3.13.1)
108
+ rspec-mocks (3.13.5)
96
109
  diff-lcs (>= 1.2.0, < 2.0)
97
110
  rspec-support (~> 3.13.0)
98
- rspec-support (3.13.1)
99
- securerandom (0.3.1)
111
+ rspec-support (3.13.4)
112
+ securerandom (0.4.1)
100
113
  simplecov (0.22.0)
101
114
  docile (~> 1.1)
102
115
  simplecov-html (~> 0.11)
@@ -106,16 +119,23 @@ GEM
106
119
  tzinfo (2.0.6)
107
120
  concurrent-ruby (~> 1.0)
108
121
  unaccent (0.4.0)
109
- useragent (0.16.10)
122
+ uri (1.0.3)
123
+ useragent (0.16.11)
110
124
 
111
125
  PLATFORMS
112
- arm64-darwin-22
126
+ aarch64-linux-gnu
127
+ aarch64-linux-musl
128
+ arm-linux-gnu
129
+ arm-linux-musl
130
+ arm64-darwin
113
131
  ruby
114
- x86_64-darwin-22
132
+ x86_64-darwin
115
133
  x86_64-linux
134
+ x86_64-linux-gnu
135
+ x86_64-linux-musl
116
136
 
117
137
  DEPENDENCIES
118
- actionpack (~> 7.0)
138
+ actionpack (> 7.0)
119
139
  country_select!
120
140
  pry (~> 0)
121
141
  rake (~> 13)
@@ -123,4 +143,4 @@ DEPENDENCIES
123
143
  simplecov (~> 0.22)
124
144
 
125
145
  BUNDLED WITH
126
- 2.5.11
146
+ 2.6.2
data/README.md CHANGED
@@ -76,11 +76,6 @@ Pre-selecting a particular country:
76
76
  country_select("user", "country", selected: "GB")
77
77
  ```
78
78
 
79
- Changing the divider when priority_countries is active.
80
- ```ruby
81
- country_select("user", "country", priority_countries: ["AR", "US"], priority_countries_divider: "~~~~~~")
82
- ```
83
-
84
79
  Using existing `select` options:
85
80
  ```ruby
86
81
  country_select("user", "country", include_blank: true)
@@ -126,7 +121,7 @@ country_select("user", "country", format: :with_data_attrs)
126
121
  ### Using customized defaults
127
122
 
128
123
  You can configure overridable defaults for `except`, `format`, `locale`,
129
- `only`, `priority_countries` and `priority_countries_divider` in an initializer.
124
+ `only` and `priority_countries` in an initializer.
130
125
 
131
126
  ````ruby
132
127
  # config/initializers/country_select.rb
@@ -24,13 +24,12 @@ Gem::Specification.new do |s|
24
24
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
25
25
  s.require_paths = ['lib']
26
26
 
27
- s.required_ruby_version = '>= 3.1'
27
+ s.required_ruby_version = '>= 3.2'
28
28
 
29
- s.add_development_dependency 'actionpack', '~> 7.0'
30
29
  s.add_development_dependency 'pry', '~> 0'
31
30
  s.add_development_dependency 'rake', '~> 13'
32
31
  s.add_development_dependency 'rspec', '~> 3'
33
32
  s.add_development_dependency 'simplecov', '~> 0.22'
34
33
 
35
- s.add_dependency 'countries', '> 5.0', '< 8.0'
34
+ s.add_dependency 'countries', '> 6.0', '< 9.0'
36
35
  end
@@ -6,4 +6,4 @@ gemspec path: '../'
6
6
 
7
7
  gem 'railties', '~> 7.1.0'
8
8
  gem 'actionpack', '~> 7.1.0'
9
- gem 'nokogiri', '~> 1.15'
9
+ gem 'nokogiri', '~> 1.18'
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- country_select (10.0.0)
5
- countries (> 5.0, < 8.0)
4
+ country_select (10.0.1)
5
+ countries (> 6.0, < 9.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (7.1.4)
11
- actionview (= 7.1.4)
12
- activesupport (= 7.1.4)
10
+ actionpack (7.1.5.1)
11
+ actionview (= 7.1.5.1)
12
+ activesupport (= 7.1.5.1)
13
13
  nokogiri (>= 1.8.5)
14
14
  racc
15
15
  rack (>= 2.2.4)
@@ -17,124 +17,152 @@ GEM
17
17
  rack-test (>= 0.6.3)
18
18
  rails-dom-testing (~> 2.2)
19
19
  rails-html-sanitizer (~> 1.6)
20
- actionview (7.1.4)
21
- activesupport (= 7.1.4)
20
+ actionview (7.1.5.1)
21
+ activesupport (= 7.1.5.1)
22
22
  builder (~> 3.1)
23
23
  erubi (~> 1.11)
24
24
  rails-dom-testing (~> 2.2)
25
25
  rails-html-sanitizer (~> 1.6)
26
- activesupport (7.1.4)
26
+ activesupport (7.1.5.1)
27
27
  base64
28
+ benchmark (>= 0.3)
28
29
  bigdecimal
29
30
  concurrent-ruby (~> 1.0, >= 1.0.2)
30
31
  connection_pool (>= 2.2.5)
31
32
  drb
32
33
  i18n (>= 1.6, < 2)
34
+ logger (>= 1.4.2)
33
35
  minitest (>= 5.1)
34
36
  mutex_m
37
+ securerandom (>= 0.3)
35
38
  tzinfo (~> 2.0)
36
- base64 (0.2.0)
37
- bigdecimal (3.1.8)
39
+ base64 (0.3.0)
40
+ benchmark (0.4.1)
41
+ bigdecimal (3.2.1)
38
42
  builder (3.3.0)
39
43
  coderay (1.1.3)
40
- concurrent-ruby (1.3.4)
41
- connection_pool (2.4.1)
42
- countries (7.0.0)
44
+ concurrent-ruby (1.3.5)
45
+ connection_pool (2.5.3)
46
+ countries (8.0.0)
43
47
  unaccent (~> 0.3)
44
48
  crass (1.0.6)
45
- diff-lcs (1.5.1)
49
+ date (3.4.1)
50
+ diff-lcs (1.6.2)
46
51
  docile (1.4.1)
47
- drb (2.2.1)
48
- erubi (1.13.0)
49
- i18n (1.14.6)
52
+ drb (2.2.3)
53
+ erb (5.0.1)
54
+ erubi (1.13.1)
55
+ i18n (1.14.7)
50
56
  concurrent-ruby (~> 1.0)
51
- io-console (0.7.2)
52
- irb (1.14.1)
57
+ io-console (0.8.0)
58
+ irb (1.15.2)
59
+ pp (>= 0.6.0)
53
60
  rdoc (>= 4.0.0)
54
61
  reline (>= 0.4.2)
55
- loofah (2.22.0)
62
+ logger (1.7.0)
63
+ loofah (2.24.1)
56
64
  crass (~> 1.0.2)
57
65
  nokogiri (>= 1.12.0)
58
66
  method_source (1.1.0)
59
- minitest (5.25.1)
60
- mutex_m (0.2.0)
61
- nokogiri (1.16.7-arm64-darwin)
67
+ minitest (5.25.5)
68
+ mutex_m (0.3.0)
69
+ nokogiri (1.18.8-aarch64-linux-gnu)
62
70
  racc (~> 1.4)
63
- nokogiri (1.16.7-x86_64-darwin)
71
+ nokogiri (1.18.8-aarch64-linux-musl)
64
72
  racc (~> 1.4)
65
- nokogiri (1.16.7-x86_64-linux)
73
+ nokogiri (1.18.8-arm-linux-gnu)
66
74
  racc (~> 1.4)
67
- pry (0.14.2)
75
+ nokogiri (1.18.8-arm-linux-musl)
76
+ racc (~> 1.4)
77
+ nokogiri (1.18.8-arm64-darwin)
78
+ racc (~> 1.4)
79
+ nokogiri (1.18.8-x86_64-darwin)
80
+ racc (~> 1.4)
81
+ nokogiri (1.18.8-x86_64-linux-gnu)
82
+ racc (~> 1.4)
83
+ nokogiri (1.18.8-x86_64-linux-musl)
84
+ racc (~> 1.4)
85
+ pp (0.6.2)
86
+ prettyprint
87
+ prettyprint (0.2.0)
88
+ pry (0.15.2)
68
89
  coderay (~> 1.1)
69
90
  method_source (~> 1.0)
70
- psych (5.1.2)
91
+ psych (5.2.6)
92
+ date
71
93
  stringio
72
94
  racc (1.8.1)
73
- rack (3.1.7)
74
- rack-session (2.0.0)
95
+ rack (3.1.15)
96
+ rack-session (2.1.1)
97
+ base64 (>= 0.1.0)
75
98
  rack (>= 3.0.0)
76
- rack-test (2.1.0)
99
+ rack-test (2.2.0)
77
100
  rack (>= 1.3)
78
- rackup (2.1.0)
101
+ rackup (2.2.1)
79
102
  rack (>= 3)
80
- webrick (~> 1.8)
81
- rails-dom-testing (2.2.0)
103
+ rails-dom-testing (2.3.0)
82
104
  activesupport (>= 5.0.0)
83
105
  minitest
84
106
  nokogiri (>= 1.6)
85
- rails-html-sanitizer (1.6.0)
107
+ rails-html-sanitizer (1.6.2)
86
108
  loofah (~> 2.21)
87
- nokogiri (~> 1.14)
88
- railties (7.1.4)
89
- actionpack (= 7.1.4)
90
- activesupport (= 7.1.4)
109
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
110
+ railties (7.1.5.1)
111
+ actionpack (= 7.1.5.1)
112
+ activesupport (= 7.1.5.1)
91
113
  irb
92
114
  rackup (>= 1.0.0)
93
115
  rake (>= 12.2)
94
116
  thor (~> 1.0, >= 1.2.2)
95
117
  zeitwerk (~> 2.6)
96
- rake (13.2.1)
97
- rdoc (6.7.0)
118
+ rake (13.3.0)
119
+ rdoc (6.14.0)
120
+ erb
98
121
  psych (>= 4.0.0)
99
- reline (0.5.10)
122
+ reline (0.6.1)
100
123
  io-console (~> 0.5)
101
- rspec (3.13.0)
124
+ rspec (3.13.1)
102
125
  rspec-core (~> 3.13.0)
103
126
  rspec-expectations (~> 3.13.0)
104
127
  rspec-mocks (~> 3.13.0)
105
- rspec-core (3.13.1)
128
+ rspec-core (3.13.4)
106
129
  rspec-support (~> 3.13.0)
107
- rspec-expectations (3.13.3)
130
+ rspec-expectations (3.13.5)
108
131
  diff-lcs (>= 1.2.0, < 2.0)
109
132
  rspec-support (~> 3.13.0)
110
- rspec-mocks (3.13.1)
133
+ rspec-mocks (3.13.5)
111
134
  diff-lcs (>= 1.2.0, < 2.0)
112
135
  rspec-support (~> 3.13.0)
113
- rspec-support (3.13.1)
136
+ rspec-support (3.13.4)
137
+ securerandom (0.4.1)
114
138
  simplecov (0.22.0)
115
139
  docile (~> 1.1)
116
140
  simplecov-html (~> 0.11)
117
141
  simplecov_json_formatter (~> 0.1)
118
142
  simplecov-html (0.13.1)
119
143
  simplecov_json_formatter (0.1.4)
120
- stringio (3.1.1)
144
+ stringio (3.1.7)
121
145
  thor (1.3.2)
122
146
  tzinfo (2.0.6)
123
147
  concurrent-ruby (~> 1.0)
124
148
  unaccent (0.4.0)
125
- webrick (1.8.2)
126
- zeitwerk (2.6.18)
149
+ zeitwerk (2.7.3)
127
150
 
128
151
  PLATFORMS
129
- arm64-darwin-22
130
- arm64-darwin-23
131
- x86_64-darwin-22
152
+ aarch64-linux-gnu
153
+ aarch64-linux-musl
154
+ arm-linux-gnu
155
+ arm-linux-musl
156
+ arm64-darwin
157
+ x86_64-darwin
132
158
  x86_64-linux
159
+ x86_64-linux-gnu
160
+ x86_64-linux-musl
133
161
 
134
162
  DEPENDENCIES
135
163
  actionpack (~> 7.1.0)
136
164
  country_select!
137
- nokogiri (~> 1.15)
165
+ nokogiri (~> 1.18)
138
166
  pry (~> 0)
139
167
  railties (~> 7.1.0)
140
168
  rake (~> 13)
@@ -142,4 +170,4 @@ DEPENDENCIES
142
170
  simplecov (~> 0.22)
143
171
 
144
172
  BUNDLED WITH
145
- 2.5.18
173
+ 2.6.2
@@ -6,4 +6,4 @@ gemspec path: '../'
6
6
 
7
7
  gem 'railties', '~> 7.2.0'
8
8
  gem 'actionpack', '~> 7.2.0'
9
- gem 'nokogiri', '~> 1.16'
9
+ gem 'nokogiri', '~> 1.18'