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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2770339f1ebb07e01be99bbbfa1e31f80822d2d7
4
- data.tar.gz: 715ed180a8445d6f09e90835ca800a53fb58a98e
3
+ metadata.gz: e81aaa8f303bf326b11226513522ddfe29c7e408
4
+ data.tar.gz: dc1c441e7569562647ce575105ee7ee9fa689858
5
5
  SHA512:
6
- metadata.gz: f6510d04692e330d009eabdae2e0f8b473989fb1375521d840c5b1f00a78489c5a44b998d86d3acf72699552476fe1ff957c87cdb693fd94333b9322b3bc3d03
7
- data.tar.gz: 598f1df704d3241204ee013e53470d607c442a15075ff207a248bec3fec105635d4cdee9f621b6d06022b31465f90d1ea76c10c5568abccc73b69112572d0918
6
+ metadata.gz: 6dff6e5349a2e01375699d7a953c24569d849c3d113e5d32d7caa24e25f8f486139cc4d1db58dc8fabda7f9c355c14ef7f96121f14028e784215092a56d5f83b
7
+ data.tar.gz: 6698073bfb90697f063c2562b35f37cb0017b6210c1fef9803d50a7671125aed03a3ce7f37cbabad04291978c4376d03a7111c8ec7d22b8a4cb3e22ca94ca05c
@@ -56,7 +56,10 @@ class Quandl::Client::Base
56
56
  protected
57
57
 
58
58
  def models_use_her_api!
59
- models.each{|m| m.use_api( her_api ) }
59
+ models.each{|m|
60
+ m.url = url
61
+ m.use_api( her_api )
62
+ }
60
63
  end
61
64
 
62
65
  class TokenAuthentication < Faraday::Middleware
@@ -1,6 +1,6 @@
1
1
  module Quandl
2
2
  module Client
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
4
4
  API_VERSION = 'v2'
5
5
 
6
6
  class << self
@@ -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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher