fiveruns_tuneup 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/assets/javascripts/init.js +1 -1
- data/assets/javascripts/prototype.js +2 -2
- data/fiveruns_tuneup.gemspec +2 -2
- data/lib/fiveruns/tuneup/version.rb +1 -1
- data/lib/tuneup_controller.rb +4 -2
- data/lib/tuneup_helper.rb +2 -2
- data/views/tuneup/_data.html.erb +2 -2
- data/views/tuneup/_step.html.erb +2 -2
- data/views/tuneup/panel/_unregistered.html.erb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
v0.8.8. Fixed login broken when serving pages as xhtml strict. Filtered params logged to tuneup.log. TuneUp partials now rendered with exlicit extensions (.html.erb).
|
2
|
+
|
1
3
|
v0.8.7. Sandboxed javascript for non-Prototype apps (Thanks, Howard Rauscher). The tuneup.log now written explicitly to RAILS_ROOT/log. Removed History.rdoc in favor of CHANGELOG.
|
2
4
|
|
3
5
|
v0.8.6. Performance optimizations, CSS fixes that prevents some layout issues that occurred when system doesn't have tuneup's preferred fonts.
|
data/assets/javascripts/init.js
CHANGED
@@ -1112,9 +1112,9 @@ Element.extend = function(element) {
|
|
1112
1112
|
if (!element._extended && element.tagName && element != window) {
|
1113
1113
|
var methods = Object.clone(Element.Methods), cache = Element.extend.cache;
|
1114
1114
|
|
1115
|
-
if (element.tagName == 'FORM')
|
1115
|
+
if (element.tagName.toUpperCase() == 'FORM')
|
1116
1116
|
Object.extend(methods, Form.Methods);
|
1117
|
-
if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName))
|
1117
|
+
if (['INPUT', 'TEXTAREA', 'SELECT'].include(element.tagName.toUpperCase()))
|
1118
1118
|
Object.extend(methods, Form.Element.Methods);
|
1119
1119
|
|
1120
1120
|
Object.extend(methods, Element.Methods.Simulated);
|
data/fiveruns_tuneup.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Fiveruns_tuneup-0.8.
|
2
|
+
# Gem::Specification for Fiveruns_tuneup-0.8.8
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{fiveruns_tuneup}
|
7
|
-
s.version = "0.8.
|
7
|
+
s.version = "0.8.8"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
data/lib/tuneup_controller.rb
CHANGED
@@ -3,7 +3,9 @@ require 'ostruct'
|
|
3
3
|
require 'open-uri'
|
4
4
|
|
5
5
|
class TuneupController < ActionController::Base
|
6
|
-
|
6
|
+
|
7
|
+
filter_parameter_logging :password
|
8
|
+
|
7
9
|
def self.request_forgery_protection_options
|
8
10
|
ApplicationController.request_forgery_protection_options || {}
|
9
11
|
rescue
|
@@ -91,7 +93,7 @@ class TuneupController < ActionController::Base
|
|
91
93
|
|
92
94
|
def collect(state)
|
93
95
|
Fiveruns::Tuneup.collecting = state
|
94
|
-
render(:update) { |p| p['tuneup-panel'].replace(render(:partial => 'tuneup/panel/registered')) }
|
96
|
+
render(:update) { |p| p['tuneup-panel'].replace(render(:partial => 'tuneup/panel/registered.html.erb')) }
|
95
97
|
end
|
96
98
|
|
97
99
|
def find_config
|
data/lib/tuneup_helper.rb
CHANGED
@@ -157,7 +157,7 @@ module TuneupHelper #:nodoc:
|
|
157
157
|
def tuneup_reload_panel
|
158
158
|
update_page do |page|
|
159
159
|
page['tuneup-flash'].removeClassName('tuneup-show');
|
160
|
-
page['tuneup-content'].replace_html(render(:partial => "tuneup/panel/#{@config.state}"))
|
160
|
+
page['tuneup-content'].replace_html(render(:partial => "tuneup/panel/#{@config.state}.html.erb"))
|
161
161
|
page << 'TuneUp.adjustAbsoluteElements(_document.body);'
|
162
162
|
page << 'TuneUp.adjustFixedElements();'
|
163
163
|
end
|
@@ -166,7 +166,7 @@ module TuneupHelper #:nodoc:
|
|
166
166
|
def tuneup_show_flash(type, locals)
|
167
167
|
types = [:error, :notice].reject { |t| t == type }
|
168
168
|
update_page do |page|
|
169
|
-
page['tuneup-flash'].replace_html(render(:partial => 'flash', :locals => locals.merge(:type => type)))
|
169
|
+
page['tuneup-flash'].replace_html(render(:partial => 'flash.html.erb', :locals => locals.merge(:type => type)))
|
170
170
|
page['tuneup-flash'].addClassName('tuneup-show');
|
171
171
|
types.each do |other_type|
|
172
172
|
page['tuneup-flash'].removeClassName("tuneup-#{other_type}")
|
data/views/tuneup/_data.html.erb
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
</div>
|
7
7
|
<%= link_to_upload %>
|
8
8
|
</div>
|
9
|
-
<%= render :partial => 'schema' %>
|
9
|
+
<%= render :partial => 'schema.html.erb' %>
|
10
10
|
<ul id="tuneup-details">
|
11
|
-
<%= render :partial => 'step', :collection => tuneup_data.children %>
|
11
|
+
<%= render :partial => 'step.html.erb', :collection => tuneup_data.children %>
|
12
12
|
<li style="clear:both"></li>
|
13
13
|
</ul>
|
14
14
|
</div>
|
data/views/tuneup/_step.html.erb
CHANGED
@@ -8,10 +8,10 @@
|
|
8
8
|
<li class="tuneup-detail-bar"><%= tuneup_bar(step, :width => (280 * (step.time / tuneup_data.time))) %></li>
|
9
9
|
<li style="clear:both"></li>
|
10
10
|
</ul>
|
11
|
-
<%= render :partial => 'sql', :object => step.sql, :locals => {:step => step} if step.sql %>
|
11
|
+
<%= render :partial => 'sql.html.erb', :object => step.sql, :locals => {:step => step} if step.sql %>
|
12
12
|
<% if step.children.any? %>
|
13
13
|
<ul id='<%= dom_id step, :children %>'<% if step.depth > 1 %> class='fiveruns_tuneup_children' <% unless open_step?(step) %>style='display:none'<% end %><% end %>>
|
14
|
-
<%= render :partial => 'step', :collection => step.children_with_disparity %>
|
14
|
+
<%= render :partial => 'step.html.erb', :collection => step.children_with_disparity %>
|
15
15
|
</ul>
|
16
16
|
<% end %>
|
17
17
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<form onsubmit="new TuneUpSandbox.Ajax.Request('/tuneup/signin', {asynchronous:true, evalScripts:true, onComplete:function(request){TuneUp.Spinner.stop()}, onLoading:function(request){TuneUp.Spinner.start()}, parameters:Form.serialize(this)}); return false;" method="post" action="/tuneup/signin">
|
1
|
+
<form onsubmit="new TuneUpSandbox.Ajax.Request('/tuneup/signin', {asynchronous:true, evalScripts:true, onComplete:function(request){TuneUp.Spinner.stop()}, onLoading:function(request){TuneUp.Spinner.start()}, parameters:TuneUpSandbox.Form.serialize(this)}); return false;" method="post" action="/tuneup/signin">
|
2
2
|
<p class='tuneup-full'>
|
3
3
|
<label for='email'>Email</label>
|
4
4
|
<%= text_field_tag :email, nil, :size => 20 %>
|