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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb38066ddb7948ed6ea204025ac736f0938193af
4
- data.tar.gz: ece99c3563e6abcf52681b5a6e0fe15633d15d97
3
+ metadata.gz: 79c05d128f443f9630bd89cf8aa7a3d04ac05017
4
+ data.tar.gz: 9134b2ef5abc18f02024c3d4f44d9618bfc8b0c8
5
5
  SHA512:
6
- metadata.gz: 5acace682d33fdbdaa40575b471ab830f4c6ac061ea8de79222ddb3d205d14997ab0f8f0bac9653e9bcb592bd8606e9ab08fd6d636ac1d3718b7dd73eecbb9f6
7
- data.tar.gz: ddc138bde045aff2e989ff252dd02fafdfcd53e979d4be38fdb856d8ab6e4169355bf8d0c21978b5f544e5ee5d0baf1d5a46efc55a3f3c74e725cc1c2d94c555
6
+ metadata.gz: 858dd7d6329858fac6eef4d84a99d5c4d26a384fb1a1c5ad92b1afc97d76932ebd6ae3bbdcc9479db3285f983d1d61eba44b1aface2b18f274d6a2f046790634
7
+ data.tar.gz: 9982c223b230e6ef1fc378beb70d551956fdbcbe88299e0be9d15c498a435b8960701abbe7d4d6abbb5b60b6ded47c5e74a31ecbbc2830352e6cf2a17ac93e06
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 => "USD", :to => currency)
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justexchangerates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file