money 4.0.1 → 4.0.2

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.
data/CHANGELOG.md CHANGED
@@ -1,391 +1,405 @@
1
- Money 4.0.1
2
- ===========
3
-
4
- Bugfixes
5
- --------
6
- - add missing config dir
7
-
8
- Money 4.0.0
9
- ===========
10
-
11
- The big change this release is moving the currency information into a JSON
12
- file. This should make it easier for users to add and test things. Thanks to
13
- Steve Morris for working on this during his Mendicant University course.
14
-
15
- In addition to this big change there were well over a dozen other minor
16
- changes.
17
-
18
- Features
19
- --------
20
- - a new exchange bank nordea has been added to the README. (k33l0r)
21
- - a new exchange bank nbrb_currency has been added to the README. (slbug)
22
- - update Rake tasks
23
- - See our CI status in the README
24
- - Add syntax highlighting to the README (phlipper)
25
- - Remove minor unit from YEN (pwim)
26
- - Format YEN (pwim)
27
- - Update README for `_as_string` (mjankowski)
28
- - Update Lebanon currency (kaleemullah)
29
- - Update Polish złoty (holek)
30
- - Move currency information into JSON storage! (stevemorris)
31
- - Add ISO4217 Numeric codes (alovak)
32
-
33
- Bugfixes
34
- --------
35
- - EEK currency is no longer used, kept for BC ([#issue/110](http://github.com/RubyMoney/money/issues/110))
36
- - Lithuanian Litas symbol position fixed (laurynas)
37
- - Fixed README typos (phlipper)
38
- - Fixed README typos (pwim)
39
- - Fix specs (alovak)
40
-
41
- Money 3.7.1
42
- ===========
43
-
44
- Bugfixes
45
- --------
46
- - Add encoding indicator to top of Gemspec
47
-
48
- Money 3.7.0
49
- ===========
50
-
51
- Features
52
- --------
53
- - add Money#to_d (thanks Andrew White)
54
- - Add Money.use_i18n, this allows you to enable/disable i18n from being used,
55
- even if it's required in your app.
56
-
57
- Money 3.6.2
58
- ===========
59
-
60
- Features
61
- --------
62
- - i18n enhancements (thanks eloyesp [link](https://github.com/RubyMoney/money/commit/b2cab76c78ae04f40251fa20c4ab18faa968dc53))
63
- - README updates (thanks pconnor)
64
- - Break into modules
65
- - Added `:no_cents_if_whole` format option
66
- - Update HKD from Ho to Cent
67
- - Performance improvements (thanks weppos)
68
- - Added Symbol#to_currency
69
- - Added Gemfile for development
70
- - Updated HUF currency to use `symbol_first => false`
71
- - Updated "Turkish New Lira" to "Turkish Lira"
72
-
73
- Money 3.6.1
74
- ===========
75
-
76
- Bugfixes
77
- --------
78
- - Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
79
- - reimplement fix for #issue/43, enable Marshal.(load/dump)
80
-
81
- Money 3.6.0
82
- ===========
83
-
84
- Features
85
- --------
86
- - Add a symbol position option for Money#format (thanks Romain, Gil and
87
- Julien)
88
- - Updated CNY to use "Fen" and subunit_to_unit of 100
89
- - Updates to work with gem-testers.org
90
-
91
- Bugfixes
92
- --------
93
- - Fixed issue with #format(:no_cents => true) (thanks Romain & Julien)
94
-
95
- Money 3.5.5
96
- ===========
97
-
98
- Features
99
- --------
100
- - Enhancements to Money::Currency (thanks Matthew McEachen)
101
- - Replace delimiter with thousands_separator
102
- - Replace separator with decimal_mark
103
- - Added symbol_first and html_entity
104
- - Added allocation algorithm for fair(ish) splitting of money between parties
105
- without loosing pennies (thanks Tobias Luetke)
106
-
107
- Bugfixes
108
- --------
109
- - Always store cents as an Integer (thanks Abhay Kumar)
110
- - Fixed TypeError in rate exchange (thanks Christian Billen)
111
- - Cleanup #parse (thanks Tom Lianza)
112
-
113
- Money 3.5.4
114
- ===========
115
-
116
- Features
117
- --------
118
- - Added Currency#decimal_places.
119
-
120
- Bugfixes
121
- --------
122
- - Fixed error with Money#to_s error with negative amounts that are only cents.
123
-
124
- Money 3.5.3
125
- ===========
126
-
127
- Bugfixes
128
- --------
129
- - Fixed an error in #to_s when cents is negative
130
-
131
- Money 3.5.2
132
- ===========
133
-
134
- Bugfixes
135
- --------
136
- - Fixed an error in #to_s which appended extra 0s incorrectly
137
-
138
- Money 3.5.1
139
- ===========
140
-
141
- Bugfixes
142
- --------
143
- - Removed erroneous require.
144
-
145
- Money 3.5.0
146
- ===========
147
-
148
- Features
149
- --------
150
- - Updated to RSpec2.
151
- - Use i18n to lookup separator and delimiter signs.
152
- - Removed all deprecated methods up to v3.5.0, including the following:
153
- - Using Money#format with params instead of a Hash.
154
- - Using a Hash with Money#new.
155
- - Using Bank#exchange, use Bank#exchange_with instead.
156
-
157
- Bugfixes
158
- --------
159
- - Updated Money#to_s to respect :separator and :subunit_to_unit.
160
- - Fixed Money#format for :subunit_to_unit != 100.
161
- ([#issue/37](http://github.com/RubyMoney/money/issue/37))
162
- - Fixed String#to_money for :subunit_to_unit != 100.
163
- ([#issue/36](http://github.com/RubyMoney/money/issue/36))
164
- - Removed duplicate currencies.
165
- ([#issue/38](http://github.com/RubyMoney/money/issue/38))
166
- - Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead
167
- of correctly returning 3.
168
-
169
- Money 3.1.5
170
- ===========
171
-
172
- Features
173
- --------
174
- - Added support for creating objects with the main monetary unit instead of
175
- cents.
176
- ([#issue/25](http://github.com/RubyMoney/money/issues/25))
177
- - Deprecated `Money#format` with separate params instead of Hash. Deprecation
178
- target set to Money 3.5.0.
179
- ([#issue/31](http://github.com/RubyMoney/money/issues/31))
180
- - Deprecated `Money#new(0, :currency => "EUR")` in favor of
181
- `Money#new(0, "EUR")`. Deprecation target set to Money 3.5.0.
182
- ([#issue/31](http://github.com/RubyMoney/money/issues/31))
183
- - Throw ArgumentError when trying to multiply two Money objects together.
184
- ([#issue/29](http://github.com/RubyMoney/money/issues/29))
185
- - Update Money#parse to use :subunit_to_unit
186
- ([#issue/30](http://github.com/RubyMoney/money/issues/30))
187
-
188
- Bugfixes
189
- --------
190
- - Downgraded required_rubygems_version to >= 1.3.6.
191
- ([#issue/26](http://github.com/RubyMoney/money/issues/26))
192
- - Use BigDecimal when floating point calculations are needed.
193
- - Ruby 1.9.2 compatibility enhancements.
194
-
195
-
196
- Money 3.1.0
197
- ===========
198
-
199
- Features
200
- --------
201
- - Implemented `Money::Bank::Base`.
202
- ([#issue/14](http://github.com/RubyMoney/money/issues/14))
203
- - Added `Money::Bank::Base#exchange_with`.
204
- - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
205
- 3.2.0.
206
- - Implented `Money::Bank::VariableExchange`
207
- - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
208
- 3.2.0.
209
- - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
210
- Deprecation target set to Money 3.2.0.
211
- ([#issue/16](http://github.com/RubyMoney/money/issues/16))
212
- - Implemented `#has` for `Money` and `Money::Currency`.
213
- - Refactored test suite to conform to RSpec conventions.
214
- - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
215
- [RubyMoney](http://github.com/RubyMoney)
216
- - Added Simone Carletti to list of authors.
217
- - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
218
- `Money::Bank::Base`.
219
- ([#issue/18](http://github.com/RubyMoney/money/issues/18))
220
- - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
221
- ([#issue/19](http://github.com/RubyMoney/money/issues/19))
222
- - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
223
- of Currency Exchange Implementations.
224
- - Added `#export_rates` to `Money::Bank::VariableExchange`.
225
- ([#issue/21](http://github.com/RubyMoney/money/issues/21))
226
- - Added `#import_rates` to `Money::Bank::VariableExchange`.
227
- ([#issue/21](http://github.com/RubyMoney/money/issues/21))
228
- - Removed dependency on Jeweler.
229
- - Replaced usage of hanna with yardoc.
230
- - Rewrote/reformatted all documentation.
231
-
232
- Bugfixes
233
- --------
234
- - Fixed incorrect URLs in documentation.
235
- ([#issue/17](http://github.com/RubyMoney/money/issues/17))
236
- - Updated `:subunit_to_unit` for HKD from 10 to 100.
237
- ([#issue/20](http://github.com/RubyMoney/money/issues/20))
238
- - Updated Ghanaian Cedi to use correct ISO Code, GHS.
239
- ([#issue/22](http://github.com/RubyMoney/money/issues/22))
240
- - Make `default` rake task call `spec`.
241
- ([#issue/23](http://github.com/RubyMoney/money/issues/23))
242
-
243
- Money 3.1.0.pre3
244
- ================
245
-
246
- Features
247
- --------
248
- - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
249
- of Currency Exchange Implementations.
250
- - Added `#export_rates` to `Money::Bank::VariableExchange`.
251
- ([#issue/21](http://github.com/RubyMoney/money/issues/21))
252
- - Added `#import_rates` to `Money::Bank::VariableExchange`.
253
- ([#issue/21](http://github.com/RubyMoney/money/issues/21))
254
-
255
- Bugfixes
256
- --------
257
- - Updated `:subunit_to_unit` for HKD from 10 to 100.
258
- ([#issue/20](http://github.com/RubyMoney/money/issues/20))
259
-
260
- Money 3.1.0.pre2
261
- ================
262
-
263
- Features
264
- --------
265
- - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
266
- `Money::Bank::Base`.
267
- ([#issue/18](http://github.com/RubyMoney/money/issues/18))
268
- - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
269
- ([#issue/19](http://github.com/RubyMoney/money/issues/19))
270
-
271
- Bugfixes
272
- --------
273
- - Fixed incorrect URLs in documentation.
274
- ([#issue/17](http://github.com/RubyMoney/money/issues/17))
275
-
276
- Money 3.1.0.pre1
277
- ================
278
-
279
- Features
280
- --------
281
- - Implemented `Money::Bank::Base`.
282
- ([#issue/14](http://github.com/RubyMoney/money/issues/14))
283
- - Added `Money::Bank::Base#exchange_with`.
284
- - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
285
- 3.2.0.
286
- - Implented `Money::Bank::VariableExchange`
287
- - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
288
- 3.2.0.
289
- - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
290
- Deprecation target set to Money 3.2.0.
291
- ([#issue/16](http://github.com/RubyMoney/money/issues/16))
292
- - Implemented `#has` for `Money` and `Money::Currency`.
293
- - Refactored test suite to conform to RSpec conventions.
294
- - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
295
- [RubyMoney](http://github.com/RubyMoney)
296
- - Added Simone Carletti to list of authors.
297
-
298
- Bugfixes
299
- --------
300
- - Fixed rounding error in `Numeric#to_money`.
301
- ([#issue/15](http://github.com/RubyMoney/money/issues/15))
302
-
303
- Money 3.0.5
304
- ===========
305
-
306
- Features
307
- --------
308
- - Added `Money#abs`.
309
- - Added ability to pass a block to `VariableExchangeBank#new` or `#exchange`,
310
- specifying a custom truncation method
311
- - Added optional `currency` argument to` Numeric#to_money`.
312
- ([#issue/11](http://github.com/RubyMoney/money/issues/11))
313
- - Added optional `currency` argument to `String#to_money`.
314
- ([#issue/11](http://github.com/RubyMoney/money/issues/11))
315
- - Use '¤' as the default currency symbol.
316
- ([#issue/10](http://github.com/RubyMoney/money/issues/10))
317
-
318
- Bugfixes
319
- --------
320
- - Updated `Currency#subunit_to_unit` documentation (it's an integer not a
321
- string).
322
- - Fixed issue when exchanging currencies with different `:subunit_to_unit`
323
- values.
324
- - `Numeric#to_money` now respects `:subunit_to_unit`.
325
- ([#issue/12](http://github.com/RubyMoney/money/issues/12))
326
-
327
- Money 3.0.4
328
- ===========
329
-
330
- Features
331
- --------
332
- - Use `:subunit_to_unit` in `#to_s`, `#to_f` and `#format`.
333
- - Deprecated `Money#SEPARATORS` and `Money#DELIMITERS`.
334
-
335
- Bugfixes
336
- --------
337
- - Updated `#exchange` to avoid floating point rounding errors.
338
- - Added `:separator` and `:delimiter` to `Currency`
339
- - Updated the attributes of the Chilean Peso.
340
-
341
- Money 3.0.3
342
- ===========
343
-
344
- Features
345
- --------
346
- - Added `#currency_as_string` and `#currency_as_string=` for easier
347
- integration with ActiveRecord/Rails
348
-
349
- Money 3.0.2
350
- ===========
351
-
352
- Features
353
- --------
354
- - Added `#div`, `#divmod`, `#modulo`, `#%` and `#remainder` to `Money`.
355
-
356
- Money 3.0.1
357
- ===========
358
-
359
- Features
360
- --------
361
- - Added `#eql?` to `Money`
362
- - Updated `Numeric#to_money` to work with all children of `Numeric` (i.e.
363
- `BigDecimal`, `Integer`, `Fixnum`, `Float`, etc)
364
-
365
- Money 3.0.0
366
- ===========
367
-
368
- Features
369
- --------
370
- - Version Bump due to compatibility changes with ActiveRecord. See
371
- conversation
372
- [here](http://github.com/RubyMoney/money/issues#issue/4/comment/224880)
373
- for more information.
374
-
375
- Money 2.3.0
376
- ===========
377
-
378
- Features
379
- --------
380
- - Currency is now represented by a `Currency` Object instead of a `String`.
381
-
382
- Money 2.2.0
383
- ===========
384
-
385
- Features
386
- --------
387
- - Can now divide two Money objects by one another using `#/`.
388
- - Can now convert a Money object to a float using `#to_f`.
389
- - Users can now specify Separators and Delimiters when using `#format`.
390
- - Support for Brazilian Real `Money.new(1_00, :BRL)`
391
- - Migrated to Jeweler
1
+ # Changelog
2
+
3
+
4
+ ## 4.0.2
5
+
6
+ - Money.to_money now understands a currency option (GH-121)
7
+ - Added Money#-@ method to change object polarity (GH-122)
8
+ - Added Money#symbol_or_iso_code utility method (GH-128)
9
+ - Money.parse now understands trailing - as negative inputs (GH-133)
10
+ - Money::Currency.new now validates input to avoid memory leaks (GH-137)
11
+
12
+ - Forced UTF-8 encoding on currency JSON (GH-117)
13
+ - Fixed position of Philippine peso sign (GH-124)
14
+ - Fixed position of Danish currency sign (GH-127)
15
+
16
+
17
+ ## 4.0.1
18
+
19
+ - Add missing config dir.
20
+
21
+
22
+ Money 4.0.0
23
+ ===========
24
+
25
+ The big change this release is moving the currency information into a JSON
26
+ file. This should make it easier for users to add and test things. Thanks to
27
+ Steve Morris for working on this during his Mendicant University course.
28
+
29
+ In addition to this big change there were well over a dozen other minor
30
+ changes.
31
+
32
+ Features
33
+ --------
34
+ - a new exchange bank nordea has been added to the README. (k33l0r)
35
+ - a new exchange bank nbrb_currency has been added to the README. (slbug)
36
+ - update Rake tasks
37
+ - See our CI status in the README
38
+ - Add syntax highlighting to the README (phlipper)
39
+ - Remove minor unit from YEN (pwim)
40
+ - Format YEN (pwim)
41
+ - Update README for `_as_string` (mjankowski)
42
+ - Update Lebanon currency (kaleemullah)
43
+ - Update Polish złoty (holek)
44
+ - Move currency information into JSON storage! (stevemorris)
45
+ - Add ISO4217 Numeric codes (alovak)
46
+
47
+ Bugfixes
48
+ --------
49
+ - EEK currency is no longer used, kept for BC ([#issue/110](http://github.com/RubyMoney/money/issues/110))
50
+ - Lithuanian Litas symbol position fixed (laurynas)
51
+ - Fixed README typos (phlipper)
52
+ - Fixed README typos (pwim)
53
+ - Fix specs (alovak)
54
+
55
+ Money 3.7.1
56
+ ===========
57
+
58
+ Bugfixes
59
+ --------
60
+ - Add encoding indicator to top of Gemspec
61
+
62
+ Money 3.7.0
63
+ ===========
64
+
65
+ Features
66
+ --------
67
+ - add Money#to_d (thanks Andrew White)
68
+ - Add Money.use_i18n, this allows you to enable/disable i18n from being used,
69
+ even if it's required in your app.
70
+
71
+ Money 3.6.2
72
+ ===========
73
+
74
+ Features
75
+ --------
76
+ - i18n enhancements (thanks eloyesp [link](https://github.com/RubyMoney/money/commit/b2cab76c78ae04f40251fa20c4ab18faa968dc53))
77
+ - README updates (thanks pconnor)
78
+ - Break into modules
79
+ - Added `:no_cents_if_whole` format option
80
+ - Update HKD from Ho to Cent
81
+ - Performance improvements (thanks weppos)
82
+ - Added Symbol#to_currency
83
+ - Added Gemfile for development
84
+ - Updated HUF currency to use `symbol_first => false`
85
+ - Updated "Turkish New Lira" to "Turkish Lira"
86
+
87
+ Money 3.6.1
88
+ ===========
89
+
90
+ Bugfixes
91
+ --------
92
+ - Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
93
+ - reimplement fix for #issue/43, enable Marshal.(load/dump)
94
+
95
+ Money 3.6.0
96
+ ===========
97
+
98
+ Features
99
+ --------
100
+ - Add a symbol position option for Money#format (thanks Romain, Gil and
101
+ Julien)
102
+ - Updated CNY to use "Fen" and subunit_to_unit of 100
103
+ - Updates to work with gem-testers.org
104
+
105
+ Bugfixes
106
+ --------
107
+ - Fixed issue with #format(:no_cents => true) (thanks Romain & Julien)
108
+
109
+ Money 3.5.5
110
+ ===========
111
+
112
+ Features
113
+ --------
114
+ - Enhancements to Money::Currency (thanks Matthew McEachen)
115
+ - Replace delimiter with thousands_separator
116
+ - Replace separator with decimal_mark
117
+ - Added symbol_first and html_entity
118
+ - Added allocation algorithm for fair(ish) splitting of money between parties
119
+ without loosing pennies (thanks Tobias Luetke)
120
+
121
+ Bugfixes
122
+ --------
123
+ - Always store cents as an Integer (thanks Abhay Kumar)
124
+ - Fixed TypeError in rate exchange (thanks Christian Billen)
125
+ - Cleanup #parse (thanks Tom Lianza)
126
+
127
+ Money 3.5.4
128
+ ===========
129
+
130
+ Features
131
+ --------
132
+ - Added Currency#decimal_places.
133
+
134
+ Bugfixes
135
+ --------
136
+ - Fixed error with Money#to_s error with negative amounts that are only cents.
137
+
138
+ Money 3.5.3
139
+ ===========
140
+
141
+ Bugfixes
142
+ --------
143
+ - Fixed an error in #to_s when cents is negative
144
+
145
+ Money 3.5.2
146
+ ===========
147
+
148
+ Bugfixes
149
+ --------
150
+ - Fixed an error in #to_s which appended extra 0s incorrectly
151
+
152
+ Money 3.5.1
153
+ ===========
154
+
155
+ Bugfixes
156
+ --------
157
+ - Removed erroneous require.
158
+
159
+ Money 3.5.0
160
+ ===========
161
+
162
+ Features
163
+ --------
164
+ - Updated to RSpec2.
165
+ - Use i18n to lookup separator and delimiter signs.
166
+ - Removed all deprecated methods up to v3.5.0, including the following:
167
+ - Using Money#format with params instead of a Hash.
168
+ - Using a Hash with Money#new.
169
+ - Using Bank#exchange, use Bank#exchange_with instead.
170
+
171
+ Bugfixes
172
+ --------
173
+ - Updated Money#to_s to respect :separator and :subunit_to_unit.
174
+ - Fixed Money#format for :subunit_to_unit != 100.
175
+ ([#issue/37](http://github.com/RubyMoney/money/issue/37))
176
+ - Fixed String#to_money for :subunit_to_unit != 100.
177
+ ([#issue/36](http://github.com/RubyMoney/money/issue/36))
178
+ - Removed duplicate currencies.
179
+ ([#issue/38](http://github.com/RubyMoney/money/issue/38))
180
+ - Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead
181
+ of correctly returning 3.
182
+
183
+ Money 3.1.5
184
+ ===========
185
+
186
+ Features
187
+ --------
188
+ - Added support for creating objects with the main monetary unit instead of
189
+ cents.
190
+ ([#issue/25](http://github.com/RubyMoney/money/issues/25))
191
+ - Deprecated `Money#format` with separate params instead of Hash. Deprecation
192
+ target set to Money 3.5.0.
193
+ ([#issue/31](http://github.com/RubyMoney/money/issues/31))
194
+ - Deprecated `Money#new(0, :currency => "EUR")` in favor of
195
+ `Money#new(0, "EUR")`. Deprecation target set to Money 3.5.0.
196
+ ([#issue/31](http://github.com/RubyMoney/money/issues/31))
197
+ - Throw ArgumentError when trying to multiply two Money objects together.
198
+ ([#issue/29](http://github.com/RubyMoney/money/issues/29))
199
+ - Update Money#parse to use :subunit_to_unit
200
+ ([#issue/30](http://github.com/RubyMoney/money/issues/30))
201
+
202
+ Bugfixes
203
+ --------
204
+ - Downgraded required_rubygems_version to >= 1.3.6.
205
+ ([#issue/26](http://github.com/RubyMoney/money/issues/26))
206
+ - Use BigDecimal when floating point calculations are needed.
207
+ - Ruby 1.9.2 compatibility enhancements.
208
+
209
+
210
+ Money 3.1.0
211
+ ===========
212
+
213
+ Features
214
+ --------
215
+ - Implemented `Money::Bank::Base`.
216
+ ([#issue/14](http://github.com/RubyMoney/money/issues/14))
217
+ - Added `Money::Bank::Base#exchange_with`.
218
+ - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
219
+ 3.2.0.
220
+ - Implented `Money::Bank::VariableExchange`
221
+ - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
222
+ 3.2.0.
223
+ - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
224
+ Deprecation target set to Money 3.2.0.
225
+ ([#issue/16](http://github.com/RubyMoney/money/issues/16))
226
+ - Implemented `#has` for `Money` and `Money::Currency`.
227
+ - Refactored test suite to conform to RSpec conventions.
228
+ - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
229
+ [RubyMoney](http://github.com/RubyMoney)
230
+ - Added Simone Carletti to list of authors.
231
+ - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
232
+ `Money::Bank::Base`.
233
+ ([#issue/18](http://github.com/RubyMoney/money/issues/18))
234
+ - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
235
+ ([#issue/19](http://github.com/RubyMoney/money/issues/19))
236
+ - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
237
+ of Currency Exchange Implementations.
238
+ - Added `#export_rates` to `Money::Bank::VariableExchange`.
239
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
240
+ - Added `#import_rates` to `Money::Bank::VariableExchange`.
241
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
242
+ - Removed dependency on Jeweler.
243
+ - Replaced usage of hanna with yardoc.
244
+ - Rewrote/reformatted all documentation.
245
+
246
+ Bugfixes
247
+ --------
248
+ - Fixed incorrect URLs in documentation.
249
+ ([#issue/17](http://github.com/RubyMoney/money/issues/17))
250
+ - Updated `:subunit_to_unit` for HKD from 10 to 100.
251
+ ([#issue/20](http://github.com/RubyMoney/money/issues/20))
252
+ - Updated Ghanaian Cedi to use correct ISO Code, GHS.
253
+ ([#issue/22](http://github.com/RubyMoney/money/issues/22))
254
+ - Make `default` rake task call `spec`.
255
+ ([#issue/23](http://github.com/RubyMoney/money/issues/23))
256
+
257
+ Money 3.1.0.pre3
258
+ ================
259
+
260
+ Features
261
+ --------
262
+ - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
263
+ of Currency Exchange Implementations.
264
+ - Added `#export_rates` to `Money::Bank::VariableExchange`.
265
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
266
+ - Added `#import_rates` to `Money::Bank::VariableExchange`.
267
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
268
+
269
+ Bugfixes
270
+ --------
271
+ - Updated `:subunit_to_unit` for HKD from 10 to 100.
272
+ ([#issue/20](http://github.com/RubyMoney/money/issues/20))
273
+
274
+ Money 3.1.0.pre2
275
+ ================
276
+
277
+ Features
278
+ --------
279
+ - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
280
+ `Money::Bank::Base`.
281
+ ([#issue/18](http://github.com/RubyMoney/money/issues/18))
282
+ - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
283
+ ([#issue/19](http://github.com/RubyMoney/money/issues/19))
284
+
285
+ Bugfixes
286
+ --------
287
+ - Fixed incorrect URLs in documentation.
288
+ ([#issue/17](http://github.com/RubyMoney/money/issues/17))
289
+
290
+ Money 3.1.0.pre1
291
+ ================
292
+
293
+ Features
294
+ --------
295
+ - Implemented `Money::Bank::Base`.
296
+ ([#issue/14](http://github.com/RubyMoney/money/issues/14))
297
+ - Added `Money::Bank::Base#exchange_with`.
298
+ - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
299
+ 3.2.0.
300
+ - Implented `Money::Bank::VariableExchange`
301
+ - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
302
+ 3.2.0.
303
+ - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
304
+ Deprecation target set to Money 3.2.0.
305
+ ([#issue/16](http://github.com/RubyMoney/money/issues/16))
306
+ - Implemented `#has` for `Money` and `Money::Currency`.
307
+ - Refactored test suite to conform to RSpec conventions.
308
+ - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
309
+ [RubyMoney](http://github.com/RubyMoney)
310
+ - Added Simone Carletti to list of authors.
311
+
312
+ Bugfixes
313
+ --------
314
+ - Fixed rounding error in `Numeric#to_money`.
315
+ ([#issue/15](http://github.com/RubyMoney/money/issues/15))
316
+
317
+ Money 3.0.5
318
+ ===========
319
+
320
+ Features
321
+ --------
322
+ - Added `Money#abs`.
323
+ - Added ability to pass a block to `VariableExchangeBank#new` or `#exchange`,
324
+ specifying a custom truncation method
325
+ - Added optional `currency` argument to` Numeric#to_money`.
326
+ ([#issue/11](http://github.com/RubyMoney/money/issues/11))
327
+ - Added optional `currency` argument to `String#to_money`.
328
+ ([#issue/11](http://github.com/RubyMoney/money/issues/11))
329
+ - Use '¤' as the default currency symbol.
330
+ ([#issue/10](http://github.com/RubyMoney/money/issues/10))
331
+
332
+ Bugfixes
333
+ --------
334
+ - Updated `Currency#subunit_to_unit` documentation (it's an integer not a
335
+ string).
336
+ - Fixed issue when exchanging currencies with different `:subunit_to_unit`
337
+ values.
338
+ - `Numeric#to_money` now respects `:subunit_to_unit`.
339
+ ([#issue/12](http://github.com/RubyMoney/money/issues/12))
340
+
341
+ Money 3.0.4
342
+ ===========
343
+
344
+ Features
345
+ --------
346
+ - Use `:subunit_to_unit` in `#to_s`, `#to_f` and `#format`.
347
+ - Deprecated `Money#SEPARATORS` and `Money#DELIMITERS`.
348
+
349
+ Bugfixes
350
+ --------
351
+ - Updated `#exchange` to avoid floating point rounding errors.
352
+ - Added `:separator` and `:delimiter` to `Currency`
353
+ - Updated the attributes of the Chilean Peso.
354
+
355
+ Money 3.0.3
356
+ ===========
357
+
358
+ Features
359
+ --------
360
+ - Added `#currency_as_string` and `#currency_as_string=` for easier
361
+ integration with ActiveRecord/Rails
362
+
363
+ Money 3.0.2
364
+ ===========
365
+
366
+ Features
367
+ --------
368
+ - Added `#div`, `#divmod`, `#modulo`, `#%` and `#remainder` to `Money`.
369
+
370
+ Money 3.0.1
371
+ ===========
372
+
373
+ Features
374
+ --------
375
+ - Added `#eql?` to `Money`
376
+ - Updated `Numeric#to_money` to work with all children of `Numeric` (i.e.
377
+ `BigDecimal`, `Integer`, `Fixnum`, `Float`, etc)
378
+
379
+ Money 3.0.0
380
+ ===========
381
+
382
+ Features
383
+ --------
384
+ - Version Bump due to compatibility changes with ActiveRecord. See
385
+ conversation
386
+ [here](http://github.com/RubyMoney/money/issues#issue/4/comment/224880)
387
+ for more information.
388
+
389
+ Money 2.3.0
390
+ ===========
391
+
392
+ Features
393
+ --------
394
+ - Currency is now represented by a `Currency` Object instead of a `String`.
395
+
396
+ Money 2.2.0
397
+ ===========
398
+
399
+ Features
400
+ --------
401
+ - Can now divide two Money objects by one another using `#/`.
402
+ - Can now convert a Money object to a float using `#to_f`.
403
+ - Users can now specify Separators and Delimiters when using `#format`.
404
+ - Support for Brazilian Real `Money.new(1_00, :BRL)`
405
+ - Migrated to Jeweler