rails_performance 0.0.1.14 → 0.0.1.15

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: b8923a300d18387b0f318f94c99830dd373605301e4536407f17a0ff5f7346ea
4
- data.tar.gz: ab38287830d0b0fb9dc6b675f0d8ebbae3691eacaa0a3508a1885a590edca698
3
+ metadata.gz: b34ea6487b91922afd52e68bbd16cb1b5c4b40abd319331d99582b1f9ce582a8
4
+ data.tar.gz: 1ced2dab20079d409e3f16d4d87b551d732ab7cd793cbc53a3ff2f9aa7f407ba
5
5
  SHA512:
6
- metadata.gz: 3e584b6f4b439acb5dc15deaf2b7ffd44619acacbaf25421d52aa496b16e31c31669857d2b73702df033ff64028951ffb483a65d5507f3c336666f9baace34a1
7
- data.tar.gz: fc41618de4d31a2f674947eee5ae332d19c5b10e01371fd7d190bc1e113a77d6f3b62f73733d08b3130205f3c5945b2cc8a15305273b2f7e2209666314cc4164
6
+ metadata.gz: 4fe53e913ddfb6a592022040537f6633edbb9ade17e021b2533d3095092a23cfecd127f8ec6d819e7566854c8f4cc4e0562b88717ef2ab61ec6f6d3ff0bd0838
7
+ data.tar.gz: 197b952a0d4144e01da79ed1315dab76adda1568f3078424c05f6c0b035196c7a827bd2d5d5384b23f8105eb5e93970772afaec59ba2b60d25bbddafffe60a2d
data/README.md CHANGED
@@ -105,6 +105,7 @@ The idea of this gem grew from curriosity how many RPM my app receiving per day.
105
105
  - integration with elastic search
106
106
  - monitor active job (sidekiq)?
107
107
  - logo?
108
+ - number of requests last 24 hours, hour, etc.
108
109
 
109
110
  ## Contributing
110
111
 
@@ -1,4 +1,6 @@
1
1
  class BaseController < ActionController::Base
2
+ layout 'rails_performance/layouts/rails_performance'
3
+
2
4
  before_action :verify_access
3
5
 
4
6
  if RailsPerformance.http_basic_authentication_enabled
@@ -61,11 +61,11 @@ module RailsPerformanceHelper
61
61
  end
62
62
 
63
63
  def insert_css_file(file)
64
- raw "<style>#{raw File.read File.expand_path(File.dirname(__FILE__) + "/../views/stylesheets/#{file}")}</style>"
64
+ raw "<style>#{raw File.read File.expand_path(File.dirname(__FILE__) + "/../views/rails_performance/stylesheets/#{file}")}</style>"
65
65
  end
66
66
 
67
67
  def insert_js_file(file)
68
- raw "<script>#{raw File.read File.expand_path(File.dirname(__FILE__) + "/../views/javascripts/#{file}")}</script>"
68
+ raw "<script>#{raw File.read File.expand_path(File.dirname(__FILE__) + "/../views/rails_performance/javascripts/#{file}")}</script>"
69
69
  end
70
70
 
71
71
  def format_datetime(e)
@@ -6,7 +6,7 @@
6
6
  <title>Rails Performance</title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= render '/stylesheets/stylesheets' %>
9
+ <%= render '/rails_performance/stylesheets/stylesheets' %>
10
10
  <link rel="shortcut icon" href="/favicon.ico">
11
11
  </head>
12
12
  <body>
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
  <section class="section">
17
17
  <div class="container is-fluid">
18
- <%= render '/shared/header' %>
18
+ <%= render '/rails_performance/shared/header' %>
19
19
  <%= yield %>
20
20
  <div class="footer-box">
21
21
  © Rails Performance <span class='red'><i class="fas fa-heart"></i></span> <%= link_to 'https://github.com/igorkasyanchuk/rails_performance', 'https://github.com/igorkasyanchuk/rails_performance', target: '_blank' %>
@@ -25,7 +25,7 @@
25
25
  </section>
26
26
  <%= render '/rails_performance/panel' %>
27
27
  <div class="panel-overlay">
28
- <%= render '/javascripts/javascripts' %>
28
+ <%= render '/rails_performance/javascripts/javascripts' %>
29
29
  <%= yield :on_load %>
30
30
 
31
31
  </body>
@@ -20,6 +20,10 @@
20
20
  width: 80px;
21
21
  }
22
22
 
23
+ .nowrap {
24
+ white-space: nowrap;
25
+ }
26
+
23
27
  .loader-wrapper.is-active {
24
28
  display: flex;
25
29
  opacity: 0.3;
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.0.1.14'
2
+ VERSION = '0.0.1.15'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.14
4
+ version: 0.0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -103,26 +103,26 @@ files:
103
103
  - app/controllers/base_controller.rb
104
104
  - app/controllers/rails_performance_controller.rb
105
105
  - app/helpers/rails_performance_helper.rb
106
- - app/views/javascripts/_javascripts.html.erb
107
- - app/views/javascripts/app.js
108
- - app/views/javascripts/jquery-3.4.1.min.js
109
- - app/views/javascripts/panel.js
110
- - app/views/javascripts/rails.js
111
- - app/views/javascripts/stupidtable.min.js
112
- - app/views/javascripts/table.js
113
- - app/views/layouts/rails_performance.html.erb
114
106
  - app/views/rails_performance/_panel.html.erb
115
107
  - app/views/rails_performance/_summary.html.erb
116
108
  - app/views/rails_performance/crashes.html.erb
117
109
  - app/views/rails_performance/index.html.erb
110
+ - app/views/rails_performance/javascripts/_javascripts.html.erb
111
+ - app/views/rails_performance/javascripts/app.js
112
+ - app/views/rails_performance/javascripts/jquery-3.4.1.min.js
113
+ - app/views/rails_performance/javascripts/panel.js
114
+ - app/views/rails_performance/javascripts/rails.js
115
+ - app/views/rails_performance/javascripts/stupidtable.min.js
116
+ - app/views/rails_performance/javascripts/table.js
117
+ - app/views/rails_performance/layouts/rails_performance.html.erb
118
118
  - app/views/rails_performance/recent.html.erb
119
119
  - app/views/rails_performance/requests.html.erb
120
+ - app/views/rails_performance/shared/_header.html.erb
121
+ - app/views/rails_performance/stylesheets/_stylesheets.html.erb
122
+ - app/views/rails_performance/stylesheets/bulma.min.css
123
+ - app/views/rails_performance/stylesheets/panel.css
124
+ - app/views/rails_performance/stylesheets/style.css
120
125
  - app/views/rails_performance/summary.js.erb
121
- - app/views/shared/_header.html.erb
122
- - app/views/stylesheets/_stylesheets.html.erb
123
- - app/views/stylesheets/bulma.min.css
124
- - app/views/stylesheets/panel.css
125
- - app/views/stylesheets/style.css
126
126
  - config/routes.rb
127
127
  - lib/rails_performance.rb
128
128
  - lib/rails_performance/data_source.rb
@@ -160,7 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  requirements: []
163
- rubygems_version: 3.0.6
163
+ rubyforge_project:
164
+ rubygems_version: 2.7.6.2
164
165
  signing_key:
165
166
  specification_version: 4
166
167
  summary: Track number of requests to your app