quandl_cassandra_models 0.3.13 → 0.3.14

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: 4259f1381c30f2b0931bd4972551d33c70286c71
4
- data.tar.gz: 6bb2d31d9a58d24f89ee3379185e2c0af713d420
3
+ metadata.gz: 51439e5e3e5f54c5142f6b5c4281f70129dccc28
4
+ data.tar.gz: 0df7649da079098c40a71ac4db20a31d01b6612a
5
5
  SHA512:
6
- metadata.gz: f789664acaf5f8afae282a7fcc42147735af37bedcb1661b2aa76f6c13081393d2cdbd441a9b76deb3ab5f65485a44a956877df03bd9e3cd25b50caa5b020cb6
7
- data.tar.gz: 773b3492342adc6372329848736fbfb0c376b7724407416ebbf64e20ba02d814e23fde5592c1f9681fcc304282de3e6ff0f2360a2a79c0e9580262e74d7c602a
6
+ metadata.gz: 93106a327073d01dbc07086e77478652d4a3dfc2682e95a11f14e385ae24b1cba5c995a7e2f6a78ff81b8e4fcc4c649d0842722a328024367673ff44151b59f5
7
+ data.tar.gz: c068f8107cb76b610494be61873d1295b31d998444bddc5c536354effd544bf4b3843259d5951e00a0e11764834fbdd6e16382f96cc0194785ccbaf90d83a62c
data/UPGRADE.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.14
2
+
3
+ * fix date parsing for delete rows
4
+
5
+
1
6
  ## 0.3.13
2
7
 
3
8
  * dataset.data.delete_rows_by_time(*times) passes
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Quandl
2
2
  module Cassandra
3
3
  module Models
4
- VERSION = '0.3.13'
4
+ VERSION = '0.3.14'
5
5
  end
6
6
  end
7
7
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quandl_cassandra_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Hilscher