Commit 25f517a4ac8acf87ae32760e255e010df18e28a8
- Date: Mon Mar 31 20:55:21 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 25f517a4ac8acf87ae32760e255e010df18e28a8
- Tree SHA1: eafd9fcd9eb65b50d4f6c1023cce70da02b3cd34
Silence warning in graph builder
Commit diff
| |   |
| 1 | 1 | require "gruff" |
| 2 | 2 | |
| 3 | | Gruff::Base::TITLE_MARGIN = 2.0 |
| 3 | silence_warnings do |
| 4 | Gruff::Base::TITLE_MARGIN = 2.0 |
| 5 | end |
| 4 | 6 | |
| 5 | 7 | module Gitorious |
| 6 | 8 | module Graphs |
| toggle raw diff |
--- a/lib/gitorious/graphs/builder.rb
+++ b/lib/gitorious/graphs/builder.rb
@@ -1,6 +1,8 @@
require "gruff"
-Gruff::Base::TITLE_MARGIN = 2.0
+silence_warnings do
+ Gruff::Base::TITLE_MARGIN = 2.0
+end
module Gitorious
module Graphs |