fiveruns_tuneup 0.8.7 → 0.8.8

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.
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.
@@ -9,4 +9,4 @@ setTimeout(function() {
9
9
  style.height = '0';
10
10
 
11
11
  document.body.appendChild(ifr);
12
- }, 0);
12
+ }, 50);
@@ -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);
@@ -1,10 +1,10 @@
1
1
 
2
- # Gem::Specification for Fiveruns_tuneup-0.8.7
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"
7
+ s.version = "0.8.8"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
@@ -66,7 +66,7 @@ module Fiveruns
66
66
 
67
67
  MAJOR = 0
68
68
  MINOR = 8
69
- TINY = 7
69
+ TINY = 8
70
70
 
71
71
  # The current version as a Version instance
72
72
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -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}")
@@ -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>
@@ -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 %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns_tuneup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team