idcfcloud 1.1.6 → 1.1.7

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
  SHA256:
3
- metadata.gz: 8e2a5f8028136a7924674f9870bfbbffafe720828f8bb7d4cc31e6e9ccdc6e06
4
- data.tar.gz: 69bab4aee28bb7dce8c41180b8164c056613a950efdcdcfa5cf15e00e4d498fc
3
+ metadata.gz: '07987aa4fc031d644c8b54e09ffd12c1d77e0ffb8620e35f3fbfdb907773c534'
4
+ data.tar.gz: ea31ccf324f5117e27b367af76a12bfb82bcb9387ed7e9b2b1ab73050d1c829a
5
5
  SHA512:
6
- metadata.gz: 3b03b02f24bbff6be96baaff139e3badb9d93b17b4934042570e500e6c9400f326c2e27eebe54f41012224492e000634cc186b19becc7ec7b25a65eb722ba40f
7
- data.tar.gz: 79e89d8ea404f30a630fb82452580108ae2b8f4c4a8ab953d7fba96b8ad70cb555a7b0d28523c723a21757e4a6d6135ead0e20c401ac4376fce5dccd9b074fde
6
+ metadata.gz: 35296b91a7a22076556706a583b3e2fd97be1833620569e2e9b80259f1ef2387e7a299b68adfbdd2271031c7ba6e5a51ca86834d42ac8e4ac11619e0a829138f
7
+ data.tar.gz: 2a9481c9c52f7781c8f115b4d77a6b225149f15455882b8a099e39cc08faf412fec72383cb6ab992d103cf61fc51e0046a3bb0ccf94fe8d4d5a03ca1441e8eab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.7
4
+
5
+ * Change some output logic
6
+
3
7
  ## 1.1.6
4
8
 
5
9
  * Change for ruby 3.0 format
@@ -18,6 +18,10 @@ module Idcf
18
18
  def make_table_data(data)
19
19
  data['data']
20
20
  end
21
+
22
+ def make_field_data(data)
23
+ make_table_data(data)
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -60,7 +60,6 @@ module Idcf
60
60
  end
61
61
 
62
62
  return nil if no_targets.empty?
63
- cli_error(format(MSG_NO_TARGETS, field: no_targets.join(',')))
64
63
  end
65
64
  end
66
65
  end
@@ -25,20 +25,18 @@ module Idcf
25
25
  return [] if list.size.zero?
26
26
 
27
27
  result = []
28
- headers = make_header(list.first)
28
+ headers = make_header(list)
29
29
  result << headers
30
30
  push_list(list, headers, result)
31
31
  end
32
32
 
33
- def make_header(first_list)
34
- result = []
35
- if first_list.class == Hash
36
- first_list.each_key do |k|
37
- result << k
38
- end
39
- else
40
- result = [*(0..(first_list.size - 1))]
41
- end
33
+ def make_header(list)
34
+ first_list = list.first
35
+ result = if first_list.class == Hash
36
+ list.map(&:keys).flatten.uniq
37
+ else
38
+ [*(0..(first_list.size - 1))]
39
+ end
42
40
  result
43
41
  end
44
42
 
@@ -1,5 +1,5 @@
1
1
  module Idcf
2
2
  module Cli
3
- VERSION = '1.1.6'.freeze
3
+ VERSION = '1.1.7'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcfcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - IDC Frontier Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-22 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -360,7 +360,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
360
  version: '0'
361
361
  requirements: []
362
362
  rubygems_version: 3.1.6
363
- signing_key:
363
+ signing_key:
364
364
  specification_version: 4
365
365
  summary: IDCF Cli tools
366
366
  test_files: []