quandl_client 2.1.0 → 2.1.1

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: 596569b3e0f0e1f25a00443afb4a34d754378f85
4
- data.tar.gz: afc3361900dd214932669e41f0bd82205444088a
3
+ metadata.gz: 4e4087619b6dc0950544de1be1e3c0227b7334ef
4
+ data.tar.gz: 662377be5fd75e8a76e3235a1c82f60ae19ecb40
5
5
  SHA512:
6
- metadata.gz: 1cdcdec1cb4337d85ee05ee26919a3a64879d05472f68333c790b74587eaed48398725e62099084a037480184050abbe341a9f17e333d672d2affed6cd128cdd
7
- data.tar.gz: 9ceb5d20480bb0a3ef0926014a42d2380796a06799e5e43e3839543cb026edfb84667b1fefcac02b5d3a21ec4bf19d20ab6baa57740b09a70fb04112bd61a877
6
+ metadata.gz: bd0dc6da8658c97b125463bf799d27659f46beff2115dcccee14424157a1706422a8fa95bebc7ba5aed71963556e2959bc8308e08423057d9184ad441b832c91
7
+ data.tar.gz: d4e9ca8558aed2a13e86210f4b69927836cda6326ee3b9655e0ecafe1a7f9e3e279a75dcdd219cd0941c329a76e496a249c56e1c98311502ecbbce7121e3265f
@@ -7,7 +7,7 @@ class Quandl::Client::Dataset < Quandl::Client::Base
7
7
  ##########
8
8
 
9
9
  def self.touch_existing(id)
10
- put(File.join(url, "datasets/#{id}/touch")).exists?
10
+ put(File.join(Quandl::Client::Base.url, "datasets/#{id}/touch")).exists?
11
11
  end
12
12
 
13
13
  # SEARCH
@@ -1,6 +1,6 @@
1
1
  module Quandl
2
2
  module Client
3
- VERSION = '2.1.0'
3
+ VERSION = '2.1.1'
4
4
  API_VERSION = 'v2'
5
5
 
6
6
  class << self
@@ -16,6 +16,7 @@ describe Dataset do
16
16
  context "updated" do
17
17
 
18
18
  subject{
19
+ dataset.updated_at
19
20
  sleep(0.75)
20
21
  Dataset.find( dataset.id )
21
22
  }
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ require 'spec_helper'
3
+
4
+ describe Dataset do
5
+ let(:dataset){ create(:dataset) }
6
+ subject{ dataset }
7
+
8
+ describe ".touch_existing(:id)" do
9
+ it "should touch the dataset" do
10
+ dataset.updated_at
11
+ sleep(0.75)
12
+ Dataset.touch_existing(subject.id).should eq true
13
+ Dataset.find(subject.id).updated_at.should_not eq dataset.updated_at
14
+ end
15
+ end
16
+
17
+ end
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.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher
@@ -234,6 +234,7 @@ files:
234
234
  - spec/lib/quandl/client/dataset/source_spec.rb
235
235
  - spec/lib/quandl/client/dataset/trim_spec.rb
236
236
  - spec/lib/quandl/client/dataset/validation_spec.rb
237
+ - spec/lib/quandl/client/dataset_spec.rb
237
238
  - spec/lib/quandl/client/sheet_spec.rb
238
239
  - spec/lib/quandl/client/source_spec.rb
239
240
  - spec/spec_helper.rb
@@ -273,6 +274,7 @@ test_files:
273
274
  - spec/lib/quandl/client/dataset/source_spec.rb
274
275
  - spec/lib/quandl/client/dataset/trim_spec.rb
275
276
  - spec/lib/quandl/client/dataset/validation_spec.rb
277
+ - spec/lib/quandl/client/dataset_spec.rb
276
278
  - spec/lib/quandl/client/sheet_spec.rb
277
279
  - spec/lib/quandl/client/source_spec.rb
278
280
  - spec/spec_helper.rb