pghero 1.4.0 → 1.4.1
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.
Potentially problematic release.
This version of pghero might be problematic. Click here for more details.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +5 -1
 - data/app/assets/javascripts/pghero/Chart.bundle.js +14591 -0
 - data/app/assets/javascripts/pghero/application.js +141 -0
 - data/app/assets/javascripts/pghero/chartkick.js +1396 -0
 - data/app/assets/javascripts/pghero/jquery.js +11008 -0
 - data/app/assets/javascripts/pghero/jquery.nouislider.min.js +31 -0
 - data/app/assets/stylesheets/pghero/application.css +409 -0
 - data/app/assets/stylesheets/pghero/jquery.nouislider.css +165 -0
 - data/app/views/layouts/pg_hero/application.html.erb +2 -384
 - data/app/views/pg_hero/home/_query_stats_slider.html.erb +2 -162
 - data/app/views/pg_hero/home/system.html.erb +4 -6
 - data/lib/pghero/engine.rb +11 -0
 - data/lib/pghero/version.rb +1 -1
 - metadata +9 -2
 
| 
         @@ -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"] 
     | 
| 
      
 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"] 
     | 
| 
      
 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"] 
     | 
| 
      
 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"] 
     | 
| 
      
 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
         
     | 
    
        data/lib/pghero/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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- 
     | 
| 
      
 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
         
     |