holistics-cli 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 763f03645d0cb884b8ed479c3da2780552671e24
4
- data.tar.gz: be1f71741967b9c431afaec34575f2296c464236
3
+ metadata.gz: e966bec28c4f840bb5019eb318e94f1fd2b9de47
4
+ data.tar.gz: 7ebde3a6dd1b4017021b24bf46b49dbf03719c60
5
5
  SHA512:
6
- metadata.gz: bc2eaea5ddcfeb4aebee7d05ca9d558ee847bddcf87ef005c94e97eb14c5438fb7c1a1e942750dbdcf7ea2a2bbe1ea8a7d1a664ec1f6e2514a287be4858f3c0a
7
- data.tar.gz: 7d270cd11e0be8ce7ea3eace4e0d6615a96859c6ef523aaa31a60e26d0633e5b9e580297d4b47a6c3b0dea191dd2d393af463e7bc740eb11ebce06ca7eb84960
6
+ metadata.gz: 468faf594b0c92bac0d457fc8bad9f46685b4a4b60a6f2eecbdf5ec0a4f9c0d35311b87f6135cc626952df4013a87f0e1d940a3b302d8d19df05f794698647ab
7
+ data.tar.gz: bf9b4f97db93ce19be1c24cbf3b6a26d29a16c2c269dbb33f466bc3a8e63974ebe1d10e083a71de009156fe1bbbee65c50bac321e13b85883b1bbd5e13b85833
@@ -1,3 +1,6 @@
1
+ ## 0.2.1, release 2017-10-04
2
+ * Bug fix: error caused by API return NULL created_at
3
+
1
4
  ## 0.2.0, release 2017-09-29
2
5
  * Bug fix: unable to config token
3
6
 
@@ -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: item['last_run'] ? DateTime.parse(item['last_run']).to_formatted_s(:short): nil,
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
@@ -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,
@@ -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: item['last_run'] ? DateTime.parse(item['last_run']).to_formatted_s(:short) : nil
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
  )
@@ -1,3 +1,3 @@
1
1
  module Holistics
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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-09-29 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler