Skip to content

Commit 60b67d7

Browse files
committed
modernizes hash syntax in the rest of the project
1 parent 1607ee2 commit 60b67d7

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ require "tasks/release"
55
require "railties/lib/rails/api/task"
66

77
desc "Build gem files for all projects"
8-
task :build => "all:build"
8+
task build: "all:build"
99

1010
desc "Prepare the release"
11-
task :prep_release => "all:prep_release"
11+
task prep_release: "all:prep_release"
1212

1313
desc "Release all gems to rubygems and create a tag"
14-
task :release => "all:release"
14+
task release: "all:release"
1515

1616
desc "Run all tests by default"
17-
task :default => %w(test test:isolated)
17+
task default: %w(test test:isolated)
1818

1919
%w(test test:isolated package gem).each do |task_name|
2020
desc "Run #{task_name} task for all projects"
@@ -40,7 +40,7 @@ task :smoke do
4040
end
4141

4242
desc "Install gems for all projects."
43-
task :install => "all:install"
43+
task install: "all:install"
4444

4545
desc "Generate documentation for the Rails framework"
4646
if ENV["EDGE"]
@@ -50,7 +50,7 @@ else
5050
end
5151

5252
desc "Bump all versions to match RAILS_VERSION"
53-
task :update_versions => "all:update_versions"
53+
task update_versions: "all:update_versions"
5454

5555
# We have a webhook configured in GitHub that gets invoked after pushes.
5656
# This hook triggers the following tasks:

ci/travis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def run_bug_report_templates
152152
next if gem == "aj:integration" && isolated
153153
next if gem == "guides" && isolated
154154

155-
build = Build.new(gem, :isolated => isolated)
155+
build = Build.new(gem, isolated: isolated)
156156
results[build.key] = build.run!
157157

158158
end

tasks/release.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
sh cmd
5454
end
5555

56-
task :build => [:clean, gem]
57-
task :install => :build do
56+
task build: [:clean, gem]
57+
task install: :build do
5858
sh "gem install --pre #{gem}"
5959
end
6060

61-
task :push => :build do
61+
task push: :build do
6262
sh "gem push #{gem}"
6363

6464
# When running the release task we usually run build first to check that the gem works properly.
@@ -137,10 +137,10 @@
137137
end
138138

139139
namespace :all do
140-
task :build => FRAMEWORKS.map { |f| "#{f}:build" } + ["rails:build"]
141-
task :update_versions => FRAMEWORKS.map { |f| "#{f}:update_versions" } + ["rails:update_versions"]
142-
task :install => FRAMEWORKS.map { |f| "#{f}:install" } + ["rails:install"]
143-
task :push => FRAMEWORKS.map { |f| "#{f}:push" } + ["rails:push"]
140+
task build: FRAMEWORKS.map { |f| "#{f}:build" } + ["rails:build"]
141+
task update_versions: FRAMEWORKS.map { |f| "#{f}:update_versions" } + ["rails:update_versions"]
142+
task install: FRAMEWORKS.map { |f| "#{f}:install" } + ["rails:install"]
143+
task push: FRAMEWORKS.map { |f| "#{f}:push" } + ["rails:push"]
144144

145145
task :ensure_clean_state do
146146
unless `git status -s | grep -v 'RAILS_VERSION\\|CHANGELOG\\|Gemfile.lock'`.strip.empty?
@@ -173,7 +173,7 @@
173173
sh "git push --tags"
174174
end
175175

176-
task :prep_release => %w(ensure_clean_state build)
176+
task prep_release: %w(ensure_clean_state build)
177177

178-
task :release => %w(ensure_clean_state build bundle commit tag push)
178+
task release: %w(ensure_clean_state build bundle commit tag push)
179179
end

0 commit comments

Comments
 (0)