foreman_ansible 13.0.2 → 13.0.3

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: ba6704e93fd8e4fc0937a6e580f6fda535866a5b1e632bb4bd237ba33805037f
4
- data.tar.gz: 3bf1fedbbfe60a40c5b33772c925bd163bfab80601bec0dea459eacab2cf7ec3
3
+ metadata.gz: 72f523c6510ef86f864e87e6861cacd4e3d60aa051775c7a2c8fcc358f9c5dd3
4
+ data.tar.gz: 4b3286903ba586efe5cded3fc51d4e62ea4379531a9880eda70b0e16b220fda8
5
5
  SHA512:
6
- metadata.gz: 12a1fc722c71c5cf4a118f42b39bfe289cca512153d0c78a0215b0d2d55147b5d934a4ec6d4f147666ac998839f3d0db7fc73cb9d583debd4c806d89214b802b
7
- data.tar.gz: 1947ac43c34621e1f1498d893d2f7afde5077aca87f96881074587989466bc5da3b596dae2d2cf4aecf2994ca93e595b827c432edc30aa55d91d2856aa3214a8
6
+ metadata.gz: 222813ad1bafba9d441710ecc46c0c2a046441235d88872c68c869c786798761657ff0461bc416f392c4757cf7142433abc0522bea4d43b770e49fe71eba50e2
7
+ data.tar.gz: b975529508ecec0dca43053d04145519aa104a2233c5420cc55bce56247b79588a9328bda0571b6216fb5954cef9696889c0f52db1e1f791581ca717bada89e6
data/Rakefile CHANGED
@@ -7,15 +7,6 @@ rescue LoadError
7
7
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
8
8
  end
9
9
 
10
- require 'rake/testtask'
11
- Rake::TestTask.new('test:core') do |test|
12
- test_dir = File.join(File.dirname(__FILE__), 'test/lib')
13
- test.pattern = "#{test_dir}/**/*_test.rb"
14
- test.libs << test_dir
15
- test.verbose = false
16
- test.warning = false
17
- end
18
-
19
10
  begin
20
11
  require 'rubocop/rake_task'
21
12
  RuboCop::RakeTask.new
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '13.0.2'
7
+ VERSION = '13.0.3'
8
8
  end
@@ -28,7 +28,7 @@ def assert_job_invocation_is_ok(response, targets)
28
28
  assert_equal 'Ansible Playbook', response['job_category']
29
29
  assert_response :created
30
30
  end
31
- plugin_factories_path = File.join(File.dirname(__FILE__), 'factories')
31
+ plugin_factories_path = File.join(__dir__, 'factories')
32
32
  rex_factories_path = "#{ForemanRemoteExecution::Engine.root}/test/factories"
33
33
  FactoryBot.definition_file_paths << rex_factories_path
34
34
  FactoryBot.definition_file_paths << plugin_factories_path
@@ -22,7 +22,11 @@ const EditableValue = props => {
22
22
  <TextAreaField
23
23
  aria-label="Edit override field"
24
24
  onChange={props.onChange}
25
- value={JSON.stringify(props.value)}
25
+ value={
26
+ typeof props.value === 'object'
27
+ ? JSON.stringify(props.value)
28
+ : props.value
29
+ }
26
30
  validation={props.validation}
27
31
  isDisabled={props.working}
28
32
  />
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.2
4
+ version: 13.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-03 00:00:00.000000000 Z
11
+ date: 2024-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -528,7 +528,6 @@ test_files:
528
528
  - test/graphql/mutations/hosts/assign_ansible_roles_mutation_test.rb
529
529
  - test/graphql/queries/ansible_roles_query_test.rb
530
530
  - test/graphql/queries/host_ansible_roles_query_test.rb
531
- - test/test_plugin_helper.rb
532
531
  - test/unit/ansible_role_test.rb
533
532
  - test/unit/ansible_variable_test.rb
534
533
  - test/unit/concerns/config_reports_extensions_test.rb
@@ -551,3 +550,4 @@ test_files:
551
550
  - test/unit/services/ui_roles_importer_test.rb
552
551
  - test/unit/ansible_provider_test.rb
553
552
  - test/integration/hostgroup_js_test.rb
553
+ - test/test_plugin_helper.rb