foreman_remote_execution 2.0.3 → 2.0.4

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: a9ac5ddf16b74dec2deb0b11e6235c5074efd9ff22c69df60095998965785eb6
4
- data.tar.gz: d3a6b6783e5dfe9905e6267b36289c3f2a56274dfc9500cec2947241ad8968da
3
+ metadata.gz: d591db6ed8d68889930cc5159f943f5512e4f1cc9803aa4d55e6462789dbaeec
4
+ data.tar.gz: 9738453478cc9f29a39eb4a48dae434e55111ed0ef393201ba495dbabbca724d
5
5
  SHA512:
6
- metadata.gz: 39cb455b52d5d6290a6a79d3cd0f48fa9c52f9666a3f8f07b3d4e36c996bc2b16cf4657535f6b80d6be502a3a4c9a4f858821fd0ed94ea54bc4990c0efe430e7
7
- data.tar.gz: 6c052042b3e9e3d829018dc78967e94aedfbd59db2745c9fe93048404729c9e01e14224c44064f7c294cf8fbb471be9dd9a455681339e4de69f378ddab9e3b3f
6
+ metadata.gz: 9abd0b27d9ad9a13597b28b205bf49d97320f45d1a8851a4d09ae01b9419542b1c4a2dc98370409de37ce777ef2e6fc212e9b048e914f7c49522d32d90d1f25c
7
+ data.tar.gz: 6549291f03f9b1a00865c0ec0d1b0dba18dc3b0912a1488d8f600c41c5eadb42658392b162f7666c16c4a522b4120d6d74178d1ec682ad6db5ee51b278663c0b
@@ -2,7 +2,7 @@ object @job_template
2
2
 
3
3
  extends 'api/v2/job_templates/base'
4
4
 
5
- attributes :description, :audit_comment, :description_format, :created_at, :updated_at, :template, :locked
5
+ attributes :description, :description_format, :created_at, :updated_at, :template, :locked
6
6
 
7
7
  child :template_inputs do
8
8
  extends 'api/v2/template_inputs/base'
@@ -10,6 +10,16 @@ module ForemanRemoteExecution
10
10
  config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
11
11
  config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
12
12
 
13
+ # Precompile any JS or CSS files under app/assets/
14
+ # If requiring files from each other, list them explicitly here to avoid precompiling the same
15
+ # content twice.
16
+ assets_to_precompile =
17
+ Dir.chdir(root) do
18
+ Dir['app/assets/javascripts/**/*'].map do |f|
19
+ f.split(File::SEPARATOR, 4).last
20
+ end
21
+ end
22
+ assets_to_precompile += %w(foreman_remote_execution/foreman_remote_execution.css)
13
23
 
14
24
  initializer 'foreman_remote_execution.load_default_settings', :before => :load_config_initializers do
15
25
  require_dependency File.expand_path('../../../app/models/setting/remote_execution.rb', __FILE__) if (Setting.table_exists? rescue(false))
@@ -39,6 +49,7 @@ module ForemanRemoteExecution
39
49
  apipie_documented_controllers ["#{ForemanRemoteExecution::Engine.root}/app/controllers/api/v2/*.rb"]
40
50
 
41
51
  automatic_assets(false)
52
+ precompile_assets(*assets_to_precompile)
42
53
 
43
54
  # Add permissions
44
55
  security_block :foreman_remote_execution do
@@ -127,17 +138,6 @@ module ForemanRemoteExecution
127
138
  end
128
139
  end
129
140
 
130
- # Precompile any JS or CSS files under app/assets/
131
- # If requiring files from each other, list them explicitly here to avoid precompiling the same
132
- # content twice.
133
- assets_to_precompile =
134
- Dir.chdir(root) do
135
- Dir['app/assets/javascripts/**/*'].map do |f|
136
- f.split(File::SEPARATOR, 4).last
137
- end
138
- end
139
- assets_to_precompile += %w(foreman_remote_execution/foreman_remote_execution.css)
140
-
141
141
  initializer 'foreman_remote_execution.assets.precompile' do |app|
142
142
  app.config.assets.precompile += assets_to_precompile
143
143
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-21 00:00:00.000000000 Z
11
+ date: 2019-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface