money-rails 1.14.0 → 1.15.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: 8226863e954671b603c22fac3eae1667b81ba88eb3425b8c9cd798e2cfa2f303
4
- data.tar.gz: cc9c7c8fbc27bcc9343ad457f596b15594a576d0da93448d3bfbabe1caedcfbb
3
+ metadata.gz: 5bb5642fbc3d57d55b592911898fc1c0beeb8bb42bb21aeea89c89d1d3dc5464
4
+ data.tar.gz: 8a5100169dea70dd4bbb8770a2273e59c6b99c555173025bfcc18fb4170fd7d0
5
5
  SHA512:
6
- metadata.gz: 0ed641980d3b776a3b2ec80d9ff1e7247415248eeff0bdc3fbc7077ad7700171fdcbda6c4c13bf39c2cda063a9fdf2575b660f9625fb506e8d39a815b96ab02f
7
- data.tar.gz: 301fbd73c779ac54d60e1be7137df6e0a89974b0372d1667fe9eb69c2a8e40c309768bcda6d885f1d6e7168512d2e62a61562ea2189dcd1bba14c53d58b1b891
6
+ metadata.gz: eb7961c60fab97af3a1e867ebcc192fcdc6468bb4239a18f60fb269014f898836051319db22b14c6b7c69b47287f6772be68d29db4e3be6a5d0366b895cea6b4
7
+ data.tar.gz: 193580effbe3f55093e418f8ca6a0eea54bbfd6a46f07d0f8641a57d450564739716f69d18e743b839f785cc5d75513c234445a9378430f9bc943220598c51ae
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.14.1
4
+
5
+ - Fix invalid_currency error definition
6
+ - Add Russian translation for errors
7
+ - Loosen money version to ~> 6.13
8
+ - Loosen monetize version to ~> 1.9
9
+
3
10
  ## 1.14.0
4
11
 
5
12
  - Tweaks to support Ruby 3.0
@@ -39,6 +46,7 @@
39
46
 
40
47
  - Bump money version to ~> 6.12.0
41
48
  - Bump monetize version to ~> 1.9.0
49
+ - BREAKING CHANGE: Fix to rounding logic in this version from 1.11.0 can cause breaking changes for those relying on the incorrect behavior. Eee [the issue](https://github.com/RubyMoney/money-rails/issues/608) for details.
42
50
 
43
51
  ## 1.11.0
44
52
 
@@ -1,5 +1,4 @@
1
1
  en:
2
2
  errors:
3
3
  messages:
4
- invalid_currency: must be a valid currency (eg. '100', '5%{decimal}24', or '123%{thousands}456%{decimal}78'). Got %{currency}
5
-
4
+ invalid_currency: has invalid format (must be '100', '5%{decimal}24', or '123%{thousands}456%{decimal}78'). Got %{currency}
@@ -0,0 +1,4 @@
1
+ ru:
2
+ errors:
3
+ messages:
4
+ invalid_currency: имеет неверный формат (должно быть '100', '5%{decimal}24', или '123%{thousands}456%{decimal}78'). Получено %{currency}
@@ -1,3 +1,3 @@
1
1
  module MoneyRails
2
- VERSION = '1.14.0'
2
+ VERSION = '1.15.0'
3
3
  end
data/money-rails.gemspec CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |s|
26
26
 
27
27
  s.require_path = "lib"
28
28
 
29
- s.add_dependency "money", "~> 6.13.2"
30
- s.add_dependency "monetize", "~> 1.9.0"
29
+ s.add_dependency "money", "~> 6.13"
30
+ s.add_dependency "monetize", "~> 1.9"
31
31
  s.add_dependency "activesupport", ">= 3.0"
32
32
  s.add_dependency "railties", ">= 3.0"
33
33
  s.add_dependency "mime-types", "< 3" if RUBY_VERSION < '2.0' # mime-types > 3 depends on mime-types-data, which doesn't support ruby 1.9
@@ -245,7 +245,7 @@ if defined? ActiveRecord
245
245
  product.price = "12,23.24"
246
246
  expect(product.save).to be_falsey
247
247
  expect(product.errors[:price].size).to eq(1)
248
- expect(product.errors[:price].first).to match(/must be a valid/)
248
+ expect(product.errors[:price].first).to match(/has invalid format/)
249
249
  expect(product.errors[:price].first).to match(/Got 12,23.24/)
250
250
  end
251
251
 
@@ -253,7 +253,7 @@ if defined? ActiveRecord
253
253
  product.price = "1.234,56"
254
254
  expect(product.save).to be_falsey
255
255
  expect(product.errors[:price].size).to eq(1)
256
- expect(product.errors[:price].first).to match(/must be a valid/)
256
+ expect(product.errors[:price].first).to match(/has invalid format/)
257
257
  expect(product.errors[:price].first).to match(/Got 1.234,56/)
258
258
  end
259
259
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Loupasakis
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-03-02 00:00:00.000000000 Z
13
+ date: 2021-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: money
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 6.13.2
21
+ version: '6.13'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 6.13.2
28
+ version: '6.13'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: monetize
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 1.9.0
35
+ version: '1.9'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.9.0
42
+ version: '1.9'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: activesupport
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +151,7 @@ files:
151
151
  - Rakefile
152
152
  - config/locales/money.da.yml
153
153
  - config/locales/money.en.yml
154
+ - config/locales/money.ru.yml
154
155
  - lib/generators/money_rails/initializer_generator.rb
155
156
  - lib/generators/templates/money.rb
156
157
  - lib/money-rails.rb
@@ -265,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
266
  - !ruby/object:Gem::Version
266
267
  version: '0'
267
268
  requirements: []
268
- rubygems_version: 3.2.3
269
+ rubygems_version: 3.2.22
269
270
  signing_key:
270
271
  specification_version: 4
271
272
  summary: Money gem integration with Rails