quandl_client 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 157ba17ffc15b48c794cabd8eac6fc849345f125
4
- data.tar.gz: 0d880279cca152565a9cc2b396328d49a02c8557
3
+ metadata.gz: 2bf0070f8faa49f7f0c8d37861dda9dffb18dea7
4
+ data.tar.gz: 1d4dbd6dbb1b4bf94c49186cb844527e5ea06693
5
5
  SHA512:
6
- metadata.gz: dd2ba5539f6be665dcead9aafcc35cb5574379852061d7726e137a1ef8f35d16587a11d0fed704b67cd70f911be3a6e71c7370928600f7b40e4bbf1f6767a75a
7
- data.tar.gz: 9eea7027c039f62c5bfc9850376b1c18c796a3f7cc5455e2b245d8ada84b769bbddbaa5578efb95771dde159f71770154311147e8e49f875f742ece70286e428
6
+ metadata.gz: 6a1eae0d8c8dcbff92ee02ad5b200f7102d3ba259970da50dce72d738c657bfeb65e1df04f61ad4ddc6d799f1d8bd7dd7d201c4237b8eaa4efca52952260d254
7
+ data.tar.gz: 8cb7c9a46f8c6e10f88ef161c2503a11646c5afef7aeeec4ac95e5873b437946132770b69281738a8d8097cc673981398e217ca2878529f12b944f3e9e0bc33e
@@ -33,7 +33,6 @@ module Search
33
33
 
34
34
  def find(id)
35
35
  attrs = attributes.merge(scope_attributes)
36
- puts attrs
37
36
  result = self.class.parent.where( attrs ).find(id)
38
37
  result = self.class.parent.new(id: id) if result.nil?
39
38
  result
@@ -1,6 +1,6 @@
1
1
  module Quandl
2
2
  module Client
3
- VERSION = '2.1.3'
3
+ VERSION = '2.1.4'
4
4
  API_VERSION = 'v2'
5
5
 
6
6
  class << self
@@ -7,14 +7,14 @@ describe Quandl::Client::Dataset::Data do
7
7
  create(:dataset, source_code: "QUANDL_CLIENT_TEST_SOURCE", data: Quandl::Fabricate::Data.rand( rows: 10, columns: 4 ) )
8
8
  }
9
9
 
10
- describe ".with_id" do
11
- subject{ Quandl::Client::Dataset::Data.with_id(6668) }
12
- let(:data){ Quandl::Client::Dataset::Data.with_id(6668).to_table }
10
+ describe ".with_id('NSE/OIL')" do
11
+ let(:id){ Dataset.find("NSE/OIL").id }
12
+ subject{ Quandl::Client::Dataset::Data.with_id(id) }
13
+ let(:data){ Quandl::Client::Dataset::Data.with_id(id).to_table }
13
14
 
14
15
  let(:beginning_of_last_week){ Date.today.jd - Date.today.beginning_of_week.jd }
15
16
 
16
17
  it("data"){ data.count.should > 100 }
17
- it(".row(:beginning_of_last_week)"){ subject.row( beginning_of_last_week ).to_table.count.should eq 1 }
18
18
  it(".rows(5)"){ subject.rows(5).to_table.count.should eq 5 }
19
19
  it(".limit(2)"){ subject.limit(2).to_table.count.should eq 2 }
20
20
  it(".column(2)"){ subject.column(2).to_table.first.count.should eq 2 }
data/spec/spec_helper.rb CHANGED
@@ -12,7 +12,7 @@ require "quandl/fabricate"
12
12
 
13
13
  include Quandl::Client
14
14
  Quandl::Client.use ENV['QUANDL_API_HOST']
15
- Quandl::Client.use 'http://staging.quandl.com/api/'
15
+ # Quandl::Client.use 'http://staging.quandl.com/api/'
16
16
  # Quandl::Client.use 'http://67.202.27.116:8080/api/'
17
17
  # Quandl::Client.use 'http://quandl.com/api/'
18
18
  Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake