fiveruns_tuneup 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/assets/images/edit.png +0 -0
- data/assets/images/magnify.png +0 -0
- data/assets/images/schema.png +0 -0
- data/assets/javascripts/tuneup.js +0 -0
- data/assets/stylesheets/tuneup.css +3 -2
- data/bin/fiveruns_tuneup +0 -0
- data/fiveruns_tuneup.gemspec +3 -3
- data/lib/fiveruns/tuneup.rb +1 -0
- data/lib/fiveruns/tuneup/instrumentation/utilities.rb +11 -3
- data/lib/fiveruns/tuneup/version.rb +1 -1
- data/lib/tuneup_controller.rb +2 -4
- data/rails/init.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/assets/images/edit.png
CHANGED
File without changes
|
data/assets/images/magnify.png
CHANGED
File without changes
|
data/assets/images/schema.png
CHANGED
File without changes
|
File without changes
|
@@ -67,9 +67,10 @@ version: 2.5.1
|
|
67
67
|
#tuneup .tuneup-layer-controller { background-color: #3388D5; }
|
68
68
|
#tuneup .tuneup-bar li.tuneup-layer-other { background: #222 url(/images/tuneup/fade_down.png) top left repeat-x;}
|
69
69
|
|
70
|
-
#tuneup #tuneup-
|
70
|
+
#tuneup #tuneup-data { position: relative;}
|
71
|
+
#tuneup #tuneup-top { position: absolute; top: 0px; right: 10px; padding: 0; margin: 0; z-index: 11000; width: 560px; }
|
71
72
|
#tuneup #tuneup-top #tuneup-save-link { line-height: 45px; vertical-align: bottom; margin: 9px; text-align: center; font-weight: bold; padding-left: 20px; background: url(/images/tuneup/pointer.gif) 0 50% no-repeat; }
|
72
|
-
#tuneup #tuneup-summary {float: right; padding: 9px; padding-bottom: 25px; margin: 3px; text-align: center; color: #ddd; -moz-border-radius: 6px; }
|
73
|
+
#tuneup #tuneup-summary {float: right; padding: 9px; width: 400px; padding-bottom: 25px; margin: 3px; text-align: center; color: #ddd; -moz-border-radius: 6px; }
|
73
74
|
|
74
75
|
#tuneup #tuneup-data:hover #tuneup-summary { /* h */
|
75
76
|
border-bottom: 0px;
|
data/bin/fiveruns_tuneup
CHANGED
File without changes
|
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.3
|
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.3"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Fiveruns_tuneup", "--main", "README.rdoc"]
|
23
23
|
s.require_paths = ["lib"]
|
24
24
|
s.rubyforge_project = %q{fiveruns}
|
25
|
-
s.rubygems_version = %q{1.
|
25
|
+
s.rubygems_version = %q{1.0.1}
|
26
26
|
s.summary = %q{Instrumentation for the FiveRuns TuneUp product.}
|
27
27
|
s.test_files = ["test/test_helper.rb", "test/tuneup_test.rb"]
|
28
28
|
|
data/lib/fiveruns/tuneup.rb
CHANGED
@@ -88,9 +88,9 @@ module Fiveruns
|
|
88
88
|
def instrument_filters(controller)
|
89
89
|
klass = controller.class
|
90
90
|
filters_for(klass).each do |filter|
|
91
|
-
format = alias_format_for(filter
|
91
|
+
format = alias_format_for(name_of_filter(filter))
|
92
92
|
next if controller.respond_to?(format % :with, true)
|
93
|
-
wrap(klass, format, filter
|
93
|
+
wrap(klass, format, name_of_filter(filter), "#{filter.type.to_s.titleize} filter #{name_of_filter(filter)}", :controller)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
@@ -143,7 +143,15 @@ module Fiveruns
|
|
143
143
|
end
|
144
144
|
|
145
145
|
def filters_for(klass)
|
146
|
-
klass.filter_chain.select { |f| f.
|
146
|
+
klass.filter_chain.select { |f| name_of_filter(f).is_a?(Symbol) }
|
147
|
+
end
|
148
|
+
|
149
|
+
def name_of_filter(filter)
|
150
|
+
if filter.respond_to?(:filter)
|
151
|
+
filter.filter
|
152
|
+
else
|
153
|
+
filter.method
|
154
|
+
end
|
147
155
|
end
|
148
156
|
|
149
157
|
def install_instrumentation
|
data/lib/tuneup_controller.rb
CHANGED
@@ -3,8 +3,6 @@ require 'ostruct'
|
|
3
3
|
require 'open-uri'
|
4
4
|
|
5
5
|
class TuneupController < ActionController::Base
|
6
|
-
|
7
|
-
self.logger = Fiveruns::Tuneup::LOGGER
|
8
6
|
|
9
7
|
def show
|
10
8
|
render :update do |page|
|
@@ -100,7 +98,7 @@ class TuneupController < ActionController::Base
|
|
100
98
|
when 201
|
101
99
|
return resp.body.strip rescue nil
|
102
100
|
else
|
103
|
-
Fiveruns::Tuneup.log :error, "
|
101
|
+
Fiveruns::Tuneup.log :error, "Received bad response from service (#{resp.inspect})"
|
104
102
|
return false
|
105
103
|
end
|
106
104
|
end
|
@@ -116,7 +114,7 @@ class TuneupController < ActionController::Base
|
|
116
114
|
when 200..299
|
117
115
|
resp.body.strip rescue nil
|
118
116
|
else
|
119
|
-
Fiveruns::Tuneup.log :error, "
|
117
|
+
Fiveruns::Tuneup.log :error, "Received bad response from service (#{resp.inspect})"
|
120
118
|
false
|
121
119
|
end
|
122
120
|
end
|
data/rails/init.rb
CHANGED
@@ -15,6 +15,6 @@ end
|
|
15
15
|
target.extend Fiveruns::Tuneup::CustomMethods
|
16
16
|
end
|
17
17
|
|
18
|
-
ActionController::Base.
|
18
|
+
ActionController::Base.append_view_path(File.dirname(__FILE__) << "/../views")
|
19
19
|
require File.dirname(__FILE__) << "/../install" # Check for assets
|
20
20
|
Fiveruns::Tuneup.start
|
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.3
|
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-05-30 00:00:00 -
|
12
|
+
date: 2008-05-30 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
requirements: []
|
138
138
|
|
139
139
|
rubyforge_project: fiveruns
|
140
|
-
rubygems_version: 1.
|
140
|
+
rubygems_version: 1.0.1
|
141
141
|
signing_key:
|
142
142
|
specification_version: 2
|
143
143
|
summary: Instrumentation for the FiveRuns TuneUp product.
|