util/rubocop -A --only Style/FrozenStringLiteralComment

This commit is contained in:
Hiroshi SHIBATA 2023-03-17 18:33:55 +09:00
parent 50a03035ee
commit 4dd418f877
Notes: git 2023-03-23 08:19:20 +00:00
15 changed files with 18 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require "socket"
module CoreExtensions

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
# ) frozen_string_literal: true
require_relative "parser"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
##
# The SourceSet chooses the best available method to query a remote index.
#

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "openssl"
##
@ -170,6 +171,6 @@ class Gem::S3URISigner
end
BASE64_URI_TRANSLATE = { "+" => "%2B", "/" => "%2F", "=" => "%3D", "\n" => "" }.freeze
EC2_IAM_INFO = "http://169.254.169.254/latest/meta-data/iam/info".freeze
EC2_IAM_SECURITY_CREDENTIALS = "http://169.254.169.254/latest/meta-data/iam/security-credentials/".freeze
EC2_IAM_INFO = "http://169.254.169.254/latest/meta-data/iam/info"
EC2_IAM_SECURITY_CREDENTIALS = "http://169.254.169.254/latest/meta-data/iam/security-credentials/"
end

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
module Gem
###
# This module is used for safely loading YAML specs from a gem. The

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "user_interaction"
class Gem::SpecificationPolicy

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "helper"
class TestBundlerGem < Gem::TestCase
@ -376,7 +377,7 @@ You may need to `bundle install` to install missing gems
private
def add_bundler_full_name(names)
names << "bundler-#{Bundler::VERSION}".freeze
names << "bundler-#{Bundler::VERSION}"
names.sort!
names
end

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "bar"
s.version = "0.0.2"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "rubyforge"
s.version = "0.0.1"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "custom_name"
s.version = "0.1.0"

View File

@ -1 +1,2 @@
# frozen_string_literal: true
require "custom_name_lib/custom_name_ext"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
Gem::Specification.new do |s|
s.name = "rust_ruby_example"
s.version = "0.1.0"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "helper"
require "rubygems/uri"

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "helper"
class GemTest < Gem::TestCase