cambio 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +57 -0
- data/Rakefile +10 -0
- data/cambio.gemspec +24 -0
- data/lib/cambio.rb +102 -0
- data/lib/cambio/configuration.rb +31 -0
- data/lib/cambio/error.rb +13 -0
- data/lib/cambio/version.rb +3 -0
- data/lib/faraday/raise_on_error.rb +32 -0
- data/spec/cambio/configuration_spec.rb +51 -0
- data/spec/cambio_spec.rb +195 -0
- data/spec/fixtures/currencies.yml +198 -0
- data/spec/fixtures/currencies_unauth.yml +40 -0
- data/spec/fixtures/historical_date.yml +205 -0
- data/spec/fixtures/historical_missing.yml +40 -0
- data/spec/fixtures/historical_string.yml +205 -0
- data/spec/fixtures/historical_unauth.yml +40 -0
- data/spec/fixtures/latest.yml +205 -0
- data/spec/fixtures/latest_unauth.yml +40 -0
- data/spec/spec_helper.rb +12 -0
- metadata +133 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://openexchangerates.org/api/currencies.json?app_id=bcc1d1ad9f4d4dd69b12a64c913857fe
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 17 Aug 2012 01:01:45 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.10
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
body:
|
36
|
+
encoding: ASCII-8BIT
|
37
|
+
string: "{\n\
|
38
|
+
\t\"AED\": \"United Arab Emirates Dirham\",\n\
|
39
|
+
\t\"AFN\": \"Afghan Afghani\",\n\
|
40
|
+
\t\"ALL\": \"Albanian Lek\",\n\
|
41
|
+
\t\"AMD\": \"Armenian Dram\",\n\
|
42
|
+
\t\"ANG\": \"Netherlands Antillean Guilder\",\n\
|
43
|
+
\t\"AOA\": \"Angolan Kwanza\",\n\
|
44
|
+
\t\"ARS\": \"Argentine Peso\",\n\
|
45
|
+
\t\"AUD\": \"Australian Dollar\",\n\
|
46
|
+
\t\"AWG\": \"Aruban Florin\",\n\
|
47
|
+
\t\"AZN\": \"Azerbaijani Manat\",\n\
|
48
|
+
\t\"BAM\": \"Bosnia-Herzegovina Convertible Mark\",\n\
|
49
|
+
\t\"BBD\": \"Barbadian Dollar\",\n\
|
50
|
+
\t\"BDT\": \"Bangladeshi Taka\",\n\
|
51
|
+
\t\"BGN\": \"Bulgarian Lev\",\n\
|
52
|
+
\t\"BHD\": \"Bahraini Dinar\",\n\
|
53
|
+
\t\"BIF\": \"Burundian Franc\",\n\
|
54
|
+
\t\"BMD\": \"Bermudan Dollar\",\n\
|
55
|
+
\t\"BND\": \"Brunei Dollar\",\n\
|
56
|
+
\t\"BOB\": \"Bolivian Boliviano\",\n\
|
57
|
+
\t\"BRL\": \"Brazilian Real\",\n\
|
58
|
+
\t\"BSD\": \"Bahamian Dollar\",\n\
|
59
|
+
\t\"BTN\": \"Bhutanese Ngultrum\",\n\
|
60
|
+
\t\"BWP\": \"Botswanan Pula\",\n\
|
61
|
+
\t\"BYR\": \"Belarusian Ruble\",\n\
|
62
|
+
\t\"BZD\": \"Belize Dollar\",\n\
|
63
|
+
\t\"CAD\": \"Canadian Dollar\",\n\
|
64
|
+
\t\"CDF\": \"Congolese Franc\",\n\
|
65
|
+
\t\"CHF\": \"Swiss Franc\",\n\
|
66
|
+
\t\"CLF\": \"Chilean Unit of Account (UF)\",\n\
|
67
|
+
\t\"CLP\": \"Chilean Peso\",\n\
|
68
|
+
\t\"CNY\": \"Chinese Yuan\",\n\
|
69
|
+
\t\"COP\": \"Colombian Peso\",\n\
|
70
|
+
\t\"CRC\": \"Costa Rican Col\xC3\xB3n\",\n\
|
71
|
+
\t\"CUP\": \"Cuban Peso\",\n\
|
72
|
+
\t\"CVE\": \"Cape Verdean Escudo\",\n\
|
73
|
+
\t\"CZK\": \"Czech Republic Koruna\",\n\
|
74
|
+
\t\"DJF\": \"Djiboutian Franc\",\n\
|
75
|
+
\t\"DKK\": \"Danish Krone\",\n\
|
76
|
+
\t\"DOP\": \"Dominican Peso\",\n\
|
77
|
+
\t\"DZD\": \"Algerian Dinar\",\n\
|
78
|
+
\t\"EGP\": \"Egyptian Pound\",\n\
|
79
|
+
\t\"ETB\": \"Ethiopian Birr\",\n\
|
80
|
+
\t\"EUR\": \"Euro\",\n\
|
81
|
+
\t\"FJD\": \"Fijian Dollar\",\n\
|
82
|
+
\t\"FKP\": \"Falkland Islands Pound\",\n\
|
83
|
+
\t\"GBP\": \"British Pound Sterling\",\n\
|
84
|
+
\t\"GEL\": \"Georgian Lari\",\n\
|
85
|
+
\t\"GHS\": \"Ghanaian Cedi\",\n\
|
86
|
+
\t\"GIP\": \"Gibraltar Pound\",\n\
|
87
|
+
\t\"GMD\": \"Gambian Dalasi\",\n\
|
88
|
+
\t\"GNF\": \"Guinean Franc\",\n\
|
89
|
+
\t\"GTQ\": \"Guatemalan Quetzal\",\n\
|
90
|
+
\t\"GYD\": \"Guyanaese Dollar\",\n\
|
91
|
+
\t\"HKD\": \"Hong Kong Dollar\",\n\
|
92
|
+
\t\"HNL\": \"Honduran Lempira\",\n\
|
93
|
+
\t\"HRK\": \"Croatian Kuna\",\n\
|
94
|
+
\t\"HTG\": \"Haitian Gourde\",\n\
|
95
|
+
\t\"HUF\": \"Hungarian Forint\",\n\
|
96
|
+
\t\"IDR\": \"Indonesian Rupiah\",\n\
|
97
|
+
\t\"ILS\": \"Israeli New Sheqel\",\n\
|
98
|
+
\t\"INR\": \"Indian Rupee\",\n\
|
99
|
+
\t\"IQD\": \"Iraqi Dinar\",\n\
|
100
|
+
\t\"IRR\": \"Iranian Rial\",\n\
|
101
|
+
\t\"ISK\": \"Icelandic Kr\xC3\xB3na\",\n\
|
102
|
+
\t\"JMD\": \"Jamaican Dollar\",\n\
|
103
|
+
\t\"JOD\": \"Jordanian Dinar\",\n\
|
104
|
+
\t\"JPY\": \"Japanese Yen\",\n\
|
105
|
+
\t\"KES\": \"Kenyan Shilling\",\n\
|
106
|
+
\t\"KGS\": \"Kyrgystani Som\",\n\
|
107
|
+
\t\"KHR\": \"Cambodian Riel\",\n\
|
108
|
+
\t\"KMF\": \"Comorian Franc\",\n\
|
109
|
+
\t\"KPW\": \"North Korean Won\",\n\
|
110
|
+
\t\"KRW\": \"South Korean Won\",\n\
|
111
|
+
\t\"KWD\": \"Kuwaiti Dinar\",\n\
|
112
|
+
\t\"KZT\": \"Kazakhstani Tenge\",\n\
|
113
|
+
\t\"LAK\": \"Laotian Kip\",\n\
|
114
|
+
\t\"LBP\": \"Lebanese Pound\",\n\
|
115
|
+
\t\"LKR\": \"Sri Lankan Rupee\",\n\
|
116
|
+
\t\"LRD\": \"Liberian Dollar\",\n\
|
117
|
+
\t\"LSL\": \"Lesotho Loti\",\n\
|
118
|
+
\t\"LTL\": \"Lithuanian Litas\",\n\
|
119
|
+
\t\"LVL\": \"Latvian Lats\",\n\
|
120
|
+
\t\"LYD\": \"Libyan Dinar\",\n\
|
121
|
+
\t\"MAD\": \"Moroccan Dirham\",\n\
|
122
|
+
\t\"MDL\": \"Moldovan Leu\",\n\
|
123
|
+
\t\"MGA\": \"Malagasy Ariary\",\n\
|
124
|
+
\t\"MKD\": \"Macedonian Denar\",\n\
|
125
|
+
\t\"MMK\": \"Myanma Kyat\",\n\
|
126
|
+
\t\"MNT\": \"Mongolian Tugrik\",\n\
|
127
|
+
\t\"MOP\": \"Macanese Pataca\",\n\
|
128
|
+
\t\"MRO\": \"Mauritanian Ouguiya\",\n\
|
129
|
+
\t\"MUR\": \"Mauritian Rupee\",\n\
|
130
|
+
\t\"MVR\": \"Maldivian Rufiyaa\",\n\
|
131
|
+
\t\"MWK\": \"Malawian Kwacha\",\n\
|
132
|
+
\t\"MXN\": \"Mexican Peso\",\n\
|
133
|
+
\t\"MYR\": \"Malaysian Ringgit\",\n\
|
134
|
+
\t\"MZN\": \"Mozambican Metical\",\n\
|
135
|
+
\t\"NAD\": \"Namibian Dollar\",\n\
|
136
|
+
\t\"NGN\": \"Nigerian Naira\",\n\
|
137
|
+
\t\"NIO\": \"Nicaraguan C\xC3\xB3rdoba\",\n\
|
138
|
+
\t\"NOK\": \"Norwegian Krone\",\n\
|
139
|
+
\t\"NPR\": \"Nepalese Rupee\",\n\
|
140
|
+
\t\"NZD\": \"New Zealand Dollar\",\n\
|
141
|
+
\t\"OMR\": \"Omani Rial\",\n\
|
142
|
+
\t\"PAB\": \"Panamanian Balboa\",\n\
|
143
|
+
\t\"PEN\": \"Peruvian Nuevo Sol\",\n\
|
144
|
+
\t\"PGK\": \"Papua New Guinean Kina\",\n\
|
145
|
+
\t\"PHP\": \"Philippine Peso\",\n\
|
146
|
+
\t\"PKR\": \"Pakistani Rupee\",\n\
|
147
|
+
\t\"PLN\": \"Polish Zloty\",\n\
|
148
|
+
\t\"PYG\": \"Paraguayan Guarani\",\n\
|
149
|
+
\t\"QAR\": \"Qatari Rial\",\n\
|
150
|
+
\t\"RON\": \"Romanian Leu\",\n\
|
151
|
+
\t\"RSD\": \"Serbian Dinar\",\n\
|
152
|
+
\t\"RUB\": \"Russian Ruble\",\n\
|
153
|
+
\t\"RWF\": \"Rwandan Franc\",\n\
|
154
|
+
\t\"SAR\": \"Saudi Riyal\",\n\
|
155
|
+
\t\"SBD\": \"Solomon Islands Dollar\",\n\
|
156
|
+
\t\"SCR\": \"Seychellois Rupee\",\n\
|
157
|
+
\t\"SDG\": \"Sudanese Pound\",\n\
|
158
|
+
\t\"SEK\": \"Swedish Krona\",\n\
|
159
|
+
\t\"SGD\": \"Singapore Dollar\",\n\
|
160
|
+
\t\"SHP\": \"Saint Helena Pound\",\n\
|
161
|
+
\t\"SLL\": \"Sierra Leonean Leone\",\n\
|
162
|
+
\t\"SOS\": \"Somali Shilling\",\n\
|
163
|
+
\t\"SRD\": \"Surinamese Dollar\",\n\
|
164
|
+
\t\"STD\": \"S\xC3\xA3o Tom\xC3\xA9 and Pr\xC3\xADncipe Dobra\",\n\
|
165
|
+
\t\"SVC\": \"Salvadoran Col\xC3\xB3n\",\n\
|
166
|
+
\t\"SYP\": \"Syrian Pound\",\n\
|
167
|
+
\t\"SZL\": \"Swazi Lilangeni\",\n\
|
168
|
+
\t\"THB\": \"Thai Baht\",\n\
|
169
|
+
\t\"TJS\": \"Tajikistani Somoni\",\n\
|
170
|
+
\t\"TMT\": \"Turkmenistani Manat\",\n\
|
171
|
+
\t\"TND\": \"Tunisian Dinar\",\n\
|
172
|
+
\t\"TOP\": \"Tongan Pa\xCA\xBBanga\",\n\
|
173
|
+
\t\"TRY\": \"Turkish Lira\",\n\
|
174
|
+
\t\"TTD\": \"Trinidad and Tobago Dollar\",\n\
|
175
|
+
\t\"TWD\": \"New Taiwan Dollar\",\n\
|
176
|
+
\t\"TZS\": \"Tanzanian Shilling\",\n\
|
177
|
+
\t\"UAH\": \"Ukrainian Hryvnia\",\n\
|
178
|
+
\t\"UGX\": \"Ugandan Shilling\",\n\
|
179
|
+
\t\"USD\": \"United States Dollar\",\n\
|
180
|
+
\t\"UYU\": \"Uruguayan Peso\",\n\
|
181
|
+
\t\"UZS\": \"Uzbekistan Som\",\n\
|
182
|
+
\t\"VEF\": \"Venezuelan Bol\xC3\xADvar\",\n\
|
183
|
+
\t\"VND\": \"Vietnamese Dong\",\n\
|
184
|
+
\t\"VUV\": \"Vanuatu Vatu\",\n\
|
185
|
+
\t\"WST\": \"Samoan Tala\",\n\
|
186
|
+
\t\"XAF\": \"CFA Franc BEAC\",\n\
|
187
|
+
\t\"XCD\": \"East Caribbean Dollar\",\n\
|
188
|
+
\t\"XDR\": \"Special Drawing Rights\",\n\
|
189
|
+
\t\"XOF\": \"CFA Franc BCEAO\",\n\
|
190
|
+
\t\"XPF\": \"CFP Franc\",\n\
|
191
|
+
\t\"YER\": \"Yemeni Rial\",\n\
|
192
|
+
\t\"ZAR\": \"South African Rand\",\n\
|
193
|
+
\t\"ZMK\": \"Zambian Kwacha\",\n\
|
194
|
+
\t\"ZWL\": \"Zimbabwean Dollar\"\n\
|
195
|
+
}"
|
196
|
+
http_version:
|
197
|
+
recorded_at: Fri, 17 Aug 2012 01:01:46 GMT
|
198
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://openexchangerates.org/api/currencies.json?app_id=wrong
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 401
|
19
|
+
message: Unauthorized
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 17 Aug 2012 01:01:46 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.10
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: "{\"error\":true,\"status\":401,\"message\":\"invalid_app_id\",\"description\":\"Invalid App ID - please sign up at https://openexchangerates.org/signup, or contact support@openexchangerates.org.\"}"
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 17 Aug 2012 01:01:46 GMT
|
40
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,205 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://openexchangerates.org/api/historical/2012-08-13.json?app_id=bcc1d1ad9f4d4dd69b12a64c913857fe
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 17 Aug 2012 01:01:44 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.10
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: |-
|
38
|
+
{
|
39
|
+
"disclaimer": "This data is collected from various providers and provided free of charge for informational purposes only, with no guarantee whatsoever of accuracy, validity, availability, or fitness for any purpose; use at your own risk. Other than that, have fun! Usage confirms acceptance of terms: http://openexchangerates.org/terms/",
|
40
|
+
"license": "Data collected from various providers with public-facing APIs; copyright may apply; not for resale; no warranties given. Usage confirms acceptance of license agreement: http://openexchangerates.org/license/",
|
41
|
+
"timestamp": 1344895300,
|
42
|
+
"base": "USD",
|
43
|
+
"rates": {
|
44
|
+
"AED": 3.673051,
|
45
|
+
"AFN": 48.341651,
|
46
|
+
"ALL": 110.934999,
|
47
|
+
"AMD": 412.995001,
|
48
|
+
"ANG": 1.776275,
|
49
|
+
"AOA": 95.379997,
|
50
|
+
"ARS": 4.602689,
|
51
|
+
"AUD": 0.950214,
|
52
|
+
"AWG": 1.7901,
|
53
|
+
"AZN": 0.785421,
|
54
|
+
"BAM": 1.587575,
|
55
|
+
"BBD": 2,
|
56
|
+
"BDT": 81.544666,
|
57
|
+
"BGN": 1.588112,
|
58
|
+
"BHD": 0.377018,
|
59
|
+
"BIF": 1441.153333,
|
60
|
+
"BMD": 1,
|
61
|
+
"BND": 1.245525,
|
62
|
+
"BOB": 6.986667,
|
63
|
+
"BRL": 2.0207,
|
64
|
+
"BSD": 1,
|
65
|
+
"BTN": 51.364999,
|
66
|
+
"BWP": 7.654465,
|
67
|
+
"BYR": 8330.035,
|
68
|
+
"BZD": 1.937283,
|
69
|
+
"CAD": 0.992325,
|
70
|
+
"CDF": 923.569,
|
71
|
+
"CHF": 0.97459,
|
72
|
+
"CLF": 0.02137,
|
73
|
+
"CLP": 478.318326,
|
74
|
+
"CNY": 6.362921,
|
75
|
+
"COP": 1792.583675,
|
76
|
+
"CRC": 499.250499,
|
77
|
+
"CUP": 1,
|
78
|
+
"CVE": 89.894301,
|
79
|
+
"CZK": 20.374613,
|
80
|
+
"DJF": 178.256665,
|
81
|
+
"DKK": 6.03509,
|
82
|
+
"DOP": 39.063626,
|
83
|
+
"DZD": 81.947836,
|
84
|
+
"EGP": 6.074327,
|
85
|
+
"ETB": 17.961967,
|
86
|
+
"EUR": 0.811469,
|
87
|
+
"FJD": 1.784158,
|
88
|
+
"FKP": 0.637519,
|
89
|
+
"GBP": 0.637519,
|
90
|
+
"GEL": 1.725417,
|
91
|
+
"GHS": 1.954333,
|
92
|
+
"GIP": 0.631645,
|
93
|
+
"GMD": 31.864133,
|
94
|
+
"GNF": 7125.713333,
|
95
|
+
"GTQ": 7.865717,
|
96
|
+
"GYD": 202.949998,
|
97
|
+
"HKD": 7.756682,
|
98
|
+
"HNL": 19.50483,
|
99
|
+
"HRK": 6.058997,
|
100
|
+
"HTG": 42.063233,
|
101
|
+
"HUF": 226.444542,
|
102
|
+
"IDR": 9494.70238,
|
103
|
+
"ILS": 4.054061,
|
104
|
+
"INR": 55.367762,
|
105
|
+
"IQD": 1164.063333,
|
106
|
+
"IRR": 12285.726667,
|
107
|
+
"ISK": 119.466666,
|
108
|
+
"JMD": 89.092598,
|
109
|
+
"JOD": 0.708193,
|
110
|
+
"JPY": 78.320286,
|
111
|
+
"KES": 83.819773,
|
112
|
+
"KGS": 45.0933,
|
113
|
+
"KHR": 4051.976667,
|
114
|
+
"KMF": 399.973246,
|
115
|
+
"KPW": 900,
|
116
|
+
"KRW": 1129.155887,
|
117
|
+
"KWD": 0.282355,
|
118
|
+
"KZT": 149.643351,
|
119
|
+
"LAK": 8020.823333,
|
120
|
+
"LBP": 1505.498525,
|
121
|
+
"LKR": 131.959588,
|
122
|
+
"LRD": 73.775,
|
123
|
+
"LSL": 8.1226,
|
124
|
+
"LTL": 2.80185,
|
125
|
+
"LVL": 0.56479,
|
126
|
+
"LYD": 1.263067,
|
127
|
+
"MAD": 8.930972,
|
128
|
+
"MDL": 12.383032,
|
129
|
+
"MGA": 2258.423333,
|
130
|
+
"MKD": 49.950663,
|
131
|
+
"MMK": 873.465,
|
132
|
+
"MNT": 1394,
|
133
|
+
"MOP": 7.992067,
|
134
|
+
"MRO": 302.521667,
|
135
|
+
"MUR": 30.826164,
|
136
|
+
"MVR": 15.403233,
|
137
|
+
"MWK": 275.279997,
|
138
|
+
"MXN": 13.141043,
|
139
|
+
"MYR": 3.117349,
|
140
|
+
"MZN": 28.25455,
|
141
|
+
"NAD": 8.122965,
|
142
|
+
"NGN": 158.332053,
|
143
|
+
"NIO": 23.674415,
|
144
|
+
"NOK": 5.93716,
|
145
|
+
"NPR": 88.699683,
|
146
|
+
"NZD": 1.235038,
|
147
|
+
"OMR": 0.38503,
|
148
|
+
"PAB": 1,
|
149
|
+
"PEN": 2.617512,
|
150
|
+
"PGK": 2.075712,
|
151
|
+
"PHP": 41.872345,
|
152
|
+
"PKR": 94.148061,
|
153
|
+
"PLN": 3.314638,
|
154
|
+
"PYG": 4413.686585,
|
155
|
+
"QAR": 3.640888,
|
156
|
+
"RON": 3.678277,
|
157
|
+
"RSD": 94.795515,
|
158
|
+
"RUB": 31.870344,
|
159
|
+
"RWF": 611.509924,
|
160
|
+
"SAR": 3.750177,
|
161
|
+
"SBD": 7.065961,
|
162
|
+
"SCR": 12.999053,
|
163
|
+
"SDG": 4.434825,
|
164
|
+
"SEK": 6.698878,
|
165
|
+
"SGD": 1.245775,
|
166
|
+
"SHP": 0.637519,
|
167
|
+
"SLL": 4345.001443,
|
168
|
+
"SOS": 1625.543333,
|
169
|
+
"SRD": 3.274672,
|
170
|
+
"STD": 20122.423333,
|
171
|
+
"SVC": 8.75052,
|
172
|
+
"SYP": 65.585034,
|
173
|
+
"SZL": 8.122383,
|
174
|
+
"THB": 31.449175,
|
175
|
+
"TJS": 4.5819,
|
176
|
+
"TMT": 2.850015,
|
177
|
+
"TND": 1.612125,
|
178
|
+
"TOP": 1.762251,
|
179
|
+
"TRY": 1.7937,
|
180
|
+
"TTD": 6.396338,
|
181
|
+
"TWD": 29.997302,
|
182
|
+
"TZS": 1575.591768,
|
183
|
+
"UAH": 8.104718,
|
184
|
+
"UGX": 2482.224895,
|
185
|
+
"USD": 1,
|
186
|
+
"UYU": 20.777738,
|
187
|
+
"UZS": 1909.479228,
|
188
|
+
"VEF": 4.294173,
|
189
|
+
"VND": 20839.845825,
|
190
|
+
"VUV": 91.580002,
|
191
|
+
"WST": 2.307112,
|
192
|
+
"XAF": 531.881002,
|
193
|
+
"XCD": 2.70165,
|
194
|
+
"XDR": 0.661944,
|
195
|
+
"XOF": 531.853329,
|
196
|
+
"XPF": 96.810366,
|
197
|
+
"YER": 215.141811,
|
198
|
+
"ZAR": 8.150132,
|
199
|
+
"ZMK": 4899.464695,
|
200
|
+
"ZWL": 322.355011
|
201
|
+
}
|
202
|
+
}
|
203
|
+
http_version:
|
204
|
+
recorded_at: Fri, 17 Aug 2012 01:01:45 GMT
|
205
|
+
recorded_with: VCR 2.2.4
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://openexchangerates.org/api/historical/00000.json?app_id=bcc1d1ad9f4d4dd69b12a64c913857fe
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ""
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 404
|
19
|
+
message: Not Found
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Fri, 17 Aug 2012 01:01:45 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2
|
25
|
+
X-Powered-By:
|
26
|
+
- PHP/5.3.10
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: "{\"error\":true,\"status\":404,\"message\":\"not_found\",\"description\":\"No route specified, or route not matched. Please check and try again, or contact support@openexchangerates.org.\"}"
|
38
|
+
http_version:
|
39
|
+
recorded_at: Fri, 17 Aug 2012 01:01:45 GMT
|
40
|
+
recorded_with: VCR 2.2.4
|