summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem
diff options
context:
space:
mode:
authorUtkarsh Gupta <utkarsh@debian.org>2020-06-21 01:42:34 +0530
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-07-15 16:05:12 +0900
commitb28c6d04d0989fa01842435f617e96420a8b4743 (patch)
tree4cd20807304ff6852a6538ce15e63adae6d3fe11 /lib/bundler/templates/newgem
parent449d24200b94ac5d849314125d2930e04d20ee6e (diff)
[rubygems/rubygems] Make Style/HashSyntax cop happy
Previously, we were using the old syntax like: `task :default => :spec`, but now this commit uses the new Ruby 1.9 hash syntax. Signed-off-by: Utkarsh Gupta <utkarsh@debian.org> https://github.com/rubygems/rubygems/commit/b41d0fdb56
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3275
Diffstat (limited to 'lib/bundler/templates/newgem')
-rw-r--r--lib/bundler/templates/newgem/Rakefile.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/Rakefile.tt b/lib/bundler/templates/newgem/Rakefile.tt
index 46bb01c7f8..57222f8c56 100644
--- a/lib/bundler/templates/newgem/Rakefile.tt
+++ b/lib/bundler/templates/newgem/Rakefile.tt
@@ -36,4 +36,4 @@ Rake::ExtensionTask.new("<%= config[:underscored_name] %>") do |ext|
end
<% end -%>
-task :default => <%= default_task_names.size == 1 ? default_task_names.first.inspect : default_task_names.inspect %>
+task default: <%= default_task_names.size == 1 ? default_task_names.first.inspect : default_task_names.inspect %>