public
Rubygem
Description: A benchmarking helper for httperf.
Homepage: http://bong.rubyforge.org/
Clone URL: git://github.com/topfunky/bong.git
Move gruff requirement to method that uses it so people can run the rest 
of the app without it.
topfunky (author)
Tue Jul 15 11:25:25 -0700 2008
commit  407011327a8077190969555b6278e3b3140ddeb2
tree    61506091bc819c2a5fdbfe212083db12b7a0e16a
parent  2ba7a2489b2070d9089b964695b7eaecc700cb1b
...
 
1
2
...
1
2
3
0
@@ -1,2 +1,3 @@
0
+.DS_Store
0
 config/*
0
 log/*
...
25
26
27
28
29
30
31
32
33
...
25
26
27
 
28
 
29
30
31
0
@@ -25,9 +25,7 @@
0
 
0
 begin
0
   require "rubygems"
0
- require "gruff"
0
   require File.dirname(__FILE__) + "/../lib/bong"
0
-# require "bong"
0
 rescue LoadError
0
   require File.dirname(__FILE__) + "/../lib/bong"
0
 end
...
1
2
3
4
5
6
7
...
63
64
65
 
 
 
66
67
68
69
 
 
70
71
72
...
1
2
 
 
3
4
5
...
61
62
63
64
65
66
67
68
 
 
69
70
71
72
73
0
@@ -1,7 +1,5 @@
0
 require 'yaml'
0
 require 'logger'
0
-require 'gruff'
0
-
0
 
0
 ##
0
 # A tool for running httperf against a website. Documentation coming soon.
0
@@ -63,10 +61,13 @@ class Bong
0
 
0
 
0
   def graph_report(graph_path, report_yml_path)
0
+ # Require gruff here so people can run the rest of the app without gruff.
0
+ require 'gruff'
0
+
0
     @report = YAML.load(File.read(report_yml_path))
0
 
0
- #remove any with no date
0
- @report.reject!{ |name, data| name.split("-").size!=2}
0
+ # Remove any with no date
0
+ @report.reject! { |name, data| name.split("-").size != 2 }
0
 
0
     number_of_times = @report.size
0
     

Comments

    No one has commented yet.