diff options
Diffstat (limited to 'lib/rubygems')
161 files changed, 161 insertions, 0 deletions
diff --git a/lib/rubygems/available_set.rb b/lib/rubygems/available_set.rb index dae254b385..da43cdf3fb 100644 --- a/lib/rubygems/available_set.rb +++ b/lib/rubygems/available_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::AvailableSet include Enumerable diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 53beb43402..db962c6dcd 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # BasicSpecification is an abstract class which implements some common code # used by both Specification and StubSpecification. diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb index 0c6abec56c..28af3d090c 100644 --- a/lib/rubygems/command.rb +++ b/lib/rubygems/command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/command_manager.rb b/lib/rubygems/command_manager.rb index 53d18c29cc..95e846e340 100644 --- a/lib/rubygems/command_manager.rb +++ b/lib/rubygems/command_manager.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb index d975429fe8..facc5226af 100644 --- a/lib/rubygems/commands/build_command.rb +++ b/lib/rubygems/commands/build_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/package' diff --git a/lib/rubygems/commands/cert_command.rb b/lib/rubygems/commands/cert_command.rb index a920e7fcc3..073c6bd195 100644 --- a/lib/rubygems/commands/cert_command.rb +++ b/lib/rubygems/commands/cert_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/security' begin diff --git a/lib/rubygems/commands/check_command.rb b/lib/rubygems/commands/check_command.rb index 8893b9c3b2..9d2b086951 100644 --- a/lib/rubygems/commands/check_command.rb +++ b/lib/rubygems/commands/check_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/validator' diff --git a/lib/rubygems/commands/cleanup_command.rb b/lib/rubygems/commands/cleanup_command.rb index 69975640fe..a0bb3d576a 100644 --- a/lib/rubygems/commands/cleanup_command.rb +++ b/lib/rubygems/commands/cleanup_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/dependency_list' require 'rubygems/uninstaller' diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb index 4b944f18be..de756939c0 100644 --- a/lib/rubygems/commands/contents_command.rb +++ b/lib/rubygems/commands/contents_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'English' require 'rubygems/command' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/dependency_command.rb b/lib/rubygems/commands/dependency_command.rb index 9d4b3e0f50..b9e33a94e0 100644 --- a/lib/rubygems/commands/dependency_command.rb +++ b/lib/rubygems/commands/dependency_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/environment_command.rb b/lib/rubygems/commands/environment_command.rb index 79dd710bdf..47b62f03af 100644 --- a/lib/rubygems/commands/environment_command.rb +++ b/lib/rubygems/commands/environment_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Commands::EnvironmentCommand < Gem::Command diff --git a/lib/rubygems/commands/fetch_command.rb b/lib/rubygems/commands/fetch_command.rb index c57ab0089a..3aecdc3b08 100644 --- a/lib/rubygems/commands/fetch_command.rb +++ b/lib/rubygems/commands/fetch_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/generate_index_command.rb b/lib/rubygems/commands/generate_index_command.rb index ca6f694bc5..c0fadba64f 100644 --- a/lib/rubygems/commands/generate_index_command.rb +++ b/lib/rubygems/commands/generate_index_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/indexer' diff --git a/lib/rubygems/commands/help_command.rb b/lib/rubygems/commands/help_command.rb index c407836467..4c176f372e 100644 --- a/lib/rubygems/commands/help_command.rb +++ b/lib/rubygems/commands/help_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Commands::HelpCommand < Gem::Command diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index 7e3a953d19..6e243df441 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/install_update_options' require 'rubygems/dependency_installer' diff --git a/lib/rubygems/commands/list_command.rb b/lib/rubygems/commands/list_command.rb index 6aa00d30b8..1f85cd3fcd 100644 --- a/lib/rubygems/commands/list_command.rb +++ b/lib/rubygems/commands/list_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/commands/query_command' diff --git a/lib/rubygems/commands/lock_command.rb b/lib/rubygems/commands/lock_command.rb index 6b4b25a281..5a56e91933 100644 --- a/lib/rubygems/commands/lock_command.rb +++ b/lib/rubygems/commands/lock_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Commands::LockCommand < Gem::Command diff --git a/lib/rubygems/commands/mirror_command.rb b/lib/rubygems/commands/mirror_command.rb index 24fb668d54..3816876a92 100644 --- a/lib/rubygems/commands/mirror_command.rb +++ b/lib/rubygems/commands/mirror_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' unless defined? Gem::Commands::MirrorCommand diff --git a/lib/rubygems/commands/open_command.rb b/lib/rubygems/commands/open_command.rb index 254a74275e..63bff16db0 100644 --- a/lib/rubygems/commands/open_command.rb +++ b/lib/rubygems/commands/open_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'English' require 'rubygems/command' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/outdated_command.rb b/lib/rubygems/commands/outdated_command.rb index 7159dbb984..f7cfc08f70 100644 --- a/lib/rubygems/commands/outdated_command.rb +++ b/lib/rubygems/commands/outdated_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/spec_fetcher' diff --git a/lib/rubygems/commands/owner_command.rb b/lib/rubygems/commands/owner_command.rb index 322bf6590a..b002ff18d4 100644 --- a/lib/rubygems/commands/owner_command.rb +++ b/lib/rubygems/commands/owner_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/gemcutter_utilities' diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb index 5a36b12358..991272ae85 100644 --- a/lib/rubygems/commands/pristine_command.rb +++ b/lib/rubygems/commands/pristine_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/package' require 'rubygems/installer' diff --git a/lib/rubygems/commands/push_command.rb b/lib/rubygems/commands/push_command.rb index 6899b489ad..a8e0819e82 100644 --- a/lib/rubygems/commands/push_command.rb +++ b/lib/rubygems/commands/push_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/gemcutter_utilities' diff --git a/lib/rubygems/commands/query_command.rb b/lib/rubygems/commands/query_command.rb index 0d28711de8..4782eb98ef 100644 --- a/lib/rubygems/commands/query_command.rb +++ b/lib/rubygems/commands/query_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/spec_fetcher' diff --git a/lib/rubygems/commands/rdoc_command.rb b/lib/rubygems/commands/rdoc_command.rb index 86597f99a6..72aa972017 100644 --- a/lib/rubygems/commands/rdoc_command.rb +++ b/lib/rubygems/commands/rdoc_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/rdoc' diff --git a/lib/rubygems/commands/search_command.rb b/lib/rubygems/commands/search_command.rb index a1e2c1a00e..06cc997d4c 100644 --- a/lib/rubygems/commands/search_command.rb +++ b/lib/rubygems/commands/search_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/commands/query_command' diff --git a/lib/rubygems/commands/server_command.rb b/lib/rubygems/commands/server_command.rb index 4796ce2ad6..f41bda40da 100644 --- a/lib/rubygems/commands/server_command.rb +++ b/lib/rubygems/commands/server_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/server' diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 6617396780..d3ef9ef94e 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' ## diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb index 56d7845c54..0ff5e075f5 100644 --- a/lib/rubygems/commands/sources_command.rb +++ b/lib/rubygems/commands/sources_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/remote_fetcher' require 'rubygems/spec_fetcher' diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb index 3bc02a9c14..4e291c6ab1 100644 --- a/lib/rubygems/commands/specification_command.rb +++ b/lib/rubygems/commands/specification_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/stale_command.rb b/lib/rubygems/commands/stale_command.rb index 0ef0755960..6930c1cfde 100644 --- a/lib/rubygems/commands/stale_command.rb +++ b/lib/rubygems/commands/stale_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Commands::StaleCommand < Gem::Command diff --git a/lib/rubygems/commands/uninstall_command.rb b/lib/rubygems/commands/uninstall_command.rb index 9285e57b77..52d4450bfb 100644 --- a/lib/rubygems/commands/uninstall_command.rb +++ b/lib/rubygems/commands/uninstall_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/version_option' require 'rubygems/uninstaller' diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb index 5a05ad0a81..08eaf01314 100644 --- a/lib/rubygems/commands/unpack_command.rb +++ b/lib/rubygems/commands/unpack_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/installer' require 'rubygems/version_option' diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index c758ce8a9d..8d76a8ce8e 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/command_manager' require 'rubygems/dependency_installer' diff --git a/lib/rubygems/commands/which_command.rb b/lib/rubygems/commands/which_command.rb index 96eeb86288..c01dc18ee0 100644 --- a/lib/rubygems/commands/which_command.rb +++ b/lib/rubygems/commands/which_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Commands::WhichCommand < Gem::Command diff --git a/lib/rubygems/commands/yank_command.rb b/lib/rubygems/commands/yank_command.rb index c05ee66283..ec99bd7df6 100644 --- a/lib/rubygems/commands/yank_command.rb +++ b/lib/rubygems/commands/yank_command.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' require 'rubygems/local_remote_options' require 'rubygems/version_option' diff --git a/lib/rubygems/compatibility.rb b/lib/rubygems/compatibility.rb index 6a00a199f9..d09ddb6bf8 100644 --- a/lib/rubygems/compatibility.rb +++ b/lib/rubygems/compatibility.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # :stopdoc: #-- diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index f93917cbd4..30f26db8c9 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/core_ext/kernel_gem.rb b/lib/rubygems/core_ext/kernel_gem.rb index 61e77fe3c5..07376784e6 100644 --- a/lib/rubygems/core_ext/kernel_gem.rb +++ b/lib/rubygems/core_ext/kernel_gem.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # RubyGems adds the #gem method to allow activation of specific gem versions # and overrides the #require method on Kernel to make gems appear as if they diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb index f9b67ea5a6..196db5b6ee 100755 --- a/lib/rubygems/core_ext/kernel_require.rb +++ b/lib/rubygems/core_ext/kernel_require.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index 55ca080c96..c1d45c19e6 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem DEFAULT_HOST = "https://rubygems.org" diff --git a/lib/rubygems/dependency.rb b/lib/rubygems/dependency.rb index da990fa139..c0ab87d965 100644 --- a/lib/rubygems/dependency.rb +++ b/lib/rubygems/dependency.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The Dependency class holds a Gem name and a Gem::Requirement. diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb index 9741554360..954e2bf984 100644 --- a/lib/rubygems/dependency_installer.rb +++ b/lib/rubygems/dependency_installer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/dependency_list' require 'rubygems/package' diff --git a/lib/rubygems/dependency_list.rb b/lib/rubygems/dependency_list.rb index c034bb6589..8e00dc94c8 100644 --- a/lib/rubygems/dependency_list.rb +++ b/lib/rubygems/dependency_list.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/deprecate.rb b/lib/rubygems/deprecate.rb index e19360da13..54ab02830c 100644 --- a/lib/rubygems/deprecate.rb +++ b/lib/rubygems/deprecate.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Provides a single method +deprecate+ to be used to declare when # something is going away. diff --git a/lib/rubygems/doctor.rb b/lib/rubygems/doctor.rb index 3c71fd5aa4..15f05f63fa 100644 --- a/lib/rubygems/doctor.rb +++ b/lib/rubygems/doctor.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/user_interaction' diff --git a/lib/rubygems/errors.rb b/lib/rubygems/errors.rb index 9defb9ee9b..b22cd07706 100644 --- a/lib/rubygems/errors.rb +++ b/lib/rubygems/errors.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # This file contains all the various exceptions and other errors that are used # inside of RubyGems. diff --git a/lib/rubygems/exceptions.rb b/lib/rubygems/exceptions.rb index 2a9875cd24..0c741a2d01 100644 --- a/lib/rubygems/exceptions.rb +++ b/lib/rubygems/exceptions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # TODO: the documentation in here is terrible. # # Each exception needs a brief description and the scenarios where it is diff --git a/lib/rubygems/ext.rb b/lib/rubygems/ext.rb index 5af6bbf39e..4640b668f0 100644 --- a/lib/rubygems/ext.rb +++ b/lib/rubygems/ext.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/ext/build_error.rb b/lib/rubygems/ext/build_error.rb index bfe85ffc11..2098026b05 100644 --- a/lib/rubygems/ext/build_error.rb +++ b/lib/rubygems/ext/build_error.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Raised when there is an error while building extensions. diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb index abcc09ce57..d79b3a5901 100644 --- a/lib/rubygems/ext/builder.rb +++ b/lib/rubygems/ext/builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/ext/cmake_builder.rb b/lib/rubygems/ext/cmake_builder.rb index 24531bc75c..7bf431c37e 100644 --- a/lib/rubygems/ext/cmake_builder.rb +++ b/lib/rubygems/ext/cmake_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/command' class Gem::Ext::CmakeBuilder < Gem::Ext::Builder diff --git a/lib/rubygems/ext/configure_builder.rb b/lib/rubygems/ext/configure_builder.rb index f66e39387a..b732cada57 100644 --- a/lib/rubygems/ext/configure_builder.rb +++ b/lib/rubygems/ext/configure_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index f5c4c8ce84..2b50b08dc9 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/ext/rake_builder.rb b/lib/rubygems/ext/rake_builder.rb index d5ebf597ae..279117675a 100644 --- a/lib/rubygems/ext/rake_builder.rb +++ b/lib/rubygems/ext/rake_builder.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/gem_runner.rb b/lib/rubygems/gem_runner.rb index 7a3fd6b116..2bf8ac68bf 100644 --- a/lib/rubygems/gem_runner.rb +++ b/lib/rubygems/gem_runner.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 4ecf7376e0..98e78fe341 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/remote_fetcher' ## diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb index 23279f40ec..21ccf0dfbb 100644 --- a/lib/rubygems/indexer.rb +++ b/lib/rubygems/indexer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/package' require 'time' diff --git a/lib/rubygems/install_default_message.rb b/lib/rubygems/install_default_message.rb index 458ba3da96..d20a6c71a3 100644 --- a/lib/rubygems/install_default_message.rb +++ b/lib/rubygems/install_default_message.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/user_interaction' diff --git a/lib/rubygems/install_message.rb b/lib/rubygems/install_message.rb index c1979c1549..da68b192b1 100644 --- a/lib/rubygems/install_message.rb +++ b/lib/rubygems/install_message.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/user_interaction' diff --git a/lib/rubygems/install_update_options.rb b/lib/rubygems/install_update_options.rb index a503b7fca4..0466583e42 100644 --- a/lib/rubygems/install_update_options.rb +++ b/lib/rubygems/install_update_options.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 69590c39d8..7b4979d7ca 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/installer_test_case.rb b/lib/rubygems/installer_test_case.rb index f4aa773114..7a1b0aa5f0 100644 --- a/lib/rubygems/installer_test_case.rb +++ b/lib/rubygems/installer_test_case.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/installer' diff --git a/lib/rubygems/local_remote_options.rb b/lib/rubygems/local_remote_options.rb index db23d9f974..8d9e209771 100644 --- a/lib/rubygems/local_remote_options.rb +++ b/lib/rubygems/local_remote_options.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/mock_gem_ui.rb b/lib/rubygems/mock_gem_ui.rb index 76a9389676..32e154c8b3 100644 --- a/lib/rubygems/mock_gem_ui.rb +++ b/lib/rubygems/mock_gem_ui.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'stringio' require 'rubygems/user_interaction' diff --git a/lib/rubygems/name_tuple.rb b/lib/rubygems/name_tuple.rb index 60323db408..1dc7f74112 100644 --- a/lib/rubygems/name_tuple.rb +++ b/lib/rubygems/name_tuple.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # # Represents a gem of name +name+ at +version+ of +platform+. These diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb index 64beae5550..6b87475c78 100644 --- a/lib/rubygems/package.rb +++ b/lib/rubygems/package.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. diff --git a/lib/rubygems/package/digest_io.rb b/lib/rubygems/package/digest_io.rb index f8bde0f557..47f76ec10d 100644 --- a/lib/rubygems/package/digest_io.rb +++ b/lib/rubygems/package/digest_io.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # IO wrapper that creates digests of contents written to the IO it wraps. diff --git a/lib/rubygems/package/file_source.rb b/lib/rubygems/package/file_source.rb index 85316f62e7..4c2a7b9a4e 100644 --- a/lib/rubygems/package/file_source.rb +++ b/lib/rubygems/package/file_source.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The primary source of gems is a file on disk, including all usages # internal to rubygems. diff --git a/lib/rubygems/package/io_source.rb b/lib/rubygems/package/io_source.rb index f89593dd2d..16a6e4be8b 100644 --- a/lib/rubygems/package/io_source.rb +++ b/lib/rubygems/package/io_source.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Supports reading and writing gems from/to a generic IO object. This is # useful for other applications built on top of rubygems, such as diff --git a/lib/rubygems/package/old.rb b/lib/rubygems/package/old.rb index bcf60a00c9..1f1f33b856 100644 --- a/lib/rubygems/package/old.rb +++ b/lib/rubygems/package/old.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/package/source.rb b/lib/rubygems/package/source.rb index 1f18d479da..3dcce02a67 100644 --- a/lib/rubygems/package/source.rb +++ b/lib/rubygems/package/source.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::Package::Source # :nodoc: end diff --git a/lib/rubygems/package/tar_header.rb b/lib/rubygems/package/tar_header.rb index f9ab13aca7..71529ee978 100644 --- a/lib/rubygems/package/tar_header.rb +++ b/lib/rubygems/package/tar_header.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. diff --git a/lib/rubygems/package/tar_reader.rb b/lib/rubygems/package/tar_reader.rb index e257fdd846..a1ea81cac4 100644 --- a/lib/rubygems/package/tar_reader.rb +++ b/lib/rubygems/package/tar_reader.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. diff --git a/lib/rubygems/package/tar_reader/entry.rb b/lib/rubygems/package/tar_reader/entry.rb index 1d917a81ac..59d167ee8e 100644 --- a/lib/rubygems/package/tar_reader/entry.rb +++ b/lib/rubygems/package/tar_reader/entry.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #++ # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. diff --git a/lib/rubygems/package/tar_test_case.rb b/lib/rubygems/package/tar_test_case.rb index b2d6f4ea77..3e494e5594 100644 --- a/lib/rubygems/package/tar_test_case.rb +++ b/lib/rubygems/package/tar_test_case.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/package' diff --git a/lib/rubygems/package/tar_writer.rb b/lib/rubygems/package/tar_writer.rb index fff02e9235..6f1aab47a1 100644 --- a/lib/rubygems/package/tar_writer.rb +++ b/lib/rubygems/package/tar_writer.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #-- # Copyright (C) 2004 Mauricio Julio Fernández Pradier # See LICENSE.txt for additional licensing information. diff --git a/lib/rubygems/package_task.rb b/lib/rubygems/package_task.rb index 09384cc0e7..0c525ad517 100644 --- a/lib/rubygems/package_task.rb +++ b/lib/rubygems/package_task.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel # # Permission is hereby granted, free of charge, to any person obtaining diff --git a/lib/rubygems/path_support.rb b/lib/rubygems/path_support.rb index e68654c428..0ec29f8b60 100644 --- a/lib/rubygems/path_support.rb +++ b/lib/rubygems/path_support.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # # Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb index 487d245a01..cdc52cc9b3 100644 --- a/lib/rubygems/platform.rb +++ b/lib/rubygems/platform.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "rubygems/deprecate" ## diff --git a/lib/rubygems/psych_additions.rb b/lib/rubygems/psych_additions.rb index 08fc04c90d..487b269903 100644 --- a/lib/rubygems/psych_additions.rb +++ b/lib/rubygems/psych_additions.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # This exists just to satisfy bugs in marshal'd gemspecs that # contain a reference to YAML::PrivateType. We prune these out # in Specification._load, but if we don't have the constant, Marshal diff --git a/lib/rubygems/psych_tree.rb b/lib/rubygems/psych_tree.rb index e3f1d1a08a..a5d306d769 100644 --- a/lib/rubygems/psych_tree.rb +++ b/lib/rubygems/psych_tree.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem if defined? ::Psych::Visitors class NoAliasYAMLTree < Psych::Visitors::YAMLTree diff --git a/lib/rubygems/rdoc.rb b/lib/rubygems/rdoc.rb index 7591346306..e9402ede76 100644 --- a/lib/rubygems/rdoc.rb +++ b/lib/rubygems/rdoc.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/user_interaction' require 'fileutils' diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb index 8c7ee78f84..db1eed89d4 100644 --- a/lib/rubygems/remote_fetcher.rb +++ b/lib/rubygems/remote_fetcher.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' require 'rubygems/request' require 'rubygems/uri_formatter' diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index b1d041d8ea..3dfbc3d89c 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'net/http' require 'thread' require 'time' diff --git a/lib/rubygems/request/connection_pools.rb b/lib/rubygems/request/connection_pools.rb index 271b32b2b1..d22e357257 100644 --- a/lib/rubygems/request/connection_pools.rb +++ b/lib/rubygems/request/connection_pools.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'thread' class Gem::Request::ConnectionPools # :nodoc: diff --git a/lib/rubygems/request/http_pool.rb b/lib/rubygems/request/http_pool.rb index c9a1858b98..ba3ab095bd 100644 --- a/lib/rubygems/request/http_pool.rb +++ b/lib/rubygems/request/http_pool.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A connection "pool" that only manages one connection for now. Provides # thread safe `checkout` and `checkin` methods. The pool consists of one diff --git a/lib/rubygems/request/https_pool.rb b/lib/rubygems/request/https_pool.rb index 2e3da0a44e..3ab91faf61 100644 --- a/lib/rubygems/request/https_pool.rb +++ b/lib/rubygems/request/https_pool.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::Request::HTTPSPool < Gem::Request::HTTPPool # :nodoc: private diff --git a/lib/rubygems/request_set.rb b/lib/rubygems/request_set.rb index 12806836aa..b760a05d9b 100644 --- a/lib/rubygems/request_set.rb +++ b/lib/rubygems/request_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'tsort' ## diff --git a/lib/rubygems/request_set/gem_dependency_api.rb b/lib/rubygems/request_set/gem_dependency_api.rb index 73813c9ac7..4927e5db6a 100644 --- a/lib/rubygems/request_set/gem_dependency_api.rb +++ b/lib/rubygems/request_set/gem_dependency_api.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A semi-compatible DSL for the Bundler Gemfile and Isolate gem dependencies # files. diff --git a/lib/rubygems/request_set/lockfile.rb b/lib/rubygems/request_set/lockfile.rb index b79a377248..e9a706e83b 100644 --- a/lib/rubygems/request_set/lockfile.rb +++ b/lib/rubygems/request_set/lockfile.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Parses a gem.deps.rb.lock file and constructs a LockSet containing the # dependencies found inside. If the lock file is missing no LockSet is diff --git a/lib/rubygems/request_set/lockfile/parser.rb b/lib/rubygems/request_set/lockfile/parser.rb index f43f6457fd..18aaadf3bb 100644 --- a/lib/rubygems/request_set/lockfile/parser.rb +++ b/lib/rubygems/request_set/lockfile/parser.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::RequestSet::Lockfile::Parser ### # Parses lockfiles diff --git a/lib/rubygems/request_set/lockfile/tokenizer.rb b/lib/rubygems/request_set/lockfile/tokenizer.rb index 422b03c03f..d68645d235 100644 --- a/lib/rubygems/request_set/lockfile/tokenizer.rb +++ b/lib/rubygems/request_set/lockfile/tokenizer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'strscan' require 'rubygems/request_set/lockfile/parser' diff --git a/lib/rubygems/requirement.rb b/lib/rubygems/requirement.rb index de16926573..a33f67dafb 100644 --- a/lib/rubygems/requirement.rb +++ b/lib/rubygems/requirement.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require "rubygems/version" require "rubygems/deprecate" diff --git a/lib/rubygems/resolver.rb b/lib/rubygems/resolver.rb index dcd33ce10d..92dcab8e42 100644 --- a/lib/rubygems/resolver.rb +++ b/lib/rubygems/resolver.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/dependency' require 'rubygems/exceptions' require 'rubygems/util' diff --git a/lib/rubygems/resolver/activation_request.rb b/lib/rubygems/resolver/activation_request.rb index 03dd8d083b..2dd540cda0 100644 --- a/lib/rubygems/resolver/activation_request.rb +++ b/lib/rubygems/resolver/activation_request.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Specifies a Specification object that should be activated. Also contains a # dependency that was used to introduce this activation. diff --git a/lib/rubygems/resolver/api_set.rb b/lib/rubygems/resolver/api_set.rb index 17d602f987..611c74ad10 100644 --- a/lib/rubygems/resolver/api_set.rb +++ b/lib/rubygems/resolver/api_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The global rubygems pool, available via the rubygems.org API. # Returns instances of APISpecification. diff --git a/lib/rubygems/resolver/api_specification.rb b/lib/rubygems/resolver/api_specification.rb index 4960e66934..e7ba38d614 100644 --- a/lib/rubygems/resolver/api_specification.rb +++ b/lib/rubygems/resolver/api_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Represents a specification retrieved via the rubygems.org API. # diff --git a/lib/rubygems/resolver/best_set.rb b/lib/rubygems/resolver/best_set.rb index 7e2d7e2647..c3c756c5e3 100644 --- a/lib/rubygems/resolver/best_set.rb +++ b/lib/rubygems/resolver/best_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The BestSet chooses the best available method to query a remote index. # diff --git a/lib/rubygems/resolver/composed_set.rb b/lib/rubygems/resolver/composed_set.rb index 5b08f128ed..66d927be2a 100644 --- a/lib/rubygems/resolver/composed_set.rb +++ b/lib/rubygems/resolver/composed_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A ComposedSet allows multiple sets to be queried like a single set. # diff --git a/lib/rubygems/resolver/conflict.rb b/lib/rubygems/resolver/conflict.rb index 0b6c704d6a..101923eb74 100644 --- a/lib/rubygems/resolver/conflict.rb +++ b/lib/rubygems/resolver/conflict.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Used internally to indicate that a dependency conflicted # with a spec that would be activated. diff --git a/lib/rubygems/resolver/current_set.rb b/lib/rubygems/resolver/current_set.rb index 4e8d34026b..f8cec599de 100644 --- a/lib/rubygems/resolver/current_set.rb +++ b/lib/rubygems/resolver/current_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A set which represents the installed gems. Respects # all the normal settings that control where to look diff --git a/lib/rubygems/resolver/dependency_request.rb b/lib/rubygems/resolver/dependency_request.rb index 6c6ea8f4da..ded554a85a 100644 --- a/lib/rubygems/resolver/dependency_request.rb +++ b/lib/rubygems/resolver/dependency_request.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Used Internally. Wraps a Dependency object to also track which spec # contained the Dependency. diff --git a/lib/rubygems/resolver/git_set.rb b/lib/rubygems/resolver/git_set.rb index 5f1b368ac1..2b5aae64c6 100644 --- a/lib/rubygems/resolver/git_set.rb +++ b/lib/rubygems/resolver/git_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A GitSet represents gems that are sourced from git repositories. # diff --git a/lib/rubygems/resolver/git_specification.rb b/lib/rubygems/resolver/git_specification.rb index dcfb2ad855..507f346812 100644 --- a/lib/rubygems/resolver/git_specification.rb +++ b/lib/rubygems/resolver/git_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A GitSpecification represents a gem that is sourced from a git repository # and is being loaded through a gem dependencies file through the +git:+ diff --git a/lib/rubygems/resolver/index_set.rb b/lib/rubygems/resolver/index_set.rb index 7c56c2bf99..e7cd989095 100644 --- a/lib/rubygems/resolver/index_set.rb +++ b/lib/rubygems/resolver/index_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The global rubygems pool represented via the traditional # source index. diff --git a/lib/rubygems/resolver/index_specification.rb b/lib/rubygems/resolver/index_specification.rb index 56fecb5753..632a8a2d89 100644 --- a/lib/rubygems/resolver/index_specification.rb +++ b/lib/rubygems/resolver/index_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Represents a possible Specification object returned from IndexSet. Used to # delay needed to download full Specification objects when only the +name+ diff --git a/lib/rubygems/resolver/installed_specification.rb b/lib/rubygems/resolver/installed_specification.rb index 2a2b89a6c2..06da6af3db 100644 --- a/lib/rubygems/resolver/installed_specification.rb +++ b/lib/rubygems/resolver/installed_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # An InstalledSpecification represents a gem that is already installed # locally. diff --git a/lib/rubygems/resolver/installer_set.rb b/lib/rubygems/resolver/installer_set.rb index a68ff09dbd..d840b71711 100644 --- a/lib/rubygems/resolver/installer_set.rb +++ b/lib/rubygems/resolver/installer_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A set of gems for installation sourced from remote sources and local .gem # files diff --git a/lib/rubygems/resolver/local_specification.rb b/lib/rubygems/resolver/local_specification.rb index 20a283f0ba..76192e4c0b 100644 --- a/lib/rubygems/resolver/local_specification.rb +++ b/lib/rubygems/resolver/local_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A LocalSpecification comes from a .gem file on the local filesystem. diff --git a/lib/rubygems/resolver/lock_set.rb b/lib/rubygems/resolver/lock_set.rb index 4ede5971fb..fb581a1508 100644 --- a/lib/rubygems/resolver/lock_set.rb +++ b/lib/rubygems/resolver/lock_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A set of gems from a gem dependencies lockfile. diff --git a/lib/rubygems/resolver/lock_specification.rb b/lib/rubygems/resolver/lock_specification.rb index 0013171469..0226878752 100644 --- a/lib/rubygems/resolver/lock_specification.rb +++ b/lib/rubygems/resolver/lock_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The LockSpecification comes from a lockfile (Gem::RequestSet::Lockfile). # diff --git a/lib/rubygems/resolver/molinillo.rb b/lib/rubygems/resolver/molinillo.rb index 24ac0f9b2d..019536dc9b 100644 --- a/lib/rubygems/resolver/molinillo.rb +++ b/lib/rubygems/resolver/molinillo.rb @@ -1 +1,2 @@ +# frozen_string_literal: false require 'rubygems/resolver/molinillo/lib/molinillo' diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo.rb b/lib/rubygems/resolver/molinillo/lib/molinillo.rb index 47b4518321..34dc7787dc 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/resolver/molinillo/lib/molinillo/gem_metadata' require 'rubygems/resolver/molinillo/lib/molinillo/errors' require 'rubygems/resolver/molinillo/lib/molinillo/resolver' diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb index 9780200e6f..c3a1d5a2ef 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'set' require 'tsort' diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb index cc9f636ed5..074ee9dd7d 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo # An error that occurred during the resolution process class ResolverError < StandardError; end diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb index 73a0daa528..8140c57a58 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo VERSION = '0.4.0' end diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb index 848392b215..10c655ac32 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo # Provides information about specifcations and dependencies to the resolver, # allowing the {Resolver} class to remain generic while still providing power diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb index 18f5363950..100b694ebc 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo # Conveys information about the resolution process to a user. module UI diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb index cc572b411a..5a0eb36849 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo class Resolver # A specific resolution from a given {Resolver} diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb index b22caf44da..a92b3273ab 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/resolver/molinillo/lib/molinillo/dependency_graph' module Gem::Resolver::Molinillo diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb index f0317185ab..7bc9d98927 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Resolver::Molinillo # A state that a {Resolution} can be in # @attr [String] name diff --git a/lib/rubygems/resolver/requirement_list.rb b/lib/rubygems/resolver/requirement_list.rb index a6bfaab307..32f2ac5a99 100644 --- a/lib/rubygems/resolver/requirement_list.rb +++ b/lib/rubygems/resolver/requirement_list.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The RequirementList is used to hold the requirements being considered # while resolving a set of gems. diff --git a/lib/rubygems/resolver/set.rb b/lib/rubygems/resolver/set.rb index b26dc45c7b..e2253abf3a 100644 --- a/lib/rubygems/resolver/set.rb +++ b/lib/rubygems/resolver/set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Resolver sets are used to look up specifications (and their # dependencies) used in resolution. This set is abstract. diff --git a/lib/rubygems/resolver/spec_specification.rb b/lib/rubygems/resolver/spec_specification.rb index 1350e8a7ab..00a0533bb5 100644 --- a/lib/rubygems/resolver/spec_specification.rb +++ b/lib/rubygems/resolver/spec_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The Resolver::SpecSpecification contains common functionality for # Resolver specifications that are backed by a Gem::Specification. diff --git a/lib/rubygems/resolver/specification.rb b/lib/rubygems/resolver/specification.rb index 9b597f1916..5833320660 100644 --- a/lib/rubygems/resolver/specification.rb +++ b/lib/rubygems/resolver/specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A Resolver::Specification contains a subset of the information # contained in a Gem::Specification. Only the information necessary for diff --git a/lib/rubygems/resolver/stats.rb b/lib/rubygems/resolver/stats.rb index c31e5be962..4de766f2e1 100644 --- a/lib/rubygems/resolver/stats.rb +++ b/lib/rubygems/resolver/stats.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::Resolver::Stats def initialize @max_depth = 0 diff --git a/lib/rubygems/resolver/vendor_set.rb b/lib/rubygems/resolver/vendor_set.rb index 614bd05382..a006220ffe 100644 --- a/lib/rubygems/resolver/vendor_set.rb +++ b/lib/rubygems/resolver/vendor_set.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A VendorSet represents gems that have been unpacked into a specific # directory that contains a gemspec. diff --git a/lib/rubygems/resolver/vendor_specification.rb b/lib/rubygems/resolver/vendor_specification.rb index a99b5f3cc1..ecf8e74def 100644 --- a/lib/rubygems/resolver/vendor_specification.rb +++ b/lib/rubygems/resolver/vendor_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A VendorSpecification represents a gem that has been unpacked into a project # and is being loaded through a gem dependencies file through the +path:+ diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb index 8c5fb7d9f2..d44ebec9f5 100644 --- a/lib/rubygems/security.rb +++ b/lib/rubygems/security.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/security/policies.rb b/lib/rubygems/security/policies.rb index a976ecaf59..05c6bbdb2a 100644 --- a/lib/rubygems/security/policies.rb +++ b/lib/rubygems/security/policies.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem::Security ## diff --git a/lib/rubygems/security/policy.rb b/lib/rubygems/security/policy.rb index b9bcb17525..0e13497b9d 100644 --- a/lib/rubygems/security/policy.rb +++ b/lib/rubygems/security/policy.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/user_interaction' ## diff --git a/lib/rubygems/security/signer.rb b/lib/rubygems/security/signer.rb index fbee240f29..a6d0161edc 100644 --- a/lib/rubygems/security/signer.rb +++ b/lib/rubygems/security/signer.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Basic OpenSSL-based package signing class. diff --git a/lib/rubygems/security/trust_dir.rb b/lib/rubygems/security/trust_dir.rb index 76ef89af7f..a032debf6e 100644 --- a/lib/rubygems/security/trust_dir.rb +++ b/lib/rubygems/security/trust_dir.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The TrustDir manages the trusted certificates for gem signature # verification. diff --git a/lib/rubygems/server.rb b/lib/rubygems/server.rb index 7655be22ce..d83a928571 100644 --- a/lib/rubygems/server.rb +++ b/lib/rubygems/server.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'webrick' require 'zlib' require 'erb' diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb index e5995f005f..7a58a441d2 100644 --- a/lib/rubygems/source.rb +++ b/lib/rubygems/source.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'uri' require 'fileutils' diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index 35c2270a74..7096ebe617 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'digest' require 'rubygems/util' diff --git a/lib/rubygems/source/installed.rb b/lib/rubygems/source/installed.rb index bd05c75af1..3327010768 100644 --- a/lib/rubygems/source/installed.rb +++ b/lib/rubygems/source/installed.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Represents an installed gem. This is used for dependency resolution. diff --git a/lib/rubygems/source/local.rb b/lib/rubygems/source/local.rb index 8057921163..a320ff1c66 100644 --- a/lib/rubygems/source/local.rb +++ b/lib/rubygems/source/local.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The local source finds gems in the current directory for fulfilling # dependencies. diff --git a/lib/rubygems/source/lock.rb b/lib/rubygems/source/lock.rb index 2ba7702bda..98fef5a4d1 100644 --- a/lib/rubygems/source/lock.rb +++ b/lib/rubygems/source/lock.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A Lock source wraps an installed gem's source and sorts before other sources # during dependency resolution. This allows RubyGems to prefer gems from diff --git a/lib/rubygems/source/specific_file.rb b/lib/rubygems/source/specific_file.rb index 250a839203..790e424033 100644 --- a/lib/rubygems/source/specific_file.rb +++ b/lib/rubygems/source/specific_file.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # A source representing a single .gem file. This is used for installation of # local gems. diff --git a/lib/rubygems/source/vendor.rb b/lib/rubygems/source/vendor.rb index 2d936231c1..057d54ebea 100644 --- a/lib/rubygems/source/vendor.rb +++ b/lib/rubygems/source/vendor.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # This represents a vendored source that is similar to an installed gem. diff --git a/lib/rubygems/source_list.rb b/lib/rubygems/source_list.rb index e01f11cc1e..add82f2327 100644 --- a/lib/rubygems/source_list.rb +++ b/lib/rubygems/source_list.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/source' ## diff --git a/lib/rubygems/source_local.rb b/lib/rubygems/source_local.rb index 0808f4694a..d56b697718 100644 --- a/lib/rubygems/source_local.rb +++ b/lib/rubygems/source_local.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/source' require 'rubygems/source_local' diff --git a/lib/rubygems/source_specific_file.rb b/lib/rubygems/source_specific_file.rb index f785c2667c..2ae5792781 100644 --- a/lib/rubygems/source_specific_file.rb +++ b/lib/rubygems/source_specific_file.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/source/specific_file' # TODO warn upon require, this file is deprecated. diff --git a/lib/rubygems/spec_fetcher.rb b/lib/rubygems/spec_fetcher.rb index 4967c4a40b..dbeecad243 100644 --- a/lib/rubygems/spec_fetcher.rb +++ b/lib/rubygems/spec_fetcher.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems/remote_fetcher' require 'rubygems/user_interaction' require 'rubygems/errors' diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 50c27aa272..ddba38da84 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/stub_specification.rb b/lib/rubygems/stub_specification.rb index 482a75bd48..98ec7ce070 100644 --- a/lib/rubygems/stub_specification.rb +++ b/lib/rubygems/stub_specification.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # Gem::StubSpecification reads the stub: line from the gemspec. This prevents # us having to eval the entire gemspec in order to find out certain diff --git a/lib/rubygems/syck_hack.rb b/lib/rubygems/syck_hack.rb index 92179abb53..0f49793ea1 100644 --- a/lib/rubygems/syck_hack.rb +++ b/lib/rubygems/syck_hack.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # :stopdoc: # Hack to handle syck's DefaultKey bug diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 0e0bdfbe3e..3ffc608a1c 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false # TODO: $SAFE = 1 begin diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb index 6789f6efc5..bb633eb3cc 100644 --- a/lib/rubygems/test_utilities.rb +++ b/lib/rubygems/test_utilities.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'tempfile' require 'rubygems' require 'rubygems/remote_fetcher' diff --git a/lib/rubygems/text.rb b/lib/rubygems/text.rb index 4c033cf00e..470874621b 100644 --- a/lib/rubygems/text.rb +++ b/lib/rubygems/text.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'rubygems' ## diff --git a/lib/rubygems/uninstaller.rb b/lib/rubygems/uninstaller.rb index bb3e204c8d..b54eeba585 100644 --- a/lib/rubygems/uninstaller.rb +++ b/lib/rubygems/uninstaller.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/uri_formatter.rb b/lib/rubygems/uri_formatter.rb index 68aacc6369..bf0fc287a4 100644 --- a/lib/rubygems/uri_formatter.rb +++ b/lib/rubygems/uri_formatter.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false require 'cgi' require 'uri' diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index 78d37906c9..69eb26df5a 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/util.rb b/lib/rubygems/util.rb index 9bfe13f815..76d8ad4bc1 100644 --- a/lib/rubygems/util.rb +++ b/lib/rubygems/util.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # This module contains various utility methods as module methods. diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb index a15b556c3e..08ebd925f7 100644 --- a/lib/rubygems/util/licenses.rb +++ b/lib/rubygems/util/licenses.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false class Gem::Licenses NONSTANDARD = 'Nonstandard'.freeze diff --git a/lib/rubygems/util/list.rb b/lib/rubygems/util/list.rb index 6fa767646c..83dc8497c4 100644 --- a/lib/rubygems/util/list.rb +++ b/lib/rubygems/util/list.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false module Gem class List include Enumerable diff --git a/lib/rubygems/validator.rb b/lib/rubygems/validator.rb index 6992af16ba..8a13e9911b 100644 --- a/lib/rubygems/validator.rb +++ b/lib/rubygems/validator.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index 16e20c5246..8e37baa348 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false ## # The Version class processes string versions into comparable # values. A version string should normally be a series of numbers diff --git a/lib/rubygems/version_option.rb b/lib/rubygems/version_option.rb index a0755d5020..a31cb14db4 100644 --- a/lib/rubygems/version_option.rb +++ b/lib/rubygems/version_option.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: false #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. |