quandl_data 1.1.3 → 1.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 +4 -4
- data/UPGRADE.md +6 -0
- data/lib/quandl/data/operations.rb +1 -1
- data/lib/quandl/data/version.rb +1 -1
- data/spec/lib/quandl/data/enumerator_spec.rb +6 -5
- data/spec/spec_helper.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 958d50ad8ae3e144a7f548f1aeff3c84b4c72ed7
|
4
|
+
data.tar.gz: 31971a6c8c2e5210ab4d38fd6b814bfa35873ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f754ea7490cfc6e3b87f76cd4856013dd5fd949091fc0b01c31df2f7b6d867187946b477a88ad1432416ff8b4ef5f0ae59caa4b009b04454631ca02104ec03
|
7
|
+
data.tar.gz: 14dbbdee2823d8bd95eeb8eac7351e8925acfa3d166cc3f102cf943dbe9191079c61a8ac74c52719359dc5c0a58b4e5fd7d552d3bf9e550c62c1552db82d7c34
|
data/UPGRADE.md
CHANGED
data/lib/quandl/data/version.rb
CHANGED
@@ -16,13 +16,14 @@ describe Quandl::Data::Enumerator do
|
|
16
16
|
[nil, :to_jd, :to_date].each do |date_format|
|
17
17
|
[nil, :to_a, :to_csv].each do |format|
|
18
18
|
describe ".new(data.#{date_format}.#{format})" do
|
19
|
-
|
19
|
+
let(:raw){
|
20
20
|
raw = data
|
21
|
-
raw =
|
22
|
-
raw =
|
23
|
-
|
21
|
+
raw = raw.send(date_format) if date_format.present?
|
22
|
+
raw = raw.send(format) if format.present?
|
23
|
+
raw
|
24
24
|
}
|
25
|
-
|
25
|
+
subject{ Quandl::Data.new(raw.clone) }
|
26
|
+
|
26
27
|
its('to_jd.first.first'){ should be_a Integer }
|
27
28
|
its('to_date.first.first'){ should be_a Date }
|
28
29
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
if ENV["COVERAGE"]
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start
|
4
|
+
end
|
3
5
|
|
4
6
|
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
5
7
|
|
@@ -7,4 +9,5 @@ require "rspec"
|
|
7
9
|
require "csv"
|
8
10
|
require "json"
|
9
11
|
require 'quandl/fabricate'
|
10
|
-
require "quandl/data"
|
12
|
+
require "quandl/data"
|
13
|
+
require 'pry'
|