fiveruns_tuneup 0.8.14 → 0.8.15
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/CONTRIBUTORS +2 -0
- data/fiveruns_tuneup.gemspec +3 -3
- data/lib/fiveruns/tuneup/version.rb +1 -1
- data/lib/tuneup_controller.rb +7 -5
- data/lib/tuneup_helper.rb +6 -6
- metadata +2 -2
data/CHANGELOG
CHANGED
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)
|
data/fiveruns_tuneup.gemspec
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Fiveruns_tuneup-0.8.
|
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.
|
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-
|
15
|
+
date: 2008-09-04 00:00:00 -05:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
data/lib/tuneup_controller.rb
CHANGED
@@ -31,9 +31,9 @@ class TuneupController < ActionController::Base
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def register
|
34
|
-
render
|
35
|
-
|
36
|
-
|
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
|
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
|
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
|
176
|
-
page['tuneup-content'
|
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'
|
186
|
-
page
|
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
|
188
|
+
page << "$('tuneup-flash').removeClassName('tuneup-#{other_type}')"
|
189
189
|
end
|
190
|
-
page
|
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.
|
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-
|
12
|
+
date: 2008-09-04 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|