puppetdb_foreman 0.2.0 → 1.0.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
  SHA1:
3
- metadata.gz: bf740dafda9ec6838c44cb4d44bf8bf1d653fbe4
4
- data.tar.gz: af83f76838e285c9d80e31a1ffc9b653c738c663
3
+ metadata.gz: 84a178d844838f6b0700fe061146387b74bb2fe2
4
+ data.tar.gz: 0c5c53cf3ab639d6a5714bbffd5da35817620de8
5
5
  SHA512:
6
- metadata.gz: 506c6af06c9f3c36a5a4ec0fb6dac4dcd7c0fef67be009fab2c173b62e747754b34230bc68121efe6c33501fb0afa7ed9dd9a1dfe999aed56c263902ed8ac6b9
7
- data.tar.gz: c5a2cdc057f39fe9c88c68f7faec3d0f5f76bfadd905f47987bc65332ea095c65ec2251035a8e4db862b6b4365450dfcfcf28d2a7b1a3cf093ec6b8882f8549b
6
+ metadata.gz: e8f2e07d114710c786dc4da06052a06dfdc43ee5ee97b3e97cc174a36955ff8379f5874428f3510709a805a891ba7249731ea42923579c8cbfd1473112065c0a
7
+ data.tar.gz: 112c0a72a78d6c94bfb26c73d2c6ea9be9f102fc019c6a0bf3cab52a0896f1e255621f52bfbfd65118821a1d78fd4d6684beee7ada9b32e96e430e7ecc0bf42a
@@ -1,4 +1,6 @@
1
- <div class="alert alert-block alert-warning">
2
- <p><strong><%= _("Notice") %></strong> <%= _("Error Proxying PuppetDB Dashboard: #{@proxy_error}") %></p>
3
- <p><%= _("Maybe you need to set") %> <%= link_to(_("puppetdb_dashboard_address"), settings_path(:search => 'puppetdb_dashboard_address')) %> <%= _("in Settings") %></p>
4
- </div>
1
+ <%= alert(:class => 'alert-warning',
2
+ :text => _("Error proxying PuppetDB Dashboard: #{@proxy_error}.") +
3
+ ' ' + _('Maybe you need to set ') +
4
+ link_to(_('puppetdb_dashboard_address'),
5
+ settings_path(:search => 'puppetdb_dashboard_address')) +
6
+ _(' in Settings')) %>
data/config/routes.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- match ':puppetdb(/*puppetdb_url)', :to => 'puppetdb_foreman/puppetdb#index', :puppetdb => /d3\.v2|charts|v3|puppetdb|metrics|\/pdb\/meta\/v1\/version\/latest|pdb\/meta\/v1\/version/, :as => "puppetdb"
2
+ get ':puppetdb(/*puppetdb_url)', :to => 'puppetdb_foreman/puppetdb#index', :puppetdb => /d3\.v2|charts|v3|puppetdb|metrics|\/pdb\/meta\/v1\/version\/latest|pdb\/meta\/v1\/version/, :as => "puppetdb"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module PuppetdbForeman
2
- require 'puppetdb_foreman/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3
2
+ require 'puppetdb_foreman/engine'
3
3
  end
@@ -7,7 +7,7 @@ module PuppetdbForeman
7
7
 
8
8
  initializer 'puppetdb_foreman.register_plugin', :after=> :finisher_hook do |app|
9
9
  Foreman::Plugin.register :puppetdb_foreman do
10
- requires_foreman '> 1.0'
10
+ requires_foreman '> 1.10'
11
11
  security_block :puppetdb_foreman do
12
12
  permission :view_puppetdb_dashboard, {:'puppetdb_foreman/puppetdb' => [:index]}
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module PuppetdbForeman
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppetdb_foreman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia