quandl_format 0.4.3 → 0.5.0

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: d6e6365d76d49a7884466644c94eaf7eaafd0cbe
4
- data.tar.gz: 8e6498c4952197b959c383faa225d2766800a755
3
+ metadata.gz: f7f7b6ad843eb3dc540033e25e2f6ed116a8f6c0
4
+ data.tar.gz: f159ff552b162c5b55d8fb07e2cdb30e702c2867
5
5
  SHA512:
6
- metadata.gz: b99bd6926cd936e676d0cffdb3aeb128228119ed1d1b3c5f0cc8029116d723cdb338b402365ea3a7e137bc6f6c5c641be96b5cb13831f22c71fd5359bb024f6c
7
- data.tar.gz: f884baa33d4ca035fff6190c00cfa05383b6d0ef34c26383c19100edf2de101fd63cc83266a3f84ed5b826ba8afab7e667960beae2f49279bb76c84979759c9c
6
+ metadata.gz: 82a403dd9c08abf3259776c4874e5bd03c7dcbf8916dabd25b47482e9f94d0704bee625f0c320cd15536b726158214f62d3a98368c38e34e8a887a23866dadf4
7
+ data.tar.gz: c024ba95f4c71da3422e360e05feb0bf9b8d54e22bbf173ef94e01141d3222921bff77412c420402b991b8be526bd698952d1c6ea119fdc5c0f362268b8391e6
data/UPGRADE.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.5.0
2
+
3
+ * QUGC-189 bump to quandl_client 2.9
4
+
5
+
6
+
1
7
  ## 0.4.3
2
8
 
3
9
  * QUGC-162 Strip trailing commas in meta data section
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.5.0
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
18
  s.require_paths = ["lib"]
19
19
 
20
- s.add_runtime_dependency "quandl_client", "~> 2.7"
20
+ s.add_runtime_dependency "quandl_client", "~> 2.8"
21
21
 
22
22
  s.add_development_dependency "rake", "~> 10.0"
23
23
  s.add_development_dependency "rspec", "~> 2.13"
@@ -1,2 +1,16 @@
1
- Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN']
2
- Quandl::Client.use ENV['QUANDL_TEST_URL']
1
+ require 'ostruct'
2
+ require 'yaml'
3
+
4
+ module Spec
5
+ module Config
6
+ Quandl = OpenStruct.new(YAML.load(File.read(File.join(ENV['HOME'], '.quandl/test'))))
7
+ end
8
+ end
9
+
10
+ require "quandl/client"
11
+ require "quandl/fabricate"
12
+
13
+ include Quandl::Client
14
+
15
+ Quandl::Client.token = Spec::Config::Quandl.token
16
+ Quandl::Client.use( Spec::Config::Quandl.quandl_url )
@@ -38,7 +38,7 @@ end
38
38
  def qdf_attributes
39
39
  {
40
40
  code: 'DATASET_CODE_2',
41
- source_code: 'SOURCE_CODE',
41
+ source_code: 'NSE',
42
42
  name: 'Test Dataset Name 2',
43
43
  description: "Here is a description with multiple lines.\n This is the second line.",
44
44
  column_names: ['Date', 'Value', 'High', 'Low'],
@@ -49,7 +49,7 @@ def qdf_attributes
49
49
  end
50
50
 
51
51
  def qdf_attributes_to_format
52
- %Q{source_code: SOURCE_CODE
52
+ %Q{source_code: NSE
53
53
  code: DATASET_CODE_2
54
54
  name: Test Dataset Name 2
55
55
  description: |-
@@ -5,7 +5,7 @@ describe Quandl::Client::Dataset do
5
5
 
6
6
  let(:attributes) { {
7
7
  code: 'DATASET_CODE_2',
8
- source_code: 'SOURCE_CODE',
8
+ source_code: 'NSE',
9
9
  name: 'Test Dataset Name 2',
10
10
  description: "Here is a description with multiple lines.\n This is the second line.",
11
11
  column_names: ['Date', 'Value', 'High', 'Low'],
@@ -15,8 +15,14 @@ describe Quandl::Format::Dataset::Client do
15
15
 
16
16
  it{ should respond_to :valid? }
17
17
  it{ should respond_to :upload }
18
-
18
+
19
+ context "valid?" do
20
+ before(:each){ subject.valid? }
21
+ its('errors.messages'){ should eq({}) }
22
+ end
23
+
19
24
  its(:valid?){ should be_true }
25
+
20
26
  its(:client){ should be_a Quandl::Client::Dataset }
21
27
 
22
28
  ["string", 10, Date.today, [1,2,3], {hash: 'test'} ].each do |value|
@@ -8,7 +8,7 @@ describe Quandl::Format::Dataset do
8
8
  subject{ Quandl::Format::Dataset.new(attributes) }
9
9
 
10
10
  its(:code){ should eq 'DATASET_CODE_2' }
11
- its(:source_code){ should eq 'SOURCE_CODE' }
11
+ its(:source_code){ should eq 'NSE' }
12
12
  its(:name){ should eq 'Test Dataset Name 2' }
13
13
  its(:description){ should eq "Here is a description with multiple lines.\n This is the second line." }
14
14
  its(:column_names){ should eq ['Date', 'Value', 'High', 'Low'] }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-05 00:00:00.000000000 Z
11
+ date: 2014-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: quandl_client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '2.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '2.7'
26
+ version: '2.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement