mwilden-metric_fu 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +15 -0
- data/TODO +0 -4
- data/lib/base/configuration.rb +1 -21
- data/lib/base/graph.rb +1 -0
- data/lib/generators/churn.rb +0 -1
- data/lib/generators/flay.rb +0 -1
- data/lib/generators/flog.rb +7 -3
- data/lib/generators/rcov.rb +2 -2
- data/lib/graphs/flay_grapher.rb +3 -2
- data/lib/graphs/flog_grapher.rb +20 -6
- data/lib/graphs/grapher.rb +19 -0
- data/lib/graphs/rcov_grapher.rb +2 -2
- data/lib/graphs/reek_grapher.rb +2 -2
- data/lib/graphs/roodi_grapher.rb +2 -2
- data/lib/metric_fu.rb +8 -2
- data/lib/templates/awesome/css/buttons.css +82 -0
- data/lib/templates/awesome/{default.css → css/default.css} +0 -0
- data/lib/templates/awesome/css/integrity.css +335 -0
- data/lib/templates/awesome/css/reset.css +7 -0
- data/lib/templates/awesome/flog.html.erb +1 -0
- data/lib/templates/awesome/layout.html.erb +4 -4
- data/spec/base/configuration_spec.rb +49 -52
- data/spec/base/graph_spec.rb +24 -0
- data/spec/graphs/flay_grapher_spec.rb +44 -0
- data/spec/graphs/flog_grapher_spec.rb +56 -10
- data/spec/graphs/grapher_spec.rb +9 -0
- data/spec/graphs/rcov_grapher_spec.rb +44 -0
- data/spec/graphs/reek_grapher_spec.rb +53 -0
- data/spec/graphs/roodi_grapher_spec.rb +44 -0
- data/spec/resources/yml/20090630.yml +7844 -0
- data/spec/spec_helper.rb +1 -23
- metadata +13 -12
data/HISTORY
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
=== MetricFu 1.1.3 / 2009-7-10
|
2
|
+
|
3
|
+
* MetricFu is now Ruby 1.9x compatible
|
4
|
+
* Removed the check for deprecated ways of configuring metric_fu as the tests were causing Ruby 1.9x problems and it's been forever since they were supported.
|
5
|
+
* Removed total flog score from graph (which will always go up and so doesn't mean much) and replacing it with top_five_percent_average which is an average of the worst 5 percent of your methods.
|
6
|
+
* Sort Flog by highest score in the class which I feel is more important than the total flog flog score.
|
7
|
+
|
8
|
+
=== MetricFu 1.1.2 / 2009-7-09
|
9
|
+
|
10
|
+
* Removed dependency on gruff and rmagick (unless the user wants graphs, of course).
|
11
|
+
* New look for styling -- Edouard Brière
|
12
|
+
* Extra param in rcov call was causing problems -- Stewart Welbourne
|
13
|
+
* Preventing rake task from being run multiple times when other rake tasks switch the environment -- Matthew Van Horn
|
14
|
+
* Typo in Rcov dependency verification and fixing parsing Saikuro nested information -- Mark Wilden
|
15
|
+
|
1
16
|
=== MetricFu 1.1.1 / 2009-6-29
|
2
17
|
|
3
18
|
* Fix for empty flog files
|
data/TODO
CHANGED
@@ -2,10 +2,6 @@
|
|
2
2
|
|
3
3
|
* Color code flog results with scale from: http://jakescruggs.blogspot.com/2008/08/whats-good-flog-score.html
|
4
4
|
* Integrate Flog, Saikuro, and Coverage into one report so you can see methods that have high complexity and low coverage (this is a big one)
|
5
|
-
* Move HTML out of code and into templates/
|
6
|
-
* Replace #generate_report with #new on each metric class
|
7
|
-
* Make each class descend from MetricFu::CodeMetric
|
8
|
-
* Generate metrics:* rake tasks for each of CodeMetric's descendants
|
9
5
|
* Update flog specs so that they actually run flog
|
10
6
|
* Add flay specs that run flay
|
11
7
|
* Convert readme to markdown and rename to README.mkdn so github will render it
|
data/lib/base/configuration.rb
CHANGED
@@ -51,7 +51,6 @@ module MetricFu
|
|
51
51
|
class Configuration
|
52
52
|
|
53
53
|
def initialize #:nodoc:#
|
54
|
-
warn_about_deprecated_config_options
|
55
54
|
reset
|
56
55
|
add_attr_accessors_to_self
|
57
56
|
add_class_methods_to_metric_fu
|
@@ -82,25 +81,6 @@ module MetricFu
|
|
82
81
|
end
|
83
82
|
end
|
84
83
|
|
85
|
-
# Check if certain constants that are deprecated have been
|
86
|
-
# assigned. If so, warn the user about them, and the
|
87
|
-
# fact that they will have no effect.
|
88
|
-
def warn_about_deprecated_config_options
|
89
|
-
if defined?(::MetricFu::CHURN_OPTIONS)
|
90
|
-
raise("Use config.churn instead of MetricFu::CHURN_OPTIONS")
|
91
|
-
end
|
92
|
-
if defined?(::MetricFu::DIRECTORIES_TO_FLOG)
|
93
|
-
raise("Use config.flog[:dirs_to_flog] "+
|
94
|
-
"instead of MetricFu::DIRECTORIES_TO_FLOG")
|
95
|
-
end
|
96
|
-
if defined?(::MetricFu::SAIKURO_OPTIONS)
|
97
|
-
raise("Use config.saikuro instead of MetricFu::SAIKURO_OPTIONS")
|
98
|
-
end
|
99
|
-
if defined?(SAIKURO_OPTIONS)
|
100
|
-
raise("Use config.saikuro instead of SAIKURO_OPTIONS")
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
84
|
# This allows us to have a nice syntax like:
|
105
85
|
#
|
106
86
|
# MetricFu.run do |config|
|
@@ -197,7 +177,7 @@ module MetricFu
|
|
197
177
|
end
|
198
178
|
|
199
179
|
def platform #:nodoc:
|
200
|
-
return
|
180
|
+
return RUBY_PLATFORM
|
201
181
|
end
|
202
182
|
|
203
183
|
def is_cruise_control_rb?
|
data/lib/base/graph.rb
CHANGED
data/lib/generators/churn.rb
CHANGED
data/lib/generators/flay.rb
CHANGED
data/lib/generators/flog.rb
CHANGED
@@ -3,8 +3,12 @@ module MetricFu
|
|
3
3
|
class Flog < Generator
|
4
4
|
attr_reader :pages
|
5
5
|
|
6
|
+
def self.flog_command
|
7
|
+
File.dirname(__FILE__) + '/../../vendor/flog/flog'
|
8
|
+
end
|
9
|
+
|
6
10
|
def self.verify_dependencies!
|
7
|
-
|
11
|
+
`#{flog_command} --help`
|
8
12
|
raise 'sudo gem install flog # if you want the flog tasks' unless $?.success?
|
9
13
|
end
|
10
14
|
|
@@ -19,7 +23,7 @@ module MetricFu
|
|
19
23
|
output_dir = "#{metric_dir}/#{filename.split("/")[0..-2].join("/")}"
|
20
24
|
mkdir_p(output_dir, :verbose => false) unless File.directory?(output_dir)
|
21
25
|
if MetricFu::MD5Tracker.file_changed?(filename, metric_dir)
|
22
|
-
|
26
|
+
`#{self.class.flog_command} -ad #{filename} > #{metric_dir}/#{filename.split('.')[0]}.txt`
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|
@@ -62,7 +66,7 @@ module MetricFu
|
|
62
66
|
def to_h
|
63
67
|
number_of_methods = @pages.inject(0) {|count, page| count += page.scanned_methods.size}
|
64
68
|
total_flog_score = @pages.inject(0) {|total, page| total += page.score}
|
65
|
-
sorted_pages = @pages.sort_by {|page| page.
|
69
|
+
sorted_pages = @pages.sort_by {|page| page.highest_score }.reverse
|
66
70
|
{:flog => { :total => total_flog_score,
|
67
71
|
:average => average_score(total_flog_score, number_of_methods),
|
68
72
|
:pages => sorted_pages.map {|page| page.to_h}}}
|
data/lib/generators/rcov.rb
CHANGED
@@ -6,7 +6,7 @@ module MetricFu
|
|
6
6
|
NEW_FILE_MARKER = ("=" * 80) + "\n"
|
7
7
|
|
8
8
|
def self.verify_dependencies!
|
9
|
-
`
|
9
|
+
`rcov --help`
|
10
10
|
unless $?.success?
|
11
11
|
if RUBY_PLATFORM =~ /java/
|
12
12
|
raise 'running in jruby - rcov tasks not available'
|
@@ -36,7 +36,7 @@ module MetricFu
|
|
36
36
|
test_files = FileList[*MetricFu.rcov[:test_files]].join(' ')
|
37
37
|
rcov_opts = MetricFu.rcov[:rcov_opts].join(' ')
|
38
38
|
output = ">> #{MetricFu::Rcov.metric_directory}/rcov.txt"
|
39
|
-
`rcov
|
39
|
+
`rcov #{test_files} #{rcov_opts} #{output}`
|
40
40
|
rescue LoadError
|
41
41
|
if RUBY_PLATFORM =~ /java/
|
42
42
|
puts 'running in jruby - rcov tasks not available'
|
data/lib/graphs/flay_grapher.rb
CHANGED
data/lib/graphs/flog_grapher.rb
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
require 'gruff'
|
2
1
|
module MetricFu
|
3
2
|
|
4
|
-
class FlogGrapher
|
3
|
+
class FlogGrapher < Grapher
|
5
4
|
|
6
|
-
attr_accessor :
|
5
|
+
attr_accessor :flog_average, :labels, :top_five_percent_average
|
7
6
|
|
8
7
|
def initialize
|
9
|
-
|
8
|
+
super
|
10
9
|
self.flog_average = []
|
11
10
|
self.labels = {}
|
11
|
+
self.top_five_percent_average =[]
|
12
12
|
end
|
13
13
|
|
14
14
|
def get_metrics(metrics, date)
|
15
|
-
self.
|
15
|
+
self.top_five_percent_average.push(calc_top_five_percent_average(metrics))
|
16
16
|
self.flog_average.push(metrics[:flog][:average])
|
17
17
|
self.labels.update( { self.labels.size => date })
|
18
18
|
end
|
@@ -22,7 +22,7 @@ module MetricFu
|
|
22
22
|
g.title = "Flog: code complexity"
|
23
23
|
g.theme = MetricFu.graph_theme
|
24
24
|
g.font = MetricFu.graph_font
|
25
|
-
g.data('
|
25
|
+
g.data('top five percent average', self.top_five_percent_average)
|
26
26
|
g.data('flog average', self.flog_average)
|
27
27
|
g.labels = self.labels
|
28
28
|
g.title_font_size = MetricFu.graph_title_font_size
|
@@ -32,6 +32,20 @@ module MetricFu
|
|
32
32
|
g.write(File.join(MetricFu.output_directory, 'flog.png'))
|
33
33
|
end
|
34
34
|
|
35
|
+
private
|
36
|
+
|
37
|
+
def calc_top_five_percent_average(metrics)
|
38
|
+
methods = metrics[:flog][:pages].inject([]) {|methods, page| methods << page[:scanned_methods]}
|
39
|
+
methods.flatten!
|
40
|
+
|
41
|
+
methods = methods.sort_by {|method| method[:score]}.reverse
|
42
|
+
|
43
|
+
number_of_methods_that_is_five_percent = (methods.size * 0.05).ceil
|
44
|
+
|
45
|
+
total_for_five_percent = methods[0...number_of_methods_that_is_five_percent].inject(0) {|total, method| total += method[:score]}
|
46
|
+
total_for_five_percent / number_of_methods_that_is_five_percent.to_f
|
47
|
+
end
|
48
|
+
|
35
49
|
end
|
36
50
|
|
37
51
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module MetricFu
|
2
|
+
class Grapher
|
3
|
+
def initialize
|
4
|
+
self.class.require_gruff
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.require_gruff
|
8
|
+
require 'gruff'
|
9
|
+
rescue LoadError
|
10
|
+
puts "#"*99 + "\n" +
|
11
|
+
"If you want to use metric_fu's graphing features then you'll need to install the gems " +
|
12
|
+
"'topfunky-gruff' (or 'umang-gruff' if you use 1.9x) and 'rmagick' (and rmagick requires ImageMagick). "+
|
13
|
+
"If you don't want to deal with that, then make sure you set config.graphs = [] (see the metric_fu's homepage for more details) "+
|
14
|
+
"to indicate that you don't want graphing." +
|
15
|
+
"\n" + "#"*99
|
16
|
+
raise
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/graphs/rcov_grapher.rb
CHANGED
data/lib/graphs/reek_grapher.rb
CHANGED
data/lib/graphs/roodi_grapher.rb
CHANGED
data/lib/metric_fu.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'yaml'
|
1
3
|
# Load a few things to make our lives easier elsewhere.
|
2
4
|
module MetricFu
|
3
5
|
LIB_ROOT = File.dirname(__FILE__)
|
@@ -13,12 +15,16 @@ require File.join(base_dir, 'report')
|
|
13
15
|
require File.join(base_dir, 'generator')
|
14
16
|
require File.join(base_dir, 'graph')
|
15
17
|
|
16
|
-
#
|
17
|
-
|
18
|
+
# prevent the task from being run multiple times.
|
19
|
+
unless Rake::Task.task_defined? "metrics:all"
|
20
|
+
# Load the rakefile so users of the gem get the default metric_fu task
|
21
|
+
load File.join(MetricFu::LIB_ROOT, '..', 'tasks', 'metric_fu.rake')
|
22
|
+
end
|
18
23
|
|
19
24
|
# Now load everything else that's in the directory
|
20
25
|
Dir[File.join(base_dir, '*.rb')].each{|l| require l }
|
21
26
|
Dir[File.join(generator_dir, '*.rb')].each {|l| require l }
|
22
27
|
Dir[File.join(template_dir, 'standard/*.rb')].each {|l| require l}
|
23
28
|
Dir[File.join(template_dir, 'awesome/*.rb')].each {|l| require l}
|
29
|
+
require graph_dir + "/grapher"
|
24
30
|
Dir[File.join(graph_dir, '*.rb')].each {|l| require l}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
buttons.css
|
4
|
+
* Gives you some great CSS-only buttons.
|
5
|
+
|
6
|
+
Created by Kevin Hale [particletree.com]
|
7
|
+
* particletree.com/features/rediscovering-the-button-element
|
8
|
+
|
9
|
+
See Readme.txt in this folder for instructions.
|
10
|
+
|
11
|
+
-------------------------------------------------------------- */
|
12
|
+
|
13
|
+
button {
|
14
|
+
display:block;
|
15
|
+
float:left;
|
16
|
+
margin:0 0.583em 0.667em 0;
|
17
|
+
padding:5px 10px 5px 7px; /* Links */
|
18
|
+
|
19
|
+
border:1px solid #dedede;
|
20
|
+
border-top:1px solid #eee;
|
21
|
+
border-left:1px solid #eee;
|
22
|
+
|
23
|
+
background-color:#f5f5f5;
|
24
|
+
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
25
|
+
font-size:100%;
|
26
|
+
line-height:130%;
|
27
|
+
text-decoration:none;
|
28
|
+
font-weight:bold;
|
29
|
+
color:#565656;
|
30
|
+
cursor:pointer;
|
31
|
+
}
|
32
|
+
button {
|
33
|
+
width:auto;
|
34
|
+
overflow:visible;
|
35
|
+
padding:4px 10px 3px 7px; /* IE6 */
|
36
|
+
}
|
37
|
+
button[type] {
|
38
|
+
padding:4px 10px 4px 7px; /* Firefox */
|
39
|
+
line-height:17px; /* Safari */
|
40
|
+
}
|
41
|
+
*:first-child+html button[type] {
|
42
|
+
padding:4px 10px 3px 7px; /* IE7 */
|
43
|
+
}
|
44
|
+
button img {
|
45
|
+
margin:0 3px -3px 0 !important;
|
46
|
+
padding:0;
|
47
|
+
border:none;
|
48
|
+
width:16px;
|
49
|
+
height:16px;
|
50
|
+
float:none;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/* Button colors
|
55
|
+
-------------------------------------------------------------- */
|
56
|
+
|
57
|
+
/* Standard */
|
58
|
+
button:hover {
|
59
|
+
background-color:#dff4ff;
|
60
|
+
border:1px solid #c2e1ef;
|
61
|
+
color:#336699;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* Positive */
|
65
|
+
body .positive {
|
66
|
+
color:#529214;
|
67
|
+
}
|
68
|
+
button.positive:hover {
|
69
|
+
background-color:#E6EFC2;
|
70
|
+
border:1px solid #C6D880;
|
71
|
+
color:#529214;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Negative */
|
75
|
+
body .negative {
|
76
|
+
color:#d12f19;
|
77
|
+
}
|
78
|
+
button.negative:hover {
|
79
|
+
background:#fbe3e4;
|
80
|
+
border:1px solid #fbc2c4;
|
81
|
+
color:#d12f19;
|
82
|
+
}
|
File without changes
|
@@ -0,0 +1,335 @@
|
|
1
|
+
html {
|
2
|
+
background-color: #e0e0e0; }
|
3
|
+
|
4
|
+
body {
|
5
|
+
font-size: 100%;
|
6
|
+
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
|
7
|
+
color: #333333; }
|
8
|
+
|
9
|
+
a {
|
10
|
+
color: #ed1556;
|
11
|
+
text-decoration: none; }
|
12
|
+
a:hover {
|
13
|
+
color: #ffffff;
|
14
|
+
background-color: #ed1556; }
|
15
|
+
|
16
|
+
#header, #content, #footer {
|
17
|
+
margin: 0 auto;
|
18
|
+
background: #eeeeee;
|
19
|
+
padding: 0 2em;
|
20
|
+
z-index: 0;
|
21
|
+
position: relative;
|
22
|
+
font-size: 1em; }
|
23
|
+
|
24
|
+
#header {
|
25
|
+
background: #ffffff; }
|
26
|
+
#header h1 {
|
27
|
+
font-weight: bold;
|
28
|
+
font-size: 1.5em; }
|
29
|
+
#header address.watermark {
|
30
|
+
position: absolute;
|
31
|
+
font-weight: bold;
|
32
|
+
right: 3em;
|
33
|
+
top: 0;
|
34
|
+
font-size: .75em;
|
35
|
+
color: #cccccc; }
|
36
|
+
#header address.watermark a {
|
37
|
+
color: #cccccc;
|
38
|
+
font-weight: bold;
|
39
|
+
font-size: 2em; }
|
40
|
+
#header address.watermark a:hover {
|
41
|
+
background: transparent;
|
42
|
+
color: #aaaaaa; }
|
43
|
+
|
44
|
+
#content {
|
45
|
+
padding-top: 1em;
|
46
|
+
padding-bottom: 2em; }
|
47
|
+
#content strong {
|
48
|
+
font-weight: bold; }
|
49
|
+
#content em {
|
50
|
+
font-style: italic; }
|
51
|
+
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 {
|
52
|
+
color: #4e4e4e; }
|
53
|
+
#content h1 {
|
54
|
+
font-size: 2em;
|
55
|
+
font-weight: bold;
|
56
|
+
margin-bottom: .75em;
|
57
|
+
padding: .25em 0;
|
58
|
+
line-height: 1.2;
|
59
|
+
border-bottom: 1px solid #c0c0c0; }
|
60
|
+
#content h2 {
|
61
|
+
font-weight: bold;
|
62
|
+
font-size: 1.5em;
|
63
|
+
margin: 1em 0 .2em; }
|
64
|
+
#content h3 {
|
65
|
+
font-weight: bold;
|
66
|
+
font-size: 1.25em;
|
67
|
+
margin: .25em 0; }
|
68
|
+
#content h4, #content h5, #content h6 {
|
69
|
+
font-weight: bold;
|
70
|
+
margin-top: .5em; }
|
71
|
+
#content code, #content pre, #content textarea, #content input {
|
72
|
+
font-family: Monaco, Deja Vu Sans Mono, Inconsolata, Consolas, monospace; }
|
73
|
+
#content form p {
|
74
|
+
margin-top: 1em;
|
75
|
+
position: relative; }
|
76
|
+
#content form p.checkbox label {
|
77
|
+
margin-top: 0 !important; }
|
78
|
+
#content form input.text, #content form textarea {
|
79
|
+
width: 30em;
|
80
|
+
padding: .2em .4em;
|
81
|
+
color: #4e4e4e; }
|
82
|
+
#content form input.text {
|
83
|
+
height: 1.4em; }
|
84
|
+
#content form label {
|
85
|
+
float: left;
|
86
|
+
display: block;
|
87
|
+
margin-top: .5em;
|
88
|
+
width: 8em;
|
89
|
+
margin-right: .75em; }
|
90
|
+
#content form .with_errors label {
|
91
|
+
background: red;
|
92
|
+
color: white;
|
93
|
+
position: relative;
|
94
|
+
top: -.7em; }
|
95
|
+
#content form .with_errors.required label {
|
96
|
+
position: static;
|
97
|
+
margin-right: .25em;
|
98
|
+
padding: 0 .2em; }
|
99
|
+
#content form .with_errors input, #content form .with_errors textarea {
|
100
|
+
border: 2px solid #f22;
|
101
|
+
background: #fee;
|
102
|
+
color: #222222; }
|
103
|
+
#content form .required label {
|
104
|
+
float: none;
|
105
|
+
display: block;
|
106
|
+
width: auto;
|
107
|
+
position: relative;
|
108
|
+
font-weight: bold;
|
109
|
+
margin-top: 1em;
|
110
|
+
text-indent: -.65em; }
|
111
|
+
#content form .required label:before {
|
112
|
+
content: "* ";
|
113
|
+
color: #ed1556; }
|
114
|
+
#content form .required input.text {
|
115
|
+
width: 25.6em;
|
116
|
+
font-size: 24px;
|
117
|
+
font-weight: bold; }
|
118
|
+
#content form .normal {
|
119
|
+
margin-top: 2em; }
|
120
|
+
#content form h2.notifier label {
|
121
|
+
float: none;
|
122
|
+
width: auto;
|
123
|
+
margin-right: 0; }
|
124
|
+
#content form h2.notifier label .warning {
|
125
|
+
font-size: .5em;
|
126
|
+
font-weight: normal;
|
127
|
+
color: #999999; }
|
128
|
+
#content form fieldset {
|
129
|
+
padding-bottom: 1em;
|
130
|
+
margin-left: 1.35em;
|
131
|
+
border-bottom: 1px solid #c0c0c0;
|
132
|
+
margin-bottom: 1em; }
|
133
|
+
#content form fieldset h3 {
|
134
|
+
margin-top: 1em;
|
135
|
+
margin-bottom: 0; }
|
136
|
+
#content form fieldset p.normal {
|
137
|
+
margin-top: 1em; }
|
138
|
+
#content form fieldset p label {
|
139
|
+
width: 6.7em; }
|
140
|
+
#content form p.submit {
|
141
|
+
margin-top: 2em; }
|
142
|
+
#content form p.submit:after {
|
143
|
+
display: block;
|
144
|
+
clear: both;
|
145
|
+
float: none;
|
146
|
+
content: ".";
|
147
|
+
text-indent: -9999em;
|
148
|
+
text-align: left; }
|
149
|
+
#content form p.submit.destroy button, #content form p.submit.manual-build button {
|
150
|
+
float: none;
|
151
|
+
display: inline; }
|
152
|
+
#content form p.submit.manual-build button {
|
153
|
+
margin-right: 0; }
|
154
|
+
#content #build form, #content #last_build form {
|
155
|
+
font-size: .75em; }
|
156
|
+
#content #build form p.submit, #content #last_build form p.submit {
|
157
|
+
margin: 0;
|
158
|
+
padding: 0;
|
159
|
+
position: absolute;
|
160
|
+
right: .5em;
|
161
|
+
top: 1.25em; }
|
162
|
+
#content .blank_slate p, #content .error p {
|
163
|
+
position: relative;
|
164
|
+
top: .3em; }
|
165
|
+
#content .blank_slate h1, #content .error h1 {
|
166
|
+
border-width: 0;
|
167
|
+
margin: 0;
|
168
|
+
padding: 0; }
|
169
|
+
#content .blank_slate h1 button, #content .error h1 button {
|
170
|
+
float: none;
|
171
|
+
border: 0 none;
|
172
|
+
background: transparent;
|
173
|
+
display: inline;
|
174
|
+
color: #ed1556;
|
175
|
+
padding: 0.25em 0;
|
176
|
+
margin: 0; }
|
177
|
+
#content .blank_slate h1 button:hover, #content .error h1 button:hover {
|
178
|
+
background: #ed1556;
|
179
|
+
color: #ffffff; }
|
180
|
+
#content .error dt {
|
181
|
+
margin-top: 1.4em;
|
182
|
+
margin-bottom: .3em;
|
183
|
+
font-size: 1.75em;
|
184
|
+
font-family: Georgia, Times New Roman, serif; }
|
185
|
+
#content .error dd {
|
186
|
+
line-height: 1.4; }
|
187
|
+
#content .error .backtrace {
|
188
|
+
margin: 1em 0;
|
189
|
+
overflow: scroll;
|
190
|
+
height: 30em;
|
191
|
+
border: 1px solid #c0c0c0;
|
192
|
+
line-height: 1.6; }
|
193
|
+
#content #projects {
|
194
|
+
margin: 1em 0 2em;
|
195
|
+
border-top: 1px solid #c0c0c0; }
|
196
|
+
#content #projects li {
|
197
|
+
position: relative;
|
198
|
+
border-bottom: 1px solid #c0c0c0; }
|
199
|
+
#content #projects li.odd {
|
200
|
+
background: #e6e6e6; }
|
201
|
+
#content #projects li.building {
|
202
|
+
background: transparent url(/spinner.gif) no-repeat scroll right; }
|
203
|
+
#content #projects li a {
|
204
|
+
font-size: 2em;
|
205
|
+
padding: .25em;
|
206
|
+
line-height: 1.2;
|
207
|
+
font-weight: bold;
|
208
|
+
display: block; }
|
209
|
+
#content #projects li a.success {
|
210
|
+
color: #337022; }
|
211
|
+
#content #projects li a.failed {
|
212
|
+
color: #ff1100; }
|
213
|
+
#content #projects li .meta {
|
214
|
+
position: absolute;
|
215
|
+
right: .6em;
|
216
|
+
top: 1.5em;
|
217
|
+
font-size: 0.8em;
|
218
|
+
color: #999999;
|
219
|
+
text-align: right; }
|
220
|
+
#content #projects li.building .meta {
|
221
|
+
right: 1.6em; }
|
222
|
+
#content #projects li.success .meta {
|
223
|
+
color: #337022; }
|
224
|
+
#content #projects li.failed .meta {
|
225
|
+
color: #ff1100; }
|
226
|
+
#content #previous_builds li a {
|
227
|
+
display: block;
|
228
|
+
padding: .25em;
|
229
|
+
margin-bottom: .25em;
|
230
|
+
border-width: 1px;
|
231
|
+
border-style: solid; }
|
232
|
+
#content #previous_builds li a strong {
|
233
|
+
font-size: 1.3em; }
|
234
|
+
#content #previous_builds li a .attribution {
|
235
|
+
font-size: .9em; }
|
236
|
+
#content #projects li.success a, #content #previous_builds li.success a {
|
237
|
+
background-color: #bbf8aa;
|
238
|
+
border-color: #99d688;
|
239
|
+
color: #337022; }
|
240
|
+
#content #projects li.success a .attribution, #content #previous_builds li.success a .attribution {
|
241
|
+
color: #77b466; }
|
242
|
+
#content #projects li.success a:hover, #content #previous_builds li.success a:hover {
|
243
|
+
background-color: #ddffcc; }
|
244
|
+
#content #projects li.failed a, #content #previous_builds li.failed a {
|
245
|
+
background-color: #ffbbaa;
|
246
|
+
border-color: #dd9988;
|
247
|
+
color: #ff1100; }
|
248
|
+
#content #projects li.failed a .attribution, #content #previous_builds li.failed a .attribution {
|
249
|
+
color: #bb7766; }
|
250
|
+
#content #projects li.failed a:hover, #content #previous_builds li.failed a:hover {
|
251
|
+
background-color: #ffddcc; }
|
252
|
+
#content #build, #content #last_build {
|
253
|
+
position: relative; }
|
254
|
+
#content #build h1, #content #build blockquote, #content #last_build h1, #content #last_build blockquote {
|
255
|
+
border-width: 0 1px;
|
256
|
+
border-style: solid; }
|
257
|
+
#content #build h1, #content #last_build h1 {
|
258
|
+
border-top-width: 1px; }
|
259
|
+
#content #build blockquote, #content #last_build blockquote {
|
260
|
+
bottom-bottom-width: 1px;
|
261
|
+
line-height: 1.4; }
|
262
|
+
#content #build.success h1, #content #build.success blockquote, #content #last_build.success h1, #content #last_build.success blockquote {
|
263
|
+
background-color: #bbf8aa;
|
264
|
+
border-color: #99d688 #ccffbb #ccffbb #99d688; }
|
265
|
+
#content #build.success h1, #content #last_build.success h1 {
|
266
|
+
color: #337022; }
|
267
|
+
#content #build.success .meta, #content #last_build.success .meta {
|
268
|
+
color: #77b466; }
|
269
|
+
#content #build.failed h1, #content #build.failed blockquote, #content #last_build.failed h1, #content #last_build.failed blockquote {
|
270
|
+
background-color: #ffbbaa;
|
271
|
+
border-color: #dd9988 #ffccbb #ffccbb #dd9988; }
|
272
|
+
#content #build.failed h1, #content #last_build.failed h1 {
|
273
|
+
color: #ff1100; }
|
274
|
+
#content #build.failed .meta, #content #last_build.failed .meta {
|
275
|
+
color: #bb7766; }
|
276
|
+
#content #build h1, #content #last_build h1 {
|
277
|
+
margin-top: .5em;
|
278
|
+
margin-bottom: 0;
|
279
|
+
padding: .25em;
|
280
|
+
color: #337022; }
|
281
|
+
#content #build blockquote, #content #last_build blockquote {
|
282
|
+
padding: .75em;
|
283
|
+
margin-bottom: 2em; }
|
284
|
+
#content #build blockquote .meta, #content #last_build blockquote .meta {
|
285
|
+
margin-top: 1em;
|
286
|
+
display: block;
|
287
|
+
font-size: .9em; }
|
288
|
+
#content #build pre.output, #content #last_build pre.output {
|
289
|
+
background: #111;
|
290
|
+
color: #fff;
|
291
|
+
padding: .5em;
|
292
|
+
overflow: auto;
|
293
|
+
max-height: 50em;
|
294
|
+
font-size: .825em; }
|
295
|
+
#content #build pre.output .color30, #content #last_build pre.output .color30 {
|
296
|
+
color: #333; }
|
297
|
+
#content #build pre.output .color31, #content #last_build pre.output .color31 {
|
298
|
+
color: #e33; }
|
299
|
+
#content #build pre.output .color32, #content #last_build pre.output .color32 {
|
300
|
+
color: #3e3; }
|
301
|
+
#content #build pre.output .color33, #content #last_build pre.output .color33 {
|
302
|
+
color: #ee3; }
|
303
|
+
#content #build pre.output .color34, #content #last_build pre.output .color34 {
|
304
|
+
color: #33e; }
|
305
|
+
#content #build pre.output .color35, #content #last_build pre.output .color35 {
|
306
|
+
color: #e3e; }
|
307
|
+
#content #build pre.output .color36, #content #last_build pre.output .color36 {
|
308
|
+
color: #3ee; }
|
309
|
+
#content #build pre.output .color37, #content #last_build pre.output .color37 {
|
310
|
+
color: #fff; }
|
311
|
+
#content #push_path {
|
312
|
+
display: block;
|
313
|
+
margin-top: 1em;
|
314
|
+
margin-left: 2em; }
|
315
|
+
|
316
|
+
a.success {
|
317
|
+
color: #bbf8aa; }
|
318
|
+
a.success:hover {
|
319
|
+
background-color: #bbf8aa;
|
320
|
+
color: white; }
|
321
|
+
a.failed {
|
322
|
+
color: #ffbbaa; }
|
323
|
+
a.failed:hover {
|
324
|
+
background-color: #ffbbaa;
|
325
|
+
color: white; }
|
326
|
+
|
327
|
+
#footer {
|
328
|
+
padding: 1.5em 2.5em;
|
329
|
+
border-top: 1px solid #ccc;
|
330
|
+
font-size: .8em;
|
331
|
+
color: #666;
|
332
|
+
text-align: right; }
|
333
|
+
#footer strong {
|
334
|
+
font-weight: bold; }
|
335
|
+
|