diff options
author | Zach Ahn <engineering@zachahn.com> | 2017-03-04 19:51:20 -0500 |
---|---|---|
committer | Zach Ahn <engineering@zachahn.com> | 2017-03-04 20:05:47 -0500 |
commit | 3c51230d0d7a498d769f0b2e108b68e531e50f7d (patch) | |
tree | 5580d93ba39298b25f3d541bfb8716ed29d017c7 | |
parent | 400649220e232dabade55c6241d866657e3b82a0 (diff) | |
download | bundler-3c51230d0d7a498d769f0b2e108b68e531e50f7d.tar.gz |
Add spaces around operators and between block arguments
-rw-r--r-- | lib/bundler/templates/newgem/lib/newgem.rb.tt | 8 | ||||
-rw-r--r-- | lib/bundler/templates/newgem/lib/newgem/version.rb.tt | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/bundler/templates/newgem/lib/newgem.rb.tt b/lib/bundler/templates/newgem/lib/newgem.rb.tt index 2e1b242e13..60e20de20e 100644 --- a/lib/bundler/templates/newgem/lib/newgem.rb.tt +++ b/lib/bundler/templates/newgem/lib/newgem.rb.tt @@ -3,10 +3,10 @@ require "<%=config[:namespaced_path]%>/version" require "<%=config[:namespaced_path]%>/<%=config[:underscored_name]%>" <%- end -%> -<%- config[:constant_array].each_with_index do |c,i| -%> -<%= " "*i %>module <%= c %> +<%- config[:constant_array].each_with_index do |c, i| -%> +<%= " " * i %>module <%= c %> <%- end -%> -<%= " "*config[:constant_array].size %># Your code goes here... +<%= " " * config[:constant_array].size %># Your code goes here... <%- (config[:constant_array].size-1).downto(0) do |i| -%> -<%= " "*i %>end +<%= " " * i %>end <%- end -%> diff --git a/lib/bundler/templates/newgem/lib/newgem/version.rb.tt b/lib/bundler/templates/newgem/lib/newgem/version.rb.tt index b5a44bb5a0..389daf5048 100644 --- a/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +++ b/lib/bundler/templates/newgem/lib/newgem/version.rb.tt @@ -1,7 +1,7 @@ -<%- config[:constant_array].each_with_index do |c,i| -%> -<%= " "*i %>module <%= c %> +<%- config[:constant_array].each_with_index do |c, i| -%> +<%= " " * i %>module <%= c %> <%- end -%> -<%= " "*config[:constant_array].size %>VERSION = "0.1.0" +<%= " " * config[:constant_array].size %>VERSION = "0.1.0" <%- (config[:constant_array].size-1).downto(0) do |i| -%> -<%= " "*i %>end +<%= " " * i %>end <%- end -%> |