1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Merge pull request #930 from utensil/master

fix #929 : `cd` in Rakefile in a cross-platform way
This commit is contained in:
Thomas Reynolds 2013-06-07 10:09:23 -07:00
commit d9f8327dc6

View file

@ -76,21 +76,21 @@ end
desc "Generate documentation for all middleman gems"
task :doc do
GEM_PATHS.each do |g|
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake yard"
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake yard" }
end
end
desc "Run tests for all middleman gems"
task :test do
GEM_PATHS.each do |g|
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake test"
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake test" }
end
end
desc "Run specs for all middleman gems"
task :spec do
GEM_PATHS.each do |g|
sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake spec"
Dir.chdir("#{File.join(ROOT, g)}") { sh "#{Gem.ruby} -S rake spec" }
end
end