Skip to content
Permalink
Browse files

add rspec template

  • Loading branch information...
winebarrel
winebarrel committed Sep 29, 2013
1 parent d8d2f17 commit 9cc7d98c8f69bdf66b96e064f2d427d521c6381b
Showing with 6 additions and 2 deletions.
  1. +4 −0 Rakefile
  2. +1 −1 lib/piculet/logger.rb
  3. +1 −1 piculet.gemspec
@@ -1 +1,5 @@
require "bundler/gem_tasks"
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new('spec')
task :default => :spec
@@ -25,7 +25,7 @@ def log(level, message, color, log_id = nil)
message = "[#{level.to_s.upcase}] #{message}" unless level == :info
message << ": #{log_id}" if log_id
message << ' (dry-run)' if @options && @options.dry_run
logger = Piculet::Logger.instance
logger = (@options && @options.logger) || Piculet::Logger.instance
logger.send(level, message.send(color))
end
end # ClientHelper
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "pry"
spec.add_development_dependency "rspec", "~> 2.14.1"
end

0 comments on commit 9cc7d98

Please sign in to comment.
You can’t perform that action at this time.