foreman_openscap 5.2.1 → 5.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/services/foreman_openscap/client_config/ansible.rb +1 -1
  3. data/app/services/foreman_openscap/client_config/puppet.rb +1 -1
  4. data/app/views/arf_reports/show.html.erb +1 -1
  5. data/app/views/smart_proxies/plugins/_openscap.html.erb +0 -1
  6. data/db/migrate/20200117135424_migrate_port_overrides_to_int.rb +1 -1
  7. data/db/migrate/20200803065041_migrate_port_overrides_for_ansible.rb +1 -1
  8. data/db/migrate/20201202110213_update_puppet_port_param_type.rb +1 -1
  9. data/lib/foreman_openscap/engine.rb +1 -1
  10. data/lib/foreman_openscap/version.rb +1 -1
  11. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  12. data/locale/de/foreman_openscap.po +145 -138
  13. data/locale/en_GB/LC_MESSAGES/foreman_openscap.mo +0 -0
  14. data/locale/en_GB/foreman_openscap.po +4 -4
  15. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  16. data/locale/es/foreman_openscap.po +96 -93
  17. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  18. data/locale/fr/foreman_openscap.po +99 -96
  19. data/locale/gl/LC_MESSAGES/foreman_openscap.mo +0 -0
  20. data/locale/gl/foreman_openscap.po +5 -5
  21. data/locale/it/LC_MESSAGES/foreman_openscap.mo +0 -0
  22. data/locale/it/foreman_openscap.po +7 -6
  23. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  24. data/locale/ja/foreman_openscap.po +112 -106
  25. data/locale/ko/LC_MESSAGES/foreman_openscap.mo +0 -0
  26. data/locale/ko/foreman_openscap.po +6 -6
  27. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  28. data/locale/pt_BR/foreman_openscap.po +93 -90
  29. data/locale/ru/LC_MESSAGES/foreman_openscap.mo +0 -0
  30. data/locale/ru/foreman_openscap.po +7 -7
  31. data/locale/sv_SE/LC_MESSAGES/foreman_openscap.mo +0 -0
  32. data/locale/sv_SE/foreman_openscap.po +5 -5
  33. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  34. data/locale/zh_CN/foreman_openscap.po +155 -155
  35. data/locale/zh_TW/LC_MESSAGES/foreman_openscap.mo +0 -0
  36. data/locale/zh_TW/foreman_openscap.po +11 -11
  37. data/test/test_plugin_helper.rb +2 -2
  38. data/webpack/components/IndexTable/IndexTableHelper.js +0 -3
  39. data/webpack/components/IndexTable/index.js +5 -9
  40. data/webpack/routes/OvalContents/OvalContentsIndex/__tests__/OvalContentsIndex.test.js +1 -34
  41. data/webpack/routes/OvalPolicies/OvalPoliciesIndex/__tests__/OvalPoliciesIndex.test.js +1 -30
  42. metadata +35 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92bab404c3bb495719fa2ecf62c84cdcea0cf42a4fe9cdc7f07fc6a99341a803
4
- data.tar.gz: 36cd15417a6f421c8424b4f24cfa21e1ec09f59d297955db6a0a8f97e90c6adf
3
+ metadata.gz: 567fbb46d134ce11280b987a4f08aa07e2be3cbcb59a4401c845445fc35bc18d
4
+ data.tar.gz: 1c5f824f9909e205970e0ac17bf6326a0f345f162b586048d80bfe7fe7037dcc
5
5
  SHA512:
6
- metadata.gz: d4713c26ae5f19cf96cf2ae88900a078457646e57a1fce213f1d63b430a1468d89d0a6ae0ae29cced95456c643a0c469f46c2eafeb5c9fe2f870f7c589b44ade
7
- data.tar.gz: ebbfd812e483cd88aa6dc279f17734eac782c97a3c8696be7879a41961fe6e79ee3b7f6342726faa6220a275ea48b3edf8292bc14424a8f87f01968749cf3c72
6
+ metadata.gz: 177272d8e28eddfdc6f98b21bccacd580d8b37a26f931781558a52cbf6dc8fd9d36f5963d3da783de4449bef397d60dfd25ca8bc93c2883f370e37ea5b27679a
7
+ data.tar.gz: 5cac704dc905427ad4f15a325cf250a18755fff8407edc764a5f11752a7da15391d7c9bde6f53e4577b942e27b5d588ad952d656cf5ebada0d334f62fbfa5e62
@@ -16,7 +16,7 @@ module ForemanOpenscap
16
16
  end
17
17
 
18
18
  def available?
19
- defined?(ForemanAnsible)
19
+ Foreman::Plugin.installed?("foreman_ansible")
20
20
  end
21
21
 
22
22
  def inline_help
@@ -10,7 +10,7 @@ module ForemanOpenscap
10
10
  end
11
11
 
12
12
  def available?
13
- defined?(ForemanPuppet)
13
+ Foreman::Plugin.installed?("foreman_puppet")
14
14
  end
15
15
 
16
16
  def inline_help
@@ -14,7 +14,7 @@
14
14
 
15
15
  <%= title_actions link_to(_('Back'), :back, :class => "btn btn-default"),
16
16
  display_delete_if_authorized(hash_for_arf_report_path(:id => @arf_report), :class=> "btn btn-default"),
17
- link_to(_("Host details"), @arf_report.host, :class => "btn btn-default"),
17
+ link_to(_("Host details"), current_host_details_path(:id => @arf_report.host), :class => "btn btn-default"),
18
18
  link_to(_("View full report"), show_html_arf_report_path(:id => @arf_report.id), :class => "btn btn-primary"),
19
19
  link_to(_("Download XML in bzip"), parse_bzip_arf_report_path(:id => @arf_report.id), :class => "btn btn-default", :data => { :no_turbolink => true }),
20
20
  link_to(_("Download HTML"), download_html_arf_report_path(:id => @arf_report.id), :class => "btn btn-default", :data => { :no_turbolink => true })
@@ -1,4 +1,3 @@
1
- <%= javascript 'foreman_openscap/openscap_proxy' %>
2
1
  <div class="row">
3
2
  <h3><%= feature %></h3>
4
3
  </div>
@@ -10,7 +10,7 @@ class MigratePortOverridesToInt < ActiveRecord::Migration[5.2]
10
10
  private
11
11
 
12
12
  def transform_lookup_values(method)
13
- return unless defined?(ForemanPuppet)
13
+ return unless Foreman::Plugin.installed?("foreman_puppet")
14
14
  puppet_class = ::ForemanPuppet::Puppetclass.find_by :name => 'foreman_scap_client'
15
15
  return unless puppet_class
16
16
  port_key = puppet_class.class_params.find_by :key => 'port'
@@ -10,7 +10,7 @@ class MigratePortOverridesForAnsible < ActiveRecord::Migration[6.0]
10
10
  private
11
11
 
12
12
  def transform_lookup_values(method)
13
- return unless defined?(ForemanAnsible)
13
+ return unless Foreman::Plugin.installed?("foreman_ansible")
14
14
  role = AnsibleRole.find_by :name => 'theforeman.foreman_scap_client'
15
15
  return unless role
16
16
  port_key = role.ansible_variables.find_by :key => 'foreman_scap_client_port'
@@ -10,7 +10,7 @@ class UpdatePuppetPortParamType < ActiveRecord::Migration[6.0]
10
10
  private
11
11
 
12
12
  def update_port_type(method)
13
- return unless defined?(ForemanPuppet)
13
+ return unless Foreman::Plugin.installed?("foreman_puppet")
14
14
  puppet_class = ::ForemanPuppet::Puppetclass.find_by :name => 'foreman_scap_client'
15
15
  return unless puppet_class
16
16
  port_key = puppet_class.class_params.find_by :key => 'port'
@@ -1,6 +1,6 @@
1
1
  module ForemanOpenscap
2
2
  def self.with_katello?
3
- defined?(::Katello)
3
+ Foreman::Plugin.installed?("katello")
4
4
  end
5
5
 
6
6
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "5.2.1".freeze
2
+ VERSION = "5.2.3".freeze
3
3
  end