quandl_cassandra_models 0.3.13 → 0.3.14
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51439e5e3e5f54c5142f6b5c4281f70129dccc28
|
4
|
+
data.tar.gz: 0df7649da079098c40a71ac4db20a31d01b6612a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93106a327073d01dbc07086e77478652d4a3dfc2682e95a11f14e385ae24b1cba5c995a7e2f6a78ff81b8e4fcc4c649d0842722a328024367673ff44151b59f5
|
7
|
+
data.tar.gz: c068f8107cb76b610494be61873d1295b31d998444bddc5c536354effd544bf4b3843259d5951e00a0e11764834fbdd6e16382f96cc0194785ccbaf90d83a62c
|
data/UPGRADE.md
CHANGED
@@ -65,7 +65,10 @@ module Quandl::Cassandra::Models::Data::Search
|
|
65
65
|
|
66
66
|
def delete_rows_by_time(*times)
|
67
67
|
times = Array(times).flatten
|
68
|
+
# parse dates
|
69
|
+
times = times.collect{|time| parse_date(time) }.compact
|
68
70
|
# dataset_column_ids are required
|
71
|
+
return false if times.blank?
|
69
72
|
return false unless dataset_column_ids
|
70
73
|
statement_values = []
|
71
74
|
# for each column_id
|
@@ -125,7 +128,7 @@ module Quandl::Cassandra::Models::Data::Search
|
|
125
128
|
end
|
126
129
|
|
127
130
|
private
|
128
|
-
|
131
|
+
|
129
132
|
def regenerate_collapses_from_source
|
130
133
|
# delete collapse data
|
131
134
|
delete_collapses
|
@@ -31,7 +31,7 @@ describe Quandl::Cassandra::Models::Data::Search do
|
|
31
31
|
|
32
32
|
let(:dates){ dataset.data.scoped.to_table.to_h.keys }
|
33
33
|
|
34
|
-
let(:times){ [ dates[1], dates[5], dates[7], dates[10] ] }
|
34
|
+
let(:times){ [ dates[1], dates[5], dates[7], Date.jd(dates[10]).to_s ] }
|
35
35
|
|
36
36
|
before(:each){ dataset.data.delete_rows_by_time(times) }
|
37
37
|
|