foreman_theme_satellite 13.2.5 → 13.3.0

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: e429335574eaa060f65234918f4c8ed7bff9468fa70f7a6692056e7fdfee6d4e
4
- data.tar.gz: 64e189a7c9b42236e9af00063d018283dd3256859192ab77866b5871f5e9edf6
3
+ metadata.gz: 4fc8386e72cfe1a8766ca9304a0449cfd93c76d5d8bdd0082014a07991a8d3bf
4
+ data.tar.gz: 10f45792b87bd24f807f3f6f6b1623f099bf9754110ecd4968d8173b8c9ffd46
5
5
  SHA512:
6
- metadata.gz: 97d0dbf8203ccac0e3bb4cd7cb3b333659eb886bf9226d110de4974c1f0097cd3c399ce67c52706e85d99c0e5015f066d47fa0095c2f969f4f751df406bdce3a
7
- data.tar.gz: 5df13cfec2643815b6e7bb038afdf0b20de4d465d89855189a59bb02073fc55944026375af77767f15d3c068db194e4ad8ebef395a46133e81e83cac9872f658
6
+ metadata.gz: aa87b9bbef7680664f1c215ac516c619e82ddf928536fa1a6270d1032e5182ef7b114f67ff29404679c45acc23571c40b2cad19a9ac3fc4f6abe71c93acf8b86
7
+ data.tar.gz: b25163c80960e12eaa33e008f0ba06ae9632c10ba0d050c36c60b524b5d38776b2dd74476cf41c9ff19b166a3887127fbed2d78523019139bf3526895ecaf8f8
data/README.md CHANGED
@@ -303,7 +303,7 @@ Deface::Override.new(:virtual_path => "about/index",
303
303
  :text => " <div class=\"stats-well\"><h4><%= _(\"Support\") %></h4> <p>Visit the <%= link_to _('Customer Portal'), \"https://access.redhat.com/\",
304
304
  :rel => \"external\" %> to get support, find solutions to common questions, and more.</p><h6><%= _(\"Documentation\") %></h6>
305
305
  <ul>
306
- <li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"https://access.redhat.com/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
306
+ <li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"#{ForemanThemeSatellite.documentation_server}/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
307
307
  <li><%= link_to _('API Resources'), apipie_apipie_path, :title => _('Automate Satellite via a simple and powerful API') %></li>
308
308
  </ul>
309
309
  <h6><%= _(\"Blog\") %></h6>
@@ -12,13 +12,11 @@ module DocumentationControllerBranding
12
12
  end
13
13
  if url.empty?
14
14
  upstream_url = super(section, options)
15
- if (upstream_url =~ /redhat.com/)
16
- url = upstream_url
17
- else
18
- special_links_pair = ForemanThemeSatellite::Documentation::SPECIAL_LINKS.find { |regex, _val| regex.match(upstream_url) }
19
- url = special_links_pair[1] if special_links_pair
20
- url = "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite" if url.empty?
21
- end
15
+ url = if (upstream_url =~ /redhat.com/)
16
+ upstream_url
17
+ else
18
+ "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite"
19
+ end
22
20
  end
23
21
  url
24
22
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # rubocop:disable Metrics/LineLength
3
+ # rubocop:disable Layout/LineLength
4
4
  # Overrides for functions used in helpers.
5
5
  module ThemeApplicationHelper
6
6
  def association_text()
@@ -37,7 +37,7 @@ Deface::Override.new(:virtual_path => "about/index",
37
37
  :text => " <div class=\"stats-well\"><h4><%= _(\"Support\") %></h4> <p>Visit the <%= link_to _('Customer Portal'), \"https://access.redhat.com/\",
38
38
  :rel => \"external\" %> to get support, find solutions to common questions, and more.</p><h6><%= _(\"Documentation\") %></h6>
39
39
  <ul>
40
- <li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"https://access.redhat.com/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
40
+ <li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"#{ForemanThemeSatellite.documentation_server}/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
41
41
  <li><%= link_to _('API Resources'), apipie_apipie_path, :title => _('Automate Satellite via a simple and powerful API') %></li>
42
42
  <li><%= link_to _('Templates DSL'), apipie_dsl_apipie_dsl_path, :title => _('Get DSL reference for templates writing') %></li>
43
43
  </ul>
@@ -1,3 +1,5 @@
1
+ # rubocop:disable Rails/SkipsModelValidations
2
+
1
3
  require_relative '../../lib/foreman_theme_satellite/deprecated_templates'
2
4
 
3
5
  class DeprecateSatelliteTemplates < ActiveRecord::Migration[5.1]
@@ -50,3 +52,5 @@ class DeprecateSatelliteTemplates < ActiveRecord::Migration[5.1]
50
52
  destination.operatingsystem_ids = (destination.operatingsystem_ids + source.operatingsystem_ids).uniq
51
53
  end
52
54
  end
55
+
56
+ # rubocop:enable Rails/SkipsModelValidations
@@ -10,6 +10,8 @@ module ForemanThemeSatellite
10
10
  FOREMAN_BRAND = {
11
11
  /%{proxy}/ => '%{proxy}',
12
12
  /%{foreman}/ => '%{foreman}',
13
+ /\b[Pp]roxy [Hh][Tt][Tt][Pp]\b(?!-)/ => 'Proxy HTTP', # Workaround for French translation
14
+ /\b[Pp]roxies [Hh][Tt][Tt][Pp]\b(?!-)/ => 'Proxies HTTP', # Workaround for French translation
13
15
  /\b[Hh][Tt][Tt][Pp] [Pp]roxy\b(?!-)/ => 'HTTP Proxy',
14
16
  /\b[Hh][Tt][Tt][Pp] [Pp]roxies\b(?!-)/ => 'HTTP Proxies',
15
17
  /\bHTTP\(S\) proxy\b(?!-)/ => 'HTTP(S) proxy',
@@ -53,6 +55,5 @@ module ForemanThemeSatellite
53
55
  /\b[Kk]atello 4.11\b(?!-)/ => 'Satellite 6.15',
54
56
  /\b[Kk]atello 4.12\b(?!-)/ => 'Satellite 6.16',
55
57
  /\b[Kk]atello 4.13\b(?!-)/ => 'Satellite 6.16',
56
- %r{https://theforeman.org/plugins/katello/(?!-)} => "https://access.redhat.com/documentation/en-us/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}/html/managing_hosts/registering_hosts#registering-a-host-to-satellite-using-the-bootstrap-script"
57
58
  }.freeze
58
59
  end
@@ -1,13 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # rubocop:disable Metrics/LineLength
3
+ # rubocop:disable Layout/LineLength
4
4
  module ForemanThemeSatellite
5
5
  module Documentation
6
6
  USER_GUIDE_DICTIONARY = {
7
- # Ansible
8
- 'ImportingRoles' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Importing_Ansible_Roles_and_Variables_ansible",
9
- 'Variables' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Overriding_Ansible_Variables_in_satellite_ansible",
10
-
11
7
  # Managing Hosts
12
8
  'ForemanRemoteExecution' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/configuring_and_setting_up_remote_jobs_managing-hosts",
13
9
  'ExecutingaJob' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/configuring_and_setting_up_remote_jobs_managing-hosts#Configuring_the_Global_capsule_Remote_Execution_Setting_in_satellite_managing-hosts",
@@ -45,7 +41,7 @@ module ForemanThemeSatellite
45
41
  'ConfigurationOptions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/",
46
42
  'PuppetReports' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/monitoring_resources_admin#Using_the_Project_Content_Dashboard_admin",
47
43
  'Mail_Notifications' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/configuring_email_notifications_admin",
48
- 'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#External_Authentication_for_Provisioned_Hosts_satellite",
44
+ 'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#configuring-project-to-manage-the-lifecycle-of-a-host-registered-to-a-freeipa-realm_satellite",
49
45
  'Searching' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/searching_and_bookmarking_admin",
50
46
  'RolesandPermissions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/managing_users_and_roles_admin",
51
47
  'LDAPAuthentication' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#Using_LDAP_satellite",
@@ -74,16 +70,19 @@ module ForemanThemeSatellite
74
70
 
75
71
  PLUGINS_DOCUMENTATION = {
76
72
  'foreman_azure' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_cloud_instances_on_microsoft_azure_resource_manager_azure-provisioning",
77
- 'foreman_discovery' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/configuring_the_discovery_service_provisioning",
73
+ 'foreman_discovery' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/discovering-hosts-on-a-network_provisioning",
78
74
  }.freeze
79
75
 
80
- SPECIAL_LINKS = [
81
- [/docs\.theforeman\.org\/.*?\/Managing_Hosts\/.*?registering-a-host.*?managing-hosts/i, "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_by_Using_Global_Registration_managing-hosts"],
82
- ]
83
-
84
76
  DOCS_GUIDES_LINKS = {
77
+ 'Managing_Content' => {
78
+ 'Products_and_Repositories_content-management' => "#{ForemanThemeSatellite.documentation_root}/managing_content/importing_content_content-management#Products_and_Repositories_content-management",
79
+ },
85
80
  'Managing_Hosts' => {
86
81
  'registering-a-host_managing-hosts' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_by_Using_Global_Registration_managing-hosts",
82
+ },
83
+ 'Managing_Configurations_Ansible' => {
84
+ 'Importing_Ansible_Roles_and_Variables_ansible' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Importing_Ansible_Roles_and_Variables_ansible",
85
+ 'Overriding_Ansible_Variables_in_foreman_ansible' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Overriding_Ansible_Variables_in_satellite_ansible",
87
86
  }
88
87
  }.freeze
89
88
 
@@ -96,11 +95,12 @@ module ForemanThemeSatellite
96
95
  source.map do |k, v|
97
96
  key = "#{prefix}/#{k}"
98
97
  if v.is_a?(Hash)
99
- key_values.concat(*nested_to_flat_k_v(key, v))
98
+ key_values.concat(nested_to_flat_k_v(key, v))
100
99
  else
101
- key_values.concat([key, v])
100
+ key_values.concat([[key, v]])
102
101
  end
103
102
  end
103
+ key_values
104
104
  end
105
105
  end
106
106
  end
@@ -139,7 +139,7 @@ module ForemanThemeSatellite
139
139
  end
140
140
 
141
141
  def self.documentation_server
142
- @documentation_server ||= metadata_field('documentation_server', 'https://access.redhat.com')
142
+ @documentation_server ||= metadata_field('documentation_server', 'https://docs.redhat.com')
143
143
  end
144
144
 
145
145
  def self.documentation_version
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '13.2.5'.freeze
2
+ VERSION = '13.3.0'.freeze
3
3
  end
@@ -14,21 +14,6 @@ namespace :test do
14
14
  end
15
15
 
16
16
  namespace :foreman_theme_satellite do
17
- task :rubocop do
18
- begin
19
- require 'rubocop/rake_task'
20
- RuboCop::RakeTask.new(:rubocop_foreman_theme_satellite) do |task|
21
- task.patterns = ["#{ForemanThemeSatellite::Engine.root}/app/**/*.rb",
22
- "#{ForemanThemeSatellite::Engine.root}/lib/**/*.rb",
23
- "#{ForemanThemeSatellite::Engine.root}/test/**/*.rb"]
24
- end
25
- rescue
26
- puts 'Rubocop not loaded.'
27
- end
28
-
29
- Rake::Task['rubocop_foreman_theme_satellite'].invoke
30
- end
31
-
32
17
  desc 'Validate documentation links against given TOC file'
33
18
  task :validate_docs do
34
19
  toc_file = ENV['TOC']
@@ -44,7 +29,6 @@ namespace :foreman_theme_satellite do
44
29
 
45
30
  all_links = ForemanThemeSatellite::Documentation::USER_GUIDE_DICTIONARY
46
31
  .merge(ForemanThemeSatellite::Documentation::PLUGINS_DOCUMENTATION)
47
- .merge(Hash[ForemanThemeSatellite::Documentation::SPECIAL_LINKS])
48
32
  .merge(ForemanThemeSatellite::Documentation.flat_docs_guides_links)
49
33
 
50
34
  failed = all_links.filter { |_key, doc_address| doc_address.include?('/html/') && !checker.test_link(doc_address) }
@@ -57,8 +41,3 @@ end
57
41
 
58
42
  Rake::Task[:test].enhance ['test:foreman_theme_satellite']
59
43
  Rake::Task['test:foreman_theme_satellite'].enhance ['foreman_theme_satellite:validate_docs']
60
-
61
- load 'tasks/jenkins.rake'
62
- if Rake::Task.task_defined?(:'jenkins:unit')
63
- Rake::Task['jenkins:unit'].enhance ['test:foreman_theme_satellite', 'foreman_theme_satellite:rubocop']
64
- end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_theme_satellite",
3
- "version": "13.2.5",
3
+ "version": "13.3.0",
4
4
  "description": "Satellite theme =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_theme_satellite
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.2.5
4
+ version: 13.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Stein
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-31 00:00:00.000000000 Z
12
+ date: 2024-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -54,61 +54,19 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
- name: rubocop
57
+ name: theforeman-rubocop
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: rubocop-minitest
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
60
+ - - "~>"
75
61
  - !ruby/object:Gem::Version
76
- version: '0'
62
+ version: 0.1.0
77
63
  type: :development
78
64
  prerelease: false
79
65
  version_requirements: !ruby/object:Gem::Requirement
80
66
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: rubocop-performance
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
67
+ - - "~>"
89
68
  - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: rubocop-rails
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
69
+ version: 0.1.0
112
70
  description: Theme changes for Satellite 6.
113
71
  email:
114
72
  - sshtein@redhat.com
@@ -221,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
179
  - !ruby/object:Gem::Version
222
180
  version: '0'
223
181
  requirements: []
224
- rubygems_version: 3.5.9
182
+ rubygems_version: 3.5.11
225
183
  signing_key:
226
184
  specification_version: 4
227
185
  summary: This is a plugin that enables building a theme for Foreman.