foreman_openscap 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_openscap/policy_dashboard.js +1 -1
  3. data/app/models/concerns/foreman_openscap/compliance_status_scoped_search.rb +1 -7
  4. data/app/views/arf_reports/_list.html.erb +4 -3
  5. data/lib/foreman_openscap/version.rb +1 -1
  6. metadata +37 -63
  7. data/locale/de/foreman_openscap.edit.po +0 -1227
  8. data/locale/de/foreman_openscap.po.time_stamp +0 -0
  9. data/locale/en_GB/foreman_openscap.edit.po +0 -1227
  10. data/locale/en_GB/foreman_openscap.po.time_stamp +0 -0
  11. data/locale/es/foreman_openscap.edit.po +0 -1227
  12. data/locale/es/foreman_openscap.po.time_stamp +0 -0
  13. data/locale/fr/foreman_openscap.edit.po +0 -1227
  14. data/locale/fr/foreman_openscap.po.time_stamp +0 -0
  15. data/locale/gl/foreman_openscap.edit.po +0 -1227
  16. data/locale/gl/foreman_openscap.po.time_stamp +0 -0
  17. data/locale/it/foreman_openscap.edit.po +0 -1227
  18. data/locale/it/foreman_openscap.po.time_stamp +0 -0
  19. data/locale/ja/foreman_openscap.edit.po +0 -1227
  20. data/locale/ja/foreman_openscap.po.time_stamp +0 -0
  21. data/locale/ko/foreman_openscap.edit.po +0 -1227
  22. data/locale/ko/foreman_openscap.po.time_stamp +0 -0
  23. data/locale/pt_BR/foreman_openscap.edit.po +0 -1227
  24. data/locale/pt_BR/foreman_openscap.po.time_stamp +0 -0
  25. data/locale/ru/foreman_openscap.edit.po +0 -1228
  26. data/locale/ru/foreman_openscap.po.time_stamp +0 -0
  27. data/locale/sv_SE/foreman_openscap.edit.po +0 -1227
  28. data/locale/sv_SE/foreman_openscap.po.time_stamp +0 -0
  29. data/locale/zh_CN/foreman_openscap.edit.po +0 -1227
  30. data/locale/zh_CN/foreman_openscap.po.time_stamp +0 -0
  31. data/locale/zh_TW/foreman_openscap.edit.po +0 -1227
  32. data/locale/zh_TW/foreman_openscap.po.time_stamp +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bfb00d33c3c3830de03a63d7f0d49d58546964f
4
- data.tar.gz: 30f6ae8f460f01bcd5b1c67bf44057e3e7eb61cf
3
+ metadata.gz: 11979e99299089fd2351b7226729bd04c22b28e6
4
+ data.tar.gz: f6024f9b32f0692181a3b13f29b15a23d826c5f8
5
5
  SHA512:
6
- metadata.gz: 02b7fdac41c2ebae43b5dafd36018f20ebf279a5cd662a6a861412757a96b03cdb0c6376826a4e032d8010fb7f5b4288dd169caede2e515e7577d2f5fddb800f
7
- data.tar.gz: 55afbffc1f5d4f68b51b6d5d6eb2498f591aaa15d47bb6328e9977a1a8d8dad46def864c758b77a60d50dfed1f2ef5f224349884b9a7fb0966e13a69d7162381
6
+ metadata.gz: 6848c203268a565c4db241fc1a61a4dbd42ad142f3b29835e3db1b560ee91106313e8cf18d9a9e9c9881274f1cef939e5288623b49352fc4c94d5366e90a9e20
7
+ data.tar.gz: 6ff62df2218759cabd1fe823b7b4e7e9dfea66d8b8776b3e60603f83accfa2899aee3705c9246e91c59c40ca34897c6ef72e2f127b7bfb369084e839d2f008e4
@@ -1,4 +1,4 @@
1
- $(document).on('ContentLoad', () => {
1
+ $(document).on('ContentLoad', function(){
2
2
  if (/^\/compliance\/policies\/\d+\/dashboard$/.test(window.location.pathname)) {
3
3
  tfm.dashboard.startGridster();
4
4
  }
@@ -5,13 +5,7 @@ module ForemanOpenscap
5
5
  module ClassMethods
6
6
  def policy_search(search_alias)
7
7
  scoped_search :relation => :policy, :on => :name, :complete_value => true, :rename => search_alias,
8
- :only_explicit => true, :ext_method => :search_by_policy_name
9
- end
10
-
11
- def search_by_policy_name(_key, _operator, policy_name)
12
- scope = PolicyArfReport.of_policy(Policy.find_by(:name => policy_name))
13
- .select(PolicyArfReport.arel_table[:arf_report_id]).to_sql
14
- query_conditions scope
8
+ :only_explicit => true
15
9
  end
16
10
 
17
11
  def search_by_comply_with(_key, _operator, policy_name)
@@ -31,9 +31,10 @@
31
31
  <td><%= report_arf_column(arf_report.failed, "label-danger") %></th>
32
32
  <td><%= report_arf_column(arf_report.othered, "label-warning") %></th>
33
33
  <td>
34
- <%= action_buttons(display_delete_if_authorized(hash_for_arf_report_path(:id => arf_report.id),
35
- :confirm => _("Delete compliance report for %s?") % arf_report.host),
36
- display_link_if_authorized(_("Full Report"), hash_for_show_html_arf_report_path(:id => arf_report.id)))
34
+ <%= action_buttons(display_link_if_authorized(_("Full Report"), hash_for_show_html_arf_report_path(:id => arf_report.id
35
+ )),
36
+ display_delete_if_authorized(hash_for_arf_report_path(:id => arf_report.id),
37
+ :confirm => _("Delete compliance report for %s?") % arf_report.host))
37
38
  %>
38
39
  </td>
39
40
  </tr>
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_openscap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - slukasik@redhat.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -253,59 +253,33 @@ files:
253
253
  - locale/Makefile
254
254
  - locale/action_names.rb
255
255
  - locale/de/LC_MESSAGES/foreman_openscap.mo
256
- - locale/de/foreman_openscap.edit.po
257
256
  - locale/de/foreman_openscap.po
258
- - locale/de/foreman_openscap.po.time_stamp
259
257
  - locale/en_GB/LC_MESSAGES/foreman_openscap.mo
260
- - locale/en_GB/foreman_openscap.edit.po
261
258
  - locale/en_GB/foreman_openscap.po
262
- - locale/en_GB/foreman_openscap.po.time_stamp
263
259
  - locale/es/LC_MESSAGES/foreman_openscap.mo
264
- - locale/es/foreman_openscap.edit.po
265
260
  - locale/es/foreman_openscap.po
266
- - locale/es/foreman_openscap.po.time_stamp
267
261
  - locale/foreman_openscap.pot
268
262
  - locale/fr/LC_MESSAGES/foreman_openscap.mo
269
- - locale/fr/foreman_openscap.edit.po
270
263
  - locale/fr/foreman_openscap.po
271
- - locale/fr/foreman_openscap.po.time_stamp
272
264
  - locale/gl/LC_MESSAGES/foreman_openscap.mo
273
- - locale/gl/foreman_openscap.edit.po
274
265
  - locale/gl/foreman_openscap.po
275
- - locale/gl/foreman_openscap.po.time_stamp
276
266
  - locale/it/LC_MESSAGES/foreman_openscap.mo
277
- - locale/it/foreman_openscap.edit.po
278
267
  - locale/it/foreman_openscap.po
279
- - locale/it/foreman_openscap.po.time_stamp
280
268
  - locale/ja/LC_MESSAGES/foreman_openscap.mo
281
- - locale/ja/foreman_openscap.edit.po
282
269
  - locale/ja/foreman_openscap.po
283
- - locale/ja/foreman_openscap.po.time_stamp
284
270
  - locale/ko/LC_MESSAGES/foreman_openscap.mo
285
- - locale/ko/foreman_openscap.edit.po
286
271
  - locale/ko/foreman_openscap.po
287
- - locale/ko/foreman_openscap.po.time_stamp
288
272
  - locale/pt_BR/LC_MESSAGES/foreman_openscap.mo
289
- - locale/pt_BR/foreman_openscap.edit.po
290
273
  - locale/pt_BR/foreman_openscap.po
291
- - locale/pt_BR/foreman_openscap.po.time_stamp
292
274
  - locale/ru/LC_MESSAGES/foreman_openscap.mo
293
- - locale/ru/foreman_openscap.edit.po
294
275
  - locale/ru/foreman_openscap.po
295
- - locale/ru/foreman_openscap.po.time_stamp
296
276
  - locale/sv_SE/LC_MESSAGES/foreman_openscap.mo
297
- - locale/sv_SE/foreman_openscap.edit.po
298
277
  - locale/sv_SE/foreman_openscap.po
299
- - locale/sv_SE/foreman_openscap.po.time_stamp
300
278
  - locale/zanata.xml
301
279
  - locale/zh_CN/LC_MESSAGES/foreman_openscap.mo
302
- - locale/zh_CN/foreman_openscap.edit.po
303
280
  - locale/zh_CN/foreman_openscap.po
304
- - locale/zh_CN/foreman_openscap.po.time_stamp
305
281
  - locale/zh_TW/LC_MESSAGES/foreman_openscap.mo
306
- - locale/zh_TW/foreman_openscap.edit.po
307
282
  - locale/zh_TW/foreman_openscap.po
308
- - locale/zh_TW/foreman_openscap.po.time_stamp
309
283
  - test/factories/arf_report_factory.rb
310
284
  - test/factories/asset_factory.rb
311
285
  - test/factories/compliance_host_factory.rb
@@ -367,49 +341,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
367
341
  version: '0'
368
342
  requirements: []
369
343
  rubyforge_project:
370
- rubygems_version: 2.6.8
344
+ rubygems_version: 2.6.14
371
345
  signing_key:
372
346
  specification_version: 4
373
347
  summary: Foreman plug-in for displaying OpenSCAP audit reports
374
348
  test_files:
375
- - test/lib/foreman_openscap/bulk_upload_test.rb
376
- - test/unit/message_cleaner_test.rb
377
- - test/unit/scap_content_test.rb
378
- - test/unit/concerns/openscap_proxy_extenstions_test.rb
379
- - test/unit/concerns/host_extensions_test.rb
380
- - test/unit/openscap_host_test.rb
381
- - test/unit/tailoring_file_test.rb
382
- - test/unit/policy_test.rb
383
- - test/unit/compliance_status_test.rb
384
- - test/unit/arf_report_status_calculator_test.rb
385
- - test/unit/policy_mailer_test.rb
386
- - test/unit/services/tailoring_files_proxy_check_test.rb
387
- - test/unit/services/hostgroup_overrider_test.rb
388
- - test/unit/services/report_dashboard/data_test.rb
389
- - test/unit/services/lookup_key_overrider_test.rb
390
- - test/unit/services/config_name_service_test.rb
391
- - test/unit/arf_report_test.rb
392
- - test/test_plugin_helper.rb
393
- - test/functional/arf_reports_controller_test.rb
394
- - test/functional/api/v2/hosts_controller_test.rb
395
- - test/functional/api/v2/compliance/arf_reports_controller_test.rb
396
- - test/functional/api/v2/compliance/scap_contents_controller_test.rb
397
- - test/functional/api/v2/compliance/policies_controller_test.rb
398
- - test/functional/api/v2/compliance/tailoring_files_controller_test.rb
399
- - test/functional/openscap_proxies_controller_test.rb
400
- - test/functional/tailoring_files_controller_test.rb
401
- - test/factories/asset_factory.rb
402
- - test/factories/compliance_log_factory.rb
403
349
  - test/factories/arf_report_factory.rb
404
- - test/factories/scap_content_related.rb
350
+ - test/factories/asset_factory.rb
405
351
  - test/factories/compliance_host_factory.rb
352
+ - test/factories/compliance_log_factory.rb
406
353
  - test/factories/policy_arf_report_factory.rb
407
354
  - test/factories/policy_factory.rb
355
+ - test/factories/scap_content_related.rb
356
+ - test/files/arf_report/arf_report.bz2
357
+ - test/files/arf_report/arf_report.html
358
+ - test/files/arf_report/arf_report.json
359
+ - test/files/arf_report/arf_report_msg_desc_changed.json
360
+ - test/files/arf_report/arf_report_msg_value_changed.json
408
361
  - test/files/scap_contents/ssg-fedora-ds.xml
409
362
  - test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
410
363
  - test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
411
- - test/files/arf_report/arf_report_msg_value_changed.json
412
- - test/files/arf_report/arf_report.bz2
413
- - test/files/arf_report/arf_report_msg_desc_changed.json
414
- - test/files/arf_report/arf_report.json
415
- - test/files/arf_report/arf_report.html
364
+ - test/functional/api/v2/compliance/arf_reports_controller_test.rb
365
+ - test/functional/api/v2/compliance/policies_controller_test.rb
366
+ - test/functional/api/v2/compliance/scap_contents_controller_test.rb
367
+ - test/functional/api/v2/compliance/tailoring_files_controller_test.rb
368
+ - test/functional/api/v2/hosts_controller_test.rb
369
+ - test/functional/arf_reports_controller_test.rb
370
+ - test/functional/openscap_proxies_controller_test.rb
371
+ - test/functional/tailoring_files_controller_test.rb
372
+ - test/lib/foreman_openscap/bulk_upload_test.rb
373
+ - test/test_plugin_helper.rb
374
+ - test/unit/arf_report_status_calculator_test.rb
375
+ - test/unit/arf_report_test.rb
376
+ - test/unit/compliance_status_test.rb
377
+ - test/unit/concerns/host_extensions_test.rb
378
+ - test/unit/concerns/openscap_proxy_extenstions_test.rb
379
+ - test/unit/message_cleaner_test.rb
380
+ - test/unit/openscap_host_test.rb
381
+ - test/unit/policy_mailer_test.rb
382
+ - test/unit/policy_test.rb
383
+ - test/unit/scap_content_test.rb
384
+ - test/unit/services/config_name_service_test.rb
385
+ - test/unit/services/hostgroup_overrider_test.rb
386
+ - test/unit/services/lookup_key_overrider_test.rb
387
+ - test/unit/services/report_dashboard/data_test.rb
388
+ - test/unit/services/tailoring_files_proxy_check_test.rb
389
+ - test/unit/tailoring_file_test.rb