country_select 1.2.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -1
  3. data/.rspec +1 -0
  4. data/.travis.yml +35 -11
  5. data/CHANGELOG.md +74 -1
  6. data/Gemfile +6 -1
  7. data/Gemfile.lock +300 -0
  8. data/README.md +138 -25
  9. data/Rakefile +3 -17
  10. data/UPGRADING.md +69 -0
  11. data/country_select.gemspec +11 -9
  12. data/gemfiles/actionpack.edge.gemfile +15 -0
  13. data/gemfiles/actionpack.edge.gemfile.lock +310 -0
  14. data/gemfiles/actionpack3.2.gemfile +8 -4
  15. data/gemfiles/actionpack3.2.gemfile.lock +265 -39
  16. data/gemfiles/actionpack4.0.gemfile +7 -3
  17. data/gemfiles/actionpack4.0.gemfile.lock +260 -36
  18. data/gemfiles/actionpack4.1.gemfile +11 -0
  19. data/gemfiles/actionpack4.1.gemfile.lock +290 -0
  20. data/gemfiles/actionpack4.2.gemfile +14 -0
  21. data/gemfiles/actionpack4.2.gemfile.lock +306 -0
  22. data/gemfiles/actionpack5.0.gemfile +12 -0
  23. data/gemfiles/actionpack5.0.gemfile.lock +311 -0
  24. data/gemfiles/actionpack5.1.gemfile +12 -0
  25. data/gemfiles/actionpack5.1.gemfile.lock +311 -0
  26. data/gemfiles/actionpack5.2.gemfile +12 -0
  27. data/gemfiles/actionpack5.2.gemfile.lock +312 -0
  28. data/lib/country_select.rb +10 -118
  29. data/lib/country_select/country_select_helper.rb +38 -0
  30. data/lib/country_select/formats.rb +7 -0
  31. data/lib/country_select/rails3/country_select_helper.rb +39 -0
  32. data/lib/country_select/tag_helper.rb +118 -0
  33. data/lib/country_select/version.rb +1 -1
  34. data/lib/country_select_without_sort_alphabetical.rb +13 -0
  35. data/spec/country_select_spec.rb +239 -111
  36. data/spec/spec_helper.rb +85 -7
  37. metadata +88 -42
  38. data/Appraisals +0 -19
  39. data/gemfiles/actionpack3.0.gemfile +0 -7
  40. data/gemfiles/actionpack3.0.gemfile.lock +0 -64
  41. data/gemfiles/actionpack3.1.gemfile +0 -7
  42. data/gemfiles/actionpack3.1.gemfile.lock +0 -72
  43. data/lib/country_select/countries.rb +0 -256
@@ -1,20 +1,98 @@
1
+ require 'pry'
2
+
1
3
  # This file was generated by the `rspec --init` command. Conventionally, all
2
4
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # Require this file using `require "spec_helper"` to ensure that it is only
4
- # loaded once.
5
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
6
+ # file to always be loaded, without a need to explicitly require it in any files.
7
+ #
8
+ # Given that it is always loaded, you are encouraged to keep this file as
9
+ # light-weight as possible. Requiring heavyweight dependencies from this file
10
+ # will add to the boot time of your test suite on EVERY test run, even for an
11
+ # individual file that may not need all of that loaded. Instead, consider making
12
+ # a separate helper file that requires the additional dependencies and performs
13
+ # the additional setup, and require it from the spec files that actually need it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
5
17
  #
6
18
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
7
33
 
8
- require 'pry'
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
9
42
 
10
- RSpec.configure do |config|
11
- config.treat_symbols_as_metadata_keys_with_true_values = true
12
- config.run_all_when_everything_filtered = true
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ #=begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
13
50
  config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
54
+ # For more details, see:
55
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
+ #config.disable_monkey_patching!
59
+
60
+ # This setting enables warnings. It's recommended, but in some cases may
61
+ # be too noisy due to issues in dependencies.
62
+ #config.warnings = true
63
+
64
+ # Many RSpec users commonly either run the entire suite or an individual
65
+ # file, and it's useful to allow more verbose output when running an
66
+ # individual spec file.
67
+ if config.files_to_run.one?
68
+ # Use the documentation formatter for detailed output,
69
+ # unless a formatter has already been configured
70
+ # (e.g. via a command-line flag).
71
+ config.default_formatter = 'doc'
72
+ end
73
+
74
+ # Print the 10 slowest examples and example groups at the
75
+ # end of the spec run, to help surface which specs are running
76
+ # particularly slow.
77
+ #config.profile_examples = 10
14
78
 
15
79
  # Run specs in random order to surface order dependencies. If you find an
16
80
  # order dependency and want to debug it, you can fix the order by providing
17
81
  # the seed, which is printed after each run.
18
82
  # --seed 1234
19
- config.order = 'random'
83
+ config.order = :random
84
+
85
+ # Seed global randomization in this process using the `--seed` CLI option.
86
+ # Setting this allows you to use `--seed` to deterministically reproduce
87
+ # test failures related to randomization by passing the same `--seed` value
88
+ # as the one that triggered the failure.
89
+ Kernel.srand config.seed
90
+ #=end
91
+
92
+ # non-default settings
93
+ config.raise_errors_for_deprecations!
94
+
95
+ config.before do
96
+ I18n.config.enforce_available_locales = false
97
+ end
20
98
  end
metadata CHANGED
@@ -1,80 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: country_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Stefan Penner
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-07 00:00:00.000000000 Z
11
+ date: 2018-12-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rspec
14
+ name: actionpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: '5'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0'
26
+ version: '5'
30
27
  - !ruby/object:Gem::Dependency
31
- name: actionpack
28
+ name: pry
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
- name: appraisal
42
+ name: rake
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
- name: pry
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: wwtd
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - ">="
68
74
  - !ruby/object:Gem::Version
69
75
  version: '0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - ">="
76
81
  - !ruby/object:Gem::Version
77
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: countries
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sort_alphabetical
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
78
111
  description: Provides a simple helper to get an HTML select list of countries. The
79
112
  list of countries comes from the ISO 3166 standard. While it is a relatively neutral
80
113
  source of country names, it will still offend some users.
@@ -84,52 +117,65 @@ executables: []
84
117
  extensions: []
85
118
  extra_rdoc_files: []
86
119
  files:
87
- - .gitignore
88
- - .rspec
89
- - .travis.yml
90
- - Appraisals
120
+ - ".gitignore"
121
+ - ".rspec"
122
+ - ".travis.yml"
91
123
  - CHANGELOG.md
92
124
  - Gemfile
125
+ - Gemfile.lock
93
126
  - MIT-LICENSE
94
127
  - README.md
95
128
  - Rakefile
129
+ - UPGRADING.md
96
130
  - country_select.gemspec
97
- - gemfiles/actionpack3.0.gemfile
98
- - gemfiles/actionpack3.0.gemfile.lock
99
- - gemfiles/actionpack3.1.gemfile
100
- - gemfiles/actionpack3.1.gemfile.lock
131
+ - gemfiles/actionpack.edge.gemfile
132
+ - gemfiles/actionpack.edge.gemfile.lock
101
133
  - gemfiles/actionpack3.2.gemfile
102
134
  - gemfiles/actionpack3.2.gemfile.lock
103
135
  - gemfiles/actionpack4.0.gemfile
104
136
  - gemfiles/actionpack4.0.gemfile.lock
137
+ - gemfiles/actionpack4.1.gemfile
138
+ - gemfiles/actionpack4.1.gemfile.lock
139
+ - gemfiles/actionpack4.2.gemfile
140
+ - gemfiles/actionpack4.2.gemfile.lock
141
+ - gemfiles/actionpack5.0.gemfile
142
+ - gemfiles/actionpack5.0.gemfile.lock
143
+ - gemfiles/actionpack5.1.gemfile
144
+ - gemfiles/actionpack5.1.gemfile.lock
145
+ - gemfiles/actionpack5.2.gemfile
146
+ - gemfiles/actionpack5.2.gemfile.lock
105
147
  - lib/country_select.rb
106
- - lib/country_select/countries.rb
148
+ - lib/country_select/country_select_helper.rb
149
+ - lib/country_select/formats.rb
150
+ - lib/country_select/rails3/country_select_helper.rb
151
+ - lib/country_select/tag_helper.rb
107
152
  - lib/country_select/version.rb
153
+ - lib/country_select_without_sort_alphabetical.rb
108
154
  - spec/country_select_spec.rb
109
155
  - spec/spec_helper.rb
110
156
  homepage: https://github.com/stefanpenner/country_select
111
- licenses: []
157
+ licenses:
158
+ - MIT
159
+ metadata: {}
112
160
  post_install_message:
113
161
  rdoc_options: []
114
162
  require_paths:
115
163
  - lib
116
164
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
165
  requirements:
119
- - - ! '>='
166
+ - - ">="
120
167
  - !ruby/object:Gem::Version
121
- version: '0'
168
+ version: '2'
122
169
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
170
  requirements:
125
- - - ! '>='
171
+ - - ">="
126
172
  - !ruby/object:Gem::Version
127
173
  version: '0'
128
174
  requirements: []
129
175
  rubyforge_project: country_select
130
- rubygems_version: 1.8.25
176
+ rubygems_version: 2.7.6
131
177
  signing_key:
132
- specification_version: 3
178
+ specification_version: 4
133
179
  summary: Country Select Plugin
134
180
  test_files:
135
181
  - spec/country_select_spec.rb
data/Appraisals DELETED
@@ -1,19 +0,0 @@
1
- # appraise 'actionpack2.3' do
2
- # gem 'actionpack', '~> 2.3.0'
3
- # end
4
-
5
- appraise 'actionpack3.0' do
6
- gem 'actionpack', '~> 3.0.0'
7
- end
8
-
9
- appraise 'actionpack3.1' do
10
- gem 'actionpack', '~> 3.1.0'
11
- end
12
-
13
- appraise 'actionpack3.2' do
14
- gem 'actionpack', '~> 3.2.0'
15
- end
16
-
17
- appraise 'actionpack4.0' do
18
- gem 'actionpack', '~> 4.0.0'
19
- end
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "actionpack", "~> 3.0.0"
6
-
7
- gemspec :path=>"../"
@@ -1,64 +0,0 @@
1
- PATH
2
- remote: /Users/scudco/projects/country_select
3
- specs:
4
- country_select (1.1.3)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- abstract (1.0.0)
10
- actionpack (3.0.20)
11
- activemodel (= 3.0.20)
12
- activesupport (= 3.0.20)
13
- builder (~> 2.1.2)
14
- erubis (~> 2.6.6)
15
- i18n (~> 0.5.0)
16
- rack (~> 1.2.5)
17
- rack-mount (~> 0.6.14)
18
- rack-test (~> 0.5.7)
19
- tzinfo (~> 0.3.23)
20
- activemodel (3.0.20)
21
- activesupport (= 3.0.20)
22
- builder (~> 2.1.2)
23
- i18n (~> 0.5.0)
24
- activesupport (3.0.20)
25
- appraisal (0.5.2)
26
- bundler
27
- rake
28
- builder (2.1.2)
29
- coderay (1.0.9)
30
- diff-lcs (1.2.4)
31
- erubis (2.6.6)
32
- abstract (>= 1.0.0)
33
- i18n (0.5.0)
34
- method_source (0.8.1)
35
- pry (0.9.12.2)
36
- coderay (~> 1.0.5)
37
- method_source (~> 0.8)
38
- slop (~> 3.4)
39
- rack (1.2.8)
40
- rack-mount (0.6.14)
41
- rack (>= 1.0.0)
42
- rack-test (0.5.7)
43
- rack (>= 1.0)
44
- rake (10.0.4)
45
- rspec (2.13.0)
46
- rspec-core (~> 2.13.0)
47
- rspec-expectations (~> 2.13.0)
48
- rspec-mocks (~> 2.13.0)
49
- rspec-core (2.13.1)
50
- rspec-expectations (2.13.0)
51
- diff-lcs (>= 1.1.3, < 2.0)
52
- rspec-mocks (2.13.1)
53
- slop (3.4.5)
54
- tzinfo (0.3.37)
55
-
56
- PLATFORMS
57
- ruby
58
-
59
- DEPENDENCIES
60
- actionpack (~> 3.0.0)
61
- appraisal
62
- country_select!
63
- pry
64
- rspec
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "actionpack", "~> 3.1.0"
6
-
7
- gemspec :path=>"../"
@@ -1,72 +0,0 @@
1
- PATH
2
- remote: /Users/scudco/projects/country_select
3
- specs:
4
- country_select (1.1.3)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- actionpack (3.1.12)
10
- activemodel (= 3.1.12)
11
- activesupport (= 3.1.12)
12
- builder (~> 3.0.0)
13
- erubis (~> 2.7.0)
14
- i18n (~> 0.6)
15
- rack (~> 1.3.6)
16
- rack-cache (~> 1.2)
17
- rack-mount (~> 0.8.2)
18
- rack-test (~> 0.6.1)
19
- sprockets (~> 2.0.4)
20
- activemodel (3.1.12)
21
- activesupport (= 3.1.12)
22
- builder (~> 3.0.0)
23
- i18n (~> 0.6)
24
- activesupport (3.1.12)
25
- multi_json (~> 1.0)
26
- appraisal (0.5.2)
27
- bundler
28
- rake
29
- builder (3.0.4)
30
- coderay (1.0.9)
31
- diff-lcs (1.2.4)
32
- erubis (2.7.0)
33
- hike (1.2.2)
34
- i18n (0.6.4)
35
- method_source (0.8.1)
36
- multi_json (1.7.3)
37
- pry (0.9.12.2)
38
- coderay (~> 1.0.5)
39
- method_source (~> 0.8)
40
- slop (~> 3.4)
41
- rack (1.3.10)
42
- rack-cache (1.2)
43
- rack (>= 0.4)
44
- rack-mount (0.8.3)
45
- rack (>= 1.0.0)
46
- rack-test (0.6.2)
47
- rack (>= 1.0)
48
- rake (10.0.4)
49
- rspec (2.13.0)
50
- rspec-core (~> 2.13.0)
51
- rspec-expectations (~> 2.13.0)
52
- rspec-mocks (~> 2.13.0)
53
- rspec-core (2.13.1)
54
- rspec-expectations (2.13.0)
55
- diff-lcs (>= 1.1.3, < 2.0)
56
- rspec-mocks (2.13.1)
57
- slop (3.4.5)
58
- sprockets (2.0.4)
59
- hike (~> 1.2)
60
- rack (~> 1.0)
61
- tilt (~> 1.1, != 1.3.0)
62
- tilt (1.4.1)
63
-
64
- PLATFORMS
65
- ruby
66
-
67
- DEPENDENCIES
68
- actionpack (~> 3.1.0)
69
- appraisal
70
- country_select!
71
- pry
72
- rspec