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 +4 -4
- data/lib/move-to-go/model/todo.rb +12 -2
- data/sources/lime-easy/.move-to-go/runner.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640e9e5f0ff6b750dd2e5227bd019a7f6442908d
|
4
|
+
data.tar.gz: b0854e36a9d9f7b9df7a906b76521ee5cbc3f3b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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:
|
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
|