currency_exchange 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ class Numeric
3
3
 
4
4
  def exchange(from, to)
5
5
  exchange = CurrencyExchange.convert(self, from, to)
6
- exchange ? "$%.2f" % exchange : UNABLE_TO_EXCHANGE
6
+ exchange ? "%.2f" % exchange : UNABLE_TO_EXCHANGE
7
7
  end
8
8
 
9
9
  def method_missing(sym, *args, &block)
@@ -1,3 +1,3 @@
1
1
  module CurrencyExchange
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -22,7 +22,7 @@ describe Numeric do
22
22
  end
23
23
 
24
24
  it "should convert exchange value into dollar decimals" do
25
- subject.should == "$%.2f" % converted
25
+ subject.should == "%.2f" % converted
26
26
  end
27
27
  end
28
28
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currency_exchange
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thil Bandara
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-15 00:00:00 Z
18
+ date: 2012-03-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec