harvest-ruby-v2 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: 11eefb4a95c2afe45777912d11df1af797579b171d93b5a1c6398b75749cd28a
4
- data.tar.gz: 6943ae64910c643dc5ef55da6507271d0c5e8899a993d88556fce8de67b135ec
3
+ metadata.gz: d5ed655f022d6e69111845443dfe35b98532367865787c1e58300b0910d9625c
4
+ data.tar.gz: 3ed5a264fc80566e21eb2942148ed16a91adbec338315a0923b842867814c55c
5
5
  SHA512:
6
- metadata.gz: 5d8fec631281d689903d475cc9c45d02e264c69906a86f6b42d23603031a879785f768d6a2e4e1df0fedac5a5b49e1a50d3dd0a3e72697a4a856657b9d39b166
7
- data.tar.gz: 26a5b2067684d9e3b7bf93ce0439417d3c8415d1a5e4b17813d98fecde178c66fa55810a1d346e9b4a95c82b3c0dcf50cfea21c7394bac62879e73e9368f0856
6
+ metadata.gz: 71d7d18d7f7b91e887f3fb694c2cc60636b10dd607f2a2bd4b44e75e20e74fcc6dbe55d4d52f062993692fd8bbebba91b51e099fc0eb4515fa3e49cb81949aae
7
+ data.tar.gz: 3f3af9a5c64d7a0c92b532968c9a66254048b01cde403dc33bf8bfc054f228b7a335c1aec1051ad01fb0dd68552d5ead215dd45f26e2f41da308fd9b6e38b7e7
@@ -208,11 +208,16 @@ module Harvest
208
208
  end
209
209
 
210
210
  def convert_dates(data)
211
- %i[created_at updated_at sent_at accepted_at declined_at spent_date].each do |key|
211
+ %i[created_at updated_at sent_at accepted_at declined_at].each do |key|
212
212
  if data.members.include?(key) && !data.method(key).call.nil?
213
213
  data.method("#{key}=").call(DateTime.strptime(data.method(key).call))
214
214
  end
215
215
  end
216
+ %i[spent_date].each do |key|
217
+ if data.members.include?(key) && !data.method(key).call.nil?
218
+ data.method("#{key}=").call(Date.strptime(data.method(key).call))
219
+ end
220
+ end
216
221
  data
217
222
  end
218
223
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Harvest
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvest-ruby-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Davis