currency-rate 0.3.2 → 0.3.3

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: 68e3d9c56f84600c59e3b3889e7d0430e1b75477
4
- data.tar.gz: bc808a2667e29c9a5f965c70f2d195bd2d6974e2
3
+ metadata.gz: c0c0ca2b1edfe2a56a5a53a6ac84aaba069e73c2
4
+ data.tar.gz: 1c61fc6b6f208ff28f7e3446b7d12e0b8e81a926
5
5
  SHA512:
6
- metadata.gz: 6d88b0c73e9632132bec4cdf7ed9c4475e58b74d4548323b0c8ad2db0b7a0540661422fcbeaf9eeaec8077c294fbd57be47528cbdd2beffa6a7fad0883ac4700
7
- data.tar.gz: 23709972d298ee09925fee4840fc09c5ad3ed94ddbb193c3f7bd157a8c008866474d1459e58ea16096073b4a16343045c0bb0e8a1aa4d9457788c11f7c70e4ea
6
+ metadata.gz: 220818c85a73a4bf0abe6cdbaabfa71e71882ed640de8e04e7d94602a1ab9d5e3a4514e52d2090e12608fc0e7558be2a74147df7a7e69e618cb13471116adeb1
7
+ data.tar.gz: bcfb1fa6c8de4c9fba85ad8db145f4582c839f9c0b9f2ce69f558b95f91b4dfc711dc6e4b0bfeb87413cef5eafe55694e7cb2e999e083c2f220937b0f48c4164
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: currency-rate 0.3.2 ruby lib
5
+ # stub: currency-rate 0.3.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "currency-rate"
9
- s.version = "0.3.2"
9
+ s.version = "0.3.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -5,8 +5,7 @@ module CurrencyRate
5
5
  class YahooAdapter < FiatAdapter
6
6
 
7
7
  SUPPORTED_CURRENCIES = %w(
8
- AUD BGN BRL CAD CHF CNY CZK DKK GBP HKD HRK HUF IDR ILS INR JPY
9
- KRW MXN MYR NOK NZD PHP PLN RON RUB SEK SGD THB TRY USD ZAR EUR
8
+ AFN EUR ALL DZD USD AOA XCD ARS AMD AWG AUD AZN BSD BHD BDT BBD BYR BZD XOF BMD BTN INR BAM BWP NOK BRL BND BGN BIF KHR XAF CAD CVE KYD CLF CLP CNY COP KMF NZD CRC HRK CUC CUP ANG CZK DKK DJF DOP EGP SVC ERN ETB FKP FJD XPF GMD GEL GHS GIP GTQ GBP GNF GYD HTG HNL HKD HUF ISK IDR XDR IQD ILS JMD JPY JOD KZT KES KWD KGS LAK LBP LSL ZAR LRD LYD CHF LTL MOP MGA MWK MYR MVR MRO MUR MXN MXV MNT MAD MZN MMK NAD NPR NIO NGN OMR PKR PAB PGK PYG PEN PHP PLN QAR RON RUB RWF WST STD SAR RSD SCR SLL SGD SBD SOS LKR SDG SRD SZL SEK SYP TJS THB TOP TTD TND TRY TMT UGX UAH AED UYU UZS VUV VND YER ZMW ZWL XAU XPD XPT XAG FRF CYP ECS DEM ITL IEP LVL
10
9
  )
11
10
 
12
11
  CROSS_RATE_CURRENCY = 'USD'
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://query.yahooapis.com/v1/public/yql?env=store://datatables.org/alltableswithkeys&format=json&q=SELECT%20*%20FROM%20yahoo.finance.xchange%20WHERE%20pair%20IN(%22USDAUD%22,%22USDBGN%22,%22USDBRL%22,%22USDCAD%22,%22USDCHF%22,%22USDCNY%22,%22USDCZK%22,%22USDDKK%22,%22USDGBP%22,%22USDHKD%22,%22USDHRK%22,%22USDHUF%22,%22USDIDR%22,%22USDILS%22,%22USDINR%22,%22USDJPY%22,%22USDKRW%22,%22USDMXN%22,%22USDMYR%22,%22USDNOK%22,%22USDNZD%22,%22USDPHP%22,%22USDPLN%22,%22USDRON%22,%22USDRUB%22,%22USDSEK%22,%22USDSGD%22,%22USDTHB%22,%22USDTRY%22,%22USDUSD%22,%22USDZAR%22,%22USDEUR%22)
5
+ uri: http://query.yahooapis.com/v1/public/yql?env=store://datatables.org/alltableswithkeys&format=json&q=SELECT%20*%20FROM%20yahoo.finance.xchange%20WHERE%20pair%20IN(%22USDAFN%22,%22USDEUR%22,%22USDALL%22,%22USDDZD%22,%22USDUSD%22,%22USDAOA%22,%22USDXCD%22,%22USDARS%22,%22USDAMD%22,%22USDAWG%22,%22USDAUD%22,%22USDAZN%22,%22USDBSD%22,%22USDBHD%22,%22USDBDT%22,%22USDBBD%22,%22USDBYR%22,%22USDBZD%22,%22USDXOF%22,%22USDBMD%22,%22USDBTN%22,%22USDINR%22,%22USDBAM%22,%22USDBWP%22,%22USDNOK%22,%22USDBRL%22,%22USDBND%22,%22USDBGN%22,%22USDBIF%22,%22USDKHR%22,%22USDXAF%22,%22USDCAD%22,%22USDCVE%22,%22USDKYD%22,%22USDCLF%22,%22USDCLP%22,%22USDCNY%22,%22USDCOP%22,%22USDKMF%22,%22USDNZD%22,%22USDCRC%22,%22USDHRK%22,%22USDCUC%22,%22USDCUP%22,%22USDANG%22,%22USDCZK%22,%22USDDKK%22,%22USDDJF%22,%22USDDOP%22,%22USDEGP%22,%22USDSVC%22,%22USDERN%22,%22USDETB%22,%22USDFKP%22,%22USDFJD%22,%22USDXPF%22,%22USDGMD%22,%22USDGEL%22,%22USDGHS%22,%22USDGIP%22,%22USDGTQ%22,%22USDGBP%22,%22USDGNF%22,%22USDGYD%22,%22USDHTG%22,%22USDHNL%22,%22USDHKD%22,%22USDHUF%22,%22USDISK%22,%22USDIDR%22,%22USDXDR%22,%22USDIQD%22,%22USDILS%22,%22USDJMD%22,%22USDJPY%22,%22USDJOD%22,%22USDKZT%22,%22USDKES%22,%22USDKWD%22,%22USDKGS%22,%22USDLAK%22,%22USDLBP%22,%22USDLSL%22,%22USDZAR%22,%22USDLRD%22,%22USDLYD%22,%22USDCHF%22,%22USDLTL%22,%22USDMOP%22,%22USDMGA%22,%22USDMWK%22,%22USDMYR%22,%22USDMVR%22,%22USDMRO%22,%22USDMUR%22,%22USDMXN%22,%22USDMXV%22,%22USDMNT%22,%22USDMAD%22,%22USDMZN%22,%22USDMMK%22,%22USDNAD%22,%22USDNPR%22,%22USDNIO%22,%22USDNGN%22,%22USDOMR%22,%22USDPKR%22,%22USDPAB%22,%22USDPGK%22,%22USDPYG%22,%22USDPEN%22,%22USDPHP%22,%22USDPLN%22,%22USDQAR%22,%22USDRON%22,%22USDRUB%22,%22USDRWF%22,%22USDWST%22,%22USDSTD%22,%22USDSAR%22,%22USDRSD%22,%22USDSCR%22,%22USDSLL%22,%22USDSGD%22,%22USDSBD%22,%22USDSOS%22,%22USDLKR%22,%22USDSDG%22,%22USDSRD%22,%22USDSZL%22,%22USDSEK%22,%22USDSYP%22,%22USDTJS%22,%22USDTHB%22,%22USDTOP%22,%22USDTTD%22,%22USDTND%22,%22USDTRY%22,%22USDTMT%22,%22USDUGX%22,%22USDUAH%22,%22USDAED%22,%22USDUYU%22,%22USDUZS%22,%22USDVUV%22,%22USDVND%22,%22USDYER%22,%22USDZMW%22,%22USDZWL%22,%22USDXAU%22,%22USDXPD%22,%22USDXPT%22,%22USDXAG%22,%22USDFRF%22,%22USDCYP%22,%22USDECS%22,%22USDDEM%22,%22USDITL%22,%22USDIEP%22,%22USDLVL%22)
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,7 +19,7 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  X-Yql-Host:
22
- - prod_bf1_1;paas.yql;queryyahooapiscomproductionbf1;d587643e-e9f8-11e6-a255-d4ae52974c31
22
+ - prod_bf1_1;paas.yql;queryyahooapiscomproductionbf11;20f55ed6-eca1-11e6-bcc3-d4ae52974741
23
23
  X-Content-Type-Options:
24
24
  - nosniff
25
25
  Access-Control-Allow-Origin:
@@ -29,20 +29,20 @@ http_interactions:
29
29
  Cache-Control:
30
30
  - no-cache
31
31
  Date:
32
- - Mon, 06 Feb 2017 05:25:15 GMT
32
+ - Mon, 06 Feb 2017 22:11:51 GMT
33
33
  Age:
34
- - '0'
34
+ - '1'
35
35
  Transfer-Encoding:
36
36
  - chunked
37
37
  Connection:
38
38
  - keep-alive
39
39
  Via:
40
- - http/1.1 a32.ue.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
40
+ - http/1.1 a34.ue.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
41
41
  Server:
42
42
  - ATS
43
43
  body:
44
44
  encoding: UTF-8
45
- string: '{"query":{"count":32,"created":"2017-02-06T05:25:15Z","lang":"en-US","results":{"rate":[{"id":"USDAUD","Name":"USD/AUD","Rate":"1.3030","Date":"2/6/2017","Time":"1:22am","Ask":"1.3034","Bid":"1.3030"},{"id":"USDBGN","Name":"USD/BGN","Rate":"1.8209","Date":"2/3/2017","Time":"3:15pm","Ask":"N/A","Bid":"1.8209"},{"id":"USDBRL","Name":"USD/BRL","Rate":"3.1172","Date":"2/6/2017","Time":"2:30am","Ask":"3.1192","Bid":"3.1172"},{"id":"USDCAD","Name":"USD/CAD","Rate":"1.3020","Date":"2/6/2017","Time":"1:48am","Ask":"1.3020","Bid":"1.3020"},{"id":"USDCHF","Name":"USD/CHF","Rate":"0.9922","Date":"2/6/2017","Time":"2:31am","Ask":"0.9923","Bid":"0.9922"},{"id":"USDCNY","Name":"USD/CNY","Rate":"6.8577","Date":"2/6/2017","Time":"3:33am","Ask":"6.8587","Bid":"6.8577"},{"id":"USDCZK","Name":"USD/CZK","Rate":"25.0595","Date":"2/5/2017","Time":"11:44pm","Ask":"25.0663","Bid":"25.0595"},{"id":"USDDKK","Name":"USD/DKK","Rate":"6.8977","Date":"2/6/2017","Time":"2:49am","Ask":"6.8988","Bid":"6.8977"},{"id":"USDGBP","Name":"USD/GBP","Rate":"0.8009","Date":"2/6/2017","Time":"0:29am","Ask":"0.8010","Bid":"0.8009"},{"id":"USDHKD","Name":"USD/HKD","Rate":"7.7577","Date":"2/6/2017","Time":"3:33am","Ask":"7.7578","Bid":"7.7577"},{"id":"USDHRK","Name":"USD/HRK","Rate":"6.8568","Date":"2/6/2017","Time":"3:40am","Ask":"6.9317","Bid":"6.8568"},{"id":"USDHUF","Name":"USD/HUF","Rate":"287.1700","Date":"2/6/2017","Time":"3:50am","Ask":"287.3700","Bid":"287.1700"},{"id":"USDIDR","Name":"USD/IDR","Rate":"13325.0000","Date":"2/6/2017","Time":"3:34am","Ask":"13335.0000","Bid":"13325.0000"},{"id":"USDILS","Name":"USD/ILS","Rate":"3.7405","Date":"2/6/2017","Time":"3:31am","Ask":"3.7505","Bid":"3.7405"},{"id":"USDINR","Name":"USD/INR","Rate":"67.1750","Date":"2/6/2017","Time":"2:30am","Ask":"67.2250","Bid":"67.1750"},{"id":"USDJPY","Name":"USD/JPY","Rate":"112.4610","Date":"2/6/2017","Time":"2:49am","Ask":"112.4740","Bid":"112.4610"},{"id":"USDKRW","Name":"USD/KRW","Rate":"1135.5000","Date":"2/6/2017","Time":"3:52am","Ask":"1136.5000","Bid":"1135.5000"},{"id":"USDMXN","Name":"USD/MXN","Rate":"20.3983","Date":"2/6/2017","Time":"1:22am","Ask":"20.4025","Bid":"20.3983"},{"id":"USDMYR","Name":"USD/MYR","Rate":"4.4250","Date":"2/6/2017","Time":"3:32am","Ask":"4.4255","Bid":"4.4250"},{"id":"USDNOK","Name":"USD/NOK","Rate":"8.2099","Date":"2/6/2017","Time":"0:30am","Ask":"8.2124","Bid":"8.2099"},{"id":"USDNZD","Name":"USD/NZD","Rate":"1.3654","Date":"2/6/2017","Time":"3:50am","Ask":"1.3664","Bid":"1.3654"},{"id":"USDPHP","Name":"USD/PHP","Rate":"49.7200","Date":"2/6/2017","Time":"3:32am","Ask":"49.7300","Bid":"49.7200"},{"id":"USDPLN","Name":"USD/PLN","Rate":"3.9914","Date":"2/6/2017","Time":"3:34am","Ask":"3.9936","Bid":"3.9914"},{"id":"USDRON","Name":"USD/RON","Rate":"4.1763","Date":"2/6/2017","Time":"1:23am","Ask":"4.2037","Bid":"4.1763"},{"id":"USDRUB","Name":"USD/RUB","Rate":"59.5127","Date":"2/5/2017","Time":"11:43pm","Ask":"59.5477","Bid":"59.5127"},{"id":"USDSEK","Name":"USD/SEK","Rate":"8.7621","Date":"2/6/2017","Time":"3:49am","Ask":"8.7645","Bid":"8.7621"},{"id":"USDSGD","Name":"USD/SGD","Rate":"1.4076","Date":"2/6/2017","Time":"3:50am","Ask":"1.4077","Bid":"1.4076"},{"id":"USDTHB","Name":"USD/THB","Rate":"35.0100","Date":"2/5/2017","Time":"11:50pm","Ask":"35.0600","Bid":"35.0100"},{"id":"USDTRY","Name":"USD/TRY","Rate":"3.6997","Date":"2/6/2017","Time":"2:32am","Ask":"3.7007","Bid":"3.6997"},{"id":"USDUSD","Name":"USD/USD","Rate":"1.0000","Date":"N/A","Time":"N/A","Ask":"1.0000","Bid":"1.0000"},{"id":"USDZAR","Name":"USD/ZAR","Rate":"13.2577","Date":"2/5/2017","Time":"11:50pm","Ask":"13.2847","Bid":"13.2577"},{"id":"USDEUR","Name":"USD/EUR","Rate":"0.9272","Date":"2/6/2017","Time":"3:49am","Ask":"0.9277","Bid":"0.9272"}]}}}'
45
+ string: '{"query":{"count":160,"created":"2017-02-06T22:11:51Z","lang":"en-US","results":{"rate":[{"id":"USDAFN","Name":"USD/AFN","Rate":"66.6500","Date":"2/6/2017","Time":"1:29pm","Ask":"66.8500","Bid":"66.6500"},{"id":"USDEUR","Name":"USD/EUR","Rate":"0.9326","Date":"2/6/2017","Time":"1:19pm","Ask":"0.9331","Bid":"0.9326"},{"id":"USDALL","Name":"USD/ALL","Rate":"126.4000","Date":"2/3/2017","Time":"8:56pm","Ask":"127.1000","Bid":"126.4000"},{"id":"USDDZD","Name":"USD/DZD","Rate":"109.1250","Date":"2/6/2017","Time":"6:15pm","Ask":"111.1250","Bid":"109.1250"},{"id":"USDUSD","Name":"USD/USD","Rate":"1.0000","Date":"N/A","Time":"N/A","Ask":"1.0000","Bid":"1.0000"},{"id":"USDAOA","Name":"USD/AOA","Rate":"165.0810","Date":"2/2/2017","Time":"11:00pm","Ask":"166.7320","Bid":"165.0810"},{"id":"USDXCD","Name":"USD/XCD","Rate":"2.7000","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"2.7000"},{"id":"USDARS","Name":"USD/ARS","Rate":"15.6090","Date":"2/6/2017","Time":"4:34am","Ask":"15.6140","Bid":"15.6090"},{"id":"USDAMD","Name":"USD/AMD","Rate":"485.2900","Date":"2/6/2017","Time":"12:11pm","Ask":"486.2900","Bid":"485.2900"},{"id":"USDAWG","Name":"USD/AWG","Rate":"1.7900","Date":"2/6/2017","Time":"1:00pm","Ask":"1.8100","Bid":"1.7900"},{"id":"USDAUD","Name":"USD/AUD","Rate":"1.3072","Date":"2/6/2017","Time":"6:15pm","Ask":"1.3076","Bid":"1.3072"},{"id":"USDAZN","Name":"USD/AZN","Rate":"1.9106","Date":"2/6/2017","Time":"5:45am","Ask":"1.9116","Bid":"1.9106"},{"id":"USDBSD","Name":"USD/BSD","Rate":"1.0000","Date":"2/6/2017","Time":"4:34am","Ask":"1.0050","Bid":"1.0000"},{"id":"USDBHD","Name":"USD/BHD","Rate":"0.3770","Date":"2/6/2017","Time":"1:29pm","Ask":"0.3772","Bid":"0.3770"},{"id":"USDBDT","Name":"USD/BDT","Rate":"79.5700","Date":"2/6/2017","Time":"5:19pm","Ask":"79.8200","Bid":"79.5700"},{"id":"USDBBD","Name":"USD/BBD","Rate":"2.0000","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"2.0000"},{"id":"USDBYR","Name":"USD/BYR","Rate":"20020.0000","Date":"6/30/2016","Time":"1:27pm","Ask":"20045.0000","Bid":"20020.0000"},{"id":"USDBZD","Name":"USD/BZD","Rate":"1.9978","Date":"2/6/2017","Time":"6:13pm","Ask":"2.0328","Bid":"1.9978"},{"id":"USDXOF","Name":"USD/XOF","Rate":"616.2000","Date":"2/6/2017","Time":"12:26pm","Ask":"618.2000","Bid":"616.2000"},{"id":"USDBMD","Name":"USD/BMD","Rate":"1.0000","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"1.0000"},{"id":"USDBTN","Name":"USD/BTN","Rate":"67.3500","Date":"2/6/2017","Time":"3:00am","Ask":"67.4500","Bid":"67.3500"},{"id":"USDINR","Name":"USD/INR","Rate":"67.2000","Date":"2/6/2017","Time":"6:13pm","Ask":"67.2500","Bid":"67.2000"},{"id":"USDBAM","Name":"USD/BAM","Rate":"1.8249","Date":"2/6/2017","Time":"6:20pm","Ask":"1.8274","Bid":"1.8249"},{"id":"USDBWP","Name":"USD/BWP","Rate":"10.4334","Date":"2/6/2017","Time":"9:15am","Ask":"10.4434","Bid":"10.4334"},{"id":"USDNOK","Name":"USD/NOK","Rate":"8.2619","Date":"2/6/2017","Time":"5:30pm","Ask":"8.2633","Bid":"8.2619"},{"id":"USDBRL","Name":"USD/BRL","Rate":"3.1153","Date":"2/6/2017","Time":"9:30pm","Ask":"3.1173","Bid":"3.1153"},{"id":"USDBND","Name":"USD/BND","Rate":"1.4103","Date":"2/6/2017","Time":"5:32pm","Ask":"1.4113","Bid":"1.4103"},{"id":"USDBGN","Name":"USD/BGN","Rate":"1.8258","Date":"2/6/2017","Time":"3:30pm","Ask":"N/A","Bid":"1.8258"},{"id":"USDBIF","Name":"USD/BIF","Rate":"1682.6200","Date":"2/6/2017","Time":"5:19pm","Ask":"1702.6200","Bid":"1682.6200"},{"id":"USDKHR","Name":"USD/KHR","Rate":"4020.0000","Date":"2/6/2017","Time":"6:13pm","Ask":"4030.0000","Bid":"4020.0000"},{"id":"USDXAF","Name":"USD/XAF","Rate":"611.7400","Date":"2/6/2017","Time":"1:15pm","Ask":"612.7400","Bid":"611.7400"},{"id":"USDCAD","Name":"USD/CAD","Rate":"1.3080","Date":"2/6/2017","Time":"9:41pm","Ask":"1.3081","Bid":"1.3080"},{"id":"USDCVE","Name":"USD/CVE","Rate":"102.6900","Date":"2/6/2017","Time":"5:33pm","Ask":"102.9400","Bid":"102.6900"},{"id":"USDKYD","Name":"USD/KYD","Rate":"0.8200","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"0.8200"},{"id":"USDCLF","Name":"USD/CLF","Rate":"0.0241","Date":"2/6/2017","Time":"5:30pm","Ask":"0.0246","Bid":"0.0241"},{"id":"USDCLP","Name":"USD/CLP","Rate":"640.7900","Date":"2/6/2017","Time":"6:17pm","Ask":"640.9500","Bid":"640.7900"},{"id":"USDCNY","Name":"USD/CNY","Rate":"6.8599","Date":"2/6/2017","Time":"1:18pm","Ask":"6.8609","Bid":"6.8599"},{"id":"USDCOP","Name":"USD/COP","Rate":"2853.0000","Date":"2/6/2017","Time":"2:01pm","Ask":"2855.0000","Bid":"2853.0000"},{"id":"USDKMF","Name":"USD/KMF","Rate":"461.3000","Date":"2/6/2017","Time":"1:35pm","Ask":"462.2500","Bid":"461.3000"},{"id":"USDNZD","Name":"USD/NZD","Rate":"1.3693","Date":"2/6/2017","Time":"1:30pm","Ask":"1.3703","Bid":"1.3693"},{"id":"USDCRC","Name":"USD/CRC","Rate":"543.7200","Date":"2/6/2017","Time":"12:45pm","Ask":"553.7200","Bid":"543.7200"},{"id":"USDHRK","Name":"USD/HRK","Rate":"6.9102","Date":"2/6/2017","Time":"1:19pm","Ask":"6.9834","Bid":"6.9102"},{"id":"USDCUC","Name":"USD/CUC","Rate":"0.9950","Date":"2/6/2017","Time":"5:30pm","Ask":"1.0050","Bid":"0.9950"},{"id":"USDCUP","Name":"USD/CUP","Rate":"1.0000","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"1.0000"},{"id":"USDANG","Name":"USD/ANG","Rate":"1.7700","Date":"2/6/2017","Time":"6:13pm","Ask":"1.7750","Bid":"1.7700"},{"id":"USDCZK","Name":"USD/CZK","Rate":"25.1450","Date":"2/6/2017","Time":"6:16pm","Ask":"25.2050","Bid":"25.1450"},{"id":"USDDKK","Name":"USD/DKK","Rate":"6.9260","Date":"2/6/2017","Time":"5:29pm","Ask":"6.9267","Bid":"6.9260"},{"id":"USDDJF","Name":"USD/DJF","Rate":"177.6400","Date":"2/6/2017","Time":"5:02am","Ask":"178.6400","Bid":"177.6400"},{"id":"USDDOP","Name":"USD/DOP","Rate":"46.5000","Date":"2/6/2017","Time":"6:13pm","Ask":"46.8000","Bid":"46.5000"},{"id":"USDEGP","Name":"USD/EGP","Rate":"18.4000","Date":"2/6/2017","Time":"5:19pm","Ask":"19.4000","Bid":"18.4000"},{"id":"USDSVC","Name":"USD/SVC","Rate":"8.7220","Date":"2/6/2017","Time":"4:34am","Ask":"8.7320","Bid":"8.7220"},{"id":"USDERN","Name":"USD/ERN","Rate":"15.2900","Date":"2/6/2017","Time":"5:19pm","Ask":"15.4900","Bid":"15.2900"},{"id":"USDETB","Name":"USD/ETB","Rate":"22.5491","Date":"2/6/2017","Time":"9:00am","Ask":"23.0001","Bid":"22.5491"},{"id":"USDFKP","Name":"USD/FKP","Rate":"0.8006","Date":"2/6/2017","Time":"1:00pm","Ask":"0.8016","Bid":"0.8006"},{"id":"USDFJD","Name":"USD/FJD","Rate":"2.0570","Date":"2/3/2017","Time":"8:56pm","Ask":"2.0668","Bid":"2.0570"},{"id":"USDXPF","Name":"USD/XPF","Rate":"110.8800","Date":"2/6/2017","Time":"2:06pm","Ask":"111.8800","Bid":"110.8800"},{"id":"USDGMD","Name":"USD/GMD","Rate":"43.7300","Date":"2/6/2017","Time":"1:59pm","Ask":"46.7300","Bid":"43.7300"},{"id":"USDGEL","Name":"USD/GEL","Rate":"2.6716","Date":"2/6/2017","Time":"0:01am","Ask":"2.6916","Bid":"2.6716"},{"id":"USDGHS","Name":"USD/GHS","Rate":"4.3885","Date":"2/6/2017","Time":"1:29pm","Ask":"4.4085","Bid":"4.3885"},{"id":"USDGIP","Name":"USD/GIP","Rate":"0.8009","Date":"2/6/2017","Time":"1:00pm","Ask":"0.8014","Bid":"0.8009"},{"id":"USDGTQ","Name":"USD/GTQ","Rate":"7.4465","Date":"2/6/2017","Time":"6:13pm","Ask":"7.4495","Bid":"7.4465"},{"id":"USDGBP","Name":"USD/GBP","Rate":"0.8034","Date":"2/6/2017","Time":"5:27pm","Ask":"0.8034","Bid":"0.8034"},{"id":"USDGNF","Name":"USD/GNF","Rate":"9306.0996","Date":"2/6/2017","Time":"1:29pm","Ask":"9406.0996","Bid":"9306.0996"},{"id":"USDGYD","Name":"USD/GYD","Rate":"202.7100","Date":"2/6/2017","Time":"1:29pm","Ask":"207.7100","Bid":"202.7100"},{"id":"USDHTG","Name":"USD/HTG","Rate":"66.7500","Date":"2/6/2017","Time":"1:29pm","Ask":"67.7500","Bid":"66.7500"},{"id":"USDHNL","Name":"USD/HNL","Rate":"23.4500","Date":"2/6/2017","Time":"5:19pm","Ask":"23.5500","Bid":"23.4500"},{"id":"USDHKD","Name":"USD/HKD","Rate":"7.7579","Date":"2/6/2017","Time":"1:19pm","Ask":"7.7582","Bid":"7.7579"},{"id":"USDHUF","Name":"USD/HUF","Rate":"288.3100","Date":"2/6/2017","Time":"1:26pm","Ask":"288.5900","Bid":"288.3100"},{"id":"USDISK","Name":"USD/ISK","Rate":"112.9100","Date":"2/6/2017","Time":"11:15am","Ask":"113.4500","Bid":"112.9100"},{"id":"USDIDR","Name":"USD/IDR","Rate":"13315.0000","Date":"2/6/2017","Time":"11:32am","Ask":"13325.0000","Bid":"13315.0000"},{"id":"USDXDR","Name":"USD/XDR","Rate":"0.7352","Date":"2/6/2017","Time":"2:20pm","Ask":"N/A","Bid":"0.7352"},{"id":"USDIQD","Name":"USD/IQD","Rate":"1181.0000","Date":"2/6/2017","Time":"8:51pm","Ask":"1183.0000","Bid":"1181.0000"},{"id":"USDILS","Name":"USD/ILS","Rate":"3.7428","Date":"2/6/2017","Time":"1:19pm","Ask":"3.7528","Bid":"3.7428"},{"id":"USDJMD","Name":"USD/JMD","Rate":"128.3600","Date":"2/6/2017","Time":"1:29pm","Ask":"129.0600","Bid":"128.3600"},{"id":"USDJPY","Name":"USD/JPY","Rate":"112.3010","Date":"2/6/2017","Time":"5:27pm","Ask":"112.3050","Bid":"112.3010"},{"id":"USDJOD","Name":"USD/JOD","Rate":"0.7073","Date":"2/6/2017","Time":"5:19pm","Ask":"0.7088","Bid":"0.7073"},{"id":"USDKZT","Name":"USD/KZT","Rate":"321.9000","Date":"2/6/2017","Time":"11:45am","Ask":"321.9500","Bid":"321.9000"},{"id":"USDKES","Name":"USD/KES","Rate":"103.5000","Date":"2/6/2017","Time":"6:13pm","Ask":"103.8000","Bid":"103.5000"},{"id":"USDKWD","Name":"USD/KWD","Rate":"0.3048","Date":"2/6/2017","Time":"5:54pm","Ask":"0.3051","Bid":"0.3048"},{"id":"USDKGS","Name":"USD/KGS","Rate":"69.4020","Date":"2/6/2017","Time":"10:00am","Ask":"69.4520","Bid":"69.4020"},{"id":"USDLAK","Name":"USD/LAK","Rate":"8190.0000","Date":"2/6/2017","Time":"5:19pm","Ask":"8225.0000","Bid":"8190.0000"},{"id":"USDLBP","Name":"USD/LBP","Rate":"1506.7000","Date":"2/6/2017","Time":"5:19pm","Ask":"1513.7000","Bid":"1506.7000"},{"id":"USDLSL","Name":"USD/LSL","Rate":"13.3700","Date":"2/6/2017","Time":"5:52pm","Ask":"13.3800","Bid":"13.3700"},{"id":"USDZAR","Name":"USD/ZAR","Rate":"13.3045","Date":"2/6/2017","Time":"1:20pm","Ask":"13.3077","Bid":"13.3045"},{"id":"USDLRD","Name":"USD/LRD","Rate":"91.0000","Date":"2/6/2017","Time":"5:19pm","Ask":"92.0000","Bid":"91.0000"},{"id":"USDLYD","Name":"USD/LYD","Rate":"1.4167","Date":"2/6/2017","Time":"6:13pm","Ask":"1.4237","Bid":"1.4167"},{"id":"USDCHF","Name":"USD/CHF","Rate":"0.9930","Date":"2/6/2017","Time":"6:15pm","Ask":"0.9931","Bid":"0.9930"},{"id":"USDLTL","Name":"USD/LTL","Rate":"3.0487","Date":"6/22/2015","Time":"8:39am","Ask":"3.0491","Bid":"3.0487"},{"id":"USDMOP","Name":"USD/MOP","Rate":"7.9905","Date":"2/6/2017","Time":"2:00pm","Ask":"7.9915","Bid":"7.9905"},{"id":"USDMGA","Name":"USD/MGA","Rate":"3160.7000","Date":"2/6/2017","Time":"1:29pm","Ask":"3200.7000","Bid":"3160.7000"},{"id":"USDMWK","Name":"USD/MWK","Rate":"716.7700","Date":"2/6/2017","Time":"5:19pm","Ask":"736.7700","Bid":"716.7700"},{"id":"USDMYR","Name":"USD/MYR","Rate":"4.4265","Date":"2/6/2017","Time":"11:32am","Ask":"4.4270","Bid":"4.4265"},{"id":"USDMVR","Name":"USD/MVR","Rate":"15.2700","Date":"2/6/2017","Time":"6:13pm","Ask":"15.4700","Bid":"15.2700"},{"id":"USDMRO","Name":"USD/MRO","Rate":"355.0000","Date":"2/6/2017","Time":"6:13pm","Ask":"360.0000","Bid":"355.0000"},{"id":"USDMUR","Name":"USD/MUR","Rate":"35.4100","Date":"2/6/2017","Time":"11:32am","Ask":"35.7600","Bid":"35.4100"},{"id":"USDMXN","Name":"USD/MXN","Rate":"20.3787","Date":"2/6/2017","Time":"1:19pm","Ask":"20.3828","Bid":"20.3787"},{"id":"USDMXV","Name":"USD/MXV","Rate":"3.6142","Date":"2/6/2017","Time":"1:30pm","Ask":"3.6142","Bid":"3.6142"},{"id":"USDMNT","Name":"USD/MNT","Rate":"2471.1299","Date":"2/6/2017","Time":"10:30am","Ask":"2481.1299","Bid":"2471.1299"},{"id":"USDMAD","Name":"USD/MAD","Rate":"10.0003","Date":"2/6/2017","Time":"5:33pm","Ask":"10.0103","Bid":"10.0003"},{"id":"USDMZN","Name":"USD/MZN","Rate":"70.4400","Date":"2/6/2017","Time":"6:13pm","Ask":"71.4400","Bid":"70.4400"},{"id":"USDMMK","Name":"USD/MMK","Rate":"1363.0000","Date":"2/6/2017","Time":"5:19pm","Ask":"1367.0000","Bid":"1363.0000"},{"id":"USDNAD","Name":"USD/NAD","Rate":"13.3700","Date":"2/6/2017","Time":"6:13pm","Ask":"13.3730","Bid":"13.3700"},{"id":"USDNPR","Name":"USD/NPR","Rate":"108.6000","Date":"1/20/2017","Time":"10:00am","Ask":"109.2000","Bid":"108.6000"},{"id":"USDNIO","Name":"USD/NIO","Rate":"29.4696","Date":"2/6/2017","Time":"6:06am","Ask":"29.4706","Bid":"29.4696"},{"id":"USDNGN","Name":"USD/NGN","Rate":"315.0000","Date":"2/3/2017","Time":"8:52pm","Ask":"320.0000","Bid":"315.0000"},{"id":"USDOMR","Name":"USD/OMR","Rate":"0.3846","Date":"2/6/2017","Time":"6:13pm","Ask":"0.3848","Bid":"0.3846"},{"id":"USDPKR","Name":"USD/PKR","Rate":"104.7600","Date":"2/6/2017","Time":"11:32am","Ask":"105.2700","Bid":"104.7600"},{"id":"USDPAB","Name":"USD/PAB","Rate":"1.0000","Date":"2/6/2017","Time":"0:00am","Ask":"N/A","Bid":"1.0000"},{"id":"USDPGK","Name":"USD/PGK","Rate":"3.1797","Date":"2/6/2017","Time":"12:00pm","Ask":"3.1847","Bid":"3.1797"},{"id":"USDPYG","Name":"USD/PYG","Rate":"5788.1001","Date":"2/6/2017","Time":"6:13pm","Ask":"5838.1001","Bid":"5788.1001"},{"id":"USDPEN","Name":"USD/PEN","Rate":"3.2605","Date":"2/6/2017","Time":"1:17pm","Ask":"3.2655","Bid":"3.2605"},{"id":"USDPHP","Name":"USD/PHP","Rate":"49.6100","Date":"2/6/2017","Time":"1:20pm","Ask":"49.6600","Bid":"49.6100"},{"id":"USDPLN","Name":"USD/PLN","Rate":"3.9898","Date":"2/6/2017","Time":"1:21pm","Ask":"3.9904","Bid":"3.9898"},{"id":"USDQAR","Name":"USD/QAR","Rate":"3.6405","Date":"2/6/2017","Time":"7:30am","Ask":"3.6421","Bid":"3.6405"},{"id":"USDRON","Name":"USD/RON","Rate":"4.1995","Date":"2/6/2017","Time":"2:01pm","Ask":"4.2045","Bid":"4.1995"},{"id":"USDRUB","Name":"USD/RUB","Rate":"58.8920","Date":"2/6/2017","Time":"6:18pm","Ask":"58.9420","Bid":"58.8920"},{"id":"USDRWF","Name":"USD/RWF","Rate":"813.9200","Date":"2/6/2017","Time":"5:19pm","Ask":"828.9200","Bid":"813.9200"},{"id":"USDWST","Name":"USD/WST","Rate":"2.5550","Date":"2/6/2017","Time":"1:55pm","Ask":"2.5600","Bid":"2.5550"},{"id":"USDSTD","Name":"USD/STD","Rate":"22869.4004","Date":"2/6/2017","Time":"2:01pm","Ask":"22919.4004","Bid":"22869.4004"},{"id":"USDSAR","Name":"USD/SAR","Rate":"3.7497","Date":"2/6/2017","Time":"8:51pm","Ask":"3.7502","Bid":"3.7497"},{"id":"USDRSD","Name":"USD/RSD","Rate":"114.7130","Date":"2/6/2017","Time":"8:30am","Ask":"115.4034","Bid":"114.7130"},{"id":"USDSCR","Name":"USD/SCR","Rate":"13.1240","Date":"2/6/2017","Time":"10:48am","Ask":"13.3240","Bid":"13.1240"},{"id":"USDSLL","Name":"USD/SLL","Rate":"7322.0000","Date":"2/6/2017","Time":"6:13pm","Ask":"7422.0000","Bid":"7322.0000"},{"id":"USDSGD","Name":"USD/SGD","Rate":"1.4098","Date":"2/6/2017","Time":"1:19pm","Ask":"1.4099","Bid":"1.4098"},{"id":"USDSBD","Name":"USD/SBD","Rate":"7.7766","Date":"2/3/2017","Time":"9:25pm","Ask":"7.7816","Bid":"7.7766"},{"id":"USDSOS","Name":"USD/SOS","Rate":"549.0000","Date":"2/6/2017","Time":"2:28pm","Ask":"617.0000","Bid":"549.0000"},{"id":"USDLKR","Name":"USD/LKR","Rate":"150.5000","Date":"2/6/2017","Time":"6:12am","Ask":"150.7500","Bid":"150.5000"},{"id":"USDSDG","Name":"USD/SDG","Rate":"6.3997","Date":"2/6/2017","Time":"6:13pm","Ask":"6.4247","Bid":"6.3997"},{"id":"USDSRD","Name":"USD/SRD","Rate":"7.4700","Date":"2/6/2017","Time":"1:29pm","Ask":"7.5200","Bid":"7.4700"},{"id":"USDSZL","Name":"USD/SZL","Rate":"13.3725","Date":"2/6/2017","Time":"6:27pm","Ask":"13.4225","Bid":"13.3725"},{"id":"USDSEK","Name":"USD/SEK","Rate":"8.8233","Date":"2/6/2017","Time":"9:42pm","Ask":"8.8256","Bid":"8.8233"},{"id":"USDSYP","Name":"USD/SYP","Rate":"514.9800","Date":"2/6/2017","Time":"4:34am","Ask":"515.4800","Bid":"514.9800"},{"id":"USDTJS","Name":"USD/TJS","Rate":"7.9024","Date":"2/6/2017","Time":"2:00am","Ask":"7.9034","Bid":"7.9024"},{"id":"USDTHB","Name":"USD/THB","Rate":"35.0000","Date":"2/6/2017","Time":"1:19pm","Ask":"35.0500","Bid":"35.0000"},{"id":"USDTOP","Name":"USD/TOP","Rate":"2.2911","Date":"2/6/2017","Time":"1:55pm","Ask":"2.2961","Bid":"2.2911"},{"id":"USDTTD","Name":"USD/TTD","Rate":"6.6995","Date":"2/6/2017","Time":"1:29pm","Ask":"6.7495","Bid":"6.6995"},{"id":"USDTND","Name":"USD/TND","Rate":"2.2747","Date":"2/6/2017","Time":"5:33pm","Ask":"2.2767","Bid":"2.2747"},{"id":"USDTRY","Name":"USD/TRY","Rate":"3.6776","Date":"2/6/2017","Time":"1:19pm","Ask":"3.6780","Bid":"3.6776"},{"id":"USDTMT","Name":"USD/TMT","Rate":"3.4100","Date":"2/3/2017","Time":"8:55pm","Ask":"3.6000","Bid":"3.4100"},{"id":"USDUGX","Name":"USD/UGX","Rate":"3575.0000","Date":"2/6/2017","Time":"1:35pm","Ask":"3585.0000","Bid":"3575.0000"},{"id":"USDUAH","Name":"USD/UAH","Rate":"27.0900","Date":"2/6/2017","Time":"6:13pm","Ask":"27.3400","Bid":"27.0900"},{"id":"USDAED","Name":"USD/AED","Rate":"3.6726","Date":"2/6/2017","Time":"5:19pm","Ask":"3.6731","Bid":"3.6726"},{"id":"USDUYU","Name":"USD/UYU","Rate":"28.4100","Date":"2/6/2017","Time":"1:56pm","Ask":"28.5100","Bid":"28.4100"},{"id":"USDUZS","Name":"USD/UZS","Rate":"3270.0000","Date":"2/3/2017","Time":"8:56pm","Ask":"3310.0000","Bid":"3270.0000"},{"id":"USDVUV","Name":"USD/VUV","Rate":"105.5100","Date":"2/6/2017","Time":"1:29pm","Ask":"107.5100","Bid":"105.5100"},{"id":"USDVND","Name":"USD/VND","Rate":"22579.0000","Date":"2/6/2017","Time":"11:00am","Ask":"22589.0000","Bid":"22579.0000"},{"id":"USDYER","Name":"USD/YER","Rate":"249.9500","Date":"2/6/2017","Time":"1:29pm","Ask":"250.0500","Bid":"249.9500"},{"id":"USDZMW","Name":"USD/ZMW","Rate":"9.8700","Date":"2/6/2017","Time":"5:19pm","Ask":"10.0700","Bid":"9.8700"},{"id":"USDZWL","Name":"USD/ZWL","Rate":"322.3550","Date":"6/30/2016","Time":"11:13pm","Ask":"325.5800","Bid":"322.3550"},{"id":"USDXAU","Name":"USD/XAU","Rate":"0.0008","Date":"2/6/2017","Time":"5:33pm","Ask":"0.0008","Bid":"0.0008"},{"id":"USDXPD","Name":"USD/XPD","Rate":"0.0015","Date":"2/6/2017","Time":"6:36pm","Ask":"N/A","Bid":"0.0015"},{"id":"USDXPT","Name":"USD/XPT","Rate":"0.0009","Date":"2/6/2017","Time":"6:36pm","Ask":"N/A","Bid":"0.0009"},{"id":"USDXAG","Name":"USD/XAG","Rate":"0.0538","Date":"2/6/2017","Time":"5:26pm","Ask":"N/A","Bid":"0.0538"},{"id":"USDFRF","Name":"USD/FRF","Rate":"5.7601","Date":"6/22/2015","Time":"7:31am","Ask":"5.7606","Bid":"5.7601"},{"id":"USDCYP","Name":"USD/CYP","Rate":"0.5196","Date":"6/23/2015","Time":"4:55am","Ask":"0.5196","Bid":"0.5196"},{"id":"USDECS","Name":"USD/ECS","Rate":"25000.0000","Date":"6/30/2016","Time":"11:13pm","Ask":"25000.0000","Bid":"25000.0000"},{"id":"USDDEM","Name":"USD/DEM","Rate":"1.7175","Date":"6/22/2015","Time":"7:35am","Ask":"1.7176","Bid":"1.7175"},{"id":"USDITL","Name":"USD/ITL","Rate":"1700.2722","Date":"6/22/2015","Time":"8:05am","Ask":"1700.4215","Bid":"1700.2722"},{"id":"USDIEP","Name":"USD/IEP","Rate":"0.6992","Date":"6/23/2015","Time":"4:53am","Ask":"0.6993","Bid":"0.6992"},{"id":"USDLVL","Name":"USD/LVL","Rate":"0.6205","Date":"6/22/2015","Time":"8:37am","Ask":"0.6206","Bid":"0.6205"}]}}}'
46
46
  http_version:
47
- recorded_at: Mon, 06 Feb 2017 05:25:15 GMT
47
+ recorded_at: Mon, 06 Feb 2017 22:11:52 GMT
48
48
  recorded_with: VCR 3.0.3
@@ -17,7 +17,7 @@ RSpec.describe CurrencyRate::YahooAdapter do
17
17
  it "finds the rate for currency code" do
18
18
  expect(@exchange_adapter.rate_for('EUR', 'USD')).to eq(1.08)
19
19
  expect(@exchange_adapter.rate_for('USD', 'EUR')).to eq(0.93)
20
- expect(@exchange_adapter.rate_for('USD', 'RUB')).to eq(59.51)
20
+ expect(@exchange_adapter.rate_for('USD', 'RUB')).to eq(58.89)
21
21
  expect(@exchange_adapter.rate_for('RUB', 'USD')).to eq(0.02)
22
22
  expect( -> { @exchange_adapter.rate_for('USD', 'FEDcoin') }).to raise_error(CurrencyRate::Adapter::CurrencyNotSupported)
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: currency-rate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko