aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:40:54 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:40:54 +0200
commit60b67d76dc1d98e4269aac7705e9d8323eb42942 (patch)
tree166fac788d5e371388dce2a7b7f227993601906d /tasks
parent1607ee299d15c133b2b63dcfc840eddfba7e525b (diff)
downloadrails-60b67d76dc1d98e4269aac7705e9d8323eb42942.tar.gz
rails-60b67d76dc1d98e4269aac7705e9d8323eb42942.tar.bz2
rails-60b67d76dc1d98e4269aac7705e9d8323eb42942.zip
modernizes hash syntax in the rest of the project
Diffstat (limited to 'tasks')
-rw-r--r--tasks/release.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/tasks/release.rb b/tasks/release.rb
index eeb7212ed8..d1717cec52 100644
--- a/tasks/release.rb
+++ b/tasks/release.rb
@@ -53,12 +53,12 @@ directory "pkg"
sh cmd
end
- task :build => [:clean, gem]
- task :install => :build do
+ task build: [:clean, gem]
+ task install: :build do
sh "gem install --pre #{gem}"
end
- task :push => :build do
+ task push: :build do
sh "gem push #{gem}"
# When running the release task we usually run build first to check that the gem works properly.
@@ -137,10 +137,10 @@ namespace :changelog do
end
namespace :all do
- task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ["rails:build"]
- task :update_versions => FRAMEWORKS.map { |f| "#{f}:update_versions" } + ["rails:update_versions"]
- task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ["rails:install"]
- task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ["rails:push"]
+ task build: FRAMEWORKS.map { |f| "#{f}:build" } + ["rails:build"]
+ task update_versions: FRAMEWORKS.map { |f| "#{f}:update_versions" } + ["rails:update_versions"]
+ 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\\|CHANGELOG\\|Gemfile.lock'`.strip.empty?
@@ -173,7 +173,7 @@ namespace :all do
sh "git push --tags"
end
- task :prep_release => %w(ensure_clean_state build)
+ task prep_release: %w(ensure_clean_state build)
- task :release => %w(ensure_clean_state build bundle commit tag push)
+ task release: %w(ensure_clean_state build bundle commit tag push)
end