Rakefile in usher-0.8.0 vs Rakefile in usher-0.8.1
- old
+ new
@@ -7,11 +7,11 @@
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb'] # optional
t.options = ['--markup=markdown'] # optional
end
-task :spec => ['spec:private', 'spec:rails2_2:cleanup', 'spec:rails2_3:cleanup']
+task :spec => ['spec:private', 'spec:rails2_2:spec', 'spec:rails2_3:spec']
namespace(:spec) do
Spec::Rake::SpecTask.new(:private) do |t|
t.spec_opts ||= []
t.spec_opts << "-rubygems"
t.spec_opts << "--options" << "spec/spec.opts"
@@ -22,42 +22,40 @@
task :unzip do
sh('rm -rf spec/rails2_2/vendor')
sh('unzip -qq spec/rails2_2/vendor.zip -dspec/rails2_2')
end
- Spec::Rake::SpecTask.new(:spec) do |t|
+ Spec::Rake::SpecTask.new(:only_spec) do |t|
t.spec_opts ||= []
t.spec_opts << "-rubygems"
t.spec_opts << "--options" << "spec/spec.opts"
t.spec_files = FileList['spec/rails2_2/**/*_spec.rb']
end
task :cleanup do
sh('rm -rf spec/rails2_2/vendor')
end
-
- task :spec => :unzip
- task :cleanup => :spec
+
+ task :spec => [:unzip, :only_spec, :cleanup]
end
namespace(:rails2_3) do
task :unzip do
sh('rm -rf spec/rails2_3/vendor')
sh('unzip -qq spec/rails2_3/vendor.zip -dspec/rails2_3')
end
- Spec::Rake::SpecTask.new(:spec) do |t|
+ Spec::Rake::SpecTask.new(:only_spec) do |t|
t.spec_opts ||= []
t.spec_opts << "-rubygems"
t.spec_opts << "--options" << "spec/spec.opts"
t.spec_files = FileList['spec/rails2_3/**/*_spec.rb']
end
task :cleanup do
sh('rm -rf spec/rails2_3/vendor')
end
- task :spec => :unzip
- task :cleanup => :spec
+ task :spec => [:unzip, :only_spec, :cleanup]
end
end