mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Fix line spacing to make Layout/EmptyLines happy
The Gemfile wasn't properly put in the last commit.
As a result, Layout/EmptyLines inspected an offense
in the Gemfile.
This also fixes the spec w.r.t change in the task
default.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
d1418fddd3
This commit is contained in:
parent
95f90e3d2b
commit
ca133c0366
Notes:
git
2020-07-15 16:05:46 +09:00
2 changed files with 4 additions and 3 deletions
|
@ -7,13 +7,14 @@ gemspec
|
||||||
|
|
||||||
gem "rake", "~> 13.0"
|
gem "rake", "~> 13.0"
|
||||||
<%- if config[:ext] -%>
|
<%- if config[:ext] -%>
|
||||||
|
|
||||||
gem "rake-compiler"
|
gem "rake-compiler"
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
||||||
<%- if config[:test] -%>
|
<%- if config[:test] -%>
|
||||||
|
|
||||||
gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>"
|
gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>"
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
||||||
<%- if config[:rubocop] -%>
|
<%- if config[:rubocop] -%>
|
||||||
|
|
||||||
gem "rubocop", "~> 0.80"
|
gem "rubocop", "~> 0.80"
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
|
@ -914,7 +914,7 @@ RSpec.describe "bundle gem" do
|
||||||
ext.lib_dir = "lib/#{gem_name}"
|
ext.lib_dir = "lib/#{gem_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
task default: [:clobber, :compile]
|
task default: %i[clobber compile]
|
||||||
RAKEFILE
|
RAKEFILE
|
||||||
|
|
||||||
expect(bundled_app("#{gem_name}/Rakefile").read).to eq(rakefile)
|
expect(bundled_app("#{gem_name}/Rakefile").read).to eq(rakefile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue