hammer_cli_foreman 2.0.0 → 2.0.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
  SHA256:
3
- metadata.gz: da4ae85f2fd4296a67d175ba01b7515ba8ab4404fbce35963f16c45418b95815
4
- data.tar.gz: 58c1e86329b37f245575274cfe85b143b3a19f21e26e66dbe328fc24832e0753
3
+ metadata.gz: 0e4300f1b8ab9e071be65dc562712932ef44499e28e01f11502f65a0aa22db4b
4
+ data.tar.gz: 4b3fac38f6ddbd89edf22c8acf1527b0de4c96108ebec0abe5b40ced20c9e4f2
5
5
  SHA512:
6
- metadata.gz: 1ef7dd1f7f9215fb8707f6d63979b33be442ebe2a0744c9aa44cbfafb0ee2f462185369581738b09d2fd31766f1cd2fbd09ea0269b39ba52e6d348122fb8408f
7
- data.tar.gz: 358bc7b858062a4e8a5f78ca38632d14ab96f0eb4aebd1e602cc45ccd67f6743d3c7fbb5500719cafb51f6fbea096070004958a533dad5981202ac419eb419bc
6
+ metadata.gz: abd5212ed633e2bd27569245799acfa43bea0c15e5db1d5d9708a32df3e329459234922f460a78e945db37f73b423ac3746fa374a333f7252c7ed8ebfea51c18
7
+ data.tar.gz: 6e261fe585fde6b260d2fcd1ba6ef2a0035ea0683be542bad4ad4c2f1590d220631bec3670c840f8c2a1c9dba1160c265108913fcb21f103f0713080839b1134
data/doc/release_notes.md CHANGED
@@ -1,5 +1,8 @@
1
1
  Release notes
2
2
  =============
3
+ ### 2.0.1 (2020-02-25)
4
+ * Remove duplicate api requests on addassociatedcommand ([PR #503](https://github.com/theforeman/hammer-cli-foreman/pull/503)) ([PR #504](https://github.com/theforeman/hammer-cli-foreman/pull/504)), [#29096](http://projects.theforeman.org/issues/29096)
5
+
3
6
  ### 2.0.0 (2020-02-12)
4
7
  * Change the description of the scoped loc and org ([PR #494](https://github.com/theforeman/hammer-cli-foreman/pull/494)), [#28869](http://projects.theforeman.org/issues/28869)
5
8
  * Fixes tests
@@ -671,8 +671,12 @@ module HammerCLIForeman
671
671
 
672
672
  def get_new_ids
673
673
  ids = get_current_ids.map(&:to_s)
674
- required_ids = get_associated_identifiers.nil? ? [] : get_associated_identifiers.map(&:to_s)
675
- required_ids << get_associated_identifier.to_s unless get_associated_identifier.nil?
674
+
675
+ associated_identifiers = get_associated_identifiers
676
+ associated_identifier = get_associated_identifier
677
+
678
+ required_ids = associated_identifiers.nil? ? [] : associated_identifiers.map(&:to_s)
679
+ required_ids << associated_identifier.to_s unless associated_identifier.nil?
676
680
 
677
681
  ids += required_ids
678
682
  ids.uniq
@@ -1,5 +1,5 @@
1
1
  module HammerCLIForeman
2
2
  def self.version
3
- @version ||= Gem::Version.new "2.0.0"
3
+ @version ||= Gem::Version.new "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Strachota
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-12 00:00:00.000000000 Z
12
+ date: 2020-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hammer_cli
@@ -80,14 +80,14 @@ email: tstracho@redhat.com
80
80
  executables: []
81
81
  extensions: []
82
82
  extra_rdoc_files:
83
- - doc/host_create.md
84
- - doc/release_notes.md
85
83
  - doc/configuration.md
86
- - doc/name_id_resolution.md
87
84
  - doc/developer_docs.md
88
- - doc/using_hammer_cli_foreman_command.md
89
- - doc/testing.md
85
+ - doc/name_id_resolution.md
90
86
  - doc/option_builder.md
87
+ - doc/testing.md
88
+ - doc/using_hammer_cli_foreman_command.md
89
+ - doc/host_create.md
90
+ - doc/release_notes.md
91
91
  - README.md
92
92
  files:
93
93
  - LICENSE
@@ -340,109 +340,110 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  - !ruby/object:Gem::Version
341
341
  version: '0'
342
342
  requirements: []
343
- rubygems_version: 3.0.3
343
+ rubyforge_project:
344
+ rubygems_version: 2.7.10
344
345
  signing_key:
345
346
  specification_version: 4
346
347
  summary: Foreman commands for Hammer
347
348
  test_files:
348
- - test/unit/image_test.rb
349
- - test/unit/helpers/resource_disabled.rb
350
- - test/unit/helpers/fake_searchables.rb
351
- - test/unit/helpers/command.rb
352
- - test/unit/messages_test.rb
353
- - test/unit/config_group_test.rb
354
- - test/unit/option_sources/id_params_test.rb
355
- - test/unit/option_sources/ids_params_test.rb
356
- - test/unit/exception_handler_test.rb
357
- - test/unit/user_test.rb
358
- - test/unit/api/session_authenticator_wrapper_test.rb
359
- - test/unit/api/interactive_basic_auth_test.rb
360
- - test/unit/api/oauth/oauth_authentication_code_grant_test.rb
361
- - test/unit/api/oauth/oauth_password_grant_test.rb
362
- - test/unit/api/void_auth_test.rb
363
- - test/unit/hostgroup_test.rb
364
- - test/unit/realm_test.rb
365
- - test/unit/auth_source_external.rb
366
- - test/unit/data/test_api.json
367
- - test/unit/auth_source_ldap_test.rb
368
- - test/unit/audit_test.rb
369
- - test/unit/test_helper.rb
370
- - test/unit/smart_class_parameter_test.rb
371
- - test/unit/partition_table_test.rb
372
- - test/unit/operating_system_test.rb
373
- - test/unit/media_test.rb
374
- - test/unit/architecture_test.rb
375
- - test/unit/usergroup_test.rb
376
- - test/unit/role_test.rb
377
- - test/unit/location_test.rb
378
- - test/unit/param_filters_test.rb
379
- - test/unit/apipie_resource_mock.rb
380
- - test/unit/option_builders_test.rb
381
- - test/unit/api_test.rb
382
- - test/unit/test_output_adapter.rb
383
- - test/unit/sessions_test.rb
384
- - test/unit/organization_test.rb
385
- - test/unit/settings_test.rb
386
- - test/unit/template_test.rb
387
- - test/unit/dependency_resolver_test.rb
388
- - test/unit/smart_proxy_test.rb
389
- - test/unit/domain_test.rb
390
- - test/unit/defaults_test.rb
391
- - test/unit/model_test.rb
392
- - test/unit/puppet_class_test.rb
393
- - test/unit/compute_resource_test.rb
394
- - test/unit/id_resolver_test.rb
395
- - test/unit/filter_test.rb
396
- - test/unit/puppet_environment_test.rb
397
- - test/unit/output/formatters_test.rb
398
- - test/unit/host_test.rb
399
- - test/unit/config_report_test.rb
400
- - test/unit/fact_test.rb
401
- - test/unit/external_usergroup_test.rb
402
- - test/unit/commands_test.rb
403
- - test/unit/common_parameter_test.rb
404
- - test/unit/subnet_test.rb
405
- - test/data/2.0/foreman_api.json
406
- - test/data/1.24/foreman_api.json
407
- - test/data/1.18/foreman_api.json
408
- - test/data/1.11/foreman_api.json
409
349
  - test/data/1.10/foreman_api.json
410
- - test/data/1.17/foreman_api.json
411
- - test/data/1.15/foreman_api.json
350
+ - test/data/1.11/foreman_api.json
412
351
  - test/data/1.14/_foreman_api.json
413
352
  - test/data/1.14/foreman_api.json
353
+ - test/data/1.15/foreman_api.json
354
+ - test/data/1.16/foreman_api.json
355
+ - test/data/1.17/foreman_api.json
356
+ - test/data/1.18/foreman_api.json
357
+ - test/data/1.20/foreman_api.json
414
358
  - test/data/1.21/foreman_api.json
415
359
  - test/data/1.22/foreman_api.json
416
- - test/data/1.20/foreman_api.json
360
+ - test/data/1.24/foreman_api.json
417
361
  - test/data/README.md
418
- - test/data/1.16/foreman_api.json
419
- - test/functional/http_proxy_test.rb
420
- - test/functional/commands/list_test.rb
421
- - test/functional/user_test.rb
422
- - test/functional/personal_access_token_test.rb
362
+ - test/data/2.0/foreman_api.json
423
363
  - test/functional/audit_test.rb
424
- - test/functional/test_helper.rb
425
- - test/functional/ping_test.rb
426
- - test/functional/smart_class_parameter_test.rb
427
- - test/functional/role_test.rb
428
- - test/functional/location_test.rb
364
+ - test/functional/auth_source_test.rb
365
+ - test/functional/commands/list_test.rb
366
+ - test/functional/compute_attribute_test.rb
367
+ - test/functional/compute_profile_test.rb
368
+ - test/functional/filter_test.rb
429
369
  - test/functional/hostgroup/create_test.rb
430
370
  - test/functional/hostgroup/update_test.rb
431
- - test/functional/subnet/create_test.rb
432
- - test/functional/subnet/update_test.rb
371
+ - test/functional/location_test.rb
433
372
  - test/functional/organization_test.rb
434
- - test/functional/settings_test.rb
435
- - test/functional/template_test.rb
373
+ - test/functional/personal_access_token_test.rb
436
374
  - test/functional/proxy_test.rb
437
- - test/functional/compute_resource_test.rb
438
- - test/functional/compute_attribute_test.rb
439
- - test/functional/filter_test.rb
440
- - test/functional/trend_test.rb
441
- - test/functional/report_template_test.rb
442
- - test/functional/compute_profile_test.rb
443
- - test/functional/host_test.rb
375
+ - test/functional/settings_test.rb
444
376
  - test/functional/ssh_keys_test.rb
377
+ - test/functional/subnet/update_test.rb
378
+ - test/functional/subnet/create_test.rb
379
+ - test/functional/test_helper.rb
380
+ - test/functional/user_test.rb
381
+ - test/functional/compute_resource_test.rb
382
+ - test/functional/ping_test.rb
445
383
  - test/functional/status_test.rb
384
+ - test/functional/http_proxy_test.rb
385
+ - test/functional/report_template_test.rb
386
+ - test/functional/role_test.rb
387
+ - test/functional/smart_class_parameter_test.rb
388
+ - test/functional/trend_test.rb
389
+ - test/functional/template_test.rb
446
390
  - test/functional/associating_commands_test.rb
447
- - test/functional/auth_source_test.rb
391
+ - test/functional/host_test.rb
392
+ - test/unit/api/void_auth_test.rb
393
+ - test/unit/api/interactive_basic_auth_test.rb
394
+ - test/unit/api/oauth/oauth_authentication_code_grant_test.rb
395
+ - test/unit/api/oauth/oauth_password_grant_test.rb
396
+ - test/unit/api/session_authenticator_wrapper_test.rb
397
+ - test/unit/api_test.rb
398
+ - test/unit/architecture_test.rb
399
+ - test/unit/audit_test.rb
400
+ - test/unit/auth_source_ldap_test.rb
401
+ - test/unit/common_parameter_test.rb
402
+ - test/unit/compute_resource_test.rb
403
+ - test/unit/config_group_test.rb
404
+ - test/unit/config_report_test.rb
405
+ - test/unit/data/test_api.json
406
+ - test/unit/defaults_test.rb
407
+ - test/unit/dependency_resolver_test.rb
408
+ - test/unit/domain_test.rb
409
+ - test/unit/exception_handler_test.rb
410
+ - test/unit/external_usergroup_test.rb
411
+ - test/unit/fact_test.rb
412
+ - test/unit/helpers/command.rb
413
+ - test/unit/helpers/fake_searchables.rb
414
+ - test/unit/helpers/resource_disabled.rb
415
+ - test/unit/id_resolver_test.rb
416
+ - test/unit/image_test.rb
417
+ - test/unit/location_test.rb
418
+ - test/unit/media_test.rb
419
+ - test/unit/messages_test.rb
420
+ - test/unit/model_test.rb
421
+ - test/unit/operating_system_test.rb
422
+ - test/unit/option_builders_test.rb
423
+ - test/unit/option_sources/id_params_test.rb
424
+ - test/unit/option_sources/ids_params_test.rb
425
+ - test/unit/organization_test.rb
426
+ - test/unit/output/formatters_test.rb
427
+ - test/unit/param_filters_test.rb
428
+ - test/unit/partition_table_test.rb
429
+ - test/unit/puppet_environment_test.rb
430
+ - test/unit/realm_test.rb
431
+ - test/unit/role_test.rb
432
+ - test/unit/settings_test.rb
433
+ - test/unit/smart_proxy_test.rb
434
+ - test/unit/subnet_test.rb
435
+ - test/unit/test_helper.rb
436
+ - test/unit/user_test.rb
437
+ - test/unit/usergroup_test.rb
438
+ - test/unit/filter_test.rb
439
+ - test/unit/hostgroup_test.rb
440
+ - test/unit/smart_class_parameter_test.rb
441
+ - test/unit/test_output_adapter.rb
442
+ - test/unit/commands_test.rb
443
+ - test/unit/auth_source_external.rb
444
+ - test/unit/sessions_test.rb
445
+ - test/unit/apipie_resource_mock.rb
446
+ - test/unit/host_test.rb
447
+ - test/unit/puppet_class_test.rb
448
+ - test/unit/template_test.rb
448
449
  - test/test_helper.rb