has_safe_dates 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: 195d8193d691b1db2ec7e1225078bff421e67791ebcd3cc5e1f0c1fe1624190e
4
- data.tar.gz: c32c3bb5dd25ca84ee3d3ee3f8ed8a52deea8ce1d54ee51fdedf79d79c953e7f
3
+ metadata.gz: 7770c8dd264f2c352622e52e9af0234fda67a52610d316a0459811b7ae887ec6
4
+ data.tar.gz: 103eeda57059744da1734a4be4b8a2bb71c61e97031469daa14349667863eda0
5
5
  SHA512:
6
- metadata.gz: 9c04b378bd6c3396db1448244d418acb02c67766b4442ff00e2edd1892f8a586500cc0a09e8ca75b63feeae70dc0ffa3773684947081f6207112b353fba6c7aa
7
- data.tar.gz: d8086a3e2a9989d5629f1477eaec546abca7894b6ee42cdf466001ba49ea8b76307b7df337bb14ebdf056673196cf6db1c5cdcda603a58f1db82592cf26596cc
6
+ metadata.gz: f7264590c28890f0e557fefc55568a9a06ece4c9f1f008e3928cab3456c27309ad87077579850d64b4833c75656213faa021b04148016f6f384cdd911e46e372
7
+ data.tar.gz: 0725c7265e70a8f741db5e7f073c49d5cec50ec8f8f28858ee16ea19ca33d9bb23a211c7adabff48e02f01b2ba59af103766a3e9f62c75cf6156b42ec33da78a
@@ -61,7 +61,7 @@ module HasSafeDates
61
61
  callstack.each do |name, values_with_empty_parameters|
62
62
  if ActiveRecord::Base.has_safe_fields_config[self.class.base_class][:fields].include?(name)
63
63
  date = values_with_empty_parameters.values_at(1, 2, 3).join("-")
64
- time = values_with_empty_parameters.values_at(4, 5).join(":")
64
+ time = values_with_empty_parameters.values_at(4, 5).compact.join(":")
65
65
  datetime_string = "#{date}#{time.blank? ? "" : " #{time}"}"
66
66
 
67
67
  # Convert multiparameter parts into a Date string, e.g. "2011-4-23",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HasSafeDates
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_safe_dates
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kylejginavan