country_select 2.1.1 → 8.0.1

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.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/build.yml +25 -0
  3. data/.github/workflows/codeql-analysis.yml +70 -0
  4. data/CHANGELOG.md +93 -0
  5. data/Gemfile +0 -6
  6. data/Gemfile.lock +74 -271
  7. data/README.md +89 -11
  8. data/Rakefile +29 -3
  9. data/country_select.gemspec +10 -7
  10. data/gemfiles/actionpack-5.2.gemfile +7 -0
  11. data/gemfiles/actionpack-5.2.gemfile.lock +99 -0
  12. data/gemfiles/actionpack-6.0.gemfile +7 -0
  13. data/gemfiles/actionpack-6.0.gemfile.lock +101 -0
  14. data/gemfiles/actionpack-6.1.gemfile +7 -0
  15. data/gemfiles/actionpack-6.1.gemfile.lock +100 -0
  16. data/gemfiles/actionpack-7.0.gemfile +7 -0
  17. data/gemfiles/actionpack-7.0.gemfile.lock +100 -0
  18. data/lib/country_select/country_select_helper.rb +5 -0
  19. data/lib/country_select/defaults.rb +11 -0
  20. data/lib/country_select/formats.rb +3 -1
  21. data/lib/country_select/tag_helper.rb +44 -28
  22. data/lib/country_select/version.rb +1 -1
  23. data/lib/country_select.rb +3 -7
  24. data/spec/country_select_spec.rb +184 -17
  25. metadata +35 -54
  26. data/.travis.yml +0 -22
  27. data/gemfiles/actionpack.edge.gemfile +0 -15
  28. data/gemfiles/actionpack.edge.gemfile.lock +0 -303
  29. data/gemfiles/actionpack3.2.gemfile +0 -11
  30. data/gemfiles/actionpack3.2.gemfile.lock +0 -286
  31. data/gemfiles/actionpack4.0.gemfile +0 -11
  32. data/gemfiles/actionpack4.0.gemfile.lock +0 -275
  33. data/gemfiles/actionpack4.1.gemfile +0 -11
  34. data/gemfiles/actionpack4.1.gemfile.lock +0 -279
  35. data/gemfiles/actionpack4.2.gemfile +0 -12
  36. data/gemfiles/actionpack4.2.gemfile.lock +0 -299
  37. data/lib/country_select/rails3/country_select_helper.rb +0 -39
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Rails – Country Select
2
- [![Build Status](https://travis-ci.org/stefanpenner/country_select.png?branch=master)](https://travis-ci.org/stefanpenner/country_select)
2
+ [![Gem Version](https://badge.fury.io/rb/country_select.svg)](https://badge.fury.io/rb/countries) [![build](https://github.com/countries/country_select/actions/workflows/build.yml/badge.svg)](https://github.com/countries/country_select/actions/workflows/build.yml)
3
+ [![Code Climate](https://codeclimate.com/github/countries/country_select.svg)](https://codeclimate.com/github/countries/country_select)
4
+ [![CodeQL](https://github.com/countries/country_select/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/countries/country_select/actions/workflows/codeql-analysis.yml)
5
+
3
6
 
4
7
  Provides a simple helper to get an HTML select list of countries using the
5
8
  [ISO 3166-1 standard](https://en.wikipedia.org/wiki/ISO_3166-1).
@@ -12,6 +15,10 @@ to evaluate the suitability of this list given their user base.
12
15
 
13
16
  [**An important message about upgrading from 1.x**](UPGRADING.md)
14
17
 
18
+ ## Reporting issues
19
+
20
+ Open an issue on the [issue tracker](https://github.com/countries/country_select/issues/new). Ideally provide versions used, and code example that demonstrates the issue.
21
+
15
22
  ## Installation
16
23
 
17
24
  Install as a gem using
@@ -22,11 +29,19 @@ gem install country_select
22
29
  Or put the following in your Gemfile
23
30
 
24
31
  ```ruby
25
- gem 'country_select', github: 'stefanpenner/country_select'
32
+ gem 'country_select', '~> 8.0'
26
33
  ```
27
34
 
28
35
  ## Usage
29
36
 
37
+ Within `form_for` you can use this select like other form elements:
38
+
39
+ ```ruby
40
+ <%= form_for User.new, url: root_url do |f| %>
41
+ <%= f.country_select :country_code %>
42
+ <% end %>
43
+ ```
44
+
30
45
  Simple use supplying model and attribute as parameters:
31
46
 
32
47
  ```ruby
@@ -36,13 +51,17 @@ country_select("user", "country")
36
51
  Supplying priority countries to be placed at the top of the list:
37
52
 
38
53
  ```ruby
39
- country_select("user", "country", priority_countries: ["GB", "FR", "DE"])
54
+ country_select("user", "country", priority_countries: ["GB", "FR", "DE"]) # Countries will be sorted by name according to the current locale
55
+ # or
56
+ country_select("user", "country", priority_countries: ["GB", "FR", "DE"], sort_provided: false) # Countries will be displayed is the provided order
40
57
  ```
41
58
 
42
59
  Supplying only certain countries:
43
60
 
44
61
  ```ruby
45
- country_select("user", "country", only: ["GB", "FR", "DE"])
62
+ country_select("user", "country", only: ["GB", "FR", "DE"]) # Countries will be sorted by name according to the current locale
63
+ # or
64
+ country_select("user", "country", only: ["GB", "FR", "DE"], sort_provided: false) # Countries will be displayed is the provided order
46
65
  ```
47
66
 
48
67
  Discarding certain countries:
@@ -51,27 +70,72 @@ Discarding certain countries:
51
70
  country_select("user", "country", except: ["GB", "FR", "DE"])
52
71
  ```
53
72
 
73
+ Pre-selecting a particular country:
74
+
75
+ ```ruby
76
+ country_select("user", "country", selected: "GB")
77
+ ```
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
+ Using existing `select` options:
85
+ ```ruby
86
+ country_select("user", "country", include_blank: true)
87
+ country_select("user", "country", { include_blank: 'Select a country' }, { class: 'country-select-box' })
88
+ ```
89
+
54
90
  Supplying additional html options:
55
91
 
56
92
  ```ruby
57
- country_select("user", "country", { priority_countries: ["GB", "FR"] }, { selected: "GB", class: 'form-control' })
93
+ country_select("user", "country", { priority_countries: ["GB", "FR"], selected: "GB" }, { class: 'form-control', data: { attribute: "value" } })
58
94
  ```
59
95
 
60
- Using a custom formatter
96
+ ### Using a custom formatter
61
97
 
62
98
  You can define a custom formatter which will receive an
63
- [`ISO3166::Country`](https://github.com/hexorx/countries/blob/master/lib/countries/country.rb)
99
+ [`ISO3166::Country`](https://github.com/countries/countries/blob/master/lib/countries/country.rb)
64
100
  ```ruby
65
101
  # config/initializers/country_select.rb
102
+
103
+ # Return a string to customize the text in the <option> tag, `value` attribute will remain unchanged
66
104
  CountrySelect::FORMATS[:with_alpha2] = lambda do |country|
67
- "#{country.name} (#{country.alpha2})"
105
+ "#{country.iso_short_name} (#{country.alpha2})"
106
+ end
107
+
108
+ # Return an array to customize <option> text, `value` and other HTML attributes
109
+ CountrySelect::FORMATS[:with_data_attrs] = lambda do |country|
110
+ [
111
+ country.iso_short_name,
112
+ country.alpha2,
113
+ {
114
+ 'data-country-code' => country.country_code,
115
+ 'data-alpha3' => country.alpha3
116
+ }
117
+ ]
68
118
  end
69
119
  ```
70
120
 
71
121
  ```ruby
72
122
  country_select("user", "country", format: :with_alpha2)
123
+ country_select("user", "country", format: :with_data_attrs)
73
124
  ```
74
125
 
126
+ ### Using customized defaults
127
+
128
+ You can configure overridable defaults for `except`, `format`, `locale`,
129
+ `only`, `priority_countries` and `priority_countries_divider` in an initializer.
130
+
131
+ ````ruby
132
+ # config/initializers/country_select.rb
133
+
134
+ CountrySelect::DEFAULTS[:except] = [ "ZZ" ]
135
+ ````
136
+
137
+ The example would exclude "ZZ" from every `country_select` tag, where no `except` option is given.
138
+
75
139
  ### ISO 3166-1 alpha-2 codes
76
140
  The `option` tags use ISO 3166-1 alpha-2 codes as values and the country
77
141
  names as display strings. For example, the United States would appear as
@@ -79,7 +143,7 @@ names as display strings. For example, the United States would appear as
79
143
 
80
144
  Country names are automatically localized based on the value of
81
145
  `I18n.locale` thanks to the wonderful
82
- [countries gem](https://github.com/hexorx/countries/).
146
+ [countries gem](https://github.com/countries/countries/).
83
147
 
84
148
  Current translations include:
85
149
 
@@ -114,7 +178,7 @@ class User < ActiveRecord::Base
114
178
  # (usually English) name if no translation is available
115
179
  def country_name
116
180
  country = ISO3166::Country[country_code]
117
- country.translations[I18n.locale.to_s] || country.name
181
+ country.translations[I18n.locale.to_s] || country.common_name || country.iso_short_name
118
182
  end
119
183
 
120
184
  end
@@ -126,11 +190,25 @@ An example Rails application demonstrating the different options is
126
190
  available at [scudco/country_select_test](https://github.com/scudco/country_select_test).
127
191
  The relevant view files live [here](https://github.com/scudco/country_select_test/tree/master/app/views/welcome).
128
192
 
129
- ## Tests
193
+ ## Contributing
194
+
195
+ ### Tests
130
196
 
131
197
  ```shell
132
198
  bundle
133
199
  bundle exec rake
134
200
  ```
135
201
 
202
+ ### Updating gemfiles
203
+ The default rake task will run the tests against multiple versions of
204
+ Rails. That means the gemfiles need occasional updating, especially when
205
+ changing the dependencies in the gemspec.
206
+
207
+ ```shell
208
+ for i in gemfiles/*.gemfile
209
+ do
210
+ BUNDLE_GEMFILE=$i bundle install --local
211
+ done
212
+ ```
213
+
136
214
  Copyright (c) 2008 Michael Koziarski, released under the MIT license
data/Rakefile CHANGED
@@ -1,10 +1,36 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/setup'
2
4
  require 'rake'
3
5
  require 'bundler/gem_tasks'
4
6
 
5
- require 'wwtd/tasks'
6
-
7
7
  require 'rspec/core/rake_task'
8
8
  RSpec::Core::RakeTask.new(:spec)
9
9
 
10
- task default: "wwtd:local"
10
+ task default: 'spec'
11
+
12
+
13
+ task :update_gemfiles do
14
+ require 'pry'
15
+ Dir.glob('gemfiles/*.gemfile').each do |gemfile|
16
+ puts "Updating #{gemfile}...\n\n"
17
+ ENV['BUNDLE_GEMFILE']=gemfile
18
+ puts `bundle install --gemfile=#{gemfile} --no-cache`
19
+ puts `bundle update --gemfile=#{gemfile}`
20
+
21
+ lockfile = "#{gemfile}.lock"
22
+
23
+ if File.exist? lockfile
24
+ parsed_lockfile = Bundler::LockfileParser.new(Bundler.read_file(lockfile))
25
+ # Ensure lockfile has x86_64-linux
26
+ if parsed_lockfile.platforms.map(&:to_s).none? {|p| p == 'x86_64-linux' }
27
+ puts "Adding platform x86_64-linux to #{lockfile}\n\n"
28
+ puts `bundle lock --add-platform x86_64-linux --gemfile=#{gemfile}`
29
+ end
30
+
31
+ puts ""
32
+ else
33
+ raise StandardError.new("Expected #{lockfile} to exist.")
34
+ end
35
+ end
36
+ end
@@ -8,22 +8,25 @@ Gem::Specification.new do |s|
8
8
  s.licenses = ['MIT']
9
9
  s.authors = ['Stefan Penner']
10
10
  s.email = ['stefan.penner@gmail.com']
11
- s.homepage = 'https://github.com/stefanpenner/country_select'
11
+ s.homepage = 'https://github.com/countries/country_select'
12
12
  s.summary = %q{Country Select Plugin}
13
- s.description = %q{Provides a simple helper to get an HTML select list of countries. The list of countries comes from the ISO 3166 standard. While it is a relatively neutral source of country names, it will still offend some users.}
13
+ s.description = %q{Provides a simple helper to get an HTML select list of countries. The list of countries comes from the ISO 3166 standard. While it is a relatively neutral source of country names, it will still offend some users.}
14
14
 
15
- s.rubyforge_project = 'country_select'
15
+ s.metadata = { 'bug_tracker_uri' => 'http://github.com/countries/country_select/issues',
16
+ 'changelog_uri' => 'https://github.com/countries/country_select/blob/master/CHANGELOG.md',
17
+ 'source_code_uri' => 'https://github.com/countries/country_select' }
16
18
 
17
19
  s.files = `git ls-files`.split("\n")
18
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
22
  s.require_paths = ['lib']
21
23
 
22
- s.add_development_dependency 'actionpack', '~> 3'
24
+ s.required_ruby_version = '>= 2.7'
25
+
26
+ s.add_development_dependency 'actionpack', '~> 7.0'
23
27
  s.add_development_dependency 'pry', '~> 0'
24
- s.add_development_dependency 'rake'
28
+ s.add_development_dependency 'rake', '~> 13'
25
29
  s.add_development_dependency 'rspec', '~> 3'
26
- s.add_development_dependency 'wwtd'
27
30
 
28
- s.add_dependency 'countries', '>= 0.9.3', '< 0.10.0'
31
+ s.add_dependency 'countries', '~> 5.0'
29
32
  end
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => "../"
4
+
5
+ gem "railties", "~> 5.2.0"
6
+ gem "actionpack", "~> 5.2.0"
7
+ gem 'nokogiri', '= 1.14.0.rc1'
@@ -0,0 +1,99 @@
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.1.10)
31
+ countries (5.3.0)
32
+ unaccent (~> 0.3)
33
+ crass (1.0.6)
34
+ diff-lcs (1.5.0)
35
+ erubi (1.12.0)
36
+ i18n (1.12.0)
37
+ concurrent-ruby (~> 1.0)
38
+ loofah (2.19.1)
39
+ crass (~> 1.0.2)
40
+ nokogiri (>= 1.5.9)
41
+ method_source (1.0.0)
42
+ minitest (5.17.0)
43
+ nokogiri (1.14.0.rc1-x86_64-darwin)
44
+ racc (~> 1.4)
45
+ nokogiri (1.14.0.rc1-x86_64-linux)
46
+ racc (~> 1.4)
47
+ pry (0.14.1)
48
+ coderay (~> 1.1)
49
+ method_source (~> 1.0)
50
+ racc (1.6.2)
51
+ rack (2.2.5)
52
+ rack-test (2.0.2)
53
+ rack (>= 1.3)
54
+ rails-dom-testing (2.0.3)
55
+ activesupport (>= 4.2.0)
56
+ nokogiri (>= 1.6)
57
+ rails-html-sanitizer (1.4.4)
58
+ loofah (~> 2.19, >= 2.19.1)
59
+ railties (5.2.8.1)
60
+ actionpack (= 5.2.8.1)
61
+ activesupport (= 5.2.8.1)
62
+ method_source
63
+ rake (>= 0.8.7)
64
+ thor (>= 0.19.0, < 2.0)
65
+ rake (13.0.6)
66
+ rspec (3.12.0)
67
+ rspec-core (~> 3.12.0)
68
+ rspec-expectations (~> 3.12.0)
69
+ rspec-mocks (~> 3.12.0)
70
+ rspec-core (3.12.0)
71
+ rspec-support (~> 3.12.0)
72
+ rspec-expectations (3.12.1)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.12.0)
75
+ rspec-mocks (3.12.1)
76
+ diff-lcs (>= 1.2.0, < 2.0)
77
+ rspec-support (~> 3.12.0)
78
+ rspec-support (3.12.0)
79
+ thor (1.2.1)
80
+ thread_safe (0.3.6)
81
+ tzinfo (1.2.10)
82
+ thread_safe (~> 0.1)
83
+ unaccent (0.4.0)
84
+
85
+ PLATFORMS
86
+ x86_64-darwin-22
87
+ x86_64-linux
88
+
89
+ DEPENDENCIES
90
+ actionpack (~> 5.2.0)
91
+ country_select!
92
+ nokogiri (= 1.14.0.rc1)
93
+ pry (~> 0)
94
+ railties (~> 5.2.0)
95
+ rake (~> 13)
96
+ rspec (~> 3)
97
+
98
+ BUNDLED WITH
99
+ 2.4.2
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => "../"
4
+
5
+ gem "railties", "~> 6.0.0"
6
+ gem "actionpack", "~> 6.0.0"
7
+ gem 'nokogiri', '= 1.14.0.rc1'
@@ -0,0 +1,101 @@
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)
11
+ actionview (= 6.0.6)
12
+ activesupport (= 6.0.6)
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)
18
+ activesupport (= 6.0.6)
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)
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.1.10)
32
+ countries (5.3.0)
33
+ unaccent (~> 0.3)
34
+ crass (1.0.6)
35
+ diff-lcs (1.5.0)
36
+ erubi (1.12.0)
37
+ i18n (1.12.0)
38
+ concurrent-ruby (~> 1.0)
39
+ loofah (2.19.1)
40
+ crass (~> 1.0.2)
41
+ nokogiri (>= 1.5.9)
42
+ method_source (1.0.0)
43
+ minitest (5.17.0)
44
+ nokogiri (1.14.0.rc1-x86_64-darwin)
45
+ racc (~> 1.4)
46
+ nokogiri (1.14.0.rc1-x86_64-linux)
47
+ racc (~> 1.4)
48
+ pry (0.14.1)
49
+ coderay (~> 1.1)
50
+ method_source (~> 1.0)
51
+ racc (1.6.2)
52
+ rack (2.2.5)
53
+ rack-test (2.0.2)
54
+ rack (>= 1.3)
55
+ rails-dom-testing (2.0.3)
56
+ activesupport (>= 4.2.0)
57
+ nokogiri (>= 1.6)
58
+ rails-html-sanitizer (1.4.4)
59
+ loofah (~> 2.19, >= 2.19.1)
60
+ railties (6.0.6)
61
+ actionpack (= 6.0.6)
62
+ activesupport (= 6.0.6)
63
+ method_source
64
+ rake (>= 0.8.7)
65
+ thor (>= 0.20.3, < 2.0)
66
+ rake (13.0.6)
67
+ rspec (3.12.0)
68
+ rspec-core (~> 3.12.0)
69
+ rspec-expectations (~> 3.12.0)
70
+ rspec-mocks (~> 3.12.0)
71
+ rspec-core (3.12.0)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-expectations (3.12.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.12.0)
76
+ rspec-mocks (3.12.1)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.12.0)
79
+ rspec-support (3.12.0)
80
+ thor (1.2.1)
81
+ thread_safe (0.3.6)
82
+ tzinfo (1.2.10)
83
+ thread_safe (~> 0.1)
84
+ unaccent (0.4.0)
85
+ zeitwerk (2.6.6)
86
+
87
+ PLATFORMS
88
+ x86_64-darwin-22
89
+ x86_64-linux
90
+
91
+ DEPENDENCIES
92
+ actionpack (~> 6.0.0)
93
+ country_select!
94
+ nokogiri (= 1.14.0.rc1)
95
+ pry (~> 0)
96
+ railties (~> 6.0.0)
97
+ rake (~> 13)
98
+ rspec (~> 3)
99
+
100
+ BUNDLED WITH
101
+ 2.4.2
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => "../"
4
+
5
+ gem "railties", "~> 6.1.0"
6
+ gem "actionpack", "~> 6.1.0"
7
+ gem 'nokogiri', '= 1.14.0.rc1'
@@ -0,0 +1,100 @@
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.1.7)
11
+ actionview (= 6.1.7)
12
+ activesupport (= 6.1.7)
13
+ rack (~> 2.0, >= 2.0.9)
14
+ rack-test (>= 0.6.3)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
+ actionview (6.1.7)
18
+ activesupport (= 6.1.7)
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.1.7)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ zeitwerk (~> 2.3)
29
+ builder (3.2.4)
30
+ coderay (1.1.3)
31
+ concurrent-ruby (1.1.10)
32
+ countries (5.3.0)
33
+ unaccent (~> 0.3)
34
+ crass (1.0.6)
35
+ diff-lcs (1.5.0)
36
+ erubi (1.12.0)
37
+ i18n (1.12.0)
38
+ concurrent-ruby (~> 1.0)
39
+ loofah (2.19.1)
40
+ crass (~> 1.0.2)
41
+ nokogiri (>= 1.5.9)
42
+ method_source (1.0.0)
43
+ minitest (5.17.0)
44
+ nokogiri (1.14.0.rc1-x86_64-darwin)
45
+ racc (~> 1.4)
46
+ nokogiri (1.14.0.rc1-x86_64-linux)
47
+ racc (~> 1.4)
48
+ pry (0.14.1)
49
+ coderay (~> 1.1)
50
+ method_source (~> 1.0)
51
+ racc (1.6.2)
52
+ rack (2.2.5)
53
+ rack-test (2.0.2)
54
+ rack (>= 1.3)
55
+ rails-dom-testing (2.0.3)
56
+ activesupport (>= 4.2.0)
57
+ nokogiri (>= 1.6)
58
+ rails-html-sanitizer (1.4.4)
59
+ loofah (~> 2.19, >= 2.19.1)
60
+ railties (6.1.7)
61
+ actionpack (= 6.1.7)
62
+ activesupport (= 6.1.7)
63
+ method_source
64
+ rake (>= 12.2)
65
+ thor (~> 1.0)
66
+ rake (13.0.6)
67
+ rspec (3.12.0)
68
+ rspec-core (~> 3.12.0)
69
+ rspec-expectations (~> 3.12.0)
70
+ rspec-mocks (~> 3.12.0)
71
+ rspec-core (3.12.0)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-expectations (3.12.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.12.0)
76
+ rspec-mocks (3.12.1)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.12.0)
79
+ rspec-support (3.12.0)
80
+ thor (1.2.1)
81
+ tzinfo (2.0.5)
82
+ concurrent-ruby (~> 1.0)
83
+ unaccent (0.4.0)
84
+ zeitwerk (2.6.6)
85
+
86
+ PLATFORMS
87
+ x86_64-darwin-22
88
+ x86_64-linux
89
+
90
+ DEPENDENCIES
91
+ actionpack (~> 6.1.0)
92
+ country_select!
93
+ nokogiri (= 1.14.0.rc1)
94
+ pry (~> 0)
95
+ railties (~> 6.1.0)
96
+ rake (~> 13)
97
+ rspec (~> 3)
98
+
99
+ BUNDLED WITH
100
+ 2.4.2
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec :path => "../"
4
+
5
+ gem "railties", "~> 7.0.0"
6
+ gem "actionpack", "~> 7.0.0"
7
+ gem 'nokogiri', '= 1.14.0.rc1'
@@ -0,0 +1,100 @@
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 (7.0.4)
11
+ actionview (= 7.0.4)
12
+ activesupport (= 7.0.4)
13
+ rack (~> 2.0, >= 2.2.0)
14
+ rack-test (>= 0.6.3)
15
+ rails-dom-testing (~> 2.0)
16
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
17
+ actionview (7.0.4)
18
+ activesupport (= 7.0.4)
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 (7.0.4)
24
+ concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ i18n (>= 1.6, < 2)
26
+ minitest (>= 5.1)
27
+ tzinfo (~> 2.0)
28
+ builder (3.2.4)
29
+ coderay (1.1.3)
30
+ concurrent-ruby (1.1.10)
31
+ countries (5.3.0)
32
+ unaccent (~> 0.3)
33
+ crass (1.0.6)
34
+ diff-lcs (1.5.0)
35
+ erubi (1.12.0)
36
+ i18n (1.12.0)
37
+ concurrent-ruby (~> 1.0)
38
+ loofah (2.19.1)
39
+ crass (~> 1.0.2)
40
+ nokogiri (>= 1.5.9)
41
+ method_source (1.0.0)
42
+ minitest (5.17.0)
43
+ nokogiri (1.14.0.rc1-x86_64-darwin)
44
+ racc (~> 1.4)
45
+ nokogiri (1.14.0.rc1-x86_64-linux)
46
+ racc (~> 1.4)
47
+ pry (0.14.1)
48
+ coderay (~> 1.1)
49
+ method_source (~> 1.0)
50
+ racc (1.6.2)
51
+ rack (2.2.5)
52
+ rack-test (2.0.2)
53
+ rack (>= 1.3)
54
+ rails-dom-testing (2.0.3)
55
+ activesupport (>= 4.2.0)
56
+ nokogiri (>= 1.6)
57
+ rails-html-sanitizer (1.4.4)
58
+ loofah (~> 2.19, >= 2.19.1)
59
+ railties (7.0.4)
60
+ actionpack (= 7.0.4)
61
+ activesupport (= 7.0.4)
62
+ method_source
63
+ rake (>= 12.2)
64
+ thor (~> 1.0)
65
+ zeitwerk (~> 2.5)
66
+ rake (13.0.6)
67
+ rspec (3.12.0)
68
+ rspec-core (~> 3.12.0)
69
+ rspec-expectations (~> 3.12.0)
70
+ rspec-mocks (~> 3.12.0)
71
+ rspec-core (3.12.0)
72
+ rspec-support (~> 3.12.0)
73
+ rspec-expectations (3.12.1)
74
+ diff-lcs (>= 1.2.0, < 2.0)
75
+ rspec-support (~> 3.12.0)
76
+ rspec-mocks (3.12.1)
77
+ diff-lcs (>= 1.2.0, < 2.0)
78
+ rspec-support (~> 3.12.0)
79
+ rspec-support (3.12.0)
80
+ thor (1.2.1)
81
+ tzinfo (2.0.5)
82
+ concurrent-ruby (~> 1.0)
83
+ unaccent (0.4.0)
84
+ zeitwerk (2.6.6)
85
+
86
+ PLATFORMS
87
+ x86_64-darwin-22
88
+ x86_64-linux
89
+
90
+ DEPENDENCIES
91
+ actionpack (~> 7.0.0)
92
+ country_select!
93
+ nokogiri (= 1.14.0.rc1)
94
+ pry (~> 0)
95
+ railties (~> 7.0.0)
96
+ rake (~> 13)
97
+ rspec (~> 3)
98
+
99
+ BUNDLED WITH
100
+ 2.4.2