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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8747d31194c3966461bf384e9fa12252a686bac4
4
- data.tar.gz: 19255b2e97e72da07ea8f5ebecefc96226327e2b
3
+ metadata.gz: dc9bd170b3c9b0df54c718ea25e29ccd7dc6e332
4
+ data.tar.gz: 04b3c490398d6ad42684c2f8d6fcce574823c9b4
5
5
  SHA512:
6
- metadata.gz: 76592d61eee87bb506abd24bdc4e7230b340e98c359ff9a87ab95f8765c41e3f71351e171724bc8c1aabb0409af1738a90ccd891ad73b3e4108a608c227a946f
7
- data.tar.gz: e555d771b8d7c7fcd510dc6c48cac1e7a2bbce9fd6410b39a31918daa00ac0ebaa2f484f86bc9e8c989d5096873bc63eb4b32e37a89c2acf29bfd01a38db90ec
6
+ metadata.gz: 5f660f2d47ccd84f54f710f2706a5bfff738930d9a6f2e2bdd808c37b63a4f76ab4a83839d5dcf4ce90fbe62f2d66901f141f7c9e93c60e57de45ff6cdb12b4d
7
+ data.tar.gz: a213be4d902bfc3324a6e39e7452a5181deb5893e6c7ef3c93ce67035f4a8c1bde39e7680385cc26fd6f64faf20f19be3963ef94de4804a021e85251e9acc4d2
data/UPGRADE.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.2.4
2
+
3
+ * assigning data will force to_table if possible
4
+ * QUGC-38 Dataset#column_names should be read before data
5
+ * permit setting frequency in quandl format
6
+
1
7
  ## 0.2.3
2
8
 
3
9
  * QUGC-35 Pure Meta Data Send or Update
@@ -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!
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Format
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -57,6 +57,7 @@ description: |-
57
57
  This is the second line.
58
58
  private: false
59
59
  reference_url: http://test.com/
60
+ frequency:
60
61
  -
61
62
  Date,Value,High,Low
62
63
  2013-11-20,9.99,11.0,14.0
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.3
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-23 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake