quandl_cassinatra 0.1.16 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/UPGRADE.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.0
2
+
3
+ * add support column Dataset#columns, #column_names, #column_units
4
+
5
+
1
6
  ## 0.1.16
2
7
 
3
8
  * parse_json responds with more informative error
@@ -9,10 +9,18 @@ class Dataset
9
9
  include Concerns::Properties
10
10
  include Searchable
11
11
 
12
- attributes :id, :column_ids, :data, :trim_start, :trim_end
12
+ attributes :id, :column_ids, :data, :trim_start, :trim_end, :columns
13
13
 
14
14
  delegate :columns_count, :created_at, :frequency, :rows_count, :type, :updated_at, to: :dataset_attribute
15
-
15
+
16
+ def column_units
17
+ @column_units ||= columns.collect{|c| c['units'] }
18
+ end
19
+
20
+ def column_names
21
+ @column_names ||= columns.collect{|c| c['name'] }
22
+ end
23
+
16
24
  def data_table
17
25
  @data_table ||= Data::Table.new( self.data || [] )
18
26
  end
@@ -1,5 +1,5 @@
1
1
  module Quandl
2
2
  module Cassinatra
3
- VERSION = '0.1.16'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_cassinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-05 00:00:00.000000000 Z
12
+ date: 2013-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake