Browse files

Fixes to that rake tasks actually work again

  • Loading branch information...
1 parent 900a633 commit ecf98524a0f195b0a28c6ca313eeab0fd6bf35db @nesquena nesquena committed Aug 30, 2011
Showing with 9 additions and 2 deletions.
  1. +8 −2 Rakefile
  2. +1 −0 padrino/Rakefile
View
10 Rakefile
@@ -1,3 +1,4 @@
+# rake bump[X.X.X] && rake publish
require 'rubygems' unless defined?(Gem)
require 'fileutils' unless defined?(FileUtils)
require 'rake'
@@ -26,7 +27,7 @@ end
desc "Run 'install' for all projects"
task :install do
GEM_PATHS.each do |dir|
- Dir.chdir(dir) { sh_rake(name) }
+ Dir.chdir(dir) { sh_rake(:install) }
end
end
@@ -60,6 +61,11 @@ task :bump, [:version] do |t, args|
Rake::Task['commit'].invoke("Bumped version to #{args.version.to_s}")
end
+desc "Commits all staged files"
+task :commit, [:message] do |t, args|
+ sh %Q{git commit -a -m "#{args.message}"}
+end
+
desc "Executes a fresh install removing all padrino version and then reinstall all gems"
task :fresh => [:uninstall, :install, :clean]
@@ -87,7 +93,7 @@ task :test do
# Omit the padrino metagem since no tests there
GEM_PATHS[0..-2].each do |g|
# Hardcode the 'cd' into the command and do not use Dir.chdir because this causes random tests to fail
- sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake test"#, :verbose => true
+ sh "cd #{File.join(ROOT, g)} && #{Gem.ruby} -S rake test"
end
end
View
1 padrino/Rakefile
@@ -6,6 +6,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../gem_rake_helper')
########### CUSTOM TASKS ##########
+gemspec = ::Gem::Specification.load(File.expand_path(File.dirname(__FILE__) + "/padrino.gemspec"))
subgems = [
["padrino-core", "= #{gemspec.version}"],
["padrino-helpers", "= #{gemspec.version}"],

0 comments on commit ecf9852

Please sign in to comment.