redhat_access 2.2.19 → 2.2.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22973a0685c5aeb9b9683037f930a2afb7ec325c145c5d7e3dc97e2cac4429c2
4
- data.tar.gz: 46d2f9bf710bc14f1d528cc6c2c2e8c2f6c52c1c856c3047424190bb5d5a4e9e
3
+ metadata.gz: 4adc2f0f66e28f1ec1ab3f96b738c5be177cad959efd294775c118e237d4b507
4
+ data.tar.gz: d640cf59c57914b40116f0e325385dbfe800b8bf65750f8220801dd364cb6b4e
5
5
  SHA512:
6
- metadata.gz: bacad0f960e2003ef1b2da974e549e0962e6f961ea87d641148e7fe4b2c48acf98f795ad09aac713b70591056f4d5d125325d05b834298da684f058e88c8bea0
7
- data.tar.gz: af0704351dac7f9d830f25af9de20cd53ff53aa8117ae65e322db6c869c1d98fba1b7160585c73fb52df05aa0bb66df7a5a90e0ffba4aa5661f25978b61c2909
6
+ metadata.gz: ad234f2ae0fd81c4f1ba66a090e50ec248f8c880ae59deceaa4c4df6857249af398c4ea1746fe9cb06db4e3eb4d1bf370381bcb542cbeeb24d3b1dfc108073b8
7
+ data.tar.gz: 3ce9673c2dae7dde1bdd6c596386ac2d3d64a190d21d6dfafcdfe57868063249a1df1209714a933f506f7d653b3071e69a7364155cb8a79fa22cc10f607b4429
@@ -14,7 +14,8 @@ module RedhatAccess
14
14
  hostname_rules_relation = insights_plan_runner.hostname_rules(insights_plan_runner.playbook)
15
15
  hostnames = hostname_rules_relation.keys.map{|h| h.downcase}
16
16
  hostnames.map! { |hname| hname.split('.').first } if Setting[:use_shortname_for_vms]
17
- { :conditions => (hostnames.empty? ? ' 0 = 1' : " hosts.name IN(#{hostnames.join(',')})") }
17
+ conditions = hostnames.empty? ? ' 0 = 1' : sanitize_sql_array([' hosts.name IN (?)', hostnames])
18
+ { :conditions => conditions }
18
19
  end
19
20
  end
20
21
  end
@@ -1,3 +1,3 @@
1
1
  module RedhatAccess
2
- VERSION = "2.2.19"
2
+ VERSION = "2.2.20"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redhat_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.19
4
+ version: 2.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindani Phiri
8
8
  - Rex White
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-19 00:00:00.000000000 Z
12
+ date: 2021-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redhat_access_lib
@@ -351,7 +351,7 @@ licenses:
351
351
  - GPLv3
352
352
  metadata:
353
353
  changelog_uri: https://github.com/redhataccess/foreman-plugin/blob/master/redhat-access/releases.md
354
- post_install_message:
354
+ post_install_message:
355
355
  rdoc_options: []
356
356
  require_paths:
357
357
  - lib
@@ -366,61 +366,61 @@ required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  - !ruby/object:Gem::Version
367
367
  version: '0'
368
368
  requirements: []
369
- rubygems_version: 3.0.1
370
- signing_key:
369
+ rubygems_version: 3.0.3
370
+ signing_key:
371
371
  specification_version: 4
372
372
  summary: Plugin to add Redhat Access to Foreman
373
373
  test_files:
374
+ - test/sos-report-test.rb
375
+ - test/redhat_access_test.rb
374
376
  - test/unit/redhat_access/telemetry_configuration_test.rb
377
+ - test/unit/helpers/redhat_access/logs_helper_test.rb
378
+ - test/unit/helpers/redhat_access/search_helper_test.rb
375
379
  - test/unit/helpers/redhat_access/telemetry_configuration_helper_test.rb
380
+ - test/unit/helpers/redhat_access/analytics_dashboard_helper_test.rb
376
381
  - test/unit/helpers/redhat_access/redhat_access_helper_test.rb
377
- - test/unit/helpers/redhat_access/attachments_helper_test.rb
378
382
  - test/unit/helpers/redhat_access/cases_helper_test.rb
379
- - test/unit/helpers/redhat_access/analytics_dashboard_helper_test.rb
380
- - test/unit/helpers/redhat_access/search_helper_test.rb
381
- - test/unit/helpers/redhat_access/logs_helper_test.rb
383
+ - test/unit/helpers/redhat_access/attachments_helper_test.rb
382
384
  - test/unit/helpers/redhat_access/log_viewer_helper_test.rb
383
- - test/sos-report-test.rb
384
- - test/dummy/app/controllers/application_controller.rb
385
- - test/dummy/app/views/layouts/application.html.erb
386
- - test/dummy/app/assets/javascripts/application.js
387
- - test/dummy/app/assets/stylesheets/application.css
388
- - test/dummy/app/helpers/application_helper.rb
385
+ - test/test_helper.rb
386
+ - test/models/redhat_access/telemetry_proxy_credentials_test.rb
387
+ - test/fixtures/redhat_access/telemetry_configurations.yml
388
+ - test/fixtures/redhat_access/telemetry_proxy_credentials.yml
389
+ - test/dummy/public/422.html
390
+ - test/dummy/public/favicon.ico
391
+ - test/dummy/public/404.html
392
+ - test/dummy/public/500.html
393
+ - test/dummy/README.rdoc
394
+ - test/dummy/config.ru
395
+ - test/dummy/config/initializers/session_store.rb
396
+ - test/dummy/config/initializers/backtrace_silencers.rb
397
+ - test/dummy/config/initializers/inflections.rb
398
+ - test/dummy/config/initializers/wrap_parameters.rb
399
+ - test/dummy/config/initializers/secret_token.rb
400
+ - test/dummy/config/initializers/mime_types.rb
389
401
  - test/dummy/config/routes.rb
390
- - test/dummy/config/locales/en.yml
391
- - test/dummy/config/environments/production.rb
402
+ - test/dummy/config/application.rb
392
403
  - test/dummy/config/environments/development.rb
393
404
  - test/dummy/config/environments/test.rb
405
+ - test/dummy/config/environments/production.rb
406
+ - test/dummy/config/boot.rb
394
407
  - test/dummy/config/environment.rb
395
- - test/dummy/config/application.rb
396
408
  - test/dummy/config/database.yml
397
- - test/dummy/config/boot.rb
398
- - test/dummy/config/initializers/backtrace_silencers.rb
399
- - test/dummy/config/initializers/mime_types.rb
400
- - test/dummy/config/initializers/session_store.rb
401
- - test/dummy/config/initializers/wrap_parameters.rb
402
- - test/dummy/config/initializers/secret_token.rb
403
- - test/dummy/config/initializers/inflections.rb
404
- - test/dummy/config.ru
409
+ - test/dummy/config/locales/en.yml
405
410
  - test/dummy/script/rails
406
411
  - test/dummy/Rakefile
407
- - test/dummy/public/favicon.ico
408
- - test/dummy/public/422.html
409
- - test/dummy/public/500.html
410
- - test/dummy/public/404.html
411
- - test/dummy/README.rdoc
412
- - test/integration/navigation_test.rb
413
- - test/models/redhat_access/telemetry_proxy_credentials_test.rb
414
- - test/redhat_access_test.rb
415
- - test/fixtures/redhat_access/telemetry_configurations.yml
416
- - test/fixtures/redhat_access/telemetry_proxy_credentials.yml
417
- - test/test_helper.rb
418
- - test/functional/redhat_access/analytics_dashboard_controller_test.rb
412
+ - test/dummy/app/assets/stylesheets/application.css
413
+ - test/dummy/app/assets/javascripts/application.js
414
+ - test/dummy/app/controllers/application_controller.rb
415
+ - test/dummy/app/helpers/application_helper.rb
416
+ - test/dummy/app/views/layouts/application.html.erb
419
417
  - test/functional/redhat_access/redhat_access_controller_test.rb
420
- - test/functional/redhat_access/logs_controller_test.rb
421
- - test/functional/redhat_access/search_controller_test.rb
422
418
  - test/functional/redhat_access/telemetry_configuration_controller_test.rb
423
419
  - test/functional/redhat_access/log_viewer_controller_test.rb
424
420
  - test/functional/redhat_access/attachments_controller_test.rb
425
- - test/functional/redhat_access/configuration_controller_test.rb
421
+ - test/functional/redhat_access/logs_controller_test.rb
422
+ - test/functional/redhat_access/analytics_dashboard_controller_test.rb
426
423
  - test/functional/redhat_access/cases_controller_test.rb
424
+ - test/functional/redhat_access/search_controller_test.rb
425
+ - test/functional/redhat_access/configuration_controller_test.rb
426
+ - test/integration/navigation_test.rb