money 6.11.0 → 6.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/Gemfile +2 -2
- data/README.md +27 -21
- data/lib/money/bank/variable_exchange.rb +1 -1
- data/lib/money/currency/loader.rb +1 -1
- data/lib/money/money.rb +6 -41
- data/lib/money/money/arithmetic.rb +1 -1
- data/lib/money/money/formatter.rb +49 -49
- data/lib/money/money/formatting_rules.rb +1 -1
- data/lib/money/version.rb +1 -1
- data/spec/bank/variable_exchange_spec.rb +3 -3
- data/spec/currency_spec.rb +3 -3
- data/spec/money/arithmetic_spec.rb +85 -80
- data/spec/money/formatting_spec.rb +192 -182
- data/spec/rates_store/memory_spec.rb +3 -3
- metadata +2 -2
@@ -15,7 +15,7 @@ describe Money::RatesStore::Memory do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
context ':without_mutex' do
|
18
|
-
let(:subject) { Money::RatesStore::Memory.new(:
|
18
|
+
let(:subject) { Money::RatesStore::Memory.new(without_mutex: true) }
|
19
19
|
|
20
20
|
it "doesn't use mutex if requested not to" do
|
21
21
|
expect(subject.instance_variable_get(:@mutex)).not_to receive(:synchronize)
|
@@ -58,7 +58,7 @@ describe Money::RatesStore::Memory do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
context 'no mutex' do
|
61
|
-
let(:subject) { Money::RatesStore::Memory.new(:
|
61
|
+
let(:subject) { Money::RatesStore::Memory.new(without_mutex: true) }
|
62
62
|
|
63
63
|
it 'does not use mutex' do
|
64
64
|
expect(subject.instance_variable_get('@mutex')).not_to receive(:synchronize)
|
@@ -68,7 +68,7 @@ describe Money::RatesStore::Memory do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
describe '#marshal_dump' do
|
71
|
-
let(:subject) { Money::RatesStore::Memory.new(:
|
71
|
+
let(:subject) { Money::RatesStore::Memory.new(optional: true) }
|
72
72
|
|
73
73
|
it 'can reload' do
|
74
74
|
bank = Money::Bank::VariableExchange.new(subject)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.11.
|
4
|
+
version: 6.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|