Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small cleanup of the release task

  • Loading branch information...
commit 1e37653e388ae6a43abe8e6abec0bfeb790bea73 1 parent 217a7de
@carllerche carllerche authored
Showing with 7 additions and 9 deletions.
  1. +1 −1  Rakefile
  2. +6 −8 tasks/release.rb
View
2  Rakefile
@@ -11,7 +11,7 @@ desc "Build gem files for all projects"
task :build => "all:build"
desc "Release all gems to gemcutter and create a tag"
-task :release => ["all:release", "git:tag"]
+task :release => "all:release"
# RDoc skips some files in the Rails tree due to its binary? predicate. This is a quick
# hack for edge docs, until we decide which is the correct way to address this issue.
View
14 tasks/release.rb
@@ -61,7 +61,11 @@
end
end
-namespace :release do
+namespace :all do
+ task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
+ task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
+ task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
+
task :ensure_clean_state do
unless `git status -s | grep -v RAILS_VERSION`.strip.empty?
abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed"
@@ -88,11 +92,5 @@
sh "git tag #{tag}"
end
- task :full => %w(ensure_clean_state all:build commit tag all:push)
-end
-
-namespace :all do
- task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ['rails:build']
- task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ['rails:install']
- task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ['rails:push']
+ task :release => %w(ensure_clean_state build commit tag push)
end
Please sign in to comment.
Something went wrong with that request. Please try again.