Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modernizing Rakefile, gemspec, yard, etc

  • Loading branch information...
commit 7d930a23e8267b04048898fabaf1332282870ee7 1 parent 85557cd
Philip (flip) Kromer authored
Showing with 14 additions and 2 deletions.
  1. +12 −0 Guardfile
  2. +2 −2 Rakefile
12 Guardfile
View
@@ -0,0 +1,12 @@
+# -*- ruby -*-
+
+format = 'doc' # 'doc' for more verbose, 'progress' for less
+tags = %w[ ] # builder_spec model_spec
+
+guard 'rspec', :version => 2, :cli => "--format #{format} #{ tags.map{|tag| "--tag #{tag}"}.join(' ') }" do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^examples/(.+)\.rb$}) { |m| "spec/examples/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}}_spec.rb" }
+ watch('spec/spec_helper.rb') { 'spec' }
+ watch(/spec\/support\/(.+)\.rb/) { 'spec' }
+end
4 Rakefile
View
@@ -8,13 +8,13 @@ task :default => :rspec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:rspec) do |spec|
Bundler.setup(:default, :development, :test)
- spec.pattern = FileList['spec/**/*_spec.rb']
+ spec.pattern = 'spec/**/*_spec.rb'
end
desc "Run RSpec with code coverage"
task :cov do
ENV['WUKONG_COV'] = "yep"
- Rake::Task["spec"].execute
+ Rake::Task[:rspec].execute
end
require 'yard'
Please sign in to comment.
Something went wrong with that request. Please try again.