Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 13.3.4 #130

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/foreman_theme_satellite/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ class Engine < ::Rails::Engine
ForemanRhCloud::BranchInfo.send :prepend, BranchInfoBranding
end

if defined?(ForemanOpenscap)
ForemanOpenscap::BulkUpload.send :prepend, ScapBulkUploadExtensions
end

UINotifications::StringParser.send :prepend, DeprecationNotification::StringParser
Notification.singleton_class.send :prepend, DeprecationNotification::Notification
LinksController.prepend DocumentationControllerBranding
Expand Down
19 changes: 19 additions & 0 deletions lib/foreman_theme_satellite/scap_bulk_upload_extensions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

module ForemanThemeSatellite
module ScapBulkUploadExtensions
extend ActiveSupport::Concern

def security_guide_packages
packages = super
packages.unshift('scap-security-guide-satellite')
packages
end

def extract_name_from_file(file)
# SCAP datastream files are in format of ssg-sat-<OS>-ds.xml
# We wish to extract the <OS> and create a name of it
super.gsub('sat-', '')
end
end
end
2 changes: 1 addition & 1 deletion lib/foreman_theme_satellite/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ForemanThemeSatellite
VERSION = '13.3.3'.freeze
VERSION = '13.3.4'.freeze
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foreman_theme_satellite",
"version": "13.3.3",
"version": "13.3.4",
"description": "Satellite theme =============",
"main": "index.js",
"scripts": {
Expand Down