holistics-cli 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/holistics/imports.rb +2 -2
- data/lib/holistics/jobs.rb +1 -1
- data/lib/holistics/transforms.rb +2 -2
- data/lib/holistics/version.rb +1 -1
- 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: e966bec28c4f840bb5019eb318e94f1fd2b9de47
|
4
|
+
data.tar.gz: 7ebde3a6dd1b4017021b24bf46b49dbf03719c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 468faf594b0c92bac0d457fc8bad9f46685b4a4b60a6f2eecbdf5ec0a4f9c0d35311b87f6135cc626952df4013a87f0e1d940a3b302d8d19df05f794698647ab
|
7
|
+
data.tar.gz: bf9b4f97db93ce19be1c24cbf3b6a26d29a16c2c269dbb33f466bc3a8e63974ebe1d10e083a71de009156fe1bbbee65c50bac321e13b85883b1bbd5e13b85833
|
data/CHANGELOG.md
CHANGED
data/lib/holistics/imports.rb
CHANGED
@@ -43,8 +43,8 @@ Examples:
|
|
43
43
|
owner: item['owner_name'],
|
44
44
|
source: source,
|
45
45
|
destination: destination,
|
46
|
-
created_at: DateTime.parse(item['created_at']).to_formatted_s(:short),
|
47
|
-
last_run:
|
46
|
+
created_at: item['created_at'] ? DateTime.parse(item['created_at']).to_formatted_s(:short) : nil,
|
47
|
+
last_run: item['last_run'] ? DateTime.parse(item['last_run']).to_formatted_s(:short) : nil,
|
48
48
|
last_run_status: last_run_status
|
49
49
|
}
|
50
50
|
end
|
data/lib/holistics/jobs.rb
CHANGED
@@ -23,7 +23,7 @@ Examples:
|
|
23
23
|
id: item['id'],
|
24
24
|
source_method: item['source_method'],
|
25
25
|
title: item['title'],
|
26
|
-
created_at: DateTime.parse(item['created_at']).to_formatted_s(:short),
|
26
|
+
created_at: item['created_at'] ? DateTime.parse(item['created_at']).to_formatted_s(:short) : nil,
|
27
27
|
source_type: item['source_type'],
|
28
28
|
source_id: item['source_id'],
|
29
29
|
# start_time: item['start_time'] ? DateTime.parse(item['start_time']).to_formatted_s(:short) : nil,
|
data/lib/holistics/transforms.rb
CHANGED
@@ -20,8 +20,8 @@ Examples:
|
|
20
20
|
@this.all.map do |item|
|
21
21
|
item.slice(*%w{id title owner_name}).merge({
|
22
22
|
mode: item['settings']['mode'],
|
23
|
-
created_at: DateTime.parse(item['created_at']).to_formatted_s(:short),
|
24
|
-
last_run:
|
23
|
+
created_at: item['created_at'] ? DateTime.parse(item['created_at']).to_formatted_s(:short) : nil,
|
24
|
+
last_run: item['last_run'] ? DateTime.parse(item['last_run']).to_formatted_s(:short) : nil
|
25
25
|
})
|
26
26
|
end
|
27
27
|
)
|
data/lib/holistics/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holistics-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thanh Pham Minh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|