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 +4 -4
- data/UPGRADE.md +6 -0
- data/VERSION +1 -1
- data/quandl_format.gemspec +1 -1
- data/spec/config/client.rb +16 -2
- data/spec/fixtures/format.rb +2 -2
- data/spec/lib/quandl/client/dataset_spec.rb +1 -1
- data/spec/lib/quandl/format/dataset/client_spec.rb +7 -1
- data/spec/lib/quandl/format/dataset_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7f7b6ad843eb3dc540033e25e2f6ed116a8f6c0
|
4
|
+
data.tar.gz: f159ff552b162c5b55d8fb07e2cdb30e702c2867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a403dd9c08abf3259776c4874e5bd03c7dcbf8916dabd25b47482e9f94d0704bee625f0c320cd15536b726158214f62d3a98368c38e34e8a887a23866dadf4
|
7
|
+
data.tar.gz: c024ba95f4c71da3422e360e05feb0bf9b8d54e22bbf173ef94e01141d3222921bff77412c420402b991b8be526bd698952d1c6ea119fdc5c0f362268b8391e6
|
data/UPGRADE.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.5.0
|
data/quandl_format.gemspec
CHANGED
@@ -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.
|
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"
|
data/spec/config/client.rb
CHANGED
@@ -1,2 +1,16 @@
|
|
1
|
-
|
2
|
-
|
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 )
|
data/spec/fixtures/format.rb
CHANGED
@@ -38,7 +38,7 @@ end
|
|
38
38
|
def qdf_attributes
|
39
39
|
{
|
40
40
|
code: 'DATASET_CODE_2',
|
41
|
-
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:
|
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: '
|
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 '
|
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
|
+
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-
|
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.
|
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.
|
26
|
+
version: '2.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|