currency_select 5.0.1 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e66e8307689b3cafe1b952135b87cd0a68813c97523bc4ff381039db912cb6ad
4
- data.tar.gz: bae46f9d23ba8cfc8f1e99c024187c76d83e133c6937b7fdef526c07e8a3007c
3
+ metadata.gz: 3fa3eb7c203846373ba9b1cdb4381162771b958712d77363bfcc840b80fef3d4
4
+ data.tar.gz: 12bfdff814e3fb7d777c186e032a6cf4c9cecddeb13e6c88bb88df1013fbc126
5
5
  SHA512:
6
- metadata.gz: 95ca18df0dcda855119e0631278a4743b3067bea1adf7f43dc7a51153ff6702556bb307be15ec8e8b6f5e2b63c083723d79b05a4a7be8578106a607fd07ccb11
7
- data.tar.gz: b2c8201dcad0b20634fa6487f4c7c9bc2196b02bbde98da7e9f598f548215a0c31cdca25827c5e7f6d5fd3bd2ca463eeee02c94a51d935d8f2d8cfb720a3963e
6
+ metadata.gz: 4790e94988807aef949e0926451f9f70ef294dbe5097e44ba93dfb86c00c92560afa7b7fe9ea05c3df966a5ece5ac6e658ae7d48315e66e82a83a97eacfe75b3
7
+ data.tar.gz: d53eba6d2511c5c2f2991aca0f621d7043b68e4a000c2aff75e34ac964315a4462479a2d56226e429845b522106b76755aa1c13db25481a95a242a5719b395e2
data/CHANGELOG.md CHANGED
@@ -17,40 +17,59 @@ This project adheres to [Semantic Versioning](https://semver.org/).
17
17
 
18
18
  ### Security
19
19
 
20
+ ## 6.0.0
21
+
22
+ ### Added
23
+
24
+ - Add support for Rails 7.1 (#146, #148, #149, #150),
25
+ thanks to @hishammalik and @pnicholls
26
+
27
+ ### Removed
28
+
29
+ - Drop support for Rails 6.0 (#142)
30
+
20
31
  ## 5.0.1
21
32
 
22
33
  ### Fixed
34
+
23
35
  - Add missing files to the gemspec file (#137)
24
36
 
25
37
  ## 5.0.0
26
38
 
27
39
  ### Added
40
+
28
41
  - Add official support for Ruby 3.2 (#125)
29
42
 
30
43
  ### Changed
44
+
31
45
  - Allow the non-formbuilder version to set the selected option (#134)
32
46
  - Drop whitespace between HTML tags (#115)
33
47
 
34
48
  ### Removed
49
+
35
50
  - Drop support for Rails 5.2 (#112)
36
51
  - Drop support for Ruby 2.6 and 2.7 (#111, #132)
37
52
 
38
53
  ## 4.1.0
39
54
 
40
55
  ### Added
56
+
41
57
  - Add support for Ruby 3.1 (#105)
42
58
 
43
59
  ## 4.0.0
44
60
 
45
61
  ### Added
62
+
46
63
  - Add support for Rails 7.0 (#96)
47
64
 
48
65
  ### Removed
66
+
49
67
  - Drop support for Ruby 2.5 (#90)
50
68
 
51
69
  ## 3.0.0
52
70
 
53
71
  ### Added
72
+
54
73
  - Add automatic gem release (#86, #88)
55
74
  - Support Ruby 3 (#81)
56
75
  - Add support for Rails 6.1 (#78, #79, #83)
@@ -58,21 +77,25 @@ This project adheres to [Semantic Versioning](https://semver.org/).
58
77
  - Add support for Ruby 2.7 (#66)
59
78
 
60
79
  ### Changed
80
+
61
81
  - Switch the CI from Travis to GitHub Actions (#80, #85)
62
82
  - Upgrade RSpec and RSpec-Rails (#71)
63
83
  - Update the Ruby versions on Travis CI (#68)
64
84
 
65
85
  ### Removed
86
+
66
87
  - Drop support for Ruby 2.4 (#70)
67
88
  - Drop support for Rails < 5.2 (#65)
68
89
 
69
90
  ### Fixed
91
+
70
92
  - Fix some RuboCop warnings (#73)
71
93
  - Fix warnings in the `.travis.yml` (#67, #69)
72
94
 
73
95
  ## 2.0.0
74
96
 
75
97
  ### Added
98
+
76
99
  - Add support for Rails 6.0
77
100
  ([#60](https://github.com/braingourmets/currency_select/pull/60))
78
101
  - Officially support Rails 5.2
@@ -81,6 +104,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
81
104
  ([#49](https://github.com/braingourmets/currency_select/pull/49))
82
105
 
83
106
  ### Removed
107
+
84
108
  - Drop support for Rails < 5.1
85
109
  ([#62](https://github.com/braingourmets/currency_select/pull/62))
86
110
  - Drop support for Ruby < 2.4
@@ -89,6 +113,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
89
113
  ([#48](https://github.com/braingourmets/currency_select/pull/48))
90
114
 
91
115
  ### Fixed
116
+
92
117
  - Add version to the requirements in the gemspec file
93
118
  ([#53](https://github.com/braingourmets/currency_select/pull/53))
94
119
  - Fix file names references from the gemspec file
@@ -99,16 +124,19 @@ This project adheres to [Semantic Versioning](https://semver.org/).
99
124
  ## 1.0.0
100
125
 
101
126
  ### Added
127
+
102
128
  - Officially support Rails 5.2
103
129
  ([#51](https://github.com/braingourmets/currency_select/pull/51))
104
130
  - Add Ruby 2.5.1 to the Travis build matrix
105
131
  ([#49](https://github.com/braingourmets/currency_select/pull/49))
106
132
 
107
133
  ### Removed
134
+
108
135
  - Drop support for Ruby < 2.3
109
136
  ([#48](https://github.com/braingourmets/currency_select/pull/48))
110
137
 
111
138
  ### Fixed
139
+
112
140
  - Add version to the requirements in the gemspec file
113
141
  ([#53](https://github.com/braingourmets/currency_select/pull/53))
114
142
  - Fix file names references from the gemspec file
@@ -119,27 +147,32 @@ This project adheres to [Semantic Versioning](https://semver.org/).
119
147
  ## 0.2.0
120
148
 
121
149
  ### Added
150
+
122
151
  - Automatically use the version number from the VERSION file in the gemspec
123
152
  ([#32](https://github.com/braingourmets/currency_select/pull/32))
124
153
  - Add a code of conduct
125
154
  ([#25](https://github.com/braingourmets/currency_select/pull/25))
126
155
 
127
156
  ### Changed
157
+
128
158
  - Mark all Ruby files as frozen_string_literal: true
129
159
  ([#31](https://github.com/braingourmets/currency_select/pull/31))
130
160
 
131
161
  ### Deprecated
162
+
132
163
  - Support for Rails < 5.0.0 will be removed in version 2.0.0.
133
164
  - Support for Rails < 4.2.0 will be removed in version 1.0.0.
134
165
  - Support for Ruby < 2.3.0 will be removed in version 1.0.0.
135
166
 
136
167
  ### Removed
168
+
137
169
  - Remove pre-Rails-4.0-specific code
138
170
  ([#38](https://github.com/braingourmets/currency_select/pull/38))
139
171
  - Drop Jeweler
140
172
  ([#28](https://github.com/braingourmets/currency_select/pull/28))
141
173
 
142
174
  ### Fixed
175
+
143
176
  - Add ActionView as explicit dependency
144
177
  ([#34](https://github.com/braingourmets/currency_select/pull/34))
145
178
  - 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
- 5.0.1
1
+ 6.0.0
@@ -23,12 +23,12 @@ Gem::Specification.new do |s|
23
23
  ]
24
24
  s.extra_rdoc_files = %w[CHANGELOG.md LICENSE README.md]
25
25
 
26
- s.add_runtime_dependency 'actionview', '>= 6.0.0', '< 7.1'
26
+ s.add_runtime_dependency 'actionview', '>= 6.1.0', '< 7.2'
27
27
  s.add_runtime_dependency 'money', '~> 6.0'
28
28
 
29
- s.add_development_dependency 'rspec-rails', '~> 5.1.0'
30
- s.add_development_dependency 'rubocop', '~> 1.26.0'
31
- s.add_development_dependency 'rubocop-rails', '~> 2.13.2'
29
+ s.add_development_dependency 'rspec-rails', '~> 6.1.0'
30
+ s.add_development_dependency 'rubocop', '~> 1.59.0'
31
+ s.add_development_dependency 'rubocop-rails', '~> 2.22.2'
32
32
  s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
33
- s.add_development_dependency 'rubocop-rspec', '~> 2.8.0'
33
+ s.add_development_dependency 'rubocop-rspec', '~> 2.25.0'
34
34
  end
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currency_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trond Arve Nordheim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-01 00:00:00.000000000 Z
12
+ date: 2023-12-13 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.0.0
20
+ version: 6.1.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '7.1'
23
+ version: '7.2'
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.0.0
30
+ version: 6.1.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '7.1'
33
+ version: '7.2'
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: 5.1.0
54
+ version: 6.1.0
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: 5.1.0
61
+ version: 6.1.0
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.26.0
68
+ version: 1.59.0
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.26.0
75
+ version: 1.59.0
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.13.2
82
+ version: 2.22.2
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.13.2
89
+ version: 2.22.2
90
90
  - !ruby/object:Gem::Dependency
91
91
  name: rubocop-rake
92
92
  requirement: !ruby/object:Gem::Requirement
@@ -107,14 +107,14 @@ dependencies:
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.8.0
110
+ version: 2.25.0
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: 2.8.0
117
+ version: 2.25.0
118
118
  description:
119
119
  email: o.klee@braingourmets.com
120
120
  executables: []