foreman_theme_satellite 16.4.1 → 16.5.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ead55a664a2ad17f77dc24bdc325e796bc2d80a504a9bce4eb0f18b8c22e26f
|
|
4
|
+
data.tar.gz: b8f6042e40ba88cf56f8742611124627d63b935f9f5b779c0f3e3bbec367b573
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cee7287a3cb712fc253ef368521a59bb0516566102f68b1dbc90075710d35a63163153b3876d958a1fbcf32a0337fd6bb41e8f4807248c43006a580ab2c72dd
|
|
7
|
+
data.tar.gz: 1d332d87098fc1bfae2db60a034a9ee6c6c701616deb163a7c8784650306c6aac3c69d8bb886bc35393bea143eea932500b5b8337b73269f5599de5d20e02d6d
|
data/README.md
CHANGED
|
@@ -422,17 +422,11 @@ version: '6.8.000'
|
|
|
422
422
|
documentation_version: "6.6"
|
|
423
423
|
```
|
|
424
424
|
the metadata file should be called `/usr/share/satellite/metadata.yml` for
|
|
425
|
-
production style deployments, or used from
|
|
425
|
+
production style deployments, or used from
|
|
426
426
|
[source](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/config/metadata.yml)
|
|
427
|
-
directory for development and test environments.
|
|
428
|
-
`version` key take precedence over the lifecycle metadata.
|
|
427
|
+
directory for development and test environments.
|
|
429
428
|
|
|
430
|
-
The
|
|
431
|
-
`/usr/share/satellite/lifecycle-metadata.yml` as `satellite_version`. This is
|
|
432
|
-
used when the main metadata file is unavailable. If neither file is present,
|
|
433
|
-
the theme falls back to `6.20.0-development`.
|
|
434
|
-
|
|
435
|
-
The mechanism resides in the theme's
|
|
429
|
+
The mechanism resides in theme's
|
|
436
430
|
[`engine.rb`](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/lib/foreman_theme_satellite/engine.rb#L119)
|
|
437
431
|
|
|
438
432
|
## Testing documentation
|
|
@@ -452,11 +446,6 @@ Another option is to add or change keys in `/usr/share/satellite/metadata.yml`:
|
|
|
452
446
|
documentation_version: "6.6"
|
|
453
447
|
```
|
|
454
448
|
|
|
455
|
-
The Satellite version itself is normally supplied by
|
|
456
|
-
`/usr/share/satellite/lifecycle-metadata.yml` from the `satellite-lifecycle`
|
|
457
|
-
package. Use the `version` key in `metadata.yml` or `SATELLITE_VERSION` only
|
|
458
|
-
when an explicit override is required.
|
|
459
|
-
|
|
460
449
|
There is also an automatic test that tests all documentation links on each PR,
|
|
461
450
|
for the test to work
|
|
462
451
|
[`metadata.yml`](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/config/metadata.yml)
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
module ForemanThemeSatellite
|
|
2
2
|
class Lifecycle
|
|
3
3
|
class << self
|
|
4
|
-
def metadata
|
|
5
|
-
metadata_path = ::ForemanThemeSatellite::LIFECYCLE_METADATA_PATH
|
|
6
|
-
File.exist?(metadata_path) ? (YAML.load_file(metadata_path) || {}) : {}
|
|
7
|
-
end
|
|
8
|
-
|
|
9
4
|
# rubocop:disable Metrics/AbcSize
|
|
10
5
|
def lifecycle_data(version)
|
|
11
|
-
|
|
6
|
+
metadata_path = ::ForemanThemeSatellite::LIFECYCLE_METADATA_PATH
|
|
7
|
+
|
|
12
8
|
parsed = Foreman::Version.new(version)
|
|
13
9
|
lifecycle_data = { current_version: version, short_version: "#{parsed.major}.#{parsed.minor}" }
|
|
14
10
|
|
|
15
|
-
return lifecycle_data
|
|
11
|
+
return lifecycle_data unless File.exist?(metadata_path)
|
|
16
12
|
|
|
13
|
+
yaml = YAML.load_file(metadata_path)
|
|
17
14
|
raise "Unexpected lifecycle metadata file version '#{yaml['version']}'" unless yaml['version'] == '1'
|
|
18
15
|
|
|
19
16
|
eol = yaml['releases'].fetch(lifecycle_data[:short_version], {})['end_of_life']
|
|
@@ -70,6 +70,7 @@ module ForemanThemeSatellite
|
|
|
70
70
|
},
|
|
71
71
|
'Managing_Content' => {
|
|
72
72
|
'Products_and_Repositories_content-management' => "managing_content/index#Products_and_Repositories_content-management",
|
|
73
|
+
'dependency-solving-for-content-views' => "managing_content/index#dependency-solving-for-content-views",
|
|
73
74
|
},
|
|
74
75
|
'Managing_Hosts' => {
|
|
75
76
|
'creating-a-job-template_managing-hosts' => "managing_hosts/index#creating-a-job-template-by-using-web-ui",
|
|
@@ -2,7 +2,6 @@ require 'fast_gettext'
|
|
|
2
2
|
require 'gettext_i18n_rails'
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'deface'
|
|
5
|
-
require 'foreman_theme_satellite/lifecycle'
|
|
6
5
|
|
|
7
6
|
module ForemanThemeSatellite
|
|
8
7
|
class Engine < ::Rails::Engine
|
|
@@ -126,16 +125,12 @@ module ForemanThemeSatellite
|
|
|
126
125
|
@metadata_yaml.fetch(key, default)
|
|
127
126
|
end
|
|
128
127
|
|
|
129
|
-
def self.lifecycle_metadata_field(key, default)
|
|
130
|
-
ForemanThemeSatellite::Lifecycle.metadata.fetch(key, default)
|
|
131
|
-
end
|
|
132
|
-
|
|
133
128
|
def self.lifecycle_data
|
|
134
129
|
@lifecycle_data ||= ForemanThemeSatellite::Lifecycle.lifecycle_data(get_satellite_version)
|
|
135
130
|
end
|
|
136
131
|
|
|
137
132
|
def self.get_satellite_version
|
|
138
|
-
metadata_field('version',
|
|
133
|
+
metadata_field('version', '6.15.0-development')
|
|
139
134
|
end
|
|
140
135
|
|
|
141
136
|
def self.get_satellite_short_version
|
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: 16.
|
|
4
|
+
version: 16.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shimon Stein
|
|
@@ -100,6 +100,7 @@ files:
|
|
|
100
100
|
- app/overrides/layouts/base/theme_style_resources.html.erb.deface
|
|
101
101
|
- app/overrides/satellite_name_override.rb
|
|
102
102
|
- app/services/concerns/setting_registry_branding.rb
|
|
103
|
+
- app/services/foreman_theme_satellite/lifecycle.rb
|
|
103
104
|
- app/services/foreman_theme_satellite/renderer_methods.rb
|
|
104
105
|
- app/views/api/v2/home/status_extensions.json.rabl
|
|
105
106
|
- app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb
|
|
@@ -118,7 +119,6 @@ files:
|
|
|
118
119
|
- lib/foreman_theme_satellite/documentation.rb
|
|
119
120
|
- lib/foreman_theme_satellite/engine.rb
|
|
120
121
|
- lib/foreman_theme_satellite/foreman_brand.rb
|
|
121
|
-
- lib/foreman_theme_satellite/lifecycle.rb
|
|
122
122
|
- lib/foreman_theme_satellite/pry_rack.rb
|
|
123
123
|
- lib/foreman_theme_satellite/replacer_repository.rb
|
|
124
124
|
- lib/foreman_theme_satellite/rss_checker_branding.rb
|
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
173
|
version: '0'
|
|
174
174
|
requirements: []
|
|
175
|
-
rubygems_version: 4.0.
|
|
175
|
+
rubygems_version: 4.0.16
|
|
176
176
|
specification_version: 4
|
|
177
177
|
summary: This is a plugin that enables building a theme for Foreman.
|
|
178
178
|
test_files: []
|