foreman_theme_satellite 14.1.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c82519224b4e6d6288dc86bc0f8091dbc6756b1891ef4405655e87b4d042c2c1
4
- data.tar.gz: c627cfe31681198814995737541204f02b73ac2da90167953b17f6c530162115
3
+ metadata.gz: fc257863281454246c7a885e532ca75a8ae52de374e37a0300d8b01496278f4a
4
+ data.tar.gz: fa16b3506869471c1a63c3e7f9ee7d55c1f6f26328bb50563e7ab6be94df8f6b
5
5
  SHA512:
6
- metadata.gz: d203850a4e68576ace95119462511a07b7dd736250825f6ed9cfbf9f263a28319756d216f1cb0af63893a11b73989d4585f72f5e4880ead796205d1523cecacf
7
- data.tar.gz: a73b3f2cf6c3570f5c445dff7eaeef9bc33363e017973c61941c019717e1e00f8320d64a19ef057951f087860c7c3c4cdb7baeaa63c822a99a68e5c262a93e6a
6
+ metadata.gz: 0c084a27421fd358d3e2e830421efd953c48f43310c24adb3b84f80f9930e5ca9f21277e3ae547e74141986ea5d10b1d162b1222272699ae853f516d6fd595fe
7
+ data.tar.gz: 0a3cd6726391e62602599f81317a1f3549966a8e2fea68c0e67350b84aa0581d1497bcc93a4dd36e0b2415f50cf068cca7884f0a117b2a045b29b95b6829e0a5
@@ -7,8 +7,9 @@ module RealmTheme
7
7
  Realm.class_eval do
8
8
  _validators.delete(:realm_type)
9
9
  _validate_callbacks.each do |callback|
10
- if callback.raw_filter.respond_to? :attributes
11
- callback.raw_filter.attributes.delete :realm_type
10
+ filter_method = callback.respond_to?(:raw_filter) ? :raw_filter : :filter
11
+ if callback.send(filter_method).respond_to? :attributes
12
+ callback.send(filter_method).attributes.delete :realm_type
12
13
  end
13
14
  end
14
15
  validates :realm_type, :presence => true, :inclusion => { :in => ["Red Hat Identity Management", "Active Directory"] }
@@ -21,7 +21,7 @@ end %>
21
21
  <% end %>
22
22
  <div class="eol-banner-content">
23
23
  <%= _("For up to date information about Satellite's lifecycle see ") %><a href="https://access.redhat.com/support/policy/updates/satellite"><%= _("Red Hat Satellite Product Life Cycle") %></a>.
24
- <%= _("Kindly plan to upgrade Satellite to the supported version, for upgrade guidance see ") %><a href="<%= ForemanThemeSatellite.documentation_server %>/labsinfo/satelliteupgradehelper "><%= _("Red Hat Satellite Upgrade Helper") %>.
24
+ <%= _("Kindly plan to upgrade Satellite to the supported version, for upgrade guidance see ") %><a href="https://access.redhat.com/labsinfo/satelliteupgradehelper "><%= _("Red Hat Satellite Upgrade Helper") %>.
25
25
  </div>
26
26
  </div>
27
27
  <span id="satellite-oel-banner-dismiss-button" style="position: absolute; font-size: 20px; top: 0px; right: 5px; cursor: pointer;">&times;</span>
@@ -3,5 +3,5 @@
3
3
  <%= javascript_include_tag('foreman_theme_satellite/theme_ng_page_title') %>
4
4
  <%= webpacked_plugins_js_for :'foreman_theme_satellite' %>
5
5
  <%= javascript_tag do %>
6
- <%= render("foreman_theme_satellite/theme_client_side_branding.js") %>
6
+ <%= render(partial: "foreman_theme_satellite/theme_client_side_branding", formats: :js) %>
7
7
  <% end %>
@@ -9,40 +9,42 @@ module ForemanThemeSatellite
9
9
  config.eager_load_paths += Dir["#{config.root}/lib"]
10
10
 
11
11
  initializer 'foreman_theme_satellite.register_plugin', :before=> :finisher_hook do |app|
12
- Foreman::Plugin.register :foreman_theme_satellite do
13
- requires_foreman '>= 3.13.0'
14
- register_gettext
15
-
16
- settings do
17
- category(:provisioning) do
18
- setting('show_unsupported_templates',
19
- type: :boolean,
20
- default: true,
21
- description: N_('Show unsupported provisioning templates. '\
22
- 'When enabled, all the avaiable templates will be shown. '\
23
- 'When disabled, Red Hat supported templates will be shown only'),
24
- full_name: N_('Show unsupported provisioning templates')
25
- )
12
+ app.reloader.to_prepare do
13
+ Foreman::Plugin.register :foreman_theme_satellite do
14
+ requires_foreman '>= 3.13.0'
15
+ register_gettext
16
+
17
+ settings do
18
+ category(:provisioning) do
19
+ setting('show_unsupported_templates',
20
+ type: :boolean,
21
+ default: true,
22
+ description: N_('Show unsupported provisioning templates. '\
23
+ 'When enabled, all the avaiable templates will be shown. '\
24
+ 'When disabled, Red Hat supported templates will be shown only'),
25
+ full_name: N_('Show unsupported provisioning templates')
26
+ )
27
+ end
26
28
  end
27
- end
28
29
 
29
- tests_to_skip ({
30
- "ComputeResourceTest" => ["friendly provider name"],
31
- "RealmIntegrationTest" => ["create new page"],
32
- "SmartProxyIntegrationTest" => ["create new page", "index page"],
33
- "TopBarIntegrationTest" => ["top bar links"],
34
- "AboutIntegrationTest" => ["about page"],
35
- "ComputeProfileIntegrationTest" => ["index page", "create new page", "edit page", "show page", "edit compute attribute page", "new compute attribute page"] ,
36
-
37
- #the following tests are failing due to change in realms types
38
- "Api::V2::RealmsControllerTest" => ["should create valid realm", "should update valid realm"],
39
- "OrganizationTest" => ["should clone organization with all associations"],
40
- "RealmTest" => ["realm can be assigned to locations"],
41
- "LocationTest" => ["should clone location with all associations"]
42
- })
43
-
44
- extend_rabl_template 'api/v2/home/status', 'api/v2/home/status_extensions'
45
- extend_template_helpers ForemanThemeSatellite::RendererMethods
30
+ tests_to_skip ({
31
+ "ComputeResourceTest" => ["friendly provider name"],
32
+ "RealmIntegrationTest" => ["create new page"],
33
+ "SmartProxyIntegrationTest" => ["create new page", "index page"],
34
+ "TopBarIntegrationTest" => ["top bar links"],
35
+ "AboutIntegrationTest" => ["about page"],
36
+ "ComputeProfileIntegrationTest" => ["index page", "create new page", "edit page", "show page", "edit compute attribute page", "new compute attribute page"] ,
37
+
38
+ #the following tests are failing due to change in realms types
39
+ "Api::V2::RealmsControllerTest" => ["should create valid realm", "should update valid realm"],
40
+ "OrganizationTest" => ["should clone organization with all associations"],
41
+ "RealmTest" => ["realm can be assigned to locations"],
42
+ "LocationTest" => ["should clone location with all associations"]
43
+ })
44
+
45
+ extend_rabl_template 'api/v2/home/status', 'api/v2/home/status_extensions'
46
+ extend_template_helpers ForemanThemeSatellite::RendererMethods
47
+ end
46
48
  end
47
49
  end
48
50
 
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '14.1.0'.freeze
2
+ VERSION = '14.2.0'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_theme_satellite",
3
- "version": "14.1.0",
3
+ "version": "14.2.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: 14.1.0
4
+ version: 14.2.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-11-12 00:00:00.000000000 Z
12
+ date: 2024-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubygems_version: 3.5.16
199
+ rubygems_version: 3.5.22
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: This is a plugin that enables building a theme for Foreman.