From 36e9a6bb41621793f6719c6e269ffebb422636fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 8 Oct 2024 20:55:42 +0200 Subject: [PATCH] [rubygems/rubygems] Improve some indentations https://github.com/rubygems/rubygems/commit/30f228a97f --- test/rubygems/test_gem_stub_specification.rb | 62 ++++++++++---------- 1 file changed, 31 insertions(+), 31 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 + 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 + 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