quandl_format 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/UPGRADE.md +6 -0
- data/lib/quandl/format/dataset/attributes.rb +2 -1
- data/lib/quandl/format/version.rb +1 -1
- data/spec/fixtures/format.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc9bd170b3c9b0df54c718ea25e29ccd7dc6e332
|
4
|
+
data.tar.gz: 04b3c490398d6ad42684c2f8d6fcce574823c9b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f660f2d47ccd84f54f710f2706a5bfff738930d9a6f2e2bdd808c37b63a4f76ab4a83839d5dcf4ce90fbe62f2d66901f141f7c9e93c60e57de45ff6cdb12b4d
|
7
|
+
data.tar.gz: a213be4d902bfc3324a6e39e7452a5181deb5893e6c7ef3c93ce67035f4a8c1bde39e7680385cc26fd6f64faf20f19be3963ef94de4804a021e85251e9acc4d2
|
data/UPGRADE.md
CHANGED
@@ -8,7 +8,7 @@ module Attributes
|
|
8
8
|
|
9
9
|
module ClassMethods
|
10
10
|
|
11
|
-
META_ATTRIBUTES = :source_code, :code, :name, :description, :private, :reference_url
|
11
|
+
META_ATTRIBUTES = :source_code, :code, :name, :description, :private, :reference_url, :frequency
|
12
12
|
DATA_ATTRIBUTES = :column_names, :data
|
13
13
|
|
14
14
|
def attribute_names
|
@@ -59,6 +59,7 @@ module Attributes
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def data=(rows)
|
62
|
+
rows = rows.to_table if rows.respond_to?(:to_table)
|
62
63
|
@data = Quandl::Data.new(rows).to_date
|
63
64
|
self.column_names = @data.headers if @data.headers.present?
|
64
65
|
data_row_count_should_match_column_count!
|
data/spec/fixtures/format.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.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: 2014-01-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|