pghero 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pghero might be problematic. Click here for more details.

@@ -1,17 +1,15 @@
1
- <%= javascript_include_tag "//www.google.com/jsapi", "//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js", "chartkick" %>
2
-
3
1
  <div class="content">
4
2
  <h1>CPU</h1>
5
- <div style="margin-bottom: 20px;"><%= line_chart cpu_usage_path, max: 100, colors: ["#5bc0de"], library: {pointSize: 0, lineWidth: 5} %></div>
3
+ <div style="margin-bottom: 20px;"><%= line_chart cpu_usage_path, max: 100, colors: ["#5bc0de"] %></div>
6
4
 
7
5
  <h1>Load</h1>
8
- <div style="margin-bottom: 20px;"><%= line_chart load_stats_path, colors: ["#5bc0de", "#d9534f"], library: {pointSize: 0, lineWidth: 5} %></div>
6
+ <div style="margin-bottom: 20px;"><%= line_chart load_stats_path, colors: ["#5bc0de", "#d9534f"] %></div>
9
7
 
10
8
  <h1>Connections</h1>
11
- <div style="margin-bottom: 20px;"><%= line_chart connection_stats_path, colors: ["#5bc0de"], library: {pointSize: 0, lineWidth: 5} %></div>
9
+ <div style="margin-bottom: 20px;"><%= line_chart connection_stats_path, colors: ["#5bc0de"] %></div>
12
10
 
13
11
  <% if PgHero.replica? %>
14
12
  <h1>Replication Lag</h1>
15
- <div style="margin-bottom: 20px;"><%= line_chart replication_lag_stats_path, colors: ["#5bc0de"], library: {pointSize: 0, lineWidth: 5} %></div>
13
+ <div style="margin-bottom: 20px;"><%= line_chart replication_lag_stats_path, colors: ["#5bc0de"] %></div>
16
14
  <% end %>
17
15
  </div>
data/lib/pghero/engine.rb CHANGED
@@ -1,5 +1,16 @@
1
1
  module PgHero
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace PgHero
4
+
5
+ initializer "precompile", group: :all do |app|
6
+ if defined?(Sprockets) && Sprockets::VERSION >= "4"
7
+ app.config.assets.precompile << "pghero/application.js"
8
+ app.config.assets.precompile << "pghero/application.css"
9
+ else
10
+ # use a proc instead of a string
11
+ app.config.assets.precompile << proc { |path| path == "pghero/application.js" }
12
+ app.config.assets.precompile << proc { |path| path == "pghero/application.css" }
13
+ end
14
+ end
4
15
  end
5
16
  end
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -122,6 +122,13 @@ files:
122
122
  - LICENSE.txt
123
123
  - README.md
124
124
  - Rakefile
125
+ - app/assets/javascripts/pghero/Chart.bundle.js
126
+ - app/assets/javascripts/pghero/application.js
127
+ - app/assets/javascripts/pghero/chartkick.js
128
+ - app/assets/javascripts/pghero/jquery.js
129
+ - app/assets/javascripts/pghero/jquery.nouislider.min.js
130
+ - app/assets/stylesheets/pghero/application.css
131
+ - app/assets/stylesheets/pghero/jquery.nouislider.css
125
132
  - app/controllers/pg_hero/home_controller.rb
126
133
  - app/views/layouts/pg_hero/application.html.erb
127
134
  - app/views/pg_hero/home/_connections_table.html.erb