speedup-rails 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/app/assets/images/speedup_rails/alert.jpg +0 -0
- data/app/assets/images/speedup_rails/database.png +0 -0
- data/app/assets/images/speedup_rails/file-icon.png +0 -0
- data/app/assets/images/speedup_rails/time.png +0 -0
- data/app/controllers/speedup_rails/application_controller.rb +1 -1
- data/app/views/speedup_rails/collectors/_bullet.html.erb +1 -1
- data/app/views/speedup_rails/collectors/_partials.html.erb +1 -1
- data/app/views/speedup_rails/collectors/_queries.html.erb +1 -1
- data/app/views/speedup_rails/collectors/_request.html.erb +2 -2
- data/lib/speedup/middleware.rb +2 -4
- data/lib/speedup/version.rb +1 -1
- metadata +2 -2
- data/app/assets/images/speedup_rails/database.ico +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 504e5a6d136cd4836d8fe28a545e86f2b9492d9d
|
4
|
+
data.tar.gz: 30e4647ba5139596d268e8d148a10056b79c82b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b01b0ce5f379ccc3d2de05eb65a4ffa094bfb8274ffe22d1a5db67733fca4ec48192a18a005674e05996f715ddff7235e9d4a5de03421d56c6146dcc04e8efd3
|
7
|
+
data.tar.gz: c667afbc420109f8f9726ac8f0d25520008332ee7d185fee8611178814d6b37a266d136f5e0f0a55c192c056f95e15ab8ad7b9302e19ae000c07f3fb07967bce
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= image_tag('speedup_rails/file-icon.png') %><%= data.count %> partials (<%= render_ms(data.sum{|t| t[:duration] }) %>)
|
1
|
+
<%= image_tag('speedup_rails/file-icon.png', alt: '') %><%= data.count %> partials (<%= render_ms(data.sum{|t| t[:duration] }) %>)
|
2
2
|
<% content_for(:speed_up_additional_bars) do %>
|
3
3
|
<div class="partials">
|
4
4
|
<% data.each do |template| %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
|
2
|
-
<%= image_tag('speedup_rails/input.png') %> <%= data[:controller] %>#<%= data[:action] %>
|
3
|
-
<%= image_tag('speedup_rails/time.png') %> <%= (data[:duration] * 100).round.to_f / 100 %> ms
|
2
|
+
<%= image_tag('speedup_rails/input.png', alt: '') %> <%= data[:controller] %>#<%= data[:action] %>
|
3
|
+
<%= image_tag('speedup_rails/time.png', alt: '') %> <%= (data[:duration] * 100).round.to_f / 100 %> ms
|
data/lib/speedup/middleware.rb
CHANGED
@@ -13,9 +13,9 @@ module Speedup
|
|
13
13
|
Speedup.request.save
|
14
14
|
case status
|
15
15
|
when 200..299
|
16
|
-
if Speedup.show_bar?
|
16
|
+
if Speedup.show_bar?
|
17
17
|
body = SpeedupBody.new(body, @redirects)
|
18
|
-
headers['Content-Length'] = body.collect{|row| row.length}.sum.to_s
|
18
|
+
# headers['Content-Length'] = body.collect{|row| row.length}.sum.to_s
|
19
19
|
end
|
20
20
|
@redirects = []
|
21
21
|
when 300..400
|
@@ -177,10 +177,8 @@ module Speedup
|
|
177
177
|
var xmlhttp;
|
178
178
|
|
179
179
|
if (window.XMLHttpRequest) {
|
180
|
-
// code for IE7+, Firefox, Chrome, Opera, Safari
|
181
180
|
xmlhttp = new XMLHttpRequest();
|
182
181
|
} else {
|
183
|
-
// code for IE6, IE5
|
184
182
|
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
185
183
|
}
|
186
184
|
|
data/lib/speedup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: speedup-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
@@ -133,7 +133,7 @@ files:
|
|
133
133
|
- README.rdoc
|
134
134
|
- Rakefile
|
135
135
|
- app/assets/images/speedup_rails/alert.jpg
|
136
|
-
- app/assets/images/speedup_rails/database.
|
136
|
+
- app/assets/images/speedup_rails/database.png
|
137
137
|
- app/assets/images/speedup_rails/file-icon.png
|
138
138
|
- app/assets/images/speedup_rails/input.png
|
139
139
|
- app/assets/images/speedup_rails/time.png
|
Binary file
|