quandl_client 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quandl/client/base.rb +4 -1
- data/lib/quandl/client/version.rb +1 -1
- data/spec/lib/quandl/client/dataset_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81aaa8f303bf326b11226513522ddfe29c7e408
|
4
|
+
data.tar.gz: dc1c441e7569562647ce575105ee7ee9fa689858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dff6e5349a2e01375699d7a953c24569d849c3d113e5d32d7caa24e25f8f486139cc4d1db58dc8fabda7f9c355c14ef7f96121f14028e784215092a56d5f83b
|
7
|
+
data.tar.gz: 6698073bfb90697f063c2562b35f37cb0017b6210c1fef9803d50a7671125aed03a3ce7f37cbabad04291978c4376d03a7111c8ec7d22b8a4cb3e22ca94ca05c
|
data/lib/quandl/client/base.rb
CHANGED
@@ -14,6 +14,14 @@ describe Dataset do
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
+
it "should change url" do
|
18
|
+
Quandl::Client.use('http://url.com/')
|
19
|
+
Quandl::Client::Dataset.url.should eq 'http://url.com/v2'
|
20
|
+
Quandl::Client.use('http://url.com/2/')
|
21
|
+
Quandl::Client::Dataset.url.should eq 'http://url.com/2/v2'
|
22
|
+
Quandl::Client.use ENV['QUANDL_API_HOST']
|
23
|
+
end
|
24
|
+
|
17
25
|
describe ".query" do
|
18
26
|
let(:datasets){ Quandl::Client::Dataset.query('oil').all }
|
19
27
|
subject{ datasets }
|