move-to-go 5.3.0 → 5.4.0

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: 7e471b1e49a7396fbbf7b5a36070e60759c580dd
4
- data.tar.gz: ac925c84c894b5f8da1177e0dfc012b60ba15111
3
+ metadata.gz: 640e9e5f0ff6b750dd2e5227bd019a7f6442908d
4
+ data.tar.gz: b0854e36a9d9f7b9df7a906b76521ee5cbc3f3b7
5
5
  SHA512:
6
- metadata.gz: c7bdc7e863824e2051d5a0296393871f0ad71c9195d1830cbcdee835ebf4cc741520314243c9ce4d5e013d291418a6b3f34d743657cf89726ecaabd99233c848
7
- data.tar.gz: 83695922bc5f8693ded99a030d31c7795523ded2b7a8410da2aa7b76155859adeb95d16a1c31c903752a05aa2f1fc72ec47091ca2a368f21458d2e95fdd3fb56
6
+ metadata.gz: ff7f761ee4b854833bb3261b4b98754955854fc700e61a7b7154a26476cdc40c72f2d72743cedea5b4e419fd4b493355166be5d7b8ae25e874c4bde1afca9ed5
7
+ data.tar.gz: 05b55971a702ba6343a75176aa4b6f8a1ae2af4496914654b7c40a5220a5f049eafec00ce36e3f55338b12a4d17262c29b45bd6b70e6a52490f495a90dff3876
@@ -126,7 +126,7 @@ module MoveToGo
126
126
  begin
127
127
  @date_start = DateTime.parse(datetime)
128
128
  rescue
129
- puts "\nParsed datetime '#{datetime}' but got error"
129
+ puts "\nParsed datetime '#{datetime}' for date_start but got error"
130
130
  raise
131
131
  end
132
132
  end
@@ -136,7 +136,17 @@ module MoveToGo
136
136
  end
137
137
 
138
138
  def date_checked=(datetime)
139
- @date_checked = DateTime.parse(datetime) if datetime != ""
139
+ if datetime.is_a?(DateTime)
140
+ @date_checked = datetime
141
+ return
142
+ end
143
+
144
+ begin
145
+ @date_checked = DateTime.parse(datetime) if datetime != ""
146
+ rescue
147
+ puts "\nParsed datetime '#{datetime}' for date_checked but got error"
148
+ raise
149
+ end
140
150
  end
141
151
 
142
152
  def validate
@@ -265,7 +265,7 @@ def to_organization_todo(converter, row, rootmodel)
265
265
  todo.date_start_has_time = false
266
266
  end
267
267
 
268
- todo.date_checked = DateTime.now if row['Done'] == 1
268
+ todo.date_checked = DateTime.now if row['Done'] == "1"
269
269
  todo.text = row['Description']
270
270
 
271
271
  return todo.text.empty? ? nil : todo
@@ -406,7 +406,7 @@ def to_deal_todo(converter, row, rootmodel)
406
406
  todo.date_start_has_time = false
407
407
  end
408
408
 
409
- todo.date_checked = DateTime.now if row['Done'] == 1
409
+ todo.date_checked = DateTime.now if row['Done'] == "1"
410
410
  todo.text = row['Description']
411
411
 
412
412
  return todo.text.empty? ? nil : todo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: move-to-go
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petter Sandholdt
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-09-25 00:00:00.000000000 Z
17
+ date: 2020-02-07 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: iso_country_codes