eco-helpers 2.5.10 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/CHANGELOG.md +64 -4
  4. data/eco-helpers.gemspec +20 -16
  5. data/lib/eco/api/common/loaders/base.rb +2 -9
  6. data/lib/eco/api/common/loaders/use_case.rb +27 -1
  7. data/lib/eco/api/common/people/default_parsers.rb +2 -2
  8. data/lib/eco/api/common/people/person_entry.rb +3 -0
  9. data/lib/eco/api/common/people/person_entry_attribute_mapper.rb +111 -16
  10. data/lib/eco/api/common/session/base_session.rb +4 -0
  11. data/lib/eco/api/common/session/environment.rb +4 -0
  12. data/lib/eco/api/common/session/sftp.rb +1 -1
  13. data/lib/eco/api/organization/tag_tree.rb +20 -23
  14. data/lib/eco/api/session/batch/job.rb +4 -4
  15. data/lib/eco/api/session/batch/jobs.rb +2 -2
  16. data/lib/eco/api/session/batch/jobs_groups.rb +2 -2
  17. data/lib/eco/api/session/config/files.rb +2 -2
  18. data/lib/eco/api/session/config/people.rb +2 -2
  19. data/lib/eco/api/session/config/sftp.rb +4 -0
  20. data/lib/eco/api/session/config/tagtree.rb +9 -8
  21. data/lib/eco/api/session/config/workflow.rb +3 -2
  22. data/lib/eco/api/session/config.rb +7 -0
  23. data/lib/eco/api/session.rb +17 -2
  24. data/lib/eco/api/usecases/cli/dsl.rb +84 -0
  25. data/lib/eco/api/usecases/cli/option.rb +19 -0
  26. data/lib/eco/api/usecases/cli.rb +13 -0
  27. data/lib/eco/api/usecases/default/locations/cli/tagtree_extract_cli.rb +24 -0
  28. data/lib/eco/api/usecases/{default_cases → default/locations}/codes_to_tags_case.rb +1 -1
  29. data/lib/eco/api/usecases/{default_cases → default/locations}/create_tag_paths_case.rb +1 -1
  30. data/lib/eco/api/usecases/{default_cases → default/locations}/csv_to_tree_case.rb +1 -1
  31. data/lib/eco/api/usecases/default/locations/tagtree_extract_case.rb +173 -0
  32. data/lib/eco/api/usecases/default/locations.rb +15 -0
  33. data/lib/eco/api/usecases/{default_cases → default/people}/analyse_people_case.rb +1 -1
  34. data/lib/eco/api/usecases/{default_cases → default/people}/change_email_case.rb +1 -1
  35. data/lib/eco/api/usecases/default/people/clean_unknown_tags_case.rb +66 -0
  36. data/lib/eco/api/usecases/{default_cases → default/people}/clear_abilities_case.rb +1 -1
  37. data/lib/eco/api/usecases/{default_cases → default/people}/org_data_convert_case.rb +1 -1
  38. data/lib/eco/api/usecases/{default_cases → default/people}/refresh_case.rb +1 -1
  39. data/lib/eco/api/usecases/{default_cases → default/people}/reinvite_sync_case.rb +1 -1
  40. data/lib/eco/api/usecases/{default_cases → default/people}/reinvite_trans_case.rb +1 -1
  41. data/lib/eco/api/usecases/default/people/reinvite_trans_cli.rb +5 -0
  42. data/lib/eco/api/usecases/{default_cases → default/people}/restore_db_case.rb +1 -1
  43. data/lib/eco/api/usecases/{default_cases → default/people}/set_default_tag_case.rb +1 -1
  44. data/lib/eco/api/usecases/{default_cases → default/people}/supers_cyclic_identify_case.rb +1 -1
  45. data/lib/eco/api/usecases/{default_cases → default/people}/supers_hierarchy_case.rb +1 -1
  46. data/lib/eco/api/usecases/{default_cases → default/people}/switch_supervisor_case.rb +1 -1
  47. data/lib/eco/api/usecases/{default_cases → default/people}/transfer_account_case.rb +1 -1
  48. data/lib/eco/api/usecases/default/people.rb +25 -0
  49. data/lib/eco/api/usecases/default.rb +16 -0
  50. data/lib/eco/api/usecases/default_cases/samples/cli/sftp_cli.rb +46 -0
  51. data/lib/eco/api/usecases/default_cases/samples/sftp_case.rb +21 -9
  52. data/lib/eco/api/usecases/default_cases.rb +2 -30
  53. data/lib/eco/api/usecases/graphql/utils/sftp.rb +1 -1
  54. data/lib/eco/api/usecases/use_case.rb +21 -7
  55. data/lib/eco/api/usecases/use_case_chain.rb +2 -2
  56. data/lib/eco/api/usecases.rb +4 -1
  57. data/lib/eco/assets.rb +1 -3
  58. data/lib/eco/cli/config/filters/people_filters.rb +0 -1
  59. data/lib/eco/cli/config/filters.rb +2 -6
  60. data/lib/eco/cli/config/help.rb +0 -1
  61. data/lib/eco/cli/config/input.rb +0 -1
  62. data/lib/eco/cli/config/options_set.rb +3 -4
  63. data/lib/eco/cli/config/use_cases.rb +13 -6
  64. data/lib/eco/cli/config.rb +4 -5
  65. data/lib/eco/cli/scripting/args_helpers.rb +1 -1
  66. data/lib/eco/cli/scripting/argument.rb +0 -1
  67. data/lib/eco/cli/scripting/arguments.rb +0 -2
  68. data/lib/eco/cli.rb +0 -1
  69. data/lib/eco/{cli/config/default → cli_default}/input_filters.rb +0 -1
  70. data/lib/eco/{cli/config/default → cli_default}/people_filters.rb +0 -1
  71. data/lib/eco/{cli/config/default → cli_default}/usecases.rb +2 -52
  72. data/lib/eco/{cli/config/default → cli_default}/workflow.rb +3 -2
  73. data/lib/eco/cli_default.rb +13 -0
  74. data/lib/eco/csv/table.rb +0 -1
  75. data/lib/eco/data/files/encoding.rb +1 -1
  76. data/lib/eco/data/files/helpers.rb +1 -1
  77. data/lib/eco/data/locations/convert.rb +8 -4
  78. data/lib/eco/data/locations/node_base/csv_convert.rb +4 -4
  79. data/lib/eco/data/mapper.rb +6 -1
  80. data/lib/eco/version.rb +1 -1
  81. metadata +156 -79
  82. data/lib/eco/api/usecases/default_cases/abstract_policygroup_abilities_case.rb +0 -160
  83. data/lib/eco/api/usecases/default_cases/append_usergroups_case.rb +0 -14
  84. data/lib/eco/api/usecases/default_cases/clean_unknown_tags_case.rb +0 -74
  85. data/lib/eco/api/usecases/default_cases/create_details_case.rb +0 -20
  86. data/lib/eco/api/usecases/default_cases/create_details_with_supervisor_case.rb +0 -21
  87. data/lib/eco/api/usecases/default_cases/email_as_id_case.rb +0 -12
  88. data/lib/eco/api/usecases/default_cases/new_email_case.rb +0 -13
  89. data/lib/eco/api/usecases/default_cases/new_id_case.rb +0 -12
  90. data/lib/eco/api/usecases/default_cases/remove_account_sync_case.rb +0 -10
  91. data/lib/eco/api/usecases/default_cases/remove_account_trans_case.rb +0 -16
  92. data/lib/eco/api/usecases/default_cases/reset_landing_page_case.rb +0 -18
  93. data/lib/eco/api/usecases/default_cases/set_supervisor_case.rb +0 -16
  94. data/lib/eco/api/usecases/default_cases/tagtree_case.rb +0 -42
  95. data/lib/eco/api/usecases/default_cases/update_details_case.rb +0 -15
  96. data/lib/eco/cli/config/default.rb +0 -16
  97. /data/lib/eco/{cli/config/default → cli_default}/input.rb +0 -0
  98. /data/lib/eco/{cli/config/default → cli_default}/options.rb +0 -0
  99. /data/lib/eco/{cli/config/default → cli_default}/people.rb +0 -0
@@ -0,0 +1,13 @@
1
+ # Invoked / required when dependencies have been already loaded (i.e. Eco::API, Eco:Assets, Eco::Cli)
2
+ module Eco
3
+ module CliDefault
4
+ end
5
+ end
6
+
7
+ require_relative 'cli_default/options'
8
+ require_relative 'cli_default/input'
9
+ require_relative 'cli_default/input_filters'
10
+ require_relative 'cli_default/people'
11
+ require_relative 'cli_default/people_filters'
12
+ require_relative 'cli_default/usecases'
13
+ require_relative 'cli_default/workflow'
data/lib/eco/csv/table.rb CHANGED
@@ -142,7 +142,6 @@ module Eco
142
142
  end
143
143
 
144
144
  # @note by default it adds as a first column
145
-
146
145
  # @param header_name [String] header of the new column
147
146
  # @param pos [Integer] index where to add the column (i.e. `-1` for last)
148
147
  # @return [Eco::CSV::Table] with a new column named `name` with the row number
@@ -62,7 +62,7 @@ module Eco
62
62
 
63
63
  def file_exists?(file)
64
64
  return false if !file
65
- return File.exists?(file) || File.exists?(File.expand_path(file))
65
+ return File.exist?(file) || File.exist?(File.expand_path(file))
66
66
  end
67
67
 
68
68
  def file_empty?(path)
@@ -68,7 +68,7 @@ module Eco
68
68
 
69
69
  def file_exists?(file)
70
70
  return false if !file
71
- return File.exists?(file) || File.exists?(File.expand_path(file))
71
+ return File.exist?(file) || File.exist?(File.expand_path(file))
72
72
  end
73
73
 
74
74
  def dir_exists?(path)
@@ -8,7 +8,7 @@ module Eco::Data::Locations
8
8
  # @return [Eco::CSV::Table]
9
9
  def csv_from(filename, encoding: 'utf-8')
10
10
  raise ArgumentError, "Expecting String filename. Given: #{filename.class}" unless filename.is_a?(String)
11
- raise "Missing #{filename}" unless File.exists?(filename)
11
+ raise "Missing #{filename}" unless File.exist?(filename)
12
12
  Eco::CSV.read(filename, encoding: encoding)
13
13
  rescue CSV::MalformedCSVError => e
14
14
  if match = e.message.match(/line (?<line>\d+)/i)
@@ -21,11 +21,14 @@ module Eco::Data::Locations
21
21
  # @note The steps of usage would be:
22
22
  # 1. First **treeify** your input (i.e. `Eco::API::Organization::TagTree#as_json`,
23
23
  # or `treeify(nodes)`
24
+ # @yield [str_node, node] block for custom output node name
25
+ # @yiledreturn [String] the node name
24
26
  # @param hash_nodes [Array<Hash>] a hierarchical tree of Hash nodes, nested via `nodes`
25
27
  # @return [CSV::Table] ready to be made a hierarchical csv tree (i.e. out.to_csv)
26
- def hash_tree_to_tree_csv(hash_nodes, out: [], done_ids: [], repeated_ids: [], level: 0)
28
+ def hash_tree_to_tree_csv(hash_nodes, out: [], done_ids: [], repeated_ids: [], level: 0, attrs: [:id])
27
29
  lev = level + 1
28
30
  base = empty_array(level)
31
+ sattrs = attrs.map(&:to_s)
29
32
 
30
33
  hash_nodes.each_with_object(out) do |node, out|
31
34
  if done_ids.include?(id = node["id"])
@@ -33,8 +36,9 @@ module Eco::Data::Locations
33
36
  else
34
37
  has_offspring = (children = node["nodes"]) && !children.empty?
35
38
  done_ids << id
36
- out << (base.dup << node["id"])
37
- hash_tree_to_tree_csv(node["nodes"], out: out, done_ids: done_ids, repeated_ids: repeated_ids, level: lev)
39
+ str_node = node.values_at(*sattrs).join(" ## ")
40
+ out << (base.dup << str_node)
41
+ hash_tree_to_tree_csv(node["nodes"], out: out, done_ids: done_ids, repeated_ids: repeated_ids, level: lev, attrs: attrs)
38
42
  end
39
43
  end.tap do |out|
40
44
  if level == 0
@@ -23,7 +23,7 @@ module Eco::Data::Locations::NodeBase
23
23
  # ready to be parsed as an organization tagtree
24
24
  def hash_tree(value, &block)
25
25
  return hash_tree_from_csv(value, &block) if value.is_a?(::CSV::Table)
26
- return value.as_json if value.is_a?(tree_class)
26
+ return value.as_json(&block) if value.is_a?(tree_class)
27
27
  raise ArgumentError, "Expecting Eco::API::Organization::TagTree or CSV::Table. Given: #{value.class}"
28
28
  end
29
29
 
@@ -40,8 +40,8 @@ module Eco::Data::Locations::NodeBase
40
40
  # @yield [Node] optional custom serializer
41
41
  # @yieldreturn [Hash] the serialized Node
42
42
  # @return [CSV::Table] a table with L1 to Ln columns ready for dump to csv
43
- def csv_tree(value, encoding: 'utf-8', &block)
44
- Eco::CSV::Table.new(hash_tree_to_tree_csv(hash_tree(value, &block)))
43
+ def csv_tree(value, encoding: 'utf-8', attrs: [:id], &block)
44
+ Eco::CSV::Table.new(hash_tree_to_tree_csv(hash_tree(value, &block), attrs: attrs))
45
45
  end
46
46
 
47
47
  # @note it just converts to an organizational tagtree and uses a helper method.
@@ -51,7 +51,7 @@ module Eco::Data::Locations::NodeBase
51
51
  # @return [CSV::Table] a table with a list of nodes and their parents
52
52
  def csv_list(value, &block)
53
53
  value = org_tree(value, &block) unless value.is_a?(tree_class)
54
- Eco::CSV.Table.new(hash_list(value))
54
+ Eco::CSV::Table.new(hash_list(value))
55
55
  end
56
56
  end
57
57
  end
@@ -62,6 +62,12 @@ module Eco
62
62
  internal?(value) || external?(value)
63
63
  end
64
64
 
65
+ # Whether `value` maps to itself
66
+ def self_mapped?(value)
67
+ return false unless include?(value)
68
+ value == to_internal(value)
69
+ end
70
+
65
71
  def to_internal(value)
66
72
  return value if !@source
67
73
  @by_external[value]
@@ -71,7 +77,6 @@ module Eco
71
77
  return value if !@source
72
78
  @by_internal[value]
73
79
  end
74
-
75
80
  end
76
81
  end
77
82
  end
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.5.10"
2
+ VERSION = "2.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.10
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.8
19
+ version: 2.4.12
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.4.8
29
+ version: 2.4.12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 3.10.0
39
+ version: 3.12.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 3.10.0
49
+ version: 3.12.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4'
@@ -76,7 +76,7 @@ dependencies:
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 0.9.26
79
+ version: 0.9.34
80
80
  - - "<"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1'
@@ -86,7 +86,7 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 0.9.26
89
+ version: 0.9.34
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
92
  version: '1'
@@ -96,7 +96,7 @@ dependencies:
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 3.5.1
99
+ version: 3.6.0
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '4'
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 3.5.1
109
+ version: 3.6.0
110
110
  - - "<"
111
111
  - !ruby/object:Gem::Version
112
112
  version: '4'
@@ -116,7 +116,7 @@ dependencies:
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 0.9.5
119
+ version: 0.9.6
120
120
  - - "<"
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0.10'
@@ -126,7 +126,7 @@ dependencies:
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 0.9.5
129
+ version: 0.9.6
130
130
  - - "<"
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0.10'
@@ -136,7 +136,7 @@ dependencies:
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 1.1.3
139
+ version: 1.1.5
140
140
  - - "<"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '1.2'
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 1.1.3
149
+ version: 1.1.5
150
150
  - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.2'
@@ -156,7 +156,7 @@ dependencies:
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.3.11
159
+ version: 0.3.13
160
160
  - - "<"
161
161
  - !ruby/object:Gem::Version
162
162
  version: '0.4'
@@ -166,7 +166,7 @@ dependencies:
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- version: 0.3.11
169
+ version: 0.3.13
170
170
  - - "<"
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0.4'
@@ -176,7 +176,7 @@ dependencies:
176
176
  requirements:
177
177
  - - ">="
178
178
  - !ruby/object:Gem::Version
179
- version: 1.83.0
179
+ version: 1.142.0
180
180
  - - "<"
181
181
  - !ruby/object:Gem::Version
182
182
  version: '2'
@@ -186,7 +186,7 @@ dependencies:
186
186
  requirements:
187
187
  - - ">="
188
188
  - !ruby/object:Gem::Version
189
- version: 1.83.0
189
+ version: 1.142.0
190
190
  - - "<"
191
191
  - !ruby/object:Gem::Version
192
192
  version: '2'
@@ -196,7 +196,7 @@ dependencies:
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: 1.36.0
199
+ version: 1.58.0
200
200
  - - "<"
201
201
  - !ruby/object:Gem::Version
202
202
  version: '2'
@@ -206,7 +206,7 @@ dependencies:
206
206
  requirements:
207
207
  - - ">="
208
208
  - !ruby/object:Gem::Version
209
- version: 1.36.0
209
+ version: 1.58.0
210
210
  - - "<"
211
211
  - !ruby/object:Gem::Version
212
212
  version: '2'
@@ -216,7 +216,7 @@ dependencies:
216
216
  requirements:
217
217
  - - ">="
218
218
  - !ruby/object:Gem::Version
219
- version: 2.7.6
219
+ version: 2.8.1
220
220
  - - "<"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '3'
@@ -226,50 +226,70 @@ dependencies:
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: 2.7.6
229
+ version: 2.8.1
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
232
  version: '3'
233
+ - !ruby/object:Gem::Dependency
234
+ name: net-ssh
235
+ requirement: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: 7.2.1
240
+ - - "<"
241
+ - !ruby/object:Gem::Version
242
+ version: '8'
243
+ type: :runtime
244
+ prerelease: false
245
+ version_requirements: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: 7.2.1
250
+ - - "<"
251
+ - !ruby/object:Gem::Version
252
+ version: '8'
233
253
  - !ruby/object:Gem::Dependency
234
254
  name: net-sftp
235
255
  requirement: !ruby/object:Gem::Requirement
236
256
  requirements:
237
257
  - - ">="
238
258
  - !ruby/object:Gem::Version
239
- version: 3.0.0
259
+ version: 4.0.0
240
260
  - - "<"
241
261
  - !ruby/object:Gem::Version
242
- version: '4'
262
+ version: '5'
243
263
  type: :runtime
244
264
  prerelease: false
245
265
  version_requirements: !ruby/object:Gem::Requirement
246
266
  requirements:
247
267
  - - ">="
248
268
  - !ruby/object:Gem::Version
249
- version: 3.0.0
269
+ version: 4.0.0
250
270
  - - "<"
251
271
  - !ruby/object:Gem::Version
252
- version: '4'
272
+ version: '5'
253
273
  - !ruby/object:Gem::Dependency
254
274
  name: hashdiff
255
275
  requirement: !ruby/object:Gem::Requirement
256
276
  requirements:
257
277
  - - ">="
258
278
  - !ruby/object:Gem::Version
259
- version: 1.0.1
279
+ version: 1.1.0
260
280
  - - "<"
261
281
  - !ruby/object:Gem::Version
262
- version: '1.1'
282
+ version: '1.2'
263
283
  type: :runtime
264
284
  prerelease: false
265
285
  version_requirements: !ruby/object:Gem::Requirement
266
286
  requirements:
267
287
  - - ">="
268
288
  - !ruby/object:Gem::Version
269
- version: 1.0.1
289
+ version: 1.1.0
270
290
  - - "<"
271
291
  - !ruby/object:Gem::Version
272
- version: '1.1'
292
+ version: '1.2'
273
293
  - !ruby/object:Gem::Dependency
274
294
  name: fuzzy_match
275
295
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +316,7 @@ dependencies:
296
316
  requirements:
297
317
  - - ">="
298
318
  - !ruby/object:Gem::Version
299
- version: 0.4.0
319
+ version: 0.4.1
300
320
  - - "<"
301
321
  - !ruby/object:Gem::Version
302
322
  version: '0.5'
@@ -306,7 +326,7 @@ dependencies:
306
326
  requirements:
307
327
  - - ">="
308
328
  - !ruby/object:Gem::Version
309
- version: 0.4.0
329
+ version: 0.4.1
310
330
  - - "<"
311
331
  - !ruby/object:Gem::Version
312
332
  version: '0.5'
@@ -316,7 +336,7 @@ dependencies:
316
336
  requirements:
317
337
  - - ">="
318
338
  - !ruby/object:Gem::Version
319
- version: 1.5.4
339
+ version: 1.5.6
320
340
  - - "<"
321
341
  - !ruby/object:Gem::Version
322
342
  version: '1.6'
@@ -326,30 +346,50 @@ dependencies:
326
346
  requirements:
327
347
  - - ">="
328
348
  - !ruby/object:Gem::Version
329
- version: 1.5.4
349
+ version: 1.5.6
330
350
  - - "<"
331
351
  - !ruby/object:Gem::Version
332
352
  version: '1.6'
353
+ - !ruby/object:Gem::Dependency
354
+ name: nokogiri
355
+ requirement: !ruby/object:Gem::Requirement
356
+ requirements:
357
+ - - ">="
358
+ - !ruby/object:Gem::Version
359
+ version: '1.13'
360
+ - - "<"
361
+ - !ruby/object:Gem::Version
362
+ version: '1.16'
363
+ type: :runtime
364
+ prerelease: false
365
+ version_requirements: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - ">="
368
+ - !ruby/object:Gem::Version
369
+ version: '1.13'
370
+ - - "<"
371
+ - !ruby/object:Gem::Version
372
+ version: '1.16'
333
373
  - !ruby/object:Gem::Dependency
334
374
  name: roo
335
375
  requirement: !ruby/object:Gem::Requirement
336
376
  requirements:
337
377
  - - ">="
338
378
  - !ruby/object:Gem::Version
339
- version: 2.8.3
379
+ version: 2.10.1
340
380
  - - "<"
341
381
  - !ruby/object:Gem::Version
342
- version: '2.9'
382
+ version: '2.11'
343
383
  type: :runtime
344
384
  prerelease: false
345
385
  version_requirements: !ruby/object:Gem::Requirement
346
386
  requirements:
347
387
  - - ">="
348
388
  - !ruby/object:Gem::Version
349
- version: 2.8.3
389
+ version: 2.10.1
350
390
  - - "<"
351
391
  - !ruby/object:Gem::Version
352
- version: '2.9'
392
+ version: '2.11'
353
393
  - !ruby/object:Gem::Dependency
354
394
  name: roo-xls
355
395
  requirement: !ruby/object:Gem::Requirement
@@ -370,26 +410,66 @@ dependencies:
370
410
  - - "<"
371
411
  - !ruby/object:Gem::Version
372
412
  version: '1.3'
413
+ - !ruby/object:Gem::Dependency
414
+ name: fast_excel
415
+ requirement: !ruby/object:Gem::Requirement
416
+ requirements:
417
+ - - ">="
418
+ - !ruby/object:Gem::Version
419
+ version: 0.5.0
420
+ - - "<"
421
+ - !ruby/object:Gem::Version
422
+ version: '0.6'
423
+ type: :runtime
424
+ prerelease: false
425
+ version_requirements: !ruby/object:Gem::Requirement
426
+ requirements:
427
+ - - ">="
428
+ - !ruby/object:Gem::Version
429
+ version: 0.5.0
430
+ - - "<"
431
+ - !ruby/object:Gem::Version
432
+ version: '0.6'
373
433
  - !ruby/object:Gem::Dependency
374
434
  name: docx
375
435
  requirement: !ruby/object:Gem::Requirement
376
436
  requirements:
377
437
  - - ">="
378
438
  - !ruby/object:Gem::Version
379
- version: 0.6.2
439
+ version: 0.8.0
440
+ - - "<"
441
+ - !ruby/object:Gem::Version
442
+ version: '0.9'
443
+ type: :runtime
444
+ prerelease: false
445
+ version_requirements: !ruby/object:Gem::Requirement
446
+ requirements:
447
+ - - ">="
448
+ - !ruby/object:Gem::Version
449
+ version: 0.8.0
450
+ - - "<"
451
+ - !ruby/object:Gem::Version
452
+ version: '0.9'
453
+ - !ruby/object:Gem::Dependency
454
+ name: rubyzip
455
+ requirement: !ruby/object:Gem::Requirement
456
+ requirements:
457
+ - - ">="
458
+ - !ruby/object:Gem::Version
459
+ version: 2.3.2
380
460
  - - "<"
381
461
  - !ruby/object:Gem::Version
382
- version: '0.7'
462
+ version: '2.4'
383
463
  type: :runtime
384
464
  prerelease: false
385
465
  version_requirements: !ruby/object:Gem::Requirement
386
466
  requirements:
387
467
  - - ">="
388
468
  - !ruby/object:Gem::Version
389
- version: 0.6.2
469
+ version: 2.3.2
390
470
  - - "<"
391
471
  - !ruby/object:Gem::Version
392
- version: '0.7'
472
+ version: '2.4'
393
473
  description:
394
474
  email:
395
475
  - oscar@ecoportal.co.nz
@@ -542,47 +622,44 @@ files:
542
622
  - lib/eco/api/usecases.rb
543
623
  - lib/eco/api/usecases/base_case.rb
544
624
  - lib/eco/api/usecases/base_io.rb
625
+ - lib/eco/api/usecases/cli.rb
626
+ - lib/eco/api/usecases/cli/dsl.rb
627
+ - lib/eco/api/usecases/cli/option.rb
628
+ - lib/eco/api/usecases/default.rb
629
+ - lib/eco/api/usecases/default/locations.rb
630
+ - lib/eco/api/usecases/default/locations/cli/tagtree_extract_cli.rb
631
+ - lib/eco/api/usecases/default/locations/codes_to_tags_case.rb
632
+ - lib/eco/api/usecases/default/locations/create_tag_paths_case.rb
633
+ - lib/eco/api/usecases/default/locations/csv_to_tree_case.rb
634
+ - lib/eco/api/usecases/default/locations/tagtree_extract_case.rb
635
+ - lib/eco/api/usecases/default/people.rb
636
+ - lib/eco/api/usecases/default/people/analyse_people_case.rb
637
+ - lib/eco/api/usecases/default/people/change_email_case.rb
638
+ - lib/eco/api/usecases/default/people/clean_unknown_tags_case.rb
639
+ - lib/eco/api/usecases/default/people/clear_abilities_case.rb
640
+ - lib/eco/api/usecases/default/people/org_data_convert_case.rb
641
+ - lib/eco/api/usecases/default/people/refresh_case.rb
642
+ - lib/eco/api/usecases/default/people/reinvite_sync_case.rb
643
+ - lib/eco/api/usecases/default/people/reinvite_trans_case.rb
644
+ - lib/eco/api/usecases/default/people/reinvite_trans_cli.rb
645
+ - lib/eco/api/usecases/default/people/restore_db_case.rb
646
+ - lib/eco/api/usecases/default/people/set_default_tag_case.rb
647
+ - lib/eco/api/usecases/default/people/supers_cyclic_identify_case.rb
648
+ - lib/eco/api/usecases/default/people/supers_hierarchy_case.rb
649
+ - lib/eco/api/usecases/default/people/switch_supervisor_case.rb
650
+ - lib/eco/api/usecases/default/people/transfer_account_case.rb
545
651
  - lib/eco/api/usecases/default_cases.rb
546
- - lib/eco/api/usecases/default_cases/abstract_policygroup_abilities_case.rb
547
- - lib/eco/api/usecases/default_cases/analyse_people_case.rb
548
- - lib/eco/api/usecases/default_cases/append_usergroups_case.rb
549
- - lib/eco/api/usecases/default_cases/change_email_case.rb
550
- - lib/eco/api/usecases/default_cases/clean_unknown_tags_case.rb
551
- - lib/eco/api/usecases/default_cases/clear_abilities_case.rb
552
- - lib/eco/api/usecases/default_cases/codes_to_tags_case.rb
553
652
  - lib/eco/api/usecases/default_cases/create_case.rb
554
- - lib/eco/api/usecases/default_cases/create_details_case.rb
555
- - lib/eco/api/usecases/default_cases/create_details_with_supervisor_case.rb
556
- - lib/eco/api/usecases/default_cases/create_tag_paths_case.rb
557
- - lib/eco/api/usecases/default_cases/csv_to_tree_case.rb
558
653
  - lib/eco/api/usecases/default_cases/delete_sync_case.rb
559
654
  - lib/eco/api/usecases/default_cases/delete_trans_case.rb
560
- - lib/eco/api/usecases/default_cases/email_as_id_case.rb
561
655
  - lib/eco/api/usecases/default_cases/entries_to_csv_case.rb
562
656
  - lib/eco/api/usecases/default_cases/hris_case.rb
563
- - lib/eco/api/usecases/default_cases/new_email_case.rb
564
- - lib/eco/api/usecases/default_cases/new_id_case.rb
565
- - lib/eco/api/usecases/default_cases/org_data_convert_case.rb
566
- - lib/eco/api/usecases/default_cases/refresh_case.rb
567
- - lib/eco/api/usecases/default_cases/reinvite_sync_case.rb
568
- - lib/eco/api/usecases/default_cases/reinvite_trans_case.rb
569
- - lib/eco/api/usecases/default_cases/remove_account_sync_case.rb
570
- - lib/eco/api/usecases/default_cases/remove_account_trans_case.rb
571
- - lib/eco/api/usecases/default_cases/reset_landing_page_case.rb
572
- - lib/eco/api/usecases/default_cases/restore_db_case.rb
573
657
  - lib/eco/api/usecases/default_cases/samples.rb
658
+ - lib/eco/api/usecases/default_cases/samples/cli/sftp_cli.rb
574
659
  - lib/eco/api/usecases/default_cases/samples/sftp_case.rb
575
- - lib/eco/api/usecases/default_cases/set_default_tag_case.rb
576
- - lib/eco/api/usecases/default_cases/set_supervisor_case.rb
577
- - lib/eco/api/usecases/default_cases/supers_cyclic_identify_case.rb
578
- - lib/eco/api/usecases/default_cases/supers_hierarchy_case.rb
579
- - lib/eco/api/usecases/default_cases/switch_supervisor_case.rb
580
- - lib/eco/api/usecases/default_cases/tagtree_case.rb
581
660
  - lib/eco/api/usecases/default_cases/to_csv_case.rb
582
661
  - lib/eco/api/usecases/default_cases/to_csv_detailed_case.rb
583
- - lib/eco/api/usecases/default_cases/transfer_account_case.rb
584
662
  - lib/eco/api/usecases/default_cases/update_case.rb
585
- - lib/eco/api/usecases/default_cases/update_details_case.rb
586
663
  - lib/eco/api/usecases/default_cases/upsert_case.rb
587
664
  - lib/eco/api/usecases/graphql.rb
588
665
  - lib/eco/api/usecases/graphql/base.rb
@@ -632,14 +709,6 @@ files:
632
709
  - lib/eco/assets/language.rb
633
710
  - lib/eco/cli.rb
634
711
  - lib/eco/cli/config.rb
635
- - lib/eco/cli/config/default.rb
636
- - lib/eco/cli/config/default/input.rb
637
- - lib/eco/cli/config/default/input_filters.rb
638
- - lib/eco/cli/config/default/options.rb
639
- - lib/eco/cli/config/default/people.rb
640
- - lib/eco/cli/config/default/people_filters.rb
641
- - lib/eco/cli/config/default/usecases.rb
642
- - lib/eco/cli/config/default/workflow.rb
643
712
  - lib/eco/cli/config/filters.rb
644
713
  - lib/eco/cli/config/filters/input_filters.rb
645
714
  - lib/eco/cli/config/filters/people_filters.rb
@@ -651,6 +720,14 @@ files:
651
720
  - lib/eco/cli/scripting/args_helpers.rb
652
721
  - lib/eco/cli/scripting/argument.rb
653
722
  - lib/eco/cli/scripting/arguments.rb
723
+ - lib/eco/cli_default.rb
724
+ - lib/eco/cli_default/input.rb
725
+ - lib/eco/cli_default/input_filters.rb
726
+ - lib/eco/cli_default/options.rb
727
+ - lib/eco/cli_default/people.rb
728
+ - lib/eco/cli_default/people_filters.rb
729
+ - lib/eco/cli_default/usecases.rb
730
+ - lib/eco/cli_default/workflow.rb
654
731
  - lib/eco/common.rb
655
732
  - lib/eco/csv.rb
656
733
  - lib/eco/csv/table.rb