speedup-rails 0.0.2 → 0.0.3

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: 5f257913be85135ade41c49c23b631e0df838434
4
- data.tar.gz: 6e54edd69dc8d1fbd411b15e6a98231c4d897f76
3
+ metadata.gz: 504e5a6d136cd4836d8fe28a545e86f2b9492d9d
4
+ data.tar.gz: 30e4647ba5139596d268e8d148a10056b79c82b6
5
5
  SHA512:
6
- metadata.gz: f690b5260ed9e19092e3c3def8113934dff94c72cb6681e53669e481ebe8806e8ac1ca947f569c76b39514d0f2be01beaadeb1f8470d937c39d2c5ed74089ded
7
- data.tar.gz: 2a17250a97fb78969551a114e6bec6866d345dde8fa1dd0d1f7142d9c92a8693914842c56668362b5c122238ce07093883ab98b84f9dcedf8e695a539c93efeb
6
+ metadata.gz: b01b0ce5f379ccc3d2de05eb65a4ffa094bfb8274ffe22d1a5db67733fca4ec48192a18a005674e05996f715ddff7235e9d4a5de03421d56c6146dcc04e8efd3
7
+ data.tar.gz: c667afbc420109f8f9726ac8f0d25520008332ee7d185fee8611178814d6b37a266d136f5e0f0a55c192c056f95e15ab8ad7b9302e19ae000c07f3fb07967bce
@@ -1,7 +1,7 @@
1
1
  module SpeedupRails
2
2
  class ApplicationController < ActionController::Base
3
3
 
4
- before_action :disable_collectors
4
+ before_filter :disable_collectors
5
5
 
6
6
  private
7
7
  def disable_collectors
@@ -1,4 +1,4 @@
1
- <%= image_tag('speedup_rails/alert.jpg') %><%= data.count %> problems
1
+ <%= image_tag('speedup_rails/alert.jpg', alt: '') %><%= data.count %> problems
2
2
  <% content_for(:speed_up_additional_bars) do %>
3
3
  <div class="<%= key %>">
4
4
  <% data.each do |problem| %>
@@ -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,4 +1,4 @@
1
- <%= image_tag('speedup_rails/database.ico') %><%= data.count %> queries
1
+ <%= image_tag('speedup_rails/database.png', alt: '') %><%= data.count %> queries
2
2
  <% content_for(:speed_up_additional_bars) do %>
3
3
  <div class="queries">
4
4
  <% data.each do |query| %>
@@ -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
@@ -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? && body.is_a?(ActionDispatch::Response::RackBody)
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
 
@@ -1,3 +1,3 @@
1
1
  module Speedup
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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.ico
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