currency_select 9.0.0 → 10.1.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: 014e18323ac9f9bbc505d66881fcde236c8e15329d7dbeccb28c8247ea8ebb3c
4
- data.tar.gz: 9b71507af14c9174b865c8afad9f96efead2096244678d303ce97d7ab9feb75f
3
+ metadata.gz: f27306c71e4520f0d4b8a6b6b01e18e579d18ef89d3a0642451a3fd1198bbd97
4
+ data.tar.gz: 53fe492bd6b88059821aabab456781c9364e7d6854f69fc3ae36021ce304ee17
5
5
  SHA512:
6
- metadata.gz: 692a5046ba36444be1d2959fba7e20fd9f51523aa20c4cb9f41c907ab2621315195179917db2f88f34926052cdeb7c57710ef8627982e75430e57ae708c8b1bb
7
- data.tar.gz: 1c884eb13e7e8d555134762096441aa947739f41b18431321f72ca5faffe454e00566bb824c06b94922891d21b99956a6cbfaecc7b0593fd389ca044d8abe3f9
6
+ metadata.gz: 69afafef31be930c786a39cd010decfde41c47dae388867f90254049213c4f432e3c049e76c350fae25302802c5128dbb3261e3926662e7b4323e8a134949860
7
+ data.tar.gz: 3018235a94789827d0fe50ab2c4cbad15e24e32a91884f909d3d7a5a53f9eff525d0415803dd091cf3335f278a5174ed64f9efdce31f71bf8a29579e27582763
data/CHANGELOG.md CHANGED
@@ -17,6 +17,21 @@ This project adheres to [Semantic Versioning](https://semver.org/).
17
17
 
18
18
  ### Security
19
19
 
20
+ ## 10.1.0: Add support for Money 7.x
21
+
22
+ - Add support for Money 7.x (#306)
23
+
24
+ ## 10.0.0: Add support for Ruby 4.0, drop support for Rails 7.2 and Ruby 3.2
25
+
26
+ ### Added
27
+
28
+ - Add support for Ruby 4.0 (#224)
29
+
30
+ ### Removed
31
+
32
+ - Drop support for Rails 7.2 (#248)
33
+ - Drop support for Ruby 3.2 (#230)
34
+
20
35
  ## 9.0.0: Add support for Rails 8.1, drop support for Ruby 3.1 and Rails < 7.2
21
36
 
22
37
  ### Added
data/Gemfile CHANGED
@@ -3,3 +3,11 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ gem 'rake', '~> 13.4.2'
8
+ gem 'rspec-rails', '~> 8.1.0'
9
+ gem 'rubocop', '~> 1.92.0'
10
+ gem 'rubocop-rails', '~> 2.38.0'
11
+ gem 'rubocop-rake', '~> 0.7.1'
12
+ gem 'rubocop-rspec', '~> 3.10.2'
13
+ gem 'rubocop-rspec_rails', '~> 2.33.0'
data/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # CurrencySelect
2
2
 
3
- [![GitHub CI Status](https://github.com/braingourmets/currency_select/workflows/CI/badge.svg?branch=main)](https://github.com/braingourmets/currency_select/actions)
3
+ [![Build Status](https://github.com/braingourmets/currency_select/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/braingourmets/currency_select/actions/)
4
4
  [![Gem Version](https://badge.fury.io/rb/currency_select.svg)](http://badge.fury.io/rb/currency_select)
5
5
 
6
6
  Adds a currency_select helper to Ruby on Rails projects, allowing you to get
7
- a HTML select list of available currencies.
7
+ an HTML select list of available currencies.
8
8
 
9
- The list of currencies are provided by the
9
+ The list of currencies is provided by the
10
10
  [Money gem](https://rubygems.org/gems/money).
11
11
 
12
12
  ## New maintainer wanted
13
13
 
14
- We're not using this gem anymore, so we'm looking for a new maintainer. If
15
- you're interested in becoming the new maintainer, please contact us at
14
+ We're not using this gem anymore, so we are looking for a new maintainer. If
15
+ you are interested in becoming the new maintainer, please contact us at
16
16
  `info AT braingourmets DOT com`.
17
17
 
18
18
  ## Installation
data/Rakefile CHANGED
@@ -1,19 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rdoc/task'
3
+ require 'bundler/setup'
4
4
 
5
- # RDoc setup
6
- # ----------------------------------------------------------------------------
7
- Rake::RDocTask.new do |rdoc|
8
- version = File.read('VERSION')
9
-
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = "currency_select #{version}"
12
- rdoc.rdoc_files.include('README.md')
13
- rdoc.rdoc_files.include('lib/**/*.rb')
14
- end
5
+ Bundler::GemHelper.install_tasks
15
6
 
16
7
  desc 'Runs RuboCop for checking the Ruby files.'
17
8
  task :rubocop do
18
- sh 'rubocop lib/ rails/ spec/ currency_select.gemspec Gemfile Rakefile'
9
+ sh 'rubocop gemfiles/ lib/ rails/ spec/ currency_select.gemspec Gemfile Rakefile'
19
10
  end
@@ -1,35 +1,41 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- version = File.read(File.expand_path('VERSION', __dir__)).strip
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'currency_select'
5
+ spec.summary = 'Currency select plugin for Rails'
6
+ spec.version = '10.1.0'
7
+ spec.license = 'MIT'
4
8
 
5
- Gem::Specification.new do |s|
6
- s.name = 'currency_select'
7
- s.summary = 'Currency select plugin for Rails'
8
- s.version = version
9
- s.license = 'MIT'
9
+ spec.required_ruby_version = '>= 3.3.0'
10
10
 
11
- s.required_ruby_version = '>= 3.2.0'
11
+ spec.homepage = 'https://github.com/braingourmets/currency_select'
12
+ spec.authors = ['Trond Arve Nordheim', 'Oliver Klee']
13
+ spec.email = 'o.klee@braingourmetspec.com'
12
14
 
13
- s.homepage = 'https://github.com/braingourmets/currency_select'
14
- s.authors = ['Trond Arve Nordheim', 'Oliver Klee']
15
- s.email = 'o.klee@braingourmets.com'
15
+ spec.metadata = {
16
+ 'bug_tracker_uri' => 'https://github.com/braingourmets/currency_select/issues',
17
+ 'changelog_uri' => 'https://github.com/braingourmets/currency_select/blob/master/CHANGELOG.md',
18
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/currency_select',
19
+ 'homepage_uri' => spec.homepage,
20
+ 'source_code_uri' => 'https://github.com/braingourmets/currency_select'
21
+ }
16
22
 
17
- s.files = %w[
18
- CHANGELOG.md CODE_OF_CONDUCT.md Gemfile LICENSE README.md Rakefile VERSION
23
+ spec.files = %w[
24
+ CHANGELOG.md
25
+ Gemfile
26
+ LICENSE
27
+ README.md
28
+ Rakefile
19
29
  currency_select.gemspec
20
- lib/currency_select.rb lib/currency_select_tag.rb lib/form_builder.rb
21
- lib/form_options_helper.rb lib/to_currency_select_tag.rb
30
+ lib/currency_select.rb
31
+ lib/currency_select_tag.rb
32
+ lib/form_builder.rb
33
+ lib/form_options_helper.rb
34
+ lib/to_currency_select_tag.rb
22
35
  rails/init.rb
23
36
  ]
24
- s.extra_rdoc_files = %w[CHANGELOG.md LICENSE README.md]
37
+ spec.extra_rdoc_files = %w[CHANGELOG.md LICENSE README.md]
25
38
 
26
- s.add_dependency 'actionview', '>= 7.2.0', '< 8.2'
27
- s.add_dependency 'money', '~> 6.19.0'
28
-
29
- s.add_development_dependency 'rspec-rails', '~> 8.0.2'
30
- s.add_development_dependency 'rubocop', '~> 1.81.1'
31
- s.add_development_dependency 'rubocop-rails', '~> 2.33.3'
32
- s.add_development_dependency 'rubocop-rake', '~> 0.7.1'
33
- s.add_development_dependency 'rubocop-rspec', '~> 3.7.0'
34
- s.add_development_dependency 'rubocop-rspec_rails', '~> 2.31.0'
39
+ spec.add_dependency 'actionview', '>= 8.0.0', '< 8.2'
40
+ spec.add_dependency 'money', '>= 6.19.0', '< 8.0.0'
35
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currency_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trond Arve Nordheim
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 7.2.0
19
+ version: 8.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8.2'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 7.2.0
29
+ version: 8.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.2'
@@ -34,101 +34,23 @@ dependencies:
34
34
  name: money
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 6.19.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: 8.0.0
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
44
- - - "~>"
47
+ - - ">="
45
48
  - !ruby/object:Gem::Version
46
49
  version: 6.19.0
47
- - !ruby/object:Gem::Dependency
48
- name: rspec-rails
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 8.0.2
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 8.0.2
61
- - !ruby/object:Gem::Dependency
62
- name: rubocop
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 1.81.1
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 1.81.1
75
- - !ruby/object:Gem::Dependency
76
- name: rubocop-rails
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: 2.33.3
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: 2.33.3
89
- - !ruby/object:Gem::Dependency
90
- name: rubocop-rake
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: 0.7.1
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: 0.7.1
103
- - !ruby/object:Gem::Dependency
104
- name: rubocop-rspec
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 3.7.0
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: 3.7.0
117
- - !ruby/object:Gem::Dependency
118
- name: rubocop-rspec_rails
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: 2.31.0
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
50
+ - - "<"
129
51
  - !ruby/object:Gem::Version
130
- version: 2.31.0
131
- email: o.klee@braingourmets.com
52
+ version: 8.0.0
53
+ email: o.klee@braingourmetspec.com
132
54
  executables: []
133
55
  extensions: []
134
56
  extra_rdoc_files:
@@ -137,12 +59,10 @@ extra_rdoc_files:
137
59
  - README.md
138
60
  files:
139
61
  - CHANGELOG.md
140
- - CODE_OF_CONDUCT.md
141
62
  - Gemfile
142
63
  - LICENSE
143
64
  - README.md
144
65
  - Rakefile
145
- - VERSION
146
66
  - currency_select.gemspec
147
67
  - lib/currency_select.rb
148
68
  - lib/currency_select_tag.rb
@@ -153,7 +73,12 @@ files:
153
73
  homepage: https://github.com/braingourmets/currency_select
154
74
  licenses:
155
75
  - MIT
156
- metadata: {}
76
+ metadata:
77
+ bug_tracker_uri: https://github.com/braingourmets/currency_select/issues
78
+ changelog_uri: https://github.com/braingourmets/currency_select/blob/master/CHANGELOG.md
79
+ documentation_uri: https://www.rubydoc.info/gems/currency_select
80
+ homepage_uri: https://github.com/braingourmets/currency_select
81
+ source_code_uri: https://github.com/braingourmets/currency_select
157
82
  rdoc_options: []
158
83
  require_paths:
159
84
  - lib
@@ -161,14 +86,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
86
  requirements:
162
87
  - - ">="
163
88
  - !ruby/object:Gem::Version
164
- version: 3.2.0
89
+ version: 3.3.0
165
90
  required_rubygems_version: !ruby/object:Gem::Requirement
166
91
  requirements:
167
92
  - - ">="
168
93
  - !ruby/object:Gem::Version
169
94
  version: '0'
170
95
  requirements: []
171
- rubygems_version: 3.6.9
96
+ rubygems_version: 4.0.20
172
97
  specification_version: 4
173
98
  summary: Currency select plugin for Rails
174
99
  test_files: []
data/CODE_OF_CONDUCT.md DELETED
@@ -1,77 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age,
8
- body size, disability, ethnicity, gender identity and expression, level of
9
- experience, nationality, personal appearance, race, religion, or sexual
10
- identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
-
35
- ## Our Responsibilities
36
-
37
- Project maintainers are responsible for clarifying the standards of acceptable
38
- behavior and are expected to take appropriate and fair corrective action in
39
- response to any instances of unacceptable behavior.
40
-
41
- Project maintainers have the right and responsibility to remove, edit, or
42
- reject comments, commits, code, wiki edits, issues, and other contributions
43
- that are not aligned to this Code of Conduct, or to ban temporarily or
44
- permanently any contributor for other behaviors that they deem inappropriate,
45
- threatening, offensive, or harmful.
46
-
47
- ## Scope
48
-
49
- This Code of Conduct applies both within project spaces and in public spaces
50
- when an individual is representing the project or its community. Examples of
51
- representing a project or community include using an official project e-mail
52
- address, posting via an official social media account, or acting as an
53
- appointed representative at an online or offline event. Representation of a
54
- project may be further defined and clarified by project maintainers.
55
-
56
- ## Enforcement
57
-
58
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
59
- reported by contacting the project team at (info at braingourmets dot com).
60
- All complaints will be reviewed and investigated and will result in a response
61
- that is deemed necessary and appropriate to the circumstances. The project team
62
- is obligated to maintain confidentiality with regard to the reporter of an
63
- incident. Further details of specific enforcement policies may be posted
64
- separately.
65
-
66
- Project maintainers who do not follow or enforce the Code of Conduct in good
67
- faith may face temporary or permanent repercussions as determined by other
68
- members of the project's leadership.
69
-
70
- ## Attribution
71
-
72
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
73
- version 1.4, available at
74
- [http://contributor-covenant.org/version/1/4/][version].
75
-
76
- [homepage]: http://contributor-covenant.org
77
- [version]: http://contributor-covenant.org/version/1/4/
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 9.0.0