fiveruns_tuneup 0.8.14 → 0.8.15

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.15. Removed use of all Rails JS helpers, this fixes an issue when jrails is used in the app (Thanks, Chris Zelenak)
2
+
1
3
  v0.8.13. Improved unobtrusive branding.
2
4
 
3
5
  v0.8.12. Added some inline branding.
data/CONTRIBUTORS CHANGED
@@ -1,3 +1,5 @@
1
+ * 2008-09-03: Chris Zelenak; pointed us in the right direction: a bug with tuneup + jrails
2
+
1
3
  * 2008-07-21: Bryan Liles; merged fallback log dir code from git://github.com/bryanl/fiveruns_tuneup.git (master:e5838f47f)
2
4
 
3
5
  * 2008-06-14: Howard Rauscher; merged javascript sandboxing code from git://github.com/howardr/fiveruns_tuneup.git (master:8cc558dbe)
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Fiveruns_tuneup-0.8.14
2
+ # Gem::Specification for Fiveruns_tuneup-0.8.15
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: fiveruns_tuneup
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.8.14
8
+ version: 0.8.15
9
9
  platform: ruby
10
10
  authors:
11
11
  - FiveRuns Development Team
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-08-29 00:00:00 -05:00
15
+ date: 2008-09-04 00:00:00 -05:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -75,7 +75,7 @@ module Fiveruns
75
75
 
76
76
  MAJOR = 0
77
77
  MINOR = 8
78
- TINY = 14
78
+ TINY = 15
79
79
 
80
80
  # The current version as a Version instance
81
81
  CURRENT = new(MAJOR, MINOR, TINY)
@@ -31,9 +31,9 @@ class TuneupController < ActionController::Base
31
31
  end
32
32
 
33
33
  def register
34
- render(:update) do |p|
35
- p['tuneup-panel'].hide
36
- p.insert_html(:bottom, 'tuneup-content', :partial => 'tuneup/panel/register.html.erb')
34
+ render :update do |page|
35
+ page << "$('tuneup-panel').hide();"
36
+ page << %[new Insertion.Bottom('tuneup-content', "#{escape_javascript(render(:partial => 'tuneup/panel/register.html.erb'))}");]
37
37
  end
38
38
  end
39
39
 
@@ -45,7 +45,7 @@ class TuneupController < ActionController::Base
45
45
  end
46
46
  render :update do |page|
47
47
  if api_key
48
- page.replace('tuneup-save-link', link_to_upload)
48
+ page << "$('tuneup-save-link').replace('#{escape_javascript(link_to_upload)}');"
49
49
  page << redisplay_last_run(false)
50
50
  else
51
51
  page << tuneup_show_flash(:error,
@@ -103,7 +103,9 @@ class TuneupController < ActionController::Base
103
103
 
104
104
  def collect(state)
105
105
  Fiveruns::Tuneup.collecting = state
106
- render(:update) { |p| p['tuneup-panel'].replace(render(:partial => 'tuneup/panel/show.html.erb')) }
106
+ render :update do |page|
107
+ page << %[$('tuneup-panel').update("#{escape_javascript(render(:partial => 'tuneup/panel/show.html.erb'))}")]
108
+ end
107
109
  end
108
110
 
109
111
  def find_config
data/lib/tuneup_helper.rb CHANGED
@@ -172,8 +172,8 @@ module TuneupHelper #:nodoc:
172
172
 
173
173
  def tuneup_reload_panel
174
174
  update_page do |page|
175
- page['tuneup-flash'].removeClassName('tuneup-show');
176
- page['tuneup-content'].replace_html(render(:partial => "tuneup/panel/show.html.erb"))
175
+ page << "$('tuneup-flash').removeClassName('tuneup-show');"
176
+ page << %[$('tuneup-content').update("#{escape_javascript(render(:partial => 'tuneup/panel/show.html.erb'))}");]
177
177
  page << 'TuneUp.adjustAbsoluteElements(_document.body);'
178
178
  page << 'TuneUp.adjustFixedElements();'
179
179
  end
@@ -182,12 +182,12 @@ module TuneupHelper #:nodoc:
182
182
  def tuneup_show_flash(type, locals)
183
183
  types = [:error, :notice].reject { |t| t == type }
184
184
  update_page do |page|
185
- page['tuneup-flash'].replace_html(render(:partial => 'flash.html.erb', :locals => locals.merge(:type => type)))
186
- page['tuneup-flash'].addClassName('tuneup-show');
185
+ page << %[$('tuneup-flash').update("#{escape_javascript(render(:partial => 'flash.html.erb', :locals => locals.merge(:type => type)))}");]
186
+ page << "$('tuneup-flash').addClassName('tuneup-show')"
187
187
  types.each do |other_type|
188
- page['tuneup-flash'].removeClassName("tuneup-#{other_type}")
188
+ page << "$('tuneup-flash').removeClassName('tuneup-#{other_type}')"
189
189
  end
190
- page['tuneup-flash'].addClassName("tuneup-#{type}");
190
+ page << "$('tuneup-flash').addClassName('tuneup-#{type}')"
191
191
  page << 'TuneUp.adjustAbsoluteElements(_document.body);'
192
192
  page << 'TuneUp.adjustFixedElements();'
193
193
  end
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.14
4
+ version: 0.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-29 00:00:00 -05:00
12
+ date: 2008-09-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency