Permalink
Browse files

Should be silent by default

  • Loading branch information...
nakajima committed Apr 21, 2009
1 parent fc02464 commit 1b80e5678c48c491738e977b2ad7679b8a4c27a8
Showing with 3 additions and 3 deletions.
  1. +2 −0 bin/mark
  2. +1 −1 lib/makers-mark/generator.rb
  3. +0 −2 spec/spec_helper.rb
View
@@ -4,4 +4,6 @@ require File.join(File.dirname(__FILE__), *%w[.. lib makers-mark])
content = ARGV.first ? File.read(ARGV.first) : $stdin.read
+$VERBOSE = true
+
puts MakersMark.generate(content)
@@ -52,7 +52,7 @@ def info(msg)
private
def say(msg)
- $stdout.puts msg unless $SILENT
+ $stdout.puts msg if $VERBOSE
end
}.new
end
View
@@ -2,8 +2,6 @@
require 'nokogiri'
require 'bacon'
-$SILENT = true
-
require File.dirname(__FILE__) + '/../lib/makers-mark'
module TestHelp

0 comments on commit 1b80e56

Please sign in to comment.