foreman_setup 3.0.0 → 3.0.1

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
  SHA1:
3
- metadata.gz: aee3bba2d86b044aed9a80f8471885ce2beb96d2
4
- data.tar.gz: 76c68952a31762eb7acd279cd385fadb00b6cdc2
3
+ metadata.gz: 434f589a7bb85052066ff9c6efef3211425d87c4
4
+ data.tar.gz: b46d62022cc4e61fbaa5811b38f83aa7bfd9c2a2
5
5
  SHA512:
6
- metadata.gz: 5386c649e2c6c846357bc9684d1742c256f571880060899ba406f597983a4f26bb967854805a436ad188adbcb6477ba30cb3bf9dcb0cc091b7177367d31fb2b7
7
- data.tar.gz: f645970ef34860882d09ed6dd0e3b377fa8f3cf6fdddc2450588efd48553da85bc1927fbf19e87ac0f1a54ce4022ad80d4d711bd5669068077b78f100bc2c842
6
+ metadata.gz: c5b7134fc727011585ccba00b5c4f38d64a98b3bcee2a450eeb848c576954091cbfc4abaf6b838e6e4e3d9d6bf9d549173e0dd4e7134c008941ea8ac4c09a1a5
7
+ data.tar.gz: b732c89e72a1a9f0d65822759440eaae11b7013c53a14aae68ab213dc744427dae6e4342602deab182709a02ea01ccb445be5f35ed23189b2f8280b2f2078fc6
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.0.1
4
+ * remove dashboard button, use the menu instead
5
+ * remove unused deface dependency
6
+ * fix missing false.png image (#11115)
7
+
3
8
  ## v3.0.0
4
9
  * show katello-installer commands if Katello is loaded
5
10
  * fix Foreman 1.9 compatibility due to template changes
@@ -13,7 +13,7 @@
13
13
  <% if f.object.host.present? %>
14
14
  <%= checked_icon f.object.host.present? %> <%= _("Found registered host %s") % f.object.host.name %>
15
15
  <% else %>
16
- <%= image_tag 'false.png' %> <%= _("Missing registered host %s, please ensure it is checking in") % f.object.fqdn %>
16
+ <%= image_tag 'foreman_setup/false.png' %> <%= _("Missing registered host %s, please ensure it is checking in") % f.object.fqdn %>
17
17
  <% end %>
18
18
  </div>
19
19
  <div>
@@ -21,14 +21,14 @@
21
21
  <% if f.object.smart_proxy.present? %>
22
22
  <%= checked_icon f.object.smart_proxy.present? %> <%= _("Found registered smart proxy %s") % f.object.smart_proxy.name %>
23
23
  <% else %>
24
- <%= image_tag 'false.png' %> <%= _("Missing registered smart proxy %s, please ensure it is registered") % f.object.fqdn %>
24
+ <%= image_tag 'foreman_setup/false.png' %> <%= _("Missing registered smart proxy %s, please ensure it is registered") % f.object.fqdn %>
25
25
  <% end %>
26
26
  </div>
27
27
  <div>
28
28
  <% if f.object.host.present? && f.object.interfaces.any? %>
29
29
  <%= checked_icon f.object.host.present? %> <%= _("Host %s has at least one network interface") % f.object.host.name %>
30
30
  <% else %>
31
- <%= image_tag 'false.png' %> <%= _("No network interfaces listed in $interfaces fact") %>
31
+ <%= image_tag 'foreman_setup/false.png' %> <%= _("No network interfaces listed in $interfaces fact") %>
32
32
  <% end %>
33
33
  </div>
34
34
 
@@ -1,7 +1,5 @@
1
1
  require 'foreman_setup/version'
2
2
 
3
3
  module ForemanSetup
4
- ENGINE_NAME = 'setup'
5
-
6
4
  require 'foreman_setup/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
7
5
  end
@@ -1,9 +1,8 @@
1
1
  require 'foreman_setup'
2
- require 'deface'
3
2
 
4
3
  module ForemanSetup
5
4
  class Engine < ::Rails::Engine
6
- engine_name ForemanSetup::ENGINE_NAME
5
+ engine_name 'foreman_setup'
7
6
 
8
7
  config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
9
8
  config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
@@ -27,10 +26,6 @@ module ForemanSetup
27
26
  :step2, :step2_update, :step3, :step4, :step4_update, :step5] }, :resource_type => "ForemanSetup::Provisioner"
28
27
  end
29
28
  role "Provisioning setup", [:edit_provisioning]
30
-
31
- # we deliberately replace some text on the dashboard page, so this breaks
32
- # the test. The setup button ought to be moved somewhere else.
33
- tests_to_skip('DashboardTest' => ['dashboard page']) if respond_to? :tests_to_skip
34
29
  end
35
30
  end
36
31
 
@@ -39,14 +34,21 @@ module ForemanSetup
39
34
  locale_domain = 'foreman_setup'
40
35
  Foreman::Gettext::Support.add_text_domain locale_domain, locale_dir
41
36
  end
37
+
38
+ initializer 'foreman_setup.assets.precompile' do |app|
39
+ app.config.assets.precompile += ['foreman_setup/false.png']
40
+ end
41
+ initializer 'foreman_setup.configure_assets', group: :assets do
42
+ SETTINGS[:foreman_setup] = { assets: { precompile: ['foreman_setup/false.png'] } }
43
+ end
42
44
  end
43
45
 
44
46
  def table_name_prefix
45
- ForemanSetup::ENGINE_NAME + '_'
47
+ 'setup_'
46
48
  end
47
49
 
48
50
  def self.table_name_prefix
49
- ForemanSetup::ENGINE_NAME + '_'
51
+ 'setup_'
50
52
  end
51
53
 
52
54
  def use_relative_model_naming
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: deface
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "<"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "<"
25
- - !ruby/object:Gem::Version
26
- version: '1.0'
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description: Plugin for Foreman that helps set up provisioning.
28
14
  email: dcleal@redhat.com
29
15
  executables: []
@@ -33,16 +19,14 @@ extra_rdoc_files:
33
19
  - LICENSE
34
20
  - README.md
35
21
  files:
36
- - ".tx/config"
22
+ - .tx/config
37
23
  - CHANGES.md
38
24
  - LICENSE
39
25
  - README.md
26
+ - app/assets/images/foreman_setup/false.png
40
27
  - app/controllers/foreman_setup/provisioners_controller.rb
41
28
  - app/helpers/foreman_setup/provisioner_helper.rb
42
29
  - app/models/foreman_setup/provisioner.rb
43
- - app/overrides/add_dashboard_provisioners_link.rb
44
- - app/overrides/remove_subnet_domains.rb
45
- - app/overrides/remove_subnet_proxies.rb
46
30
  - app/views/foreman_setup/provisioners/_step1.html.erb
47
31
  - app/views/foreman_setup/provisioners/_step2.html.erb
48
32
  - app/views/foreman_setup/provisioners/_step3.html.erb
@@ -101,19 +85,18 @@ require_paths:
101
85
  - lib
102
86
  required_ruby_version: !ruby/object:Gem::Requirement
103
87
  requirements:
104
- - - ">="
88
+ - - '>='
105
89
  - !ruby/object:Gem::Version
106
90
  version: '0'
107
91
  required_rubygems_version: !ruby/object:Gem::Requirement
108
92
  requirements:
109
- - - ">="
93
+ - - '>='
110
94
  - !ruby/object:Gem::Version
111
95
  version: '0'
112
96
  requirements: []
113
97
  rubyforge_project:
114
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.0.6
115
99
  signing_key:
116
100
  specification_version: 4
117
101
  summary: Helps set up Foreman for provisioning
118
102
  test_files: []
119
- has_rdoc:
@@ -1,12 +0,0 @@
1
- Deface::Override.new(:virtual_path => 'dashboard/index',
2
- :name => 'add_dashboard_provisioners_link',
3
- :surround_contents => 'code[erb-loud]:contains("title_actions")',
4
- :original => '35e276b7102eaa4feb8a4a84f66fd4812216fd48',
5
- :text => <<EOS
6
- if ForemanSetup::Provisioner.any?
7
- <%= render_original %>
8
- else
9
- title_actions link_to_if_authorized(_("Set up provisioning"), hash_for_new_foreman_setup_provisioner_path)
10
- end
11
- EOS
12
- )
@@ -1,9 +0,0 @@
1
- Deface::Override.new(:virtual_path => 'subnets/_fields',
2
- :name => 'remove_subnet_domains',
3
- :surround_contents => 'code[erb-loud]:contains("multiple_checkboxes f, :domain")',
4
- :text => <<EOS
5
- unless controller.controller_name == 'provisioners'
6
- <%= render_original %>
7
- end
8
- EOS
9
- )
@@ -1,9 +0,0 @@
1
- Deface::Override.new(:virtual_path => 'subnets/_fields',
2
- :name => 'remove_subnet_proxies',
3
- :surround_contents => 'code[erb-loud]:contains("SmartProxy.")',
4
- :text => <<EOS
5
- unless controller.controller_name == 'provisioners'
6
- <%= render_original %>
7
- end
8
- EOS
9
- )