monetize 1.2.0 → 1.3.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
  SHA1:
3
- metadata.gz: 0da3f5e2bea465f09b1722aeedb65d9d0ff40b65
4
- data.tar.gz: 1dc558e00ac98b0dce9900ff9f4b1d4a1fc25366
3
+ metadata.gz: 38e7e5f39705dfc454cf5e40d7ba07aab4d8b5c1
4
+ data.tar.gz: 58a057ce76a10410fd919e5b015c96eaccbb74a5
5
5
  SHA512:
6
- metadata.gz: d56c2152a81bea83158da6cc4021b3668ef60a2396058dfdb11f5bce250467d54ee8c8fe193ccc0e114b96c88fa761879f7285072b9255b3b5b45db08b4c1022
7
- data.tar.gz: 9553d4f65cfad911f9abf46b8d94b4be771981cbdcefd6098b71e06da4b3b143b75cefc52b8ed48e85e5275eab9094b87e5e4b26d86ae3d44349c7b8c8900361
6
+ metadata.gz: 1cdfffde0b0b27e4b1d5fe929644808abee53edecc67d76a56d8b98e1d1ce51a66397bbf21b272644c44c4644d741ce84d22029267aec1d991021a3636cddbfd
7
+ data.tar.gz: 2b68ae2631ddc16b55feec5a240870859e408d9e00e919b8b857bbf59af5fa632435c2c5f46892f88fab094dbb318064bdcad42d3fca196a2edf7e7eaa5d70fb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## master (next release)
3
+ ## Master
4
+ - ???
5
+
6
+ ## 1.3.0
4
7
  - Add NilClass extension
5
8
  - Added correct parsing of Brazilian Real $R symbol
6
9
  - Add testing task for Brazilian Real parsing
10
+ - Add Lira Sign (₤) as a symbol for GBP
data/lib/monetize.rb CHANGED
@@ -11,6 +11,7 @@ module Monetize
11
11
  "$" => "USD",
12
12
  "€" => "EUR",
13
13
  "£" => "GBP",
14
+ "₤" => "GBP",
14
15
  "R$" => "BRL",
15
16
  "R" => "ZAR",
16
17
  "¥" => "JPY",
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Monetize
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
@@ -42,6 +42,10 @@ describe Monetize do
42
42
  expect(Monetize.parse("£9.99")).to eq Money.new(999, 'GBP')
43
43
  end
44
44
 
45
+ it "parses formatted inputs with British Pounds Sterling passed as a lira sign symbol" do
46
+ expect(Monetize.parse("₤9.99")).to eq Money.new(999, 'GBP')
47
+ end
48
+
45
49
  it "parses formatted inputs with South African Rand passed as a symbol" do
46
50
  expect(Monetize.parse("R9.99")).to eq Money.new(999, 'ZAR')
47
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monetize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Emmons
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-03 00:00:00.000000000 Z
11
+ date: 2015-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: money