diff options
author | David RodrÃguez <[email protected]> | 2024-10-08 20:55:42 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-10-10 14:54:04 +0000 |
commit | 36e9a6bb41621793f6719c6e269ffebb422636fe (patch) | |
tree | c7b40910e1f77736b6dbb05554a0df274dbf6282 /test/rubygems/test_gem_stub_specification.rb | |
parent | cd611becbbb31217575c2031682612d36f7a2fc4 (diff) |
[rubygems/rubygems] Improve some indentations
https://github.com/rubygems/rubygems/commit/30f228a97f
Diffstat (limited to 'test/rubygems/test_gem_stub_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_stub_specification.rb | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/test/rubygems/test_gem_stub_specification.rb b/test/rubygems/test_gem_stub_specification.rb index 50321ffd7c..471fb6bbb2 100644 --- a/test/rubygems/test_gem_stub_specification.rb +++ b/test/rubygems/test_gem_stub_specification.rb @@ -182,14 +182,14 @@ class TestStubSpecification < Gem::TestCase def stub_with_version spec = File.join @gemhome, "specifications", "stub_e-2.gemspec" File.open spec, "w" do |io| - io.write <<-STUB -# -*- encoding: utf-8 -*- -# stub: stub_v 2 ruby lib + io.write <<~STUB + # -*- encoding: utf-8 -*- + # stub: stub_v 2 ruby lib -Gem::Specification.new do |s| - s.name = 'stub_v' - s.version = Gem::Version.new '2' -end + Gem::Specification.new do |s| + s.name = 'stub_v' + s.version = Gem::Version.new '2' + end STUB io.flush @@ -205,14 +205,14 @@ end def stub_without_version spec = File.join @gemhome, "specifications", "stub-2.gemspec" File.open spec, "w" do |io| - io.write <<-STUB -# -*- encoding: utf-8 -*- -# stub: stub_v ruby lib + io.write <<~STUB + # -*- encoding: utf-8 -*- + # stub: stub_v ruby lib -Gem::Specification.new do |s| - s.name = 'stub_v' - s.version = "" -end + Gem::Specification.new do |s| + s.name = 'stub_v' + s.version = "" + end STUB io.flush @@ -228,17 +228,17 @@ end def stub_with_extension spec = File.join @gemhome, "specifications", "stub_e-2.gemspec" File.open spec, "w" do |io| - io.write <<-STUB -# -*- encoding: utf-8 -*- -# stub: stub_e 2 ruby lib -# stub: ext/stub_e/extconf.rb - -Gem::Specification.new do |s| - s.name = 'stub_e' - s.version = Gem::Version.new '2' - s.extensions = ['ext/stub_e/extconf.rb'] - s.installed_by_version = '2.2' -end + io.write <<~STUB + # -*- encoding: utf-8 -*- + # stub: stub_e 2 ruby lib + # stub: ext/stub_e/extconf.rb + + Gem::Specification.new do |s| + s.name = 'stub_e' + s.version = Gem::Version.new '2' + s.extensions = ['ext/stub_e/extconf.rb'] + s.installed_by_version = '2.2' + end STUB io.flush @@ -254,14 +254,14 @@ end def stub_without_extension spec = File.join @gemhome, "specifications", "stub-2.gemspec" File.open spec, "w" do |io| - io.write <<-STUB -# -*- encoding: utf-8 -*- -# stub: stub 2 ruby lib + io.write <<~STUB + # -*- encoding: utf-8 -*- + # stub: stub 2 ruby lib -Gem::Specification.new do |s| - s.name = 'stub' - s.version = Gem::Version.new '2' -end + Gem::Specification.new do |s| + s.name = 'stub' + s.version = Gem::Version.new '2' + end STUB io.flush |