money-joshm1 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,475 @@
1
+ # Changelog
2
+
3
+ ## master
4
+ - Wrap the currency symbol in a span if :html is specified in the rules
5
+ - Added Money::Currency.all method
6
+ - Allow combined comparison operator to handle zero values without rates
7
+
8
+ ## 5.1.1
9
+
10
+ - Added :sign_before_symbol option to format negative numbers as -£1 rather than £-1
11
+ - Ensure BigDecimal.new always receives a string - compatibility fix for ruby-1.9.2-p320
12
+ - Update Maldivian Currency to MVR and fix ރ. to be ރ
13
+ - Add exponent to currency
14
+ - Add find_numeric to find currencies by ISO 4217 numeric code.
15
+ - Fixed regression where thousands separator was missing on certain currencies. (GH-245)
16
+ - Added :symbol_before_without_space option to add a space between currency symbol and amount.
17
+
18
+ ## 5.1.0
19
+
20
+ - Fix currency assumption when parsing $ with a non-USD default currency.
21
+ - Changed the Bulgarian lev symbol position from before the amount to after the amount.
22
+ - Changed the symbol and html entity for INR. It is now "₹" instead of "₨".
23
+ - Added Money::Currency.analyze for determining potential currencies for a given string using powereful algorithms - will detect symbols, iso codes and names even if mixed with text.
24
+ - Changed UGX symbol from 'Sh' to 'USh'.
25
+ - Changed SYP symbol from "£ or ل.س" to "£S". The previous symbols remain as alternates.
26
+ - Changed RWF symbol from 'FR' to 'FRw'.
27
+ - Changed RSD symbol from "din. or дин." to 'РСД'. The previous symbols remain as alternates.
28
+ - Added MGA symbol 'Ar'
29
+ - Added KGS symbol 'som'
30
+ - Changed KES symbol from 'Sh' to 'KSh'
31
+ - Added ETB symbol 'Br'
32
+ - Changed EGP symbol from "£ or ج.م" to "ج.م"
33
+ - Changed DJF symbol from 'Fr' to 'Fdj'
34
+ - Changed CVE symbol from '$ or Esc' to '$'. 'Esc' remains as an alternate symbol.
35
+ - Added BTN symbol 'Nu.'
36
+ - Changed BAM symbol from 'KM or КМ' to 'КМ', the alternate (cyrillic script) remains as an alternate symbol.
37
+ - Added alternate symbols for all currencies. For example, USD can be written as both '$' and 'US$', SEK can be 'Kr' or ':-', etc.
38
+ - Renamed Money#cents to Money#fractional. Money#cents can still be used as a synonym and equivalent of Money#fractional.
39
+ - Added Money.new_with_amount and Money#amount. Money.new_with_dollars and Money#dollars remain as synonyms.
40
+ - Calling Bank::Base.instance doesn't make Bank::VariableExchange.instance
41
+ return Bank::Base.instance anymore (semaperepelitsa)
42
+ - Update Turkmenistan manat from TMM to TMT currency (GH-181). [Thanks @Exoth]
43
+ - Moved ZWD Zimbabwean dollars to currency_bc.json, also added there ZWL, ZWN, and ZWR Zimbabwean dollars (GH-184).
44
+ - Switch to multi_json gem (GH-170)
45
+ - Fix "warning: ambiguous first argument..." (GH-166)
46
+ - Update dependencies to latest and greatest (GH-172)
47
+ - TravisBot is now watching Pull Request!!! (GH-171)
48
+ - Minor code cleaning
49
+ - Remove subunit from South Korean won (KRW)
50
+ - Fixed bug where bankers rounding wasn't being used everywhere.
51
+
52
+ ## 5.0.0
53
+
54
+ - Minor bugfix - incorrect use of character range resulted in
55
+ botched results for Money::Parsing#extract_cents (GH-162)
56
+ - Money::Currency::TABLE removed. Use Money::Currency.register to add
57
+ additional currencies (GH-143)
58
+ - Fix rounding error in Numeric.to_money (GH-145)
59
+ - Allow on-the-fly calculation of decimal places if not known already
60
+ (GH-146,GH-147,GH-148)
61
+ - Move Euro symbol ahead of amount (GH-151)
62
+ - Changed settings for Polish currency (GH-152)
63
+ - Fall back to symbol if there is no html_entity present (GH-153)
64
+ - Optionally Allow parsing of money values prefixed by symbols in key
65
+ currencies (GH-155)
66
+ - Fix bug where rates exported to a file from VariableExchange leave the File
67
+ object open (GH-154)
68
+ - Added Money#positive? and Money#negative? methods (GH-157)
69
+ - Fix format function output for custom currencies (GH-156)
70
+ - Fix parsing of strings with 3 decimal digits (GH-158)
71
+ - Updated development dependencies
72
+ - Said goodbye to RubyForge
73
+
74
+ ## 4.0.2
75
+
76
+ - Money.to_money now understands a currency option (GH-121)
77
+ - Added Money#-@ method to change object polarity (GH-122)
78
+ - Added Money#symbol_or_iso_code utility method (GH-128)
79
+ - Money.parse now understands trailing - as negative inputs (GH-133)
80
+ - Money::Currency.new now validates input to avoid memory leaks (GH-137)
81
+
82
+ - Forced UTF-8 encoding on currency JSON (GH-117)
83
+ - Fixed position of Philippine peso sign (GH-124)
84
+ - Fixed position of Danish currency sign (GH-127)
85
+
86
+
87
+ ## 4.0.1
88
+
89
+ - Add missing config dir.
90
+
91
+
92
+ Money 4.0.0
93
+ ===========
94
+
95
+ The big change this release is moving the currency information into a JSON
96
+ file. This should make it easier for users to add and test things. Thanks to
97
+ Steve Morris for working on this during his Mendicant University course.
98
+
99
+ In addition to this big change there were well over a dozen other minor
100
+ changes.
101
+
102
+ Features
103
+ --------
104
+ - a new exchange bank nordea has been added to the README. (k33l0r)
105
+ - a new exchange bank nbrb_currency has been added to the README. (slbug)
106
+ - update Rake tasks
107
+ - See our CI status in the README
108
+ - Add syntax highlighting to the README (phlipper)
109
+ - Remove minor unit from YEN (pwim)
110
+ - Format YEN (pwim)
111
+ - Update README for `_as_string` (mjankowski)
112
+ - Update Lebanon currency (kaleemullah)
113
+ - Update Polish złoty (holek)
114
+ - Move currency information into JSON storage! (stevemorris)
115
+ - Add ISO4217 Numeric codes (alovak)
116
+
117
+ Bugfixes
118
+ --------
119
+ - EEK currency is no longer used, kept for BC ([#issue/110](http://github.com/RubyMoney/money/issues/110))
120
+ - Lithuanian Litas symbol position fixed (laurynas)
121
+ - Fixed README typos (phlipper)
122
+ - Fixed README typos (pwim)
123
+ - Fix specs (alovak)
124
+
125
+ Money 3.7.1
126
+ ===========
127
+
128
+ Bugfixes
129
+ --------
130
+ - Add encoding indicator to top of Gemspec
131
+
132
+ Money 3.7.0
133
+ ===========
134
+
135
+ Features
136
+ --------
137
+ - add Money#to_d (thanks Andrew White)
138
+ - Add Money.use_i18n, this allows you to enable/disable i18n from being used,
139
+ even if it's required in your app.
140
+
141
+ Money 3.6.2
142
+ ===========
143
+
144
+ Features
145
+ --------
146
+ - i18n enhancements (thanks eloyesp [link](https://github.com/RubyMoney/money/commit/b2cab76c78ae04f40251fa20c4ab18faa968dc53))
147
+ - README updates (thanks pconnor)
148
+ - Break into modules
149
+ - Added `:no_cents_if_whole` format option
150
+ - Update HKD from Ho to Cent
151
+ - Performance improvements (thanks weppos)
152
+ - Added Symbol#to_currency
153
+ - Added Gemfile for development
154
+ - Updated HUF currency to use `symbol_first => false`
155
+ - Updated "Turkish New Lira" to "Turkish Lira"
156
+
157
+ Money 3.6.1
158
+ ===========
159
+
160
+ Bugfixes
161
+ --------
162
+ - Floating point comparison needs to Epsilon aware (thanks Tobias Luetke)
163
+ - reimplement fix for #issue/43, enable Marshal.(load/dump)
164
+
165
+ Money 3.6.0
166
+ ===========
167
+
168
+ Features
169
+ --------
170
+ - Add a symbol position option for Money#format (thanks Romain, Gil and
171
+ Julien)
172
+ - Updated CNY to use "Fen" and subunit_to_unit of 100
173
+ - Updates to work with gem-testers.org
174
+
175
+ Bugfixes
176
+ --------
177
+ - Fixed issue with #format(:no_cents => true) (thanks Romain & Julien)
178
+
179
+ Money 3.5.5
180
+ ===========
181
+
182
+ Features
183
+ --------
184
+ - Enhancements to Money::Currency (thanks Matthew McEachen)
185
+ - Replace delimiter with thousands_separator
186
+ - Replace separator with decimal_mark
187
+ - Added symbol_first and html_entity
188
+ - Added allocation algorithm for fair(ish) splitting of money between parties
189
+ without loosing pennies (thanks Tobias Luetke)
190
+
191
+ Bugfixes
192
+ --------
193
+ - Always store cents as an Integer (thanks Abhay Kumar)
194
+ - Fixed TypeError in rate exchange (thanks Christian Billen)
195
+ - Cleanup #parse (thanks Tom Lianza)
196
+
197
+ Money 3.5.4
198
+ ===========
199
+
200
+ Features
201
+ --------
202
+ - Added Currency#decimal_places.
203
+
204
+ Bugfixes
205
+ --------
206
+ - Fixed error with Money#to_s error with negative amounts that are only cents.
207
+
208
+ Money 3.5.3
209
+ ===========
210
+
211
+ Bugfixes
212
+ --------
213
+ - Fixed an error in #to_s when cents is negative
214
+
215
+ Money 3.5.2
216
+ ===========
217
+
218
+ Bugfixes
219
+ --------
220
+ - Fixed an error in #to_s which appended extra 0s incorrectly
221
+
222
+ Money 3.5.1
223
+ ===========
224
+
225
+ Bugfixes
226
+ --------
227
+ - Removed erroneous require.
228
+
229
+ Money 3.5.0
230
+ ===========
231
+
232
+ Features
233
+ --------
234
+ - Updated to RSpec2.
235
+ - Use i18n to lookup separator and delimiter signs.
236
+ - Removed all deprecated methods up to v3.5.0, including the following:
237
+ - Using Money#format with params instead of a Hash.
238
+ - Using a Hash with Money#new.
239
+ - Using Bank#exchange, use Bank#exchange_with instead.
240
+
241
+ Bugfixes
242
+ --------
243
+ - Updated Money#to_s to respect :separator and :subunit_to_unit.
244
+ - Fixed Money#format for :subunit_to_unit != 100.
245
+ ([#issue/37](http://github.com/RubyMoney/money/issue/37))
246
+ - Fixed String#to_money for :subunit_to_unit != 100.
247
+ ([#issue/36](http://github.com/RubyMoney/money/issue/36))
248
+ - Removed duplicate currencies.
249
+ ([#issue/38](http://github.com/RubyMoney/money/issue/38))
250
+ - Fixed issue related to JRuby returning 2 for Math.log10(1000).floor instead
251
+ of correctly returning 3.
252
+
253
+ Money 3.1.5
254
+ ===========
255
+
256
+ Features
257
+ --------
258
+ - Added support for creating objects with the main monetary unit instead of
259
+ cents.
260
+ ([#issue/25](http://github.com/RubyMoney/money/issues/25))
261
+ - Deprecated `Money#format` with separate params instead of Hash. Deprecation
262
+ target set to Money 3.5.0.
263
+ ([#issue/31](http://github.com/RubyMoney/money/issues/31))
264
+ - Deprecated `Money#new(0, :currency => "EUR")` in favor of
265
+ `Money#new(0, "EUR")`. Deprecation target set to Money 3.5.0.
266
+ ([#issue/31](http://github.com/RubyMoney/money/issues/31))
267
+ - Throw ArgumentError when trying to multiply two Money objects together.
268
+ ([#issue/29](http://github.com/RubyMoney/money/issues/29))
269
+ - Update Money#parse to use :subunit_to_unit
270
+ ([#issue/30](http://github.com/RubyMoney/money/issues/30))
271
+
272
+ Bugfixes
273
+ --------
274
+ - Downgraded required_rubygems_version to >= 1.3.6.
275
+ ([#issue/26](http://github.com/RubyMoney/money/issues/26))
276
+ - Use BigDecimal when floating point calculations are needed.
277
+ - Ruby 1.9.2 compatibility enhancements.
278
+
279
+
280
+ Money 3.1.0
281
+ ===========
282
+
283
+ Features
284
+ --------
285
+ - Implemented `Money::Bank::Base`.
286
+ ([#issue/14](http://github.com/RubyMoney/money/issues/14))
287
+ - Added `Money::Bank::Base#exchange_with`.
288
+ - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
289
+ 3.2.0.
290
+ - Implented `Money::Bank::VariableExchange`
291
+ - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
292
+ 3.2.0.
293
+ - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
294
+ Deprecation target set to Money 3.2.0.
295
+ ([#issue/16](http://github.com/RubyMoney/money/issues/16))
296
+ - Implemented `#has` for `Money` and `Money::Currency`.
297
+ - Refactored test suite to conform to RSpec conventions.
298
+ - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
299
+ [RubyMoney](http://github.com/RubyMoney)
300
+ - Added Simone Carletti to list of authors.
301
+ - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
302
+ `Money::Bank::Base`.
303
+ ([#issue/18](http://github.com/RubyMoney/money/issues/18))
304
+ - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
305
+ ([#issue/19](http://github.com/RubyMoney/money/issues/19))
306
+ - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
307
+ of Currency Exchange Implementations.
308
+ - Added `#export_rates` to `Money::Bank::VariableExchange`.
309
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
310
+ - Added `#import_rates` to `Money::Bank::VariableExchange`.
311
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
312
+ - Removed dependency on Jeweler.
313
+ - Replaced usage of hanna with yardoc.
314
+ - Rewrote/reformatted all documentation.
315
+
316
+ Bugfixes
317
+ --------
318
+ - Fixed incorrect URLs in documentation.
319
+ ([#issue/17](http://github.com/RubyMoney/money/issues/17))
320
+ - Updated `:subunit_to_unit` for HKD from 10 to 100.
321
+ ([#issue/20](http://github.com/RubyMoney/money/issues/20))
322
+ - Updated Ghanaian Cedi to use correct ISO Code, GHS.
323
+ ([#issue/22](http://github.com/RubyMoney/money/issues/22))
324
+ - Make `default` rake task call `spec`.
325
+ ([#issue/23](http://github.com/RubyMoney/money/issues/23))
326
+
327
+ Money 3.1.0.pre3
328
+ ================
329
+
330
+ Features
331
+ --------
332
+ - Added [google_currency](http://github.com/RubyMoney/google_currency) to list
333
+ of Currency Exchange Implementations.
334
+ - Added `#export_rates` to `Money::Bank::VariableExchange`.
335
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
336
+ - Added `#import_rates` to `Money::Bank::VariableExchange`.
337
+ ([#issue/21](http://github.com/RubyMoney/money/issues/21))
338
+
339
+ Bugfixes
340
+ --------
341
+ - Updated `:subunit_to_unit` for HKD from 10 to 100.
342
+ ([#issue/20](http://github.com/RubyMoney/money/issues/20))
343
+
344
+ Money 3.1.0.pre2
345
+ ================
346
+
347
+ Features
348
+ --------
349
+ - Moved `@rounding_method` from `Money::Bank::VariableExchange` to
350
+ `Money::Bank::Base`.
351
+ ([#issue/18](http://github.com/RubyMoney/money/issues/18))
352
+ - Added `#setup` to `Money::Bank::Base`. Called from `#initialize`.
353
+ ([#issue/19](http://github.com/RubyMoney/money/issues/19))
354
+
355
+ Bugfixes
356
+ --------
357
+ - Fixed incorrect URLs in documentation.
358
+ ([#issue/17](http://github.com/RubyMoney/money/issues/17))
359
+
360
+ Money 3.1.0.pre1
361
+ ================
362
+
363
+ Features
364
+ --------
365
+ - Implemented `Money::Bank::Base`.
366
+ ([#issue/14](http://github.com/RubyMoney/money/issues/14))
367
+ - Added `Money::Bank::Base#exchange_with`.
368
+ - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
369
+ 3.2.0.
370
+ - Implented `Money::Bank::VariableExchange`
371
+ - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
372
+ 3.2.0.
373
+ - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
374
+ Deprecation target set to Money 3.2.0.
375
+ ([#issue/16](http://github.com/RubyMoney/money/issues/16))
376
+ - Implemented `#has` for `Money` and `Money::Currency`.
377
+ - Refactored test suite to conform to RSpec conventions.
378
+ - Moved project from [FooBarWidget](http://github.com/FooBarWidget) to
379
+ [RubyMoney](http://github.com/RubyMoney)
380
+ - Added Simone Carletti to list of authors.
381
+
382
+ Bugfixes
383
+ --------
384
+ - Fixed rounding error in `Numeric#to_money`.
385
+ ([#issue/15](http://github.com/RubyMoney/money/issues/15))
386
+
387
+ Money 3.0.5
388
+ ===========
389
+
390
+ Features
391
+ --------
392
+ - Added `Money#abs`.
393
+ - Added ability to pass a block to `VariableExchangeBank#new` or `#exchange`,
394
+ specifying a custom truncation method
395
+ - Added optional `currency` argument to` Numeric#to_money`.
396
+ ([#issue/11](http://github.com/RubyMoney/money/issues/11))
397
+ - Added optional `currency` argument to `String#to_money`.
398
+ ([#issue/11](http://github.com/RubyMoney/money/issues/11))
399
+ - Use '¤' as the default currency symbol.
400
+ ([#issue/10](http://github.com/RubyMoney/money/issues/10))
401
+
402
+ Bugfixes
403
+ --------
404
+ - Updated `Currency#subunit_to_unit` documentation (it's an integer not a
405
+ string).
406
+ - Fixed issue when exchanging currencies with different `:subunit_to_unit`
407
+ values.
408
+ - `Numeric#to_money` now respects `:subunit_to_unit`.
409
+ ([#issue/12](http://github.com/RubyMoney/money/issues/12))
410
+
411
+ Money 3.0.4
412
+ ===========
413
+
414
+ Features
415
+ --------
416
+ - Use `:subunit_to_unit` in `#to_s`, `#to_f` and `#format`.
417
+ - Deprecated `Money#SEPARATORS` and `Money#DELIMITERS`.
418
+
419
+ Bugfixes
420
+ --------
421
+ - Updated `#exchange` to avoid floating point rounding errors.
422
+ - Added `:separator` and `:delimiter` to `Currency`
423
+ - Updated the attributes of the Chilean Peso.
424
+
425
+ Money 3.0.3
426
+ ===========
427
+
428
+ Features
429
+ --------
430
+ - Added `#currency_as_string` and `#currency_as_string=` for easier
431
+ integration with ActiveRecord/Rails
432
+
433
+ Money 3.0.2
434
+ ===========
435
+
436
+ Features
437
+ --------
438
+ - Added `#div`, `#divmod`, `#modulo`, `#%` and `#remainder` to `Money`.
439
+
440
+ Money 3.0.1
441
+ ===========
442
+
443
+ Features
444
+ --------
445
+ - Added `#eql?` to `Money`
446
+ - Updated `Numeric#to_money` to work with all children of `Numeric` (i.e.
447
+ `BigDecimal`, `Integer`, `Fixnum`, `Float`, etc)
448
+
449
+ Money 3.0.0
450
+ ===========
451
+
452
+ Features
453
+ --------
454
+ - Version Bump due to compatibility changes with ActiveRecord. See
455
+ conversation
456
+ [here](http://github.com/RubyMoney/money/issues#issue/4/comment/224880)
457
+ for more information.
458
+
459
+ Money 2.3.0
460
+ ===========
461
+
462
+ Features
463
+ --------
464
+ - Currency is now represented by a `Currency` Object instead of a `String`.
465
+
466
+ Money 2.2.0
467
+ ===========
468
+
469
+ Features
470
+ --------
471
+ - Can now divide two Money objects by one another using `#/`.
472
+ - Can now convert a Money object to a float using `#to_f`.
473
+ - Users can now specify Separators and Delimiters when using `#format`.
474
+ - Support for Brazilian Real `Money.new(1_00, :BRL)`
475
+ - Migrated to Jeweler