money 3.6.1 → 3.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +335 -319
- data/LICENSE +21 -21
- data/README.md +214 -209
- data/Rakefile +49 -49
- data/lib/money.rb +27 -27
- data/lib/money/bank/base.rb +131 -131
- data/lib/money/bank/variable_exchange.rb +252 -251
- data/lib/money/core_extensions.rb +82 -63
- data/lib/money/currency.rb +422 -415
- data/lib/money/money.rb +387 -1210
- data/lib/money/money/arithmetic.rb +246 -0
- data/lib/money/money/formatting.rb +234 -0
- data/lib/money/money/parsing.rb +350 -0
- data/money.gemspec +34 -27
- data/spec/bank/base_spec.rb +72 -72
- data/spec/bank/variable_exchange_spec.rb +238 -238
- data/spec/core_extensions_spec.rb +158 -142
- data/spec/currency_spec.rb +133 -128
- data/spec/money/arithmetic_spec.rb +479 -0
- data/spec/money/formatting_spec.rb +352 -0
- data/spec/money/parsing_spec.rb +197 -0
- data/spec/money_spec.rb +271 -1268
- data/spec/spec_helper.rb +28 -17
- metadata +33 -23
- data/lib/money.rbc +0 -170
- data/lib/money/bank/base.rbc +0 -800
- data/lib/money/bank/variable_exchange.rbc +0 -2496
- data/lib/money/core_extensions.rbc +0 -474
- data/lib/money/currency.rbc +0 -22600
- data/lib/money/money.rbc +0 -10070
- data/spec/bank/base_spec.rbc +0 -2409
- data/spec/bank/variable_exchange_spec.rbc +0 -7389
- data/spec/core_extensions_spec.rbc +0 -5215
- data/spec/currency_spec.rbc +0 -4341
- data/spec/money_spec.rbc +0 -50121
- data/spec/spec_helper.rbc +0 -346
data/CHANGELOG.md
CHANGED
@@ -1,319 +1,335 @@
|
|
1
|
-
Money 3.6.
|
2
|
-
===========
|
3
|
-
|
4
|
-
|
5
|
-
--------
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
Bugfixes
|
36
|
-
--------
|
37
|
-
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
Money
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
Bugfixes
|
86
|
-
--------
|
87
|
-
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
-
|
95
|
-
|
96
|
-
|
97
|
-
Money
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
([#issue/
|
108
|
-
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
--------
|
118
|
-
-
|
119
|
-
|
120
|
-
|
121
|
-
-
|
122
|
-
|
123
|
-
|
124
|
-
Money
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
-
|
130
|
-
([#issue/
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
-
|
135
|
-
|
136
|
-
|
137
|
-
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
-
|
146
|
-
|
147
|
-
|
148
|
-
-
|
149
|
-
|
150
|
-
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
([#issue/
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
([#issue/
|
164
|
-
-
|
165
|
-
([#issue/
|
166
|
-
-
|
167
|
-
|
168
|
-
-
|
169
|
-
([#issue/
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
-
|
179
|
-
([#issue/
|
180
|
-
-
|
181
|
-
([#issue/
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
([#issue/
|
196
|
-
- Added `#
|
197
|
-
([#issue/
|
198
|
-
|
199
|
-
Bugfixes
|
200
|
-
--------
|
201
|
-
-
|
202
|
-
([#issue/
|
203
|
-
|
204
|
-
Money 3.1.0.
|
205
|
-
================
|
206
|
-
|
207
|
-
Features
|
208
|
-
--------
|
209
|
-
-
|
210
|
-
|
211
|
-
|
212
|
-
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
-
|
229
|
-
|
230
|
-
|
231
|
-
Money
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
- `
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
Money
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
- Added
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
-
|
291
|
-
|
292
|
-
|
293
|
-
Money 3.0.
|
294
|
-
===========
|
295
|
-
|
296
|
-
Features
|
297
|
-
--------
|
298
|
-
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
1
|
+
Money 3.6.2
|
2
|
+
===========
|
3
|
+
|
4
|
+
Features
|
5
|
+
--------
|
6
|
+
- i18n enhancements (thanks eloyesp [link](https://github.com/RubyMoney/money/commit/b2cab76c78ae04f40251fa20c4ab18faa968dc53))
|
7
|
+
- README updates (thanks pconnor)
|
8
|
+
- Break into modules
|
9
|
+
- Added `:no_cents_if_whole` format option
|
10
|
+
- Update HKD from Ho to Cent
|
11
|
+
- Performance improvements (thanks weppos)
|
12
|
+
- Added Symbol#to_currency
|
13
|
+
- Added Gemfile for development
|
14
|
+
- Updated HUF currency to use `symbol_first => false`
|
15
|
+
- Updated "Turkish New Lira" to "Turkish Lira"
|
16
|
+
|
17
|
+
Money 3.6.1
|
18
|
+
===========
|
19
|
+
|
20
|
+
Bugfixes
|
21
|
+
--------
|
22
|
+
- Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
|
23
|
+
- reimplement fix for #issue/43, enable Marshal.(load/dump)
|
24
|
+
|
25
|
+
Money 3.6.0
|
26
|
+
===========
|
27
|
+
|
28
|
+
Features
|
29
|
+
--------
|
30
|
+
- Add a symbol position option for Money#format (thanks Romain, Gil and
|
31
|
+
Julien)
|
32
|
+
- Updated CNY to use "Fen" and subunit_to_unit of 100
|
33
|
+
- Updates to work with gem-testers.org
|
34
|
+
|
35
|
+
Bugfixes
|
36
|
+
--------
|
37
|
+
- Fixed issue with #format(:no_cents => true) (thanks Romain & Julien)
|
38
|
+
|
39
|
+
Money 3.5.5
|
40
|
+
===========
|
41
|
+
|
42
|
+
Features
|
43
|
+
--------
|
44
|
+
- Enhancements to Money::Currency (thanks Matthew McEachen)
|
45
|
+
- Replace delimiter with thousands_separator
|
46
|
+
- Replace separator with decimal_mark
|
47
|
+
- Added symbol_first and html_entity
|
48
|
+
- Added allocation algorithm for fair(ish) splitting of money between parties
|
49
|
+
without loosing pennies (thanks Tobias Luetke)
|
50
|
+
|
51
|
+
Bugfixes
|
52
|
+
--------
|
53
|
+
- Always store cents as an Integer (thanks Abhay Kumar)
|
54
|
+
- Fixed TypeError in rate exchange (thanks Christian Billen)
|
55
|
+
- Cleanup #parse (thanks Tom Lianza)
|
56
|
+
|
57
|
+
Money 3.5.4
|
58
|
+
===========
|
59
|
+
|
60
|
+
Features
|
61
|
+
--------
|
62
|
+
- Added Currency#decimal_places.
|
63
|
+
|
64
|
+
Bugfixes
|
65
|
+
--------
|
66
|
+
- Fixed error with Money#to_s error with negative amounts that are only cents.
|
67
|
+
|
68
|
+
Money 3.5.3
|
69
|
+
===========
|
70
|
+
|
71
|
+
Bugfixes
|
72
|
+
--------
|
73
|
+
- Fixed an error in #to_s when cents is negative
|
74
|
+
|
75
|
+
Money 3.5.2
|
76
|
+
===========
|
77
|
+
|
78
|
+
Bugfixes
|
79
|
+
--------
|
80
|
+
- Fixed an error in #to_s which appended extra 0s incorrectly
|
81
|
+
|
82
|
+
Money 3.5.1
|
83
|
+
===========
|
84
|
+
|
85
|
+
Bugfixes
|
86
|
+
--------
|
87
|
+
- Removed erroneous require.
|
88
|
+
|
89
|
+
Money 3.5.0
|
90
|
+
===========
|
91
|
+
|
92
|
+
Features
|
93
|
+
--------
|
94
|
+
- Updated to RSpec2.
|
95
|
+
- Use i18n to lookup separator and delimiter signs.
|
96
|
+
- Removed all deprecated methods up to v3.5.0, including the following:
|
97
|
+
- Using Money#format with params instead of a Hash.
|
98
|
+
- Using a Hash with Money#new.
|
99
|
+
- Using Bank#exchange, use Bank#exchange_with instead.
|
100
|
+
|
101
|
+
Bugfixes
|
102
|
+
--------
|
103
|
+
- Updated Money#to_s to respect :separator and :subunit_to_unit.
|
104
|
+
- Fixed Money#format for :subunit_to_unit != 100.
|
105
|
+
([#issue/37](http://github.com/RubyMoney/money/issue/37))
|
106
|
+
- Fixed String#to_money for :subunit_to_unit != 100.
|
107
|
+
([#issue/36](http://github.com/RubyMoney/money/issue/36))
|
108
|
+
- Removed duplicate currencies.
|
109
|
+
([#issue/38](http://github.com/RubyMoney/money/issue/38))
|
110
|
+
- Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead
|
111
|
+
of correctly returning 3.
|
112
|
+
|
113
|
+
Money 3.1.5
|
114
|
+
===========
|
115
|
+
|
116
|
+
Features
|
117
|
+
--------
|
118
|
+
- Added support for creating objects with the main monetary unit instead of
|
119
|
+
cents.
|
120
|
+
([#issue/25](http://github.com/RubyMoney/money/issues/25))
|
121
|
+
- Deprecated `Money#format` with separate params instead of Hash. Deprecation
|
122
|
+
target set to Money 3.5.0.
|
123
|
+
([#issue/31](http://github.com/RubyMoney/money/issues/31))
|
124
|
+
- Deprecated `Money#new(0, :currency => "EUR")` in favor of
|
125
|
+
`Money#new(0, "EUR")`. Deprecation target set to Money 3.5.0.
|
126
|
+
([#issue/31](http://github.com/RubyMoney/money/issues/31))
|
127
|
+
- Throw ArgumentError when trying to multiply two Money objects together.
|
128
|
+
([#issue/29](http://github.com/RubyMoney/money/issues/29))
|
129
|
+
- Update Money#parse to use :subunit_to_unit
|
130
|
+
([#issue/30](http://github.com/RubyMoney/money/issues/30))
|
131
|
+
|
132
|
+
Bugfixes
|
133
|
+
--------
|
134
|
+
- Downgraded required_rubygems_version to >= 1.3.6.
|
135
|
+
([#issue/26](http://github.com/RubyMoney/money/issues/26))
|
136
|
+
- Use BigDecimal when floating point calculations are needed.
|
137
|
+
- Ruby 1.9.2 compatibility enhancements.
|
138
|
+
|
139
|
+
|
140
|
+
Money 3.1.0
|
141
|
+
===========
|
142
|
+
|
143
|
+
Features
|
144
|
+
--------
|
145
|
+
- Implemented `Money::Bank::Base`.
|
146
|
+
([#issue/14](http://github.com/RubyMoney/money/issues/14))
|
147
|
+
- Added `Money::Bank::Base#exchange_with`.
|
148
|
+
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
|
149
|
+
3.2.0.
|
150
|
+
- Implented `Money::Bank::VariableExchange`
|
151
|
+
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
|
152
|
+
3.2.0.
|
153
|
+
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
|
154
|
+
Deprecation target set to Money 3.2.0.
|
155
|
+
([#issue/16](http://github.com/RubyMoney/money/issues/16))
|
156
|
+
- Implemented `#has` for `Money` and `Money::Currency`.
|
157
|
+
- Refactored test suite to conform to RSpec conventions.
|
158
|
+
- Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
|
159
|
+
[RubyMoney](http://github.com/RubyMoney)
|
160
|
+
- Added Simone Carletti to list of authors.
|
161
|
+
- Moved `@rounding_method` from `Money::Bank::VariableExchange` to
|
162
|
+
`Money::Bank::Base`.
|
163
|
+
([#issue/18](http://github.com/RubyMoney/money/issues/18))
|
164
|
+
- Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
|
165
|
+
([#issue/19](http://github.com/RubyMoney/money/issues/19))
|
166
|
+
- Added [google_currency](http://github.com/RubyMoney/google_currency) to list
|
167
|
+
of Currency Exchange Implementations.
|
168
|
+
- Added `#export_rates` to `Money::Bank::VariableExchange`.
|
169
|
+
([#issue/21](http://github.com/RubyMoney/money/issues/21))
|
170
|
+
- Added `#import_rates` to `Money::Bank::VariableExchange`.
|
171
|
+
([#issue/21](http://github.com/RubyMoney/money/issues/21))
|
172
|
+
- Removed dependency on Jeweler.
|
173
|
+
- Replaced usage of hanna with yardoc.
|
174
|
+
- Rewrote/reformatted all documentation.
|
175
|
+
|
176
|
+
Bugfixes
|
177
|
+
--------
|
178
|
+
- Fixed incorrect URLs in documentation.
|
179
|
+
([#issue/17](http://github.com/RubyMoney/money/issues/17))
|
180
|
+
- Updated `:subunit_to_unit` for HKD from 10 to 100.
|
181
|
+
([#issue/20](http://github.com/RubyMoney/money/issues/20))
|
182
|
+
- Updated Ghanaian Cedi to use correct ISO Code, GHS.
|
183
|
+
([#issue/22](http://github.com/RubyMoney/money/issues/22))
|
184
|
+
- Make `default` rake task call `spec`.
|
185
|
+
([#issue/23](http://github.com/RubyMoney/money/issues/23))
|
186
|
+
|
187
|
+
Money 3.1.0.pre3
|
188
|
+
================
|
189
|
+
|
190
|
+
Features
|
191
|
+
--------
|
192
|
+
- Added [google_currency](http://github.com/RubyMoney/google_currency) to list
|
193
|
+
of Currency Exchange Implementations.
|
194
|
+
- Added `#export_rates` to `Money::Bank::VariableExchange`.
|
195
|
+
([#issue/21](http://github.com/RubyMoney/money/issues/21))
|
196
|
+
- Added `#import_rates` to `Money::Bank::VariableExchange`.
|
197
|
+
([#issue/21](http://github.com/RubyMoney/money/issues/21))
|
198
|
+
|
199
|
+
Bugfixes
|
200
|
+
--------
|
201
|
+
- Updated `:subunit_to_unit` for HKD from 10 to 100.
|
202
|
+
([#issue/20](http://github.com/RubyMoney/money/issues/20))
|
203
|
+
|
204
|
+
Money 3.1.0.pre2
|
205
|
+
================
|
206
|
+
|
207
|
+
Features
|
208
|
+
--------
|
209
|
+
- Moved `@rounding_method` from `Money::Bank::VariableExchange` to
|
210
|
+
`Money::Bank::Base`.
|
211
|
+
([#issue/18](http://github.com/RubyMoney/money/issues/18))
|
212
|
+
- Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
|
213
|
+
([#issue/19](http://github.com/RubyMoney/money/issues/19))
|
214
|
+
|
215
|
+
Bugfixes
|
216
|
+
--------
|
217
|
+
- Fixed incorrect URLs in documentation.
|
218
|
+
([#issue/17](http://github.com/RubyMoney/money/issues/17))
|
219
|
+
|
220
|
+
Money 3.1.0.pre1
|
221
|
+
================
|
222
|
+
|
223
|
+
Features
|
224
|
+
--------
|
225
|
+
- Implemented `Money::Bank::Base`.
|
226
|
+
([#issue/14](http://github.com/RubyMoney/money/issues/14))
|
227
|
+
- Added `Money::Bank::Base#exchange_with`.
|
228
|
+
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
|
229
|
+
3.2.0.
|
230
|
+
- Implented `Money::Bank::VariableExchange`
|
231
|
+
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
|
232
|
+
3.2.0.
|
233
|
+
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
|
234
|
+
Deprecation target set to Money 3.2.0.
|
235
|
+
([#issue/16](http://github.com/RubyMoney/money/issues/16))
|
236
|
+
- Implemented `#has` for `Money` and `Money::Currency`.
|
237
|
+
- Refactored test suite to conform to RSpec conventions.
|
238
|
+
- Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
|
239
|
+
[RubyMoney](http://github.com/RubyMoney)
|
240
|
+
- Added Simone Carletti to list of authors.
|
241
|
+
|
242
|
+
Bugfixes
|
243
|
+
--------
|
244
|
+
- Fixed rounding error in `Numeric#to_money`.
|
245
|
+
([#issue/15](http://github.com/RubyMoney/money/issues/15))
|
246
|
+
|
247
|
+
Money 3.0.5
|
248
|
+
===========
|
249
|
+
|
250
|
+
Features
|
251
|
+
--------
|
252
|
+
- Added `Money#abs`.
|
253
|
+
- Added ability to pass a block to `VariableExchangeBank#new` or `#exchange`,
|
254
|
+
specifying a custom truncation method
|
255
|
+
- Added optional `currency` argument to` Numeric#to_money`.
|
256
|
+
([#issue/11](http://github.com/RubyMoney/money/issues/11))
|
257
|
+
- Added optional `currency` argument to `String#to_money`.
|
258
|
+
([#issue/11](http://github.com/RubyMoney/money/issues/11))
|
259
|
+
- Use '¤' as the default currency symbol.
|
260
|
+
([#issue/10](http://github.com/RubyMoney/money/issues/10))
|
261
|
+
|
262
|
+
Bugfixes
|
263
|
+
--------
|
264
|
+
- Updated `Currency#subunit_to_unit` documentation (it's an integer not a
|
265
|
+
string).
|
266
|
+
- Fixed issue when exchanging currencies with different `:subunit_to_unit`
|
267
|
+
values.
|
268
|
+
- `Numeric#to_money` now respects `:subunit_to_unit`.
|
269
|
+
([#issue/12](http://github.com/RubyMoney/money/issues/12))
|
270
|
+
|
271
|
+
Money 3.0.4
|
272
|
+
===========
|
273
|
+
|
274
|
+
Features
|
275
|
+
--------
|
276
|
+
- Use `:subunit_to_unit` in `#to_s`, `#to_f` and `#format`.
|
277
|
+
- Deprecated `Money#SEPARATORS` and `Money#DELIMITERS`.
|
278
|
+
|
279
|
+
Bugfixes
|
280
|
+
--------
|
281
|
+
- Updated `#exchange` to avoid floating point rounding errors.
|
282
|
+
- Added `:separator` and `:delimiter` to `Currency`
|
283
|
+
- Updated the attributes of the Chilean Peso.
|
284
|
+
|
285
|
+
Money 3.0.3
|
286
|
+
===========
|
287
|
+
|
288
|
+
Features
|
289
|
+
--------
|
290
|
+
- Added `#currency_as_string` and `#currency_as_string=` for easier
|
291
|
+
integration with ActiveRecord/Rails
|
292
|
+
|
293
|
+
Money 3.0.2
|
294
|
+
===========
|
295
|
+
|
296
|
+
Features
|
297
|
+
--------
|
298
|
+
- Added `#div`, `#divmod`, `#modulo`, `#%` and `#remainder` to `Money`.
|
299
|
+
|
300
|
+
Money 3.0.1
|
301
|
+
===========
|
302
|
+
|
303
|
+
Features
|
304
|
+
--------
|
305
|
+
- Added `#eql?` to `Money`
|
306
|
+
- Updated `Numeric#to_money` to work with all children of `Numeric` (i.e.
|
307
|
+
`BigDecimal`, `Integer`, `Fixnum`, `Float`, etc)
|
308
|
+
|
309
|
+
Money 3.0.0
|
310
|
+
===========
|
311
|
+
|
312
|
+
Features
|
313
|
+
--------
|
314
|
+
- Version Bump due to compatibility changes with ActiveRecord. See
|
315
|
+
conversation
|
316
|
+
[here](http://github.com/RubyMoney/money/issues#issue/4/comment/224880)
|
317
|
+
for more information.
|
318
|
+
|
319
|
+
Money 2.3.0
|
320
|
+
===========
|
321
|
+
|
322
|
+
Features
|
323
|
+
--------
|
324
|
+
- Currency is now represented by a `Currency` Object instead of a `String`.
|
325
|
+
|
326
|
+
Money 2.2.0
|
327
|
+
===========
|
328
|
+
|
329
|
+
Features
|
330
|
+
--------
|
331
|
+
- Can now divide two Money objects by one another using `#/`.
|
332
|
+
- Can now convert a Money object to a float using `#to_f`.
|
333
|
+
- Users can now specify Separators and Delimiters when using `#format`.
|
334
|
+
- Support for Brazilian Real `Money.new(1_00, :BRL)`
|
335
|
+
- Migrated to Jeweler
|