ruby-changes:62245
From: Utkarsh <ko1@a...>
Date: Wed, 15 Jul 2020 16:06:03 +0900 (JST)
Subject: [ruby-changes:62245] 8c65f612f4 (master): [rubygems/rubygems] Fix remaining RuboCop issues
https://git.ruby-lang.org/ruby.git/commit/?id=8c65f612f4 From 8c65f612f4e4caaecfd3291907f48c9e075c0319 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta <utkarsh@d...> Date: Tue, 30 Jun 2020 12:35:38 +0530 Subject: [rubygems/rubygems] Fix remaining RuboCop issues With #3731 and #3740 merged, this covers up the remaining part of the issues. This was discovered when one tries to create a gem with a different framework. Could be reproduced with: `bundle gem foo --ext --test=test-unit` Signed-off-by: Utkarsh Gupta <utkarsh@d...> https://github.com/rubygems/rubygems/commit/51b6457150 diff --git a/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt b/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt index 8cfc828..e918063 100644 --- a/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +++ b/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt#L1 +# frozen_string_literal: true + require "mkmf" create_makefile(<%= config[:makefile_path].inspect %>) diff --git a/lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt b/lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt index f2af9f9..9e005d6 100644 --- a/lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt +++ b/lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/test/minitest/newgem_test.rb.tt#L1 +# frozen_string_literal: true + require "test_helper" class <%= config[:constant_name] %>Test < Minitest::Test diff --git a/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt b/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt index 7d7db16..e05c387 100644 --- a/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt +++ b/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt#L1 +# frozen_string_literal: true + $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "<%= config[:namespaced_path] %>" diff --git a/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt b/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt index e653993..5c61094 100644 --- a/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +++ b/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt#L1 +# frozen_string_literal: true + require "test_helper" class <%= config[:constant_name] %>Test < Test::Unit::TestCase diff --git a/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt b/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt index 461ee39..6f633c6 100644 --- a/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +++ b/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt @@ -1,3 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt#L1 +# frozen_string_literal: true + $LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "<%= config[:namespaced_path] %>" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/