justexchangerates 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/justexchangerates.rb +3 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79c05d128f443f9630bd89cf8aa7a3d04ac05017
|
4
|
+
data.tar.gz: 9134b2ef5abc18f02024c3d4f44d9618bfc8b0c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 858dd7d6329858fac6eef4d84a99d5c4d26a384fb1a1c5ad92b1afc97d76932ebd6ae3bbdcc9479db3285f983d1d61eba44b1aface2b18f274d6a2f046790634
|
7
|
+
data.tar.gz: 9982c223b230e6ef1fc378beb70d551956fdbcbe88299e0be9d15c498a435b8960701abbe7d4d6abbb5b60b6ded47c5e74a31ecbbc2830352e6cf2a17ac93e06
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/justexchangerates.rb
CHANGED
@@ -68,9 +68,11 @@ class JustExchangeRates
|
|
68
68
|
def fetch_rate(currency)
|
69
69
|
|
70
70
|
puts 'inside fetch_rate' if @debug
|
71
|
+
puts '@app_id: ' + @app_id.inspect if @debug
|
72
|
+
|
71
73
|
fx = OpenExchangeRates::Rates.new(:app_id => @app_id)
|
72
74
|
|
73
|
-
rate = fx.convert(1, :from =>
|
75
|
+
rate = fx.convert(1, :from => @base, :to => currency)
|
74
76
|
puts "currency: %s rate: %s" % [currency, rate] if @debug
|
75
77
|
|
76
78
|
@rates[currency.upcase.to_sym] = [rate, Time.now.to_s]
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|