Skip to content

Commit

Permalink
Fixes to that rake tasks actually work again
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Aug 31, 2011
1 parent 900a633 commit ecf9852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Rakefile
@@ -1,3 +1,4 @@
# rake bump[X.X.X] && rake publish
require 'rubygems' unless defined?(Gem)
require 'fileutils' unless defined?(FileUtils)
require 'rake'
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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]

Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions padrino/Rakefile
Expand Up @@ -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}"],
Expand Down

0 comments on commit ecf9852

Please sign in to comment.