eco-helpers 3.0.18 → 3.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +34 -3
  4. data/eco-helpers.gemspec +3 -3
  5. data/lib/eco/api/common/loaders/config/session.rb +12 -0
  6. data/lib/eco/api/common/loaders/config/workflow/mailer.rb +17 -4
  7. data/lib/eco/api/common/loaders/config.rb +10 -2
  8. data/lib/eco/api/common/loaders/parser.rb +10 -0
  9. data/lib/eco/api/common/people/default_parsers/csv_parser.rb +21 -208
  10. data/lib/eco/api/common/people/default_parsers/helpers/expected_headers.rb +206 -0
  11. data/lib/eco/api/common/people/default_parsers/helpers/null_parsing.rb +36 -0
  12. data/lib/eco/api/common/people/default_parsers/helpers.rb +15 -0
  13. data/lib/eco/api/common/people/default_parsers/json_parser.rb +56 -0
  14. data/lib/eco/api/common/people/default_parsers/xls_parser.rb +13 -14
  15. data/lib/eco/api/common/people/default_parsers.rb +2 -0
  16. data/lib/eco/api/common/people/entry_factory.rb +15 -4
  17. data/lib/eco/api/common/session/sftp.rb +5 -0
  18. data/lib/eco/api/custom/mailer.rb +1 -0
  19. data/lib/eco/api/error.rb +4 -0
  20. data/lib/eco/api/session/batch/job.rb +14 -16
  21. data/lib/eco/api/session/batch/jobs.rb +6 -8
  22. data/lib/eco/api/session/batch/launcher/mode_size.rb +5 -2
  23. data/lib/eco/api/session/batch/launcher/retry.rb +6 -1
  24. data/lib/eco/api/session/batch/launcher/status_handling.rb +4 -2
  25. data/lib/eco/api/session/batch/launcher.rb +3 -3
  26. data/lib/eco/api/session/config/api.rb +1 -0
  27. data/lib/eco/api/session/config/apis/one_off.rb +6 -6
  28. data/lib/eco/api/session/config/workflow.rb +16 -3
  29. data/lib/eco/api/session.rb +13 -7
  30. data/lib/eco/api/usecases/default/locations/tagtree_extract_case.rb +1 -0
  31. data/lib/eco/api/usecases/default/locations/tagtree_upload_case.rb +2 -0
  32. data/lib/eco/api/usecases/default/utils/cli/group_csv_cli.rb +26 -0
  33. data/lib/eco/api/usecases/default/utils/cli/json_to_csv_cli.rb +10 -0
  34. data/lib/eco/api/usecases/default/utils/cli/sort_csv_cli.rb +17 -0
  35. data/lib/eco/api/usecases/default/utils/cli/split_json_cli.rb +15 -0
  36. data/lib/eco/api/usecases/default/utils/group_csv_case.rb +213 -0
  37. data/lib/eco/api/usecases/default/utils/json_to_csv_case.rb +71 -0
  38. data/lib/eco/api/usecases/default/utils/sort_csv_case.rb +127 -0
  39. data/lib/eco/api/usecases/default/utils/split_json_case.rb +224 -0
  40. data/lib/eco/api/usecases/default/utils.rb +4 -0
  41. data/lib/eco/api/usecases/default_cases/samples/sftp_case.rb +22 -15
  42. data/lib/eco/api/usecases/ooze_cases/export_register_case.rb +6 -6
  43. data/lib/eco/api/usecases/ooze_samples/helpers/exportable_register.rb +1 -0
  44. data/lib/eco/api/usecases/ooze_samples/ooze_base_case.rb +1 -1
  45. data/lib/eco/api/usecases/ooze_samples/ooze_run_base_case.rb +8 -5
  46. data/lib/eco/cli_default/workflow.rb +10 -4
  47. data/lib/eco/csv/stream.rb +2 -0
  48. data/lib/eco/csv.rb +3 -2
  49. data/lib/eco/language/methods/delegate_missing.rb +4 -3
  50. data/lib/eco/version.rb +1 -1
  51. metadata +22 -9
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.18
4
+ version: 3.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-28 00:00:00.000000000 Z
11
+ date: 2024-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -229,7 +229,7 @@ dependencies:
229
229
  version: '0.10'
230
230
  - - ">="
231
231
  - !ruby/object:Gem::Version
232
- version: 0.10.6
232
+ version: 0.10.7
233
233
  type: :runtime
234
234
  prerelease: false
235
235
  version_requirements: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ dependencies:
239
239
  version: '0.10'
240
240
  - - ">="
241
241
  - !ruby/object:Gem::Version
242
- version: 0.10.6
242
+ version: 0.10.7
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: ecoportal-api-graphql
245
245
  requirement: !ruby/object:Gem::Requirement
@@ -249,7 +249,7 @@ dependencies:
249
249
  version: '0.4'
250
250
  - - ">="
251
251
  - !ruby/object:Gem::Version
252
- version: 0.4.2
252
+ version: 0.4.3
253
253
  type: :runtime
254
254
  prerelease: false
255
255
  version_requirements: !ruby/object:Gem::Requirement
@@ -259,7 +259,7 @@ dependencies:
259
259
  version: '0.4'
260
260
  - - ">="
261
261
  - !ruby/object:Gem::Version
262
- version: 0.4.2
262
+ version: 0.4.3
263
263
  - !ruby/object:Gem::Dependency
264
264
  name: ecoportal-api-v2
265
265
  requirement: !ruby/object:Gem::Requirement
@@ -269,7 +269,7 @@ dependencies:
269
269
  version: '2.0'
270
270
  - - ">="
271
271
  - !ruby/object:Gem::Version
272
- version: 2.0.11
272
+ version: 2.0.12
273
273
  type: :runtime
274
274
  prerelease: false
275
275
  version_requirements: !ruby/object:Gem::Requirement
@@ -279,7 +279,7 @@ dependencies:
279
279
  version: '2.0'
280
280
  - - ">="
281
281
  - !ruby/object:Gem::Version
282
- version: 2.0.11
282
+ version: 2.0.12
283
283
  - !ruby/object:Gem::Dependency
284
284
  name: ed25519
285
285
  requirement: !ruby/object:Gem::Requirement
@@ -538,6 +538,7 @@ files:
538
538
  - lib/eco/api/common/loaders/base.rb
539
539
  - lib/eco/api/common/loaders/case_base.rb
540
540
  - lib/eco/api/common/loaders/config.rb
541
+ - lib/eco/api/common/loaders/config/session.rb
541
542
  - lib/eco/api/common/loaders/config/workflow.rb
542
543
  - lib/eco/api/common/loaders/config/workflow/mailer.rb
543
544
  - lib/eco/api/common/loaders/error_handler.rb
@@ -551,6 +552,10 @@ files:
551
552
  - lib/eco/api/common/people/default_parsers/csv_parser.rb
552
553
  - lib/eco/api/common/people/default_parsers/date_parser.rb
553
554
  - lib/eco/api/common/people/default_parsers/freemium_parser.rb
555
+ - lib/eco/api/common/people/default_parsers/helpers.rb
556
+ - lib/eco/api/common/people/default_parsers/helpers/expected_headers.rb
557
+ - lib/eco/api/common/people/default_parsers/helpers/null_parsing.rb
558
+ - lib/eco/api/common/people/default_parsers/json_parser.rb
554
559
  - lib/eco/api/common/people/default_parsers/login_providers_parser.rb
555
560
  - lib/eco/api/common/people/default_parsers/multi_parser.rb
556
561
  - lib/eco/api/common/people/default_parsers/numeric_parser.rb
@@ -735,8 +740,16 @@ files:
735
740
  - lib/eco/api/usecases/default/people/utils/switch_supervisor_case.rb
736
741
  - lib/eco/api/usecases/default/people/utils/transfer_account_case.rb
737
742
  - lib/eco/api/usecases/default/utils.rb
743
+ - lib/eco/api/usecases/default/utils/cli/group_csv_cli.rb
744
+ - lib/eco/api/usecases/default/utils/cli/json_to_csv_cli.rb
745
+ - lib/eco/api/usecases/default/utils/cli/sort_csv_cli.rb
738
746
  - lib/eco/api/usecases/default/utils/cli/split_csv_cli.rb
747
+ - lib/eco/api/usecases/default/utils/cli/split_json_cli.rb
748
+ - lib/eco/api/usecases/default/utils/group_csv_case.rb
749
+ - lib/eco/api/usecases/default/utils/json_to_csv_case.rb
750
+ - lib/eco/api/usecases/default/utils/sort_csv_case.rb
739
751
  - lib/eco/api/usecases/default/utils/split_csv_case.rb
752
+ - lib/eco/api/usecases/default/utils/split_json_case.rb
740
753
  - lib/eco/api/usecases/default_cases.rb
741
754
  - lib/eco/api/usecases/default_cases/create_case.rb
742
755
  - lib/eco/api/usecases/default_cases/delete_sync_case.rb
@@ -951,7 +964,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
951
964
  - !ruby/object:Gem::Version
952
965
  version: '0'
953
966
  requirements: []
954
- rubygems_version: 3.5.18
967
+ rubygems_version: 3.5.23
955
968
  signing_key:
956
969
  specification_version: 4
957
970
  summary: eco-helpers to manage people api cases