currency_select 5.0.1 → 7.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 +4 -4
- data/CHANGELOG.md +44 -0
- data/README.md +7 -0
- data/VERSION +1 -1
- data/currency_select.gemspec +8 -7
- data/lib/currency_select_tag.rb +3 -0
- metadata +34 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7c2ca6e321424ab30b2ec8e9a4177347b10582e88bfe35a35c0148c11abff5e
|
|
4
|
+
data.tar.gz: 224a133524363f381b881ecde355802734833d2b97da2aa83e3fa10a40bf982e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9fce454cc63c0572555f65d7ab63923b42d3a23949ce7f26142633f553818ede494d0bba4a91e8e2b818f340af03801af67df94c474e2759e180b1b9b61f9ea
|
|
7
|
+
data.tar.gz: 127b536e16a97290243b4748e71bc48ae760431b8e7a4bcccdde709aac7fb90070eb71041be93aaedab3f4dfa44e6c3dafdedb024c0cd15c79f7e7ba4b7cbdf2
|
data/CHANGELOG.md
CHANGED
|
@@ -17,40 +17,70 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
17
17
|
|
|
18
18
|
### Security
|
|
19
19
|
|
|
20
|
+
## 7.0.0
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Add support for Rails 7.2 (#176)
|
|
25
|
+
- Add official support for Ruby 3.3 (#156)
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
|
|
29
|
+
- Drop support for Ruby 3.0 (#161)
|
|
30
|
+
|
|
31
|
+
## 6.0.0
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- Add support for Rails 7.1 (#146, #148, #149, #150),
|
|
36
|
+
thanks to @hishammalik and @pnicholls
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
|
|
40
|
+
- Drop support for Rails 6.0 (#142)
|
|
41
|
+
|
|
20
42
|
## 5.0.1
|
|
21
43
|
|
|
22
44
|
### Fixed
|
|
45
|
+
|
|
23
46
|
- Add missing files to the gemspec file (#137)
|
|
24
47
|
|
|
25
48
|
## 5.0.0
|
|
26
49
|
|
|
27
50
|
### Added
|
|
51
|
+
|
|
28
52
|
- Add official support for Ruby 3.2 (#125)
|
|
29
53
|
|
|
30
54
|
### Changed
|
|
55
|
+
|
|
31
56
|
- Allow the non-formbuilder version to set the selected option (#134)
|
|
32
57
|
- Drop whitespace between HTML tags (#115)
|
|
33
58
|
|
|
34
59
|
### Removed
|
|
60
|
+
|
|
35
61
|
- Drop support for Rails 5.2 (#112)
|
|
36
62
|
- Drop support for Ruby 2.6 and 2.7 (#111, #132)
|
|
37
63
|
|
|
38
64
|
## 4.1.0
|
|
39
65
|
|
|
40
66
|
### Added
|
|
67
|
+
|
|
41
68
|
- Add support for Ruby 3.1 (#105)
|
|
42
69
|
|
|
43
70
|
## 4.0.0
|
|
44
71
|
|
|
45
72
|
### Added
|
|
73
|
+
|
|
46
74
|
- Add support for Rails 7.0 (#96)
|
|
47
75
|
|
|
48
76
|
### Removed
|
|
77
|
+
|
|
49
78
|
- Drop support for Ruby 2.5 (#90)
|
|
50
79
|
|
|
51
80
|
## 3.0.0
|
|
52
81
|
|
|
53
82
|
### Added
|
|
83
|
+
|
|
54
84
|
- Add automatic gem release (#86, #88)
|
|
55
85
|
- Support Ruby 3 (#81)
|
|
56
86
|
- Add support for Rails 6.1 (#78, #79, #83)
|
|
@@ -58,21 +88,25 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
58
88
|
- Add support for Ruby 2.7 (#66)
|
|
59
89
|
|
|
60
90
|
### Changed
|
|
91
|
+
|
|
61
92
|
- Switch the CI from Travis to GitHub Actions (#80, #85)
|
|
62
93
|
- Upgrade RSpec and RSpec-Rails (#71)
|
|
63
94
|
- Update the Ruby versions on Travis CI (#68)
|
|
64
95
|
|
|
65
96
|
### Removed
|
|
97
|
+
|
|
66
98
|
- Drop support for Ruby 2.4 (#70)
|
|
67
99
|
- Drop support for Rails < 5.2 (#65)
|
|
68
100
|
|
|
69
101
|
### Fixed
|
|
102
|
+
|
|
70
103
|
- Fix some RuboCop warnings (#73)
|
|
71
104
|
- Fix warnings in the `.travis.yml` (#67, #69)
|
|
72
105
|
|
|
73
106
|
## 2.0.0
|
|
74
107
|
|
|
75
108
|
### Added
|
|
109
|
+
|
|
76
110
|
- Add support for Rails 6.0
|
|
77
111
|
([#60](https://github.com/braingourmets/currency_select/pull/60))
|
|
78
112
|
- Officially support Rails 5.2
|
|
@@ -81,6 +115,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
81
115
|
([#49](https://github.com/braingourmets/currency_select/pull/49))
|
|
82
116
|
|
|
83
117
|
### Removed
|
|
118
|
+
|
|
84
119
|
- Drop support for Rails < 5.1
|
|
85
120
|
([#62](https://github.com/braingourmets/currency_select/pull/62))
|
|
86
121
|
- Drop support for Ruby < 2.4
|
|
@@ -89,6 +124,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
89
124
|
([#48](https://github.com/braingourmets/currency_select/pull/48))
|
|
90
125
|
|
|
91
126
|
### Fixed
|
|
127
|
+
|
|
92
128
|
- Add version to the requirements in the gemspec file
|
|
93
129
|
([#53](https://github.com/braingourmets/currency_select/pull/53))
|
|
94
130
|
- Fix file names references from the gemspec file
|
|
@@ -99,16 +135,19 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
99
135
|
## 1.0.0
|
|
100
136
|
|
|
101
137
|
### Added
|
|
138
|
+
|
|
102
139
|
- Officially support Rails 5.2
|
|
103
140
|
([#51](https://github.com/braingourmets/currency_select/pull/51))
|
|
104
141
|
- Add Ruby 2.5.1 to the Travis build matrix
|
|
105
142
|
([#49](https://github.com/braingourmets/currency_select/pull/49))
|
|
106
143
|
|
|
107
144
|
### Removed
|
|
145
|
+
|
|
108
146
|
- Drop support for Ruby < 2.3
|
|
109
147
|
([#48](https://github.com/braingourmets/currency_select/pull/48))
|
|
110
148
|
|
|
111
149
|
### Fixed
|
|
150
|
+
|
|
112
151
|
- Add version to the requirements in the gemspec file
|
|
113
152
|
([#53](https://github.com/braingourmets/currency_select/pull/53))
|
|
114
153
|
- Fix file names references from the gemspec file
|
|
@@ -119,27 +158,32 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
119
158
|
## 0.2.0
|
|
120
159
|
|
|
121
160
|
### Added
|
|
161
|
+
|
|
122
162
|
- Automatically use the version number from the VERSION file in the gemspec
|
|
123
163
|
([#32](https://github.com/braingourmets/currency_select/pull/32))
|
|
124
164
|
- Add a code of conduct
|
|
125
165
|
([#25](https://github.com/braingourmets/currency_select/pull/25))
|
|
126
166
|
|
|
127
167
|
### Changed
|
|
168
|
+
|
|
128
169
|
- Mark all Ruby files as frozen_string_literal: true
|
|
129
170
|
([#31](https://github.com/braingourmets/currency_select/pull/31))
|
|
130
171
|
|
|
131
172
|
### Deprecated
|
|
173
|
+
|
|
132
174
|
- Support for Rails < 5.0.0 will be removed in version 2.0.0.
|
|
133
175
|
- Support for Rails < 4.2.0 will be removed in version 1.0.0.
|
|
134
176
|
- Support for Ruby < 2.3.0 will be removed in version 1.0.0.
|
|
135
177
|
|
|
136
178
|
### Removed
|
|
179
|
+
|
|
137
180
|
- Remove pre-Rails-4.0-specific code
|
|
138
181
|
([#38](https://github.com/braingourmets/currency_select/pull/38))
|
|
139
182
|
- Drop Jeweler
|
|
140
183
|
([#28](https://github.com/braingourmets/currency_select/pull/28))
|
|
141
184
|
|
|
142
185
|
### Fixed
|
|
186
|
+
|
|
143
187
|
- Add ActionView as explicit dependency
|
|
144
188
|
([#34](https://github.com/braingourmets/currency_select/pull/34))
|
|
145
189
|
- Fix the check for only one active selection in the specs
|
data/README.md
CHANGED
|
@@ -9,6 +9,12 @@ a HTML select list of available currencies.
|
|
|
9
9
|
The list of currencies are provided by the
|
|
10
10
|
[Money gem](https://rubygems.org/gems/money).
|
|
11
11
|
|
|
12
|
+
## New maintainer wanted
|
|
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
|
|
16
|
+
`info AT braingourmets DOT com`.
|
|
17
|
+
|
|
12
18
|
## Installation
|
|
13
19
|
|
|
14
20
|
Add the following to your Gemfile:
|
|
@@ -24,6 +30,7 @@ currency_select('user', 'currency')
|
|
|
24
30
|
```
|
|
25
31
|
|
|
26
32
|
### form_for example
|
|
33
|
+
|
|
27
34
|
```
|
|
28
35
|
<%= f.currency_select(:currency, ["USD", "EUR", "CAD"], {}, {class: "form-control"}) -%>
|
|
29
36
|
```
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7.0.0
|
data/currency_select.gemspec
CHANGED
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.version = version
|
|
9
9
|
s.license = 'MIT'
|
|
10
10
|
|
|
11
|
-
s.required_ruby_version = '>= 3.
|
|
11
|
+
s.required_ruby_version = '>= 3.1.0'
|
|
12
12
|
|
|
13
13
|
s.homepage = 'https://github.com/braingourmets/currency_select'
|
|
14
14
|
s.authors = ['Trond Arve Nordheim', 'Oliver Klee']
|
|
@@ -23,12 +23,13 @@ Gem::Specification.new do |s|
|
|
|
23
23
|
]
|
|
24
24
|
s.extra_rdoc_files = %w[CHANGELOG.md LICENSE README.md]
|
|
25
25
|
|
|
26
|
-
s.
|
|
27
|
-
s.
|
|
26
|
+
s.add_dependency 'actionview', '>= 6.1.0', '< 7.3'
|
|
27
|
+
s.add_dependency 'money', '~> 6.0'
|
|
28
28
|
|
|
29
|
-
s.add_development_dependency 'rspec-rails', '~>
|
|
30
|
-
s.add_development_dependency 'rubocop', '~> 1.
|
|
31
|
-
s.add_development_dependency 'rubocop-rails', '~> 2.
|
|
29
|
+
s.add_development_dependency 'rspec-rails', '~> 6.1.3'
|
|
30
|
+
s.add_development_dependency 'rubocop', '~> 1.65.1'
|
|
31
|
+
s.add_development_dependency 'rubocop-rails', '~> 2.25.1'
|
|
32
32
|
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
|
|
33
|
-
s.add_development_dependency 'rubocop-rspec', '~>
|
|
33
|
+
s.add_development_dependency 'rubocop-rspec', '~> 3.0.4'
|
|
34
|
+
s.add_development_dependency 'rubocop-rspec_rails', '~> 2.30.0'
|
|
34
35
|
end
|
data/lib/currency_select_tag.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'to_currency_select_tag'
|
|
4
|
+
require 'form_options_helper'
|
|
4
5
|
|
|
5
6
|
# CurrencySelect
|
|
6
7
|
module ActionView
|
|
@@ -10,6 +11,8 @@ module ActionView
|
|
|
10
11
|
#
|
|
11
12
|
class CurrencySelectTag < Tags::Base
|
|
12
13
|
include ToCurrencySelectTag
|
|
14
|
+
include FormOptionsHelper
|
|
15
|
+
include ActionView::Helpers::Tags::SelectRenderer if defined?(ActionView::Helpers::Tags::SelectRenderer)
|
|
13
16
|
end
|
|
14
17
|
end
|
|
15
18
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: currency_select
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trond Arve Nordheim
|
|
8
8
|
- Oliver Klee
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionview
|
|
@@ -17,20 +17,20 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - ">="
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 6.
|
|
20
|
+
version: 6.1.0
|
|
21
21
|
- - "<"
|
|
22
22
|
- !ruby/object:Gem::Version
|
|
23
|
-
version: '7.
|
|
23
|
+
version: '7.3'
|
|
24
24
|
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
|
27
27
|
requirements:
|
|
28
28
|
- - ">="
|
|
29
29
|
- !ruby/object:Gem::Version
|
|
30
|
-
version: 6.
|
|
30
|
+
version: 6.1.0
|
|
31
31
|
- - "<"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '7.
|
|
33
|
+
version: '7.3'
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: money
|
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -51,42 +51,42 @@ dependencies:
|
|
|
51
51
|
requirements:
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
54
|
+
version: 6.1.3
|
|
55
55
|
type: :development
|
|
56
56
|
prerelease: false
|
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 6.1.3
|
|
62
62
|
- !ruby/object:Gem::Dependency
|
|
63
63
|
name: rubocop
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 1.
|
|
68
|
+
version: 1.65.1
|
|
69
69
|
type: :development
|
|
70
70
|
prerelease: false
|
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.
|
|
75
|
+
version: 1.65.1
|
|
76
76
|
- !ruby/object:Gem::Dependency
|
|
77
77
|
name: rubocop-rails
|
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 2.
|
|
82
|
+
version: 2.25.1
|
|
83
83
|
type: :development
|
|
84
84
|
prerelease: false
|
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 2.
|
|
89
|
+
version: 2.25.1
|
|
90
90
|
- !ruby/object:Gem::Dependency
|
|
91
91
|
name: rubocop-rake
|
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,15 +107,29 @@ dependencies:
|
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version:
|
|
110
|
+
version: 3.0.4
|
|
111
111
|
type: :development
|
|
112
112
|
prerelease: false
|
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
118
|
-
|
|
117
|
+
version: 3.0.4
|
|
118
|
+
- !ruby/object:Gem::Dependency
|
|
119
|
+
name: rubocop-rspec_rails
|
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: 2.30.0
|
|
125
|
+
type: :development
|
|
126
|
+
prerelease: false
|
|
127
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 2.30.0
|
|
132
|
+
description:
|
|
119
133
|
email: o.klee@braingourmets.com
|
|
120
134
|
executables: []
|
|
121
135
|
extensions: []
|
|
@@ -142,7 +156,7 @@ homepage: https://github.com/braingourmets/currency_select
|
|
|
142
156
|
licenses:
|
|
143
157
|
- MIT
|
|
144
158
|
metadata: {}
|
|
145
|
-
post_install_message:
|
|
159
|
+
post_install_message:
|
|
146
160
|
rdoc_options: []
|
|
147
161
|
require_paths:
|
|
148
162
|
- lib
|
|
@@ -150,15 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
150
164
|
requirements:
|
|
151
165
|
- - ">="
|
|
152
166
|
- !ruby/object:Gem::Version
|
|
153
|
-
version: 3.
|
|
167
|
+
version: 3.1.0
|
|
154
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
169
|
requirements:
|
|
156
170
|
- - ">="
|
|
157
171
|
- !ruby/object:Gem::Version
|
|
158
172
|
version: '0'
|
|
159
173
|
requirements: []
|
|
160
|
-
rubygems_version: 3.
|
|
161
|
-
signing_key:
|
|
174
|
+
rubygems_version: 3.5.11
|
|
175
|
+
signing_key:
|
|
162
176
|
specification_version: 4
|
|
163
177
|
summary: Currency select plugin for Rails
|
|
164
178
|
test_files: []
|