tabulatr2 0.9.17 → 0.9.18

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: 28a75cdd6eebb48110ace894527bd211edb4bec0
4
- data.tar.gz: 6d553772fe2733c6e6f129ce5f05296d0fbeb520
3
+ metadata.gz: 6473367916ab2e6e08fa0c12d6ad52c8a4d46133
4
+ data.tar.gz: b07f60664c8256ed0f407a14488ebb3169cc549e
5
5
  SHA512:
6
- metadata.gz: 677da86fdeedcbab796ba3904e5e27e34d881ac3f8b38d954b49143dc7635c513af0a4186eb3f4f45757466b21b1c3cf1d7ecad690d54e4ecb445a4ada400101
7
- data.tar.gz: a14ec3f70fe10b9ea241f8c608d78b39dbb7f89b57e3386a77a979c1ad13e11acfe6a7485d221b591dc65567432c5e26e0054ed5d31b25e62b3dedc924c1aec3
6
+ metadata.gz: 524a2b9d439a6a6ac6d86fe332ddd02ca84eef9d52ef4f39f326ec61019b4d804560c0cd62475107e58f2c61f1041f5410dfd733af25d96e63c1da9913fbb85c
7
+ data.tar.gz: 6564584c80a000705359a4f8cbdcdfdcbe0a2137fe79fc6af97ec706755d5d716c716f9a930611e8a7a3872ff02257f8e778605d68f82b233ff39693a650e82c
@@ -107,8 +107,8 @@ module Tabulatr::Data::Filtering
107
107
  since = (today - 29.day).beginning_of_day
108
108
  to = today.at_end_of_day
109
109
  when 'from_to'
110
- since = Date.parse(cond[:from]) if cond[:from].present?
111
- to = Date.parse(cond[:to]) if cond[:to].present?
110
+ since = (Date.parse(cond[:from]) rescue nil) if cond[:from].present?
111
+ to = (Date.parse(cond[:to]) rescue nil) if cond[:to].present?
112
112
  end
113
113
  @relation = @relation.where("#{n.filter_sql} >= ?", since) if since.present?
114
114
  @relation = @relation.where("#{n.filter_sql} <= ?", to) if to.present?
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.17"
25
+ VERSION = "0.9.18"
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.17
4
+ version: 0.9.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn