summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/English.rb1
-rw-r--r--lib/abbrev.rb1
-rw-r--r--lib/base64.rb1
-rw-r--r--lib/benchmark.rb1
-rw-r--r--lib/cgi.rb1
-rw-r--r--lib/cgi/cookie.rb1
-rw-r--r--lib/cgi/core.rb1
-rw-r--r--lib/cgi/html.rb1
-rw-r--r--lib/cgi/session.rb1
-rw-r--r--lib/cgi/session/pstore.rb1
-rw-r--r--lib/cgi/util.rb1
-rw-r--r--lib/cmath.rb1
-rw-r--r--lib/debug.rb1
-rw-r--r--lib/delegate.rb1
-rw-r--r--lib/drb.rb1
-rw-r--r--lib/drb/acl.rb1
-rw-r--r--lib/drb/drb.rb1
-rw-r--r--lib/drb/eq.rb1
-rw-r--r--lib/drb/extserv.rb1
-rw-r--r--lib/drb/extservm.rb1
-rw-r--r--lib/drb/gw.rb1
-rw-r--r--lib/drb/invokemethod.rb1
-rw-r--r--lib/drb/observer.rb1
-rw-r--r--lib/drb/ssl.rb1
-rw-r--r--lib/drb/timeridconv.rb1
-rw-r--r--lib/drb/unix.rb1
-rw-r--r--lib/e2mmap.rb1
-rw-r--r--lib/erb.rb1
-rw-r--r--lib/fileutils.rb1
-rw-r--r--lib/find.rb1
-rw-r--r--lib/forwardable.rb1
-rw-r--r--lib/getoptlong.rb1
-rw-r--r--lib/ipaddr.rb1
-rw-r--r--lib/irb.rb1
-rw-r--r--lib/irb/cmd/chws.rb1
-rw-r--r--lib/irb/cmd/fork.rb1
-rw-r--r--lib/irb/cmd/help.rb1
-rw-r--r--lib/irb/cmd/load.rb1
-rw-r--r--lib/irb/cmd/nop.rb1
-rw-r--r--lib/irb/cmd/pushws.rb1
-rw-r--r--lib/irb/cmd/subirb.rb1
-rw-r--r--lib/irb/completion.rb1
-rw-r--r--lib/irb/context.rb1
-rw-r--r--lib/irb/ext/change-ws.rb1
-rw-r--r--lib/irb/ext/history.rb1
-rw-r--r--lib/irb/ext/loader.rb1
-rw-r--r--lib/irb/ext/math-mode.rb1
-rw-r--r--lib/irb/ext/multi-irb.rb1
-rw-r--r--lib/irb/ext/save-history.rb1
-rw-r--r--lib/irb/ext/tracer.rb1
-rw-r--r--lib/irb/ext/use-loader.rb1
-rw-r--r--lib/irb/ext/workspaces.rb1
-rw-r--r--lib/irb/extend-command.rb1
-rw-r--r--lib/irb/frame.rb1
-rw-r--r--lib/irb/help.rb1
-rw-r--r--lib/irb/init.rb1
-rw-r--r--lib/irb/input-method.rb1
-rw-r--r--lib/irb/inspector.rb1
-rw-r--r--lib/irb/lc/error.rb1
-rw-r--r--lib/irb/lc/ja/encoding_aliases.rb1
-rw-r--r--lib/irb/lc/ja/error.rb1
-rw-r--r--lib/irb/locale.rb1
-rw-r--r--lib/irb/magic-file.rb1
-rw-r--r--lib/irb/notifier.rb1
-rw-r--r--lib/irb/output-method.rb1
-rw-r--r--lib/irb/ruby-lex.rb1
-rw-r--r--lib/irb/ruby-token.rb1
-rw-r--r--lib/irb/slex.rb1
-rw-r--r--lib/irb/src_encoding.rb1
-rw-r--r--lib/irb/version.rb1
-rw-r--r--lib/irb/workspace.rb1
-rw-r--r--lib/irb/ws-for-case-2.rb1
-rw-r--r--lib/irb/xmp.rb1
-rw-r--r--lib/logger.rb1
-rw-r--r--lib/mathn.rb1
-rw-r--r--lib/matrix.rb1
-rw-r--r--lib/matrix/eigenvalue_decomposition.rb1
-rw-r--r--lib/matrix/lup_decomposition.rb1
-rw-r--r--lib/mkmf.rb1
-rw-r--r--lib/monitor.rb1
-rw-r--r--lib/mutex_m.rb1
-rw-r--r--lib/net/http.rb1
-rw-r--r--lib/net/http/backward.rb1
-rw-r--r--lib/net/http/exceptions.rb1
-rw-r--r--lib/net/http/generic_request.rb1
-rw-r--r--lib/net/http/header.rb1
-rw-r--r--lib/net/http/proxy_delta.rb1
-rw-r--r--lib/net/http/request.rb1
-rw-r--r--lib/net/http/requests.rb1
-rw-r--r--lib/net/http/response.rb1
-rw-r--r--lib/net/http/responses.rb1
-rw-r--r--lib/net/https.rb1
-rw-r--r--lib/net/pop.rb1
-rw-r--r--lib/net/protocol.rb1
-rw-r--r--lib/net/smtp.rb1
-rw-r--r--lib/observer.rb1
-rw-r--r--lib/optionparser.rb1
-rw-r--r--lib/optparse.rb1
-rw-r--r--lib/optparse/ac.rb1
-rw-r--r--lib/optparse/date.rb1
-rw-r--r--lib/optparse/shellwords.rb1
-rw-r--r--lib/optparse/time.rb1
-rw-r--r--lib/optparse/uri.rb1
-rw-r--r--lib/optparse/version.rb1
-rw-r--r--lib/ostruct.rb1
-rw-r--r--lib/prime.rb1
-rw-r--r--lib/profile.rb1
-rw-r--r--lib/profiler.rb1
-rw-r--r--lib/pstore.rb1
-rw-r--r--lib/racc/parser.rb1
-rw-r--r--lib/rbconfig/datadir.rb1
-rw-r--r--lib/rdoc.rb1
-rw-r--r--lib/rdoc/alias.rb1
-rw-r--r--lib/rdoc/anon_class.rb1
-rw-r--r--lib/rdoc/any_method.rb1
-rw-r--r--lib/rdoc/attr.rb1
-rw-r--r--lib/rdoc/class_module.rb1
-rw-r--r--lib/rdoc/code_object.rb1
-rw-r--r--lib/rdoc/code_objects.rb1
-rw-r--r--lib/rdoc/comment.rb1
-rw-r--r--lib/rdoc/constant.rb1
-rw-r--r--lib/rdoc/context.rb1
-rw-r--r--lib/rdoc/context/section.rb1
-rw-r--r--lib/rdoc/cross_reference.rb1
-rw-r--r--lib/rdoc/encoding.rb1
-rw-r--r--lib/rdoc/erb_partial.rb1
-rw-r--r--lib/rdoc/erbio.rb1
-rw-r--r--lib/rdoc/extend.rb1
-rw-r--r--lib/rdoc/generator.rb1
-rw-r--r--lib/rdoc/generator/darkfish.rb1
-rw-r--r--lib/rdoc/generator/json_index.rb1
-rw-r--r--lib/rdoc/generator/markup.rb1
-rw-r--r--lib/rdoc/generator/pot.rb1
-rw-r--r--lib/rdoc/generator/pot/message_extractor.rb1
-rw-r--r--lib/rdoc/generator/pot/po.rb1
-rw-r--r--lib/rdoc/generator/pot/po_entry.rb1
-rw-r--r--lib/rdoc/generator/ri.rb1
-rw-r--r--lib/rdoc/ghost_method.rb1
-rw-r--r--lib/rdoc/i18n.rb1
-rw-r--r--lib/rdoc/i18n/locale.rb1
-rw-r--r--lib/rdoc/i18n/text.rb1
-rw-r--r--lib/rdoc/include.rb1
-rw-r--r--lib/rdoc/known_classes.rb1
-rw-r--r--lib/rdoc/markdown.rb1
-rw-r--r--lib/rdoc/markdown/entities.rb1
-rw-r--r--lib/rdoc/markdown/literals_1_9.rb1
-rw-r--r--lib/rdoc/markup.rb1
-rw-r--r--lib/rdoc/markup/attr_changer.rb1
-rw-r--r--lib/rdoc/markup/attr_span.rb1
-rw-r--r--lib/rdoc/markup/attribute_manager.rb1
-rw-r--r--lib/rdoc/markup/attributes.rb1
-rw-r--r--lib/rdoc/markup/blank_line.rb1
-rw-r--r--lib/rdoc/markup/block_quote.rb1
-rw-r--r--lib/rdoc/markup/document.rb1
-rw-r--r--lib/rdoc/markup/formatter.rb1
-rw-r--r--lib/rdoc/markup/formatter_test_case.rb1
-rw-r--r--lib/rdoc/markup/hard_break.rb1
-rw-r--r--lib/rdoc/markup/heading.rb1
-rw-r--r--lib/rdoc/markup/include.rb1
-rw-r--r--lib/rdoc/markup/indented_paragraph.rb1
-rw-r--r--lib/rdoc/markup/inline.rb1
-rw-r--r--lib/rdoc/markup/list.rb1
-rw-r--r--lib/rdoc/markup/list_item.rb1
-rw-r--r--lib/rdoc/markup/paragraph.rb1
-rw-r--r--lib/rdoc/markup/parser.rb1
-rw-r--r--lib/rdoc/markup/pre_process.rb1
-rw-r--r--lib/rdoc/markup/raw.rb1
-rw-r--r--lib/rdoc/markup/rule.rb1
-rw-r--r--lib/rdoc/markup/special.rb1
-rw-r--r--lib/rdoc/markup/text_formatter_test_case.rb1
-rw-r--r--lib/rdoc/markup/to_ansi.rb1
-rw-r--r--lib/rdoc/markup/to_bs.rb1
-rw-r--r--lib/rdoc/markup/to_html.rb1
-rw-r--r--lib/rdoc/markup/to_html_crossref.rb1
-rw-r--r--lib/rdoc/markup/to_html_snippet.rb1
-rw-r--r--lib/rdoc/markup/to_joined_paragraph.rb1
-rw-r--r--lib/rdoc/markup/to_label.rb1
-rw-r--r--lib/rdoc/markup/to_markdown.rb1
-rw-r--r--lib/rdoc/markup/to_rdoc.rb1
-rw-r--r--lib/rdoc/markup/to_table_of_contents.rb1
-rw-r--r--lib/rdoc/markup/to_test.rb1
-rw-r--r--lib/rdoc/markup/to_tt_only.rb1
-rw-r--r--lib/rdoc/markup/verbatim.rb1
-rw-r--r--lib/rdoc/meta_method.rb1
-rw-r--r--lib/rdoc/method_attr.rb1
-rw-r--r--lib/rdoc/mixin.rb1
-rw-r--r--lib/rdoc/normal_class.rb1
-rw-r--r--lib/rdoc/normal_module.rb1
-rw-r--r--lib/rdoc/options.rb1
-rw-r--r--lib/rdoc/parser.rb1
-rw-r--r--lib/rdoc/parser/c.rb1
-rw-r--r--lib/rdoc/parser/changelog.rb1
-rw-r--r--lib/rdoc/parser/markdown.rb1
-rw-r--r--lib/rdoc/parser/rd.rb1
-rw-r--r--lib/rdoc/parser/ruby.rb1
-rw-r--r--lib/rdoc/parser/ruby_tools.rb1
-rw-r--r--lib/rdoc/parser/simple.rb1
-rw-r--r--lib/rdoc/parser/text.rb1
-rw-r--r--lib/rdoc/rd.rb1
-rw-r--r--lib/rdoc/rd/block_parser.rb1
-rw-r--r--lib/rdoc/rd/inline.rb1
-rw-r--r--lib/rdoc/rd/inline_parser.rb1
-rw-r--r--lib/rdoc/rdoc.rb1
-rw-r--r--lib/rdoc/require.rb1
-rw-r--r--lib/rdoc/ri.rb1
-rw-r--r--lib/rdoc/ri/driver.rb1
-rw-r--r--lib/rdoc/ri/formatter.rb1
-rw-r--r--lib/rdoc/ri/paths.rb1
-rw-r--r--lib/rdoc/ri/store.rb1
-rw-r--r--lib/rdoc/ri/task.rb1
-rw-r--r--lib/rdoc/ruby_lex.rb1
-rw-r--r--lib/rdoc/ruby_token.rb1
-rw-r--r--lib/rdoc/rubygems_hook.rb1
-rw-r--r--lib/rdoc/servlet.rb1
-rw-r--r--lib/rdoc/single_class.rb1
-rw-r--r--lib/rdoc/stats.rb1
-rw-r--r--lib/rdoc/stats/normal.rb1
-rw-r--r--lib/rdoc/stats/quiet.rb1
-rw-r--r--lib/rdoc/stats/verbose.rb1
-rw-r--r--lib/rdoc/store.rb1
-rw-r--r--lib/rdoc/task.rb1
-rw-r--r--lib/rdoc/test_case.rb1
-rw-r--r--lib/rdoc/text.rb1
-rw-r--r--lib/rdoc/token_stream.rb1
-rw-r--r--lib/rdoc/tom_doc.rb1
-rw-r--r--lib/rdoc/top_level.rb1
-rw-r--r--lib/rexml/attlistdecl.rb1
-rw-r--r--lib/rexml/attribute.rb1
-rw-r--r--lib/rexml/cdata.rb1
-rw-r--r--lib/rexml/child.rb1
-rw-r--r--lib/rexml/comment.rb1
-rw-r--r--lib/rexml/doctype.rb1
-rw-r--r--lib/rexml/document.rb1
-rw-r--r--lib/rexml/dtd/attlistdecl.rb1
-rw-r--r--lib/rexml/dtd/dtd.rb1
-rw-r--r--lib/rexml/dtd/elementdecl.rb1
-rw-r--r--lib/rexml/dtd/entitydecl.rb1
-rw-r--r--lib/rexml/dtd/notationdecl.rb1
-rw-r--r--lib/rexml/element.rb1
-rw-r--r--lib/rexml/encoding.rb1
-rw-r--r--lib/rexml/entity.rb1
-rw-r--r--lib/rexml/formatters/default.rb1
-rw-r--r--lib/rexml/formatters/pretty.rb1
-rw-r--r--lib/rexml/formatters/transitive.rb1
-rw-r--r--lib/rexml/functions.rb1
-rw-r--r--lib/rexml/instruction.rb1
-rw-r--r--lib/rexml/light/node.rb1
-rw-r--r--lib/rexml/namespace.rb1
-rw-r--r--lib/rexml/node.rb1
-rw-r--r--lib/rexml/output.rb1
-rw-r--r--lib/rexml/parent.rb1
-rw-r--r--lib/rexml/parseexception.rb1
-rw-r--r--lib/rexml/parsers/baseparser.rb1
-rw-r--r--lib/rexml/parsers/lightparser.rb1
-rw-r--r--lib/rexml/parsers/pullparser.rb1
-rw-r--r--lib/rexml/parsers/sax2parser.rb1
-rw-r--r--lib/rexml/parsers/streamparser.rb1
-rw-r--r--lib/rexml/parsers/treeparser.rb1
-rw-r--r--lib/rexml/parsers/ultralightparser.rb1
-rw-r--r--lib/rexml/parsers/xpathparser.rb1
-rw-r--r--lib/rexml/quickpath.rb1
-rw-r--r--lib/rexml/rexml.rb1
-rw-r--r--lib/rexml/sax2listener.rb1
-rw-r--r--lib/rexml/security.rb1
-rw-r--r--lib/rexml/source.rb1
-rw-r--r--lib/rexml/streamlistener.rb1
-rw-r--r--lib/rexml/syncenumerator.rb1
-rw-r--r--lib/rexml/text.rb1
-rw-r--r--lib/rexml/undefinednamespaceexception.rb1
-rw-r--r--lib/rexml/validation/relaxng.rb1
-rw-r--r--lib/rexml/validation/validation.rb1
-rw-r--r--lib/rexml/validation/validationexception.rb1
-rw-r--r--lib/rexml/xmldecl.rb1
-rw-r--r--lib/rexml/xmltokens.rb1
-rw-r--r--lib/rexml/xpath.rb1
-rw-r--r--lib/rexml/xpath_parser.rb1
-rw-r--r--lib/rinda/rinda.rb1
-rw-r--r--lib/rinda/ring.rb1
-rw-r--r--lib/rinda/tuplespace.rb1
-rw-r--r--lib/rss.rb1
-rw-r--r--lib/rss/0.9.rb1
-rw-r--r--lib/rss/1.0.rb1
-rw-r--r--lib/rss/2.0.rb1
-rw-r--r--lib/rss/atom.rb1
-rw-r--r--lib/rss/content.rb1
-rw-r--r--lib/rss/content/1.0.rb1
-rw-r--r--lib/rss/content/2.0.rb1
-rw-r--r--lib/rss/converter.rb1
-rw-r--r--lib/rss/dublincore.rb1
-rw-r--r--lib/rss/dublincore/1.0.rb1
-rw-r--r--lib/rss/dublincore/2.0.rb1
-rw-r--r--lib/rss/dublincore/atom.rb1
-rw-r--r--lib/rss/image.rb1
-rw-r--r--lib/rss/itunes.rb1
-rw-r--r--lib/rss/maker.rb1
-rw-r--r--lib/rss/maker/0.9.rb1
-rw-r--r--lib/rss/maker/1.0.rb1
-rw-r--r--lib/rss/maker/2.0.rb1
-rw-r--r--lib/rss/maker/atom.rb1
-rw-r--r--lib/rss/maker/base.rb1
-rw-r--r--lib/rss/maker/content.rb1
-rw-r--r--lib/rss/maker/dublincore.rb1
-rw-r--r--lib/rss/maker/entry.rb1
-rw-r--r--lib/rss/maker/feed.rb1
-rw-r--r--lib/rss/maker/image.rb1
-rw-r--r--lib/rss/maker/itunes.rb1
-rw-r--r--lib/rss/maker/slash.rb1
-rw-r--r--lib/rss/maker/syndication.rb1
-rw-r--r--lib/rss/maker/taxonomy.rb1
-rw-r--r--lib/rss/maker/trackback.rb1
-rw-r--r--lib/rss/parser.rb1
-rw-r--r--lib/rss/rexmlparser.rb1
-rw-r--r--lib/rss/rss.rb1
-rw-r--r--lib/rss/slash.rb1
-rw-r--r--lib/rss/syndication.rb1
-rw-r--r--lib/rss/taxonomy.rb1
-rw-r--r--lib/rss/trackback.rb1
-rw-r--r--lib/rss/utils.rb1
-rw-r--r--lib/rss/xml-stylesheet.rb1
-rw-r--r--lib/rss/xml.rb1
-rw-r--r--lib/rss/xmlparser.rb1
-rw-r--r--lib/rss/xmlscanner.rb1
-rw-r--r--lib/rubygems.rb1
-rw-r--r--lib/rubygems/available_set.rb1
-rw-r--r--lib/rubygems/basic_specification.rb1
-rw-r--r--lib/rubygems/command.rb1
-rw-r--r--lib/rubygems/command_manager.rb1
-rw-r--r--lib/rubygems/commands/build_command.rb1
-rw-r--r--lib/rubygems/commands/cert_command.rb1
-rw-r--r--lib/rubygems/commands/check_command.rb1
-rw-r--r--lib/rubygems/commands/cleanup_command.rb1
-rw-r--r--lib/rubygems/commands/contents_command.rb1
-rw-r--r--lib/rubygems/commands/dependency_command.rb1
-rw-r--r--lib/rubygems/commands/environment_command.rb1
-rw-r--r--lib/rubygems/commands/fetch_command.rb1
-rw-r--r--lib/rubygems/commands/generate_index_command.rb1
-rw-r--r--lib/rubygems/commands/help_command.rb1
-rw-r--r--lib/rubygems/commands/install_command.rb1
-rw-r--r--lib/rubygems/commands/list_command.rb1
-rw-r--r--lib/rubygems/commands/lock_command.rb1
-rw-r--r--lib/rubygems/commands/mirror_command.rb1
-rw-r--r--lib/rubygems/commands/open_command.rb1
-rw-r--r--lib/rubygems/commands/outdated_command.rb1
-rw-r--r--lib/rubygems/commands/owner_command.rb1
-rw-r--r--lib/rubygems/commands/pristine_command.rb1
-rw-r--r--lib/rubygems/commands/push_command.rb1
-rw-r--r--lib/rubygems/commands/query_command.rb1
-rw-r--r--lib/rubygems/commands/rdoc_command.rb1
-rw-r--r--lib/rubygems/commands/search_command.rb1
-rw-r--r--lib/rubygems/commands/server_command.rb1
-rw-r--r--lib/rubygems/commands/setup_command.rb1
-rw-r--r--lib/rubygems/commands/sources_command.rb1
-rw-r--r--lib/rubygems/commands/specification_command.rb1
-rw-r--r--lib/rubygems/commands/stale_command.rb1
-rw-r--r--lib/rubygems/commands/uninstall_command.rb1
-rw-r--r--lib/rubygems/commands/unpack_command.rb1
-rw-r--r--lib/rubygems/commands/update_command.rb1
-rw-r--r--lib/rubygems/commands/which_command.rb1
-rw-r--r--lib/rubygems/commands/yank_command.rb1
-rw-r--r--lib/rubygems/compatibility.rb1
-rw-r--r--lib/rubygems/config_file.rb1
-rw-r--r--lib/rubygems/core_ext/kernel_gem.rb1
-rwxr-xr-xlib/rubygems/core_ext/kernel_require.rb1
-rw-r--r--lib/rubygems/defaults.rb1
-rw-r--r--lib/rubygems/dependency.rb1
-rw-r--r--lib/rubygems/dependency_installer.rb1
-rw-r--r--lib/rubygems/dependency_list.rb1
-rw-r--r--lib/rubygems/deprecate.rb1
-rw-r--r--lib/rubygems/doctor.rb1
-rw-r--r--lib/rubygems/errors.rb1
-rw-r--r--lib/rubygems/exceptions.rb1
-rw-r--r--lib/rubygems/ext.rb1
-rw-r--r--lib/rubygems/ext/build_error.rb1
-rw-r--r--lib/rubygems/ext/builder.rb1
-rw-r--r--lib/rubygems/ext/cmake_builder.rb1
-rw-r--r--lib/rubygems/ext/configure_builder.rb1
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb1
-rw-r--r--lib/rubygems/ext/rake_builder.rb1
-rw-r--r--lib/rubygems/gem_runner.rb1
-rw-r--r--lib/rubygems/gemcutter_utilities.rb1
-rw-r--r--lib/rubygems/indexer.rb1
-rw-r--r--lib/rubygems/install_default_message.rb1
-rw-r--r--lib/rubygems/install_message.rb1
-rw-r--r--lib/rubygems/install_update_options.rb1
-rw-r--r--lib/rubygems/installer.rb1
-rw-r--r--lib/rubygems/installer_test_case.rb1
-rw-r--r--lib/rubygems/local_remote_options.rb1
-rw-r--r--lib/rubygems/mock_gem_ui.rb1
-rw-r--r--lib/rubygems/name_tuple.rb1
-rw-r--r--lib/rubygems/package.rb1
-rw-r--r--lib/rubygems/package/digest_io.rb1
-rw-r--r--lib/rubygems/package/file_source.rb1
-rw-r--r--lib/rubygems/package/io_source.rb1
-rw-r--r--lib/rubygems/package/old.rb1
-rw-r--r--lib/rubygems/package/source.rb1
-rw-r--r--lib/rubygems/package/tar_header.rb1
-rw-r--r--lib/rubygems/package/tar_reader.rb1
-rw-r--r--lib/rubygems/package/tar_reader/entry.rb1
-rw-r--r--lib/rubygems/package/tar_test_case.rb1
-rw-r--r--lib/rubygems/package/tar_writer.rb1
-rw-r--r--lib/rubygems/package_task.rb1
-rw-r--r--lib/rubygems/path_support.rb1
-rw-r--r--lib/rubygems/platform.rb1
-rw-r--r--lib/rubygems/psych_additions.rb1
-rw-r--r--lib/rubygems/psych_tree.rb1
-rw-r--r--lib/rubygems/rdoc.rb1
-rw-r--r--lib/rubygems/remote_fetcher.rb1
-rw-r--r--lib/rubygems/request.rb1
-rw-r--r--lib/rubygems/request/connection_pools.rb1
-rw-r--r--lib/rubygems/request/http_pool.rb1
-rw-r--r--lib/rubygems/request/https_pool.rb1
-rw-r--r--lib/rubygems/request_set.rb1
-rw-r--r--lib/rubygems/request_set/gem_dependency_api.rb1
-rw-r--r--lib/rubygems/request_set/lockfile.rb1
-rw-r--r--lib/rubygems/request_set/lockfile/parser.rb1
-rw-r--r--lib/rubygems/request_set/lockfile/tokenizer.rb1
-rw-r--r--lib/rubygems/requirement.rb1
-rw-r--r--lib/rubygems/resolver.rb1
-rw-r--r--lib/rubygems/resolver/activation_request.rb1
-rw-r--r--lib/rubygems/resolver/api_set.rb1
-rw-r--r--lib/rubygems/resolver/api_specification.rb1
-rw-r--r--lib/rubygems/resolver/best_set.rb1
-rw-r--r--lib/rubygems/resolver/composed_set.rb1
-rw-r--r--lib/rubygems/resolver/conflict.rb1
-rw-r--r--lib/rubygems/resolver/current_set.rb1
-rw-r--r--lib/rubygems/resolver/dependency_request.rb1
-rw-r--r--lib/rubygems/resolver/git_set.rb1
-rw-r--r--lib/rubygems/resolver/git_specification.rb1
-rw-r--r--lib/rubygems/resolver/index_set.rb1
-rw-r--r--lib/rubygems/resolver/index_specification.rb1
-rw-r--r--lib/rubygems/resolver/installed_specification.rb1
-rw-r--r--lib/rubygems/resolver/installer_set.rb1
-rw-r--r--lib/rubygems/resolver/local_specification.rb1
-rw-r--r--lib/rubygems/resolver/lock_set.rb1
-rw-r--r--lib/rubygems/resolver/lock_specification.rb1
-rw-r--r--lib/rubygems/resolver/molinillo.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb1
-rw-r--r--lib/rubygems/resolver/molinillo/lib/molinillo/state.rb1
-rw-r--r--lib/rubygems/resolver/requirement_list.rb1
-rw-r--r--lib/rubygems/resolver/set.rb1
-rw-r--r--lib/rubygems/resolver/spec_specification.rb1
-rw-r--r--lib/rubygems/resolver/specification.rb1
-rw-r--r--lib/rubygems/resolver/stats.rb1
-rw-r--r--lib/rubygems/resolver/vendor_set.rb1
-rw-r--r--lib/rubygems/resolver/vendor_specification.rb1
-rw-r--r--lib/rubygems/security.rb1
-rw-r--r--lib/rubygems/security/policies.rb1
-rw-r--r--lib/rubygems/security/policy.rb1
-rw-r--r--lib/rubygems/security/signer.rb1
-rw-r--r--lib/rubygems/security/trust_dir.rb1
-rw-r--r--lib/rubygems/server.rb1
-rw-r--r--lib/rubygems/source.rb1
-rw-r--r--lib/rubygems/source/git.rb1
-rw-r--r--lib/rubygems/source/installed.rb1
-rw-r--r--lib/rubygems/source/local.rb1
-rw-r--r--lib/rubygems/source/lock.rb1
-rw-r--r--lib/rubygems/source/specific_file.rb1
-rw-r--r--lib/rubygems/source/vendor.rb1
-rw-r--r--lib/rubygems/source_list.rb1
-rw-r--r--lib/rubygems/source_local.rb1
-rw-r--r--lib/rubygems/source_specific_file.rb1
-rw-r--r--lib/rubygems/spec_fetcher.rb1
-rw-r--r--lib/rubygems/specification.rb1
-rw-r--r--lib/rubygems/stub_specification.rb1
-rw-r--r--lib/rubygems/syck_hack.rb1
-rw-r--r--lib/rubygems/test_case.rb1
-rw-r--r--lib/rubygems/test_utilities.rb1
-rw-r--r--lib/rubygems/text.rb1
-rw-r--r--lib/rubygems/uninstaller.rb1
-rw-r--r--lib/rubygems/uri_formatter.rb1
-rw-r--r--lib/rubygems/user_interaction.rb1
-rw-r--r--lib/rubygems/util.rb1
-rw-r--r--lib/rubygems/util/licenses.rb1
-rw-r--r--lib/rubygems/util/list.rb1
-rw-r--r--lib/rubygems/validator.rb1
-rw-r--r--lib/rubygems/version.rb1
-rw-r--r--lib/rubygems/version_option.rb1
-rw-r--r--lib/scanf.rb1
-rw-r--r--lib/shell.rb1
-rw-r--r--lib/shell/builtin-command.rb1
-rw-r--r--lib/shell/command-processor.rb1
-rw-r--r--lib/shell/error.rb1
-rw-r--r--lib/shell/filter.rb1
-rw-r--r--lib/shell/process-controller.rb1
-rw-r--r--lib/shell/system-command.rb1
-rw-r--r--lib/shell/version.rb1
-rw-r--r--lib/shellwords.rb1
-rw-r--r--lib/singleton.rb1
-rw-r--r--lib/sync.rb1
-rw-r--r--lib/tempfile.rb1
-rw-r--r--lib/thwait.rb1
-rw-r--r--lib/timeout.rb1
-rw-r--r--lib/tracer.rb1
-rw-r--r--lib/ubygems.rb1
-rw-r--r--lib/un.rb1
-rw-r--r--lib/unicode_normalize.rb1
-rw-r--r--lib/unicode_normalize/normalize.rb1
-rw-r--r--lib/uri.rb1
-rw-r--r--lib/uri/common.rb1
-rw-r--r--lib/uri/ftp.rb1
-rw-r--r--lib/uri/http.rb1
-rw-r--r--lib/uri/https.rb1
-rw-r--r--lib/uri/ldap.rb1
-rw-r--r--lib/uri/ldaps.rb1
-rw-r--r--lib/uri/mailto.rb1
-rw-r--r--lib/uri/rfc2396_parser.rb1
-rw-r--r--lib/uri/rfc3986_parser.rb1
-rw-r--r--lib/weakref.rb1
-rw-r--r--lib/webrick.rb1
-rw-r--r--lib/webrick/accesslog.rb1
-rw-r--r--lib/webrick/cgi.rb1
-rw-r--r--lib/webrick/compat.rb1
-rw-r--r--lib/webrick/config.rb1
-rw-r--r--lib/webrick/cookie.rb1
-rw-r--r--lib/webrick/htmlutils.rb1
-rw-r--r--lib/webrick/httpauth.rb1
-rw-r--r--lib/webrick/httpauth/authenticator.rb1
-rw-r--r--lib/webrick/httpauth/basicauth.rb1
-rw-r--r--lib/webrick/httpauth/digestauth.rb1
-rw-r--r--lib/webrick/httpauth/htdigest.rb1
-rw-r--r--lib/webrick/httpauth/htgroup.rb1
-rw-r--r--lib/webrick/httpauth/htpasswd.rb1
-rw-r--r--lib/webrick/httpauth/userdb.rb1
-rw-r--r--lib/webrick/httpproxy.rb1
-rw-r--r--lib/webrick/httprequest.rb1
-rw-r--r--lib/webrick/httpresponse.rb1
-rw-r--r--lib/webrick/https.rb1
-rw-r--r--lib/webrick/httpserver.rb1
-rw-r--r--lib/webrick/httpservlet.rb1
-rw-r--r--lib/webrick/httpservlet/abstract.rb1
-rw-r--r--lib/webrick/httpservlet/cgi_runner.rb1
-rw-r--r--lib/webrick/httpservlet/cgihandler.rb1
-rw-r--r--lib/webrick/httpservlet/erbhandler.rb1
-rw-r--r--lib/webrick/httpservlet/filehandler.rb1
-rw-r--r--lib/webrick/httpservlet/prochandler.rb1
-rw-r--r--lib/webrick/httpstatus.rb1
-rw-r--r--lib/webrick/httputils.rb1
-rw-r--r--lib/webrick/httpversion.rb1
-rw-r--r--lib/webrick/log.rb1
-rw-r--r--lib/webrick/server.rb1
-rw-r--r--lib/webrick/ssl.rb1
-rw-r--r--lib/webrick/utils.rb1
-rw-r--r--lib/webrick/version.rb1
-rw-r--r--lib/xmlrpc.rb1
-rw-r--r--lib/xmlrpc/base64.rb1
-rw-r--r--lib/xmlrpc/client.rb1
-rw-r--r--lib/xmlrpc/config.rb1
-rw-r--r--lib/xmlrpc/create.rb1
-rw-r--r--lib/xmlrpc/datetime.rb1
-rw-r--r--lib/xmlrpc/marshal.rb1
-rw-r--r--lib/xmlrpc/parser.rb1
-rw-r--r--lib/xmlrpc/server.rb1
-rw-r--r--lib/xmlrpc/utils.rb1
-rw-r--r--lib/yaml.rb1
-rw-r--r--lib/yaml/dbm.rb1
-rw-r--r--lib/yaml/store.rb1
563 files changed, 563 insertions, 0 deletions
diff --git a/lib/English.rb b/lib/English.rb
index 838e5afc74..0c17229682 100644
--- a/lib/English.rb
+++ b/lib/English.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Include the English library file in a Ruby script, and you can
# reference the global variables such as \VAR{\$\_} using less
# cryptic names, listed in the following table.% \vref{tab:english}.
diff --git a/lib/abbrev.rb b/lib/abbrev.rb
index 2c07fb5cf9..2eac293c30 100644
--- a/lib/abbrev.rb
+++ b/lib/abbrev.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# Copyright (c) 2001,2003 Akinori MUSHA <knu@iDaemons.org>
#
diff --git a/lib/base64.rb b/lib/base64.rb
index bf33124562..a08941af92 100644
--- a/lib/base64.rb
+++ b/lib/base64.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = base64.rb: methods for base64-encoding and -decoding strings
#
diff --git a/lib/benchmark.rb b/lib/benchmark.rb
index 1e2b8d2d38..3aeed0c9a6 100644
--- a/lib/benchmark.rb
+++ b/lib/benchmark.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# benchmark.rb - a performance benchmarking library
#
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 51f465ea18..167b76cef7 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgi.rb - cgi support library
#
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index f92e535bb8..ffd88b8edb 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'cgi/util'
class CGI
# Class representing an HTTP cookie.
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb
index b81f915379..1a741dcd76 100644
--- a/lib/cgi/core.rb
+++ b/lib/cgi/core.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# Methods for generating HTML, parsing CGI-related parameters, and
# generating HTTP responses.
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb
index db47bb8266..4b9e577b32 100644
--- a/lib/cgi/html.rb
+++ b/lib/cgi/html.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class CGI
# Base module for HTML-generation mixins.
#
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index 8d747f0dc7..d44a5f84b0 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgi/session.rb - session support for cgi scripts
#
diff --git a/lib/cgi/session/pstore.rb b/lib/cgi/session/pstore.rb
index 75343149e1..2dfb72bdce 100644
--- a/lib/cgi/session/pstore.rb
+++ b/lib/cgi/session/pstore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgi/session/pstore.rb - persistent storage of marshalled session data
#
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb
index 3d7db8f2c8..c232707239 100644
--- a/lib/cgi/util.rb
+++ b/lib/cgi/util.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class CGI; module Util; end; extend Util; end
module CGI::Util
@@accept_charset="UTF-8" unless defined?(@@accept_charset)
diff --git a/lib/cmath.rb b/lib/cmath.rb
index 9d1e2c2ebf..41ab06e77c 100644
--- a/lib/cmath.rb
+++ b/lib/cmath.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# = Trigonometric and transcendental functions for complex numbers.
#
diff --git a/lib/debug.rb b/lib/debug.rb
index 05614e3f2b..5d754d8ebb 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
# Copyright (C) 2000 Information-technology Promotion Agency, Japan
# Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 7a6a2a7a7b..4ce3c53cc9 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = delegate -- Support for the Delegation Pattern
#
# Documentation by James Edward Gray II and Gavin Sinclair
diff --git a/lib/drb.rb b/lib/drb.rb
index 93cc811e14..2bb4716fa2 100644
--- a/lib/drb.rb
+++ b/lib/drb.rb
@@ -1,2 +1,3 @@
+# frozen_string_literal: false
require 'drb/drb'
diff --git a/lib/drb/acl.rb b/lib/drb/acl.rb
index 72e034e960..520b7df71d 100644
--- a/lib/drb/acl.rb
+++ b/lib/drb/acl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Copyright (c) 2000,2002,2003 Masatoshi SEKI
#
# acl.rb is copyrighted free software by Masatoshi SEKI.
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index 456d0fbfa0..8011660156 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = drb/drb.rb
#
diff --git a/lib/drb/eq.rb b/lib/drb/eq.rb
index 553f30c598..15ca5cae42 100644
--- a/lib/drb/eq.rb
+++ b/lib/drb/eq.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module DRb
class DRbObject # :nodoc:
def ==(other)
diff --git a/lib/drb/extserv.rb b/lib/drb/extserv.rb
index 327b553a25..1cb1be4709 100644
--- a/lib/drb/extserv.rb
+++ b/lib/drb/extserv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
=begin
external service
Copyright (c) 2000,2002 Masatoshi SEKI
diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb
index 7228939d58..e2637aa62c 100644
--- a/lib/drb/extservm.rb
+++ b/lib/drb/extservm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
=begin
external service manager
Copyright (c) 2000 Masatoshi SEKI
diff --git a/lib/drb/gw.rb b/lib/drb/gw.rb
index b3568ab08d..d000507644 100644
--- a/lib/drb/gw.rb
+++ b/lib/drb/gw.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'monitor'
diff --git a/lib/drb/invokemethod.rb b/lib/drb/invokemethod.rb
index 71ebec11f6..0fae6d52b6 100644
--- a/lib/drb/invokemethod.rb
+++ b/lib/drb/invokemethod.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# for ruby-1.8.0
module DRb # :nodoc: all
diff --git a/lib/drb/observer.rb b/lib/drb/observer.rb
index cab9ebc60b..3ee15331a1 100644
--- a/lib/drb/observer.rb
+++ b/lib/drb/observer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'observer'
module DRb
diff --git a/lib/drb/ssl.rb b/lib/drb/ssl.rb
index efd8271a78..8d2724e736 100644
--- a/lib/drb/ssl.rb
+++ b/lib/drb/ssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'socket'
require 'openssl'
require 'drb/drb'
diff --git a/lib/drb/timeridconv.rb b/lib/drb/timeridconv.rb
index 4ea3035f39..e83eb72765 100644
--- a/lib/drb/timeridconv.rb
+++ b/lib/drb/timeridconv.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'monitor'
diff --git a/lib/drb/unix.rb b/lib/drb/unix.rb
index 637ea7cf6f..adacf6df5b 100644
--- a/lib/drb/unix.rb
+++ b/lib/drb/unix.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'socket'
require 'drb/drb'
require 'tmpdir'
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb
index 1eb5b51678..a9990b5ec5 100644
--- a/lib/e2mmap.rb
+++ b/lib/e2mmap.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
#--
# e2mmap.rb - for Ruby 1.1
diff --git a/lib/erb.rb b/lib/erb.rb
index 7b328bffb0..b876ca4625 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
# = ERB -- Ruby Templating
#
# Author:: Masatoshi SEKI
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 1468d66361..748ebd7637 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = fileutils.rb
#
diff --git a/lib/find.rb b/lib/find.rb
index 55783a5695..aa7a3c082b 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# find.rb: the Find module for processing all files under a given directory.
#
diff --git a/lib/forwardable.rb b/lib/forwardable.rb
index c24c8d8630..cd15eeab0c 100644
--- a/lib/forwardable.rb
+++ b/lib/forwardable.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# forwardable.rb -
# $Release Version: 1.1$
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index cf635f0438..e81493ea50 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# GetoptLong for Ruby
#
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index b0df4d3e6f..64d2a8162d 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# ipaddr.rb - A class to manipulate an IP address
#
diff --git a/lib/irb.rb b/lib/irb.rb
index 51961db20c..b9b39c9f28 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb.rb - irb main module
# $Release Version: 0.9.6 $
diff --git a/lib/irb/cmd/chws.rb b/lib/irb/cmd/chws.rb
index 8c0260627e..606e0c52a9 100644
--- a/lib/irb/cmd/chws.rb
+++ b/lib/irb/cmd/chws.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# change-ws.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/cmd/fork.rb b/lib/irb/cmd/fork.rb
index 1e02edac63..552c3962f6 100644
--- a/lib/irb/cmd/fork.rb
+++ b/lib/irb/cmd/fork.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# fork.rb -
# $Release Version: 0.9.6 $
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb
index 76e299fc20..7a09c396e1 100644
--- a/lib/irb/cmd/help.rb
+++ b/lib/irb/cmd/help.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# help.rb - helper using ri
# $Release Version: 0.9.6$
diff --git a/lib/irb/cmd/load.rb b/lib/irb/cmd/load.rb
index acda9d0c8c..e3b84dad79 100644
--- a/lib/irb/cmd/load.rb
+++ b/lib/irb/cmd/load.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# load.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/cmd/nop.rb b/lib/irb/cmd/nop.rb
index 60379f016a..9cf4337c28 100644
--- a/lib/irb/cmd/nop.rb
+++ b/lib/irb/cmd/nop.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# nop.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/cmd/pushws.rb b/lib/irb/cmd/pushws.rb
index 0726a4377e..aa14430ce4 100644
--- a/lib/irb/cmd/pushws.rb
+++ b/lib/irb/cmd/pushws.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# change-ws.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/cmd/subirb.rb b/lib/irb/cmd/subirb.rb
index ccf4fc4bcd..f29548b88f 100644
--- a/lib/irb/cmd/subirb.rb
+++ b/lib/irb/cmd/subirb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# multi.rb -
# $Release Version: 0.9.6$
# $Revision$
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 2d47f33d66..e7499a8e2b 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/completor.rb -
# $Release Version: 0.9$
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index 9cf9600f02..4cf6128930 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/context.rb - irb context
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/change-ws.rb b/lib/irb/ext/change-ws.rb
index 0ae9097285..94bfe62bc0 100644
--- a/lib/irb/ext/change-ws.rb
+++ b/lib/irb/ext/change-ws.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/ext/cb.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb
index d8378753f2..62363b13f4 100644
--- a/lib/irb/ext/history.rb
+++ b/lib/irb/ext/history.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# history.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb
index 821538cd44..840226db30 100644
--- a/lib/irb/ext/loader.rb
+++ b/lib/irb/ext/loader.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# loader.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/math-mode.rb b/lib/irb/ext/math-mode.rb
index 01bd24a157..e409dbdc6a 100644
--- a/lib/irb/ext/math-mode.rb
+++ b/lib/irb/ext/math-mode.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# math-mode.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/multi-irb.rb b/lib/irb/ext/multi-irb.rb
index 52f6fda733..982a319611 100644
--- a/lib/irb/ext/multi-irb.rb
+++ b/lib/irb/ext/multi-irb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/multi-irb.rb - multiple irb module
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb
index 4477d18e1a..236f00fb93 100644
--- a/lib/irb/ext/save-history.rb
+++ b/lib/irb/ext/save-history.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# save-history.rb -
# $Release Version: 0.9.6$
# $Revision$
diff --git a/lib/irb/ext/tracer.rb b/lib/irb/ext/tracer.rb
index c145cf5b4f..200f77e341 100644
--- a/lib/irb/ext/tracer.rb
+++ b/lib/irb/ext/tracer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/lib/tracer.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/use-loader.rb b/lib/irb/ext/use-loader.rb
index 99e76b722f..571dd25d17 100644
--- a/lib/irb/ext/use-loader.rb
+++ b/lib/irb/ext/use-loader.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# use-loader.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ext/workspaces.rb b/lib/irb/ext/workspaces.rb
index 4237037271..5bd72c194f 100644
--- a/lib/irb/ext/workspaces.rb
+++ b/lib/irb/ext/workspaces.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# push-ws.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index a9326272ff..6f15e6403a 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/extend-command.rb - irb extend command
# $Release Version: 0.9.6$
diff --git a/lib/irb/frame.rb b/lib/irb/frame.rb
index 64dd63dddf..6073809249 100644
--- a/lib/irb/frame.rb
+++ b/lib/irb/frame.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# frame.rb -
# $Release Version: 0.9$
diff --git a/lib/irb/help.rb b/lib/irb/help.rb
index b9ebfb1ae5..a4264ab4ab 100644
--- a/lib/irb/help.rb
+++ b/lib/irb/help.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/help.rb - print usage module
# $Release Version: 0.9.6$
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index af9c363a97..1184db15ea 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/init.rb - irb initialize module
# $Release Version: 0.9.6$
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 4ea3f585f8..f7b1aac3bf 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/input-method.rb - input methods used irb
# $Release Version: 0.9.6$
diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb
index f09b12927a..f6f76712b8 100644
--- a/lib/irb/inspector.rb
+++ b/lib/irb/inspector.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/inspector.rb - inspect methods
# $Release Version: 0.9.6$
diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb
index c0c6c30d79..6623f82d84 100644
--- a/lib/irb/lc/error.rb
+++ b/lib/irb/lc/error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/lc/error.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/lc/ja/encoding_aliases.rb b/lib/irb/lc/ja/encoding_aliases.rb
index 5bef32e20e..c534bf0fef 100644
--- a/lib/irb/lc/ja/encoding_aliases.rb
+++ b/lib/irb/lc/ja/encoding_aliases.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# :stopdoc:
module IRB
class Locale
diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb
index 4f09d781cb..919363154c 100644
--- a/lib/irb/lc/ja/error.rb
+++ b/lib/irb/lc/ja/error.rb
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
# irb/lc/ja/error.rb -
# $Release Version: 0.9.6$
# $Revision$
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 9f40188171..df540c8cbb 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/locale.rb - internationalization module
# $Release Version: 0.9.6$
diff --git a/lib/irb/magic-file.rb b/lib/irb/magic-file.rb
index 339ed60b6b..2dee684657 100644
--- a/lib/irb/magic-file.rb
+++ b/lib/irb/magic-file.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module IRB
class << (MagicFile = Object.new)
# see parser_magic_comment in parse.y
diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb
index d5981df2bf..9d8de82e69 100644
--- a/lib/irb/notifier.rb
+++ b/lib/irb/notifier.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# notifier.rb - output methods used by irb
# $Release Version: 0.9.6$
diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb
index e0ba25f3e4..7d64851698 100644
--- a/lib/irb/output-method.rb
+++ b/lib/irb/output-method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# output-method.rb - output methods used by irb
# $Release Version: 0.9.6$
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 7189307e0a..b1138cd77d 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/ruby-lex.rb - ruby lexcal analyzer
# $Release Version: 0.9.6$
diff --git a/lib/irb/ruby-token.rb b/lib/irb/ruby-token.rb
index a80d81c9a5..af53d3c93b 100644
--- a/lib/irb/ruby-token.rb
+++ b/lib/irb/ruby-token.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/ruby-token.rb - ruby tokens
# $Release Version: 0.9.6$
diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb
index f6c2bd92f5..68174771a7 100644
--- a/lib/irb/slex.rb
+++ b/lib/irb/slex.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/slex.rb - simple lex analyzer
# $Release Version: 0.9.6$
diff --git a/lib/irb/src_encoding.rb b/lib/irb/src_encoding.rb
index 958cef104c..32f997fc7c 100644
--- a/lib/irb/src_encoding.rb
+++ b/lib/irb/src_encoding.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# DO NOT WRITE ANY MAGIC COMMENT HERE.
def default_src_encoding
return __ENCODING__
diff --git a/lib/irb/version.rb b/lib/irb/version.rb
index bb998db3dd..094cb33c05 100644
--- a/lib/irb/version.rb
+++ b/lib/irb/version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/version.rb - irb version definition file
# $Release Version: 0.9.6$
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb
index e05c3bbc96..ac3e369430 100644
--- a/lib/irb/workspace.rb
+++ b/lib/irb/workspace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/workspace-binding.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/ws-for-case-2.rb b/lib/irb/ws-for-case-2.rb
index 9f3af49f30..eb173fddca 100644
--- a/lib/irb/ws-for-case-2.rb
+++ b/lib/irb/ws-for-case-2.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# irb/ws-for-case-2.rb -
# $Release Version: 0.9.6$
diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb
index 449f04328b..3234cff7f3 100644
--- a/lib/irb/xmp.rb
+++ b/lib/irb/xmp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# xmp.rb - irb version of gotoken xmp
# $Release Version: 0.9$
diff --git a/lib/logger.rb b/lib/logger.rb
index 77b08fe204..2246673b09 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# logger.rb - simple logging utility
# Copyright (C) 2000-2003, 2005, 2008, 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
#
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 315e5438d7..d07388bc26 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# $Release Version: 0.5 $
# $Revision: 1.1.1.1.4.1 $
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 2b87f057ad..fe61b6d120 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1,4 +1,5 @@
# encoding: utf-8
+# frozen_string_literal: false
#
# = matrix.rb
#
diff --git a/lib/matrix/eigenvalue_decomposition.rb b/lib/matrix/eigenvalue_decomposition.rb
index 6c3b794f33..919db9e83d 100644
--- a/lib/matrix/eigenvalue_decomposition.rb
+++ b/lib/matrix/eigenvalue_decomposition.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class Matrix
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb
index 30f3276253..9c1998fd36 100644
--- a/lib/matrix/lup_decomposition.rb
+++ b/lib/matrix/lup_decomposition.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class Matrix
# Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index d8bc1b525d..2904dc0589 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
# frozen-string-literal: false
# module to create Makefile for extension modules
# invoke like: ruby -r mkmf extconf.rb
diff --git a/lib/monitor.rb b/lib/monitor.rb
index e0491ec054..73741f8ddb 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = monitor.rb
#
# Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org>
diff --git a/lib/mutex_m.rb b/lib/mutex_m.rb
index 6698cb5ac6..627355151e 100644
--- a/lib/mutex_m.rb
+++ b/lib/mutex_m.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# mutex_m.rb -
# $Release Version: 3.0$
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 70f5165e91..eb08edf0f7 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = net/http.rb
#
diff --git a/lib/net/http/backward.rb b/lib/net/http/backward.rb
index faf47b8489..9e24eae32c 100644
--- a/lib/net/http/backward.rb
+++ b/lib/net/http/backward.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# for backward compatibility
# :enddoc:
diff --git a/lib/net/http/exceptions.rb b/lib/net/http/exceptions.rb
index 6c5d81cb04..0d34526616 100644
--- a/lib/net/http/exceptions.rb
+++ b/lib/net/http/exceptions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Net::HTTP exception class.
# You cannot use Net::HTTPExceptions directly; instead, you must use
# its subclasses.
diff --git a/lib/net/http/generic_request.rb b/lib/net/http/generic_request.rb
index 9b7d28757d..19602da27c 100644
--- a/lib/net/http/generic_request.rb
+++ b/lib/net/http/generic_request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# HTTPGenericRequest is the parent of the HTTPRequest class.
# Do not use this directly; use a subclass of HTTPRequest.
#
diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb
index 8afa32a422..a911d5d255 100644
--- a/lib/net/http/header.rb
+++ b/lib/net/http/header.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# The HTTPHeader module defines methods for reading and writing
# HTTP headers.
#
diff --git a/lib/net/http/proxy_delta.rb b/lib/net/http/proxy_delta.rb
index b16c9f1ed8..a2f770ebdb 100644
--- a/lib/net/http/proxy_delta.rb
+++ b/lib/net/http/proxy_delta.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module Net::HTTP::ProxyDelta #:nodoc: internal use only
private
diff --git a/lib/net/http/request.rb b/lib/net/http/request.rb
index e8b0f48fcc..1e86f3e4b4 100644
--- a/lib/net/http/request.rb
+++ b/lib/net/http/request.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# HTTP request class.
# This class wraps together the request header and the request path.
# You cannot use this class directly. Instead, you should use one of its
diff --git a/lib/net/http/requests.rb b/lib/net/http/requests.rb
index c1f8360479..d4c80a3812 100644
--- a/lib/net/http/requests.rb
+++ b/lib/net/http/requests.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# HTTP/1.1 methods --- RFC2616
#
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb
index f51d6b1373..349812834f 100644
--- a/lib/net/http/response.rb
+++ b/lib/net/http/response.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# HTTP response class.
#
# This class wraps together the response header and the response body (the
diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb
index 284bfcfe7f..a5b8ddc68b 100644
--- a/lib/net/http/responses.rb
+++ b/lib/net/http/responses.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# :stopdoc:
class Net::HTTPUnknownResponse < Net::HTTPResponse
HAS_BODY = true
diff --git a/lib/net/https.rb b/lib/net/https.rb
index 4351cae360..58cb6ddf19 100644
--- a/lib/net/https.rb
+++ b/lib/net/https.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
=begin
= net/https -- SSL/TLS enhancement for Net::HTTP.
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index db7192c95a..00209fec46 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = net/pop.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 28833a25ef..b53370931a 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = net/protocol.rb
#
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 64e536a12a..d634274c3e 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = net/smtp.rb
#
# Copyright (c) 1999-2007 Yukihiro Matsumoto.
diff --git a/lib/observer.rb b/lib/observer.rb
index 10f2eb0db5..fa7446f384 100644
--- a/lib/observer.rb
+++ b/lib/observer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# Implementation of the _Observer_ object-oriented design pattern. The
# following documentation is copied, with modifications, from "Programming
diff --git a/lib/optionparser.rb b/lib/optionparser.rb
index d89a4d22fb..4b9b40d82a 100644
--- a/lib/optionparser.rb
+++ b/lib/optionparser.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
require_relative 'optparse'
diff --git a/lib/optparse.rb b/lib/optparse.rb
index 2e8b5971a2..49f7ebee9d 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# optparse.rb - command-line option analysis with the OptionParser class.
#
diff --git a/lib/optparse/ac.rb b/lib/optparse/ac.rb
index 6a8626094d..fb0883f97a 100644
--- a/lib/optparse/ac.rb
+++ b/lib/optparse/ac.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'optparse'
class OptionParser::AC < OptionParser
diff --git a/lib/optparse/date.rb b/lib/optparse/date.rb
index d680559f37..d6649c83f1 100644
--- a/lib/optparse/date.rb
+++ b/lib/optparse/date.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'optparse'
require 'date'
diff --git a/lib/optparse/shellwords.rb b/lib/optparse/shellwords.rb
index 0422d7c887..bf31701b96 100644
--- a/lib/optparse/shellwords.rb
+++ b/lib/optparse/shellwords.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# -*- ruby -*-
require 'shellwords'
diff --git a/lib/optparse/time.rb b/lib/optparse/time.rb
index 402cadcf16..ffc6ff000d 100644
--- a/lib/optparse/time.rb
+++ b/lib/optparse/time.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'optparse'
require 'time'
diff --git a/lib/optparse/uri.rb b/lib/optparse/uri.rb
index 024dc69eac..51550cf91b 100644
--- a/lib/optparse/uri.rb
+++ b/lib/optparse/uri.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# -*- ruby -*-
require 'optparse'
diff --git a/lib/optparse/version.rb b/lib/optparse/version.rb
index 8525677418..b869d8fe51 100644
--- a/lib/optparse/version.rb
+++ b/lib/optparse/version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# OptionParser internal utility
class << OptionParser
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index 84244b3d9e..5aea0465bd 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = ostruct.rb: OpenStruct implementation
#
diff --git a/lib/prime.rb b/lib/prime.rb
index c79b0cfd5f..c64c0c2cf1 100644
--- a/lib/prime.rb
+++ b/lib/prime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = prime.rb
#
diff --git a/lib/profile.rb b/lib/profile.rb
index 2aeecce908..39f8370370 100644
--- a/lib/profile.rb
+++ b/lib/profile.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'profiler'
RubyVM::InstructionSequence.compile_option = {
diff --git a/lib/profiler.rb b/lib/profiler.rb
index e53951cbe6..ab55e1fe48 100644
--- a/lib/profiler.rb
+++ b/lib/profiler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Profile provides a way to Profile your Ruby application.
#
# Profiling your program is a way of determining which methods are called and
diff --git a/lib/pstore.rb b/lib/pstore.rb
index 02c20c91c7..2769b25065 100644
--- a/lib/pstore.rb
+++ b/lib/pstore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = PStore -- Transactional File Storage for Ruby Objects
#
# pstore.rb -
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index f811ab6e78..0cdb42e49d 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# $originalId: parser.rb,v 1.8 2006/07/06 11:42:07 aamine Exp $
#
diff --git a/lib/rbconfig/datadir.rb b/lib/rbconfig/datadir.rb
index 9b7eabb473..136162da44 100644
--- a/lib/rbconfig/datadir.rb
+++ b/lib/rbconfig/datadir.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/rdoc.rb b/lib/rdoc.rb
index a99e5dc309..bdd3b06e2a 100644
--- a/lib/rdoc.rb
+++ b/lib/rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
$DEBUG_RDOC = nil
# :main: README.rdoc
diff --git a/lib/rdoc/alias.rb b/lib/rdoc/alias.rb
index 39d2694817..1e06fb96e5 100644
--- a/lib/rdoc/alias.rb
+++ b/lib/rdoc/alias.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Represent an alias, which is an old_name/new_name pair associated with a
# particular context
diff --git a/lib/rdoc/anon_class.rb b/lib/rdoc/anon_class.rb
index c23d8e5d96..098bfdfcf9 100644
--- a/lib/rdoc/anon_class.rb
+++ b/lib/rdoc/anon_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An anonymous class like:
#
diff --git a/lib/rdoc/any_method.rb b/lib/rdoc/any_method.rb
index ae022d72f8..16ac8e024e 100644
--- a/lib/rdoc/any_method.rb
+++ b/lib/rdoc/any_method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# AnyMethod is the base class for objects representing methods
diff --git a/lib/rdoc/attr.rb b/lib/rdoc/attr.rb
index 960e1d1107..f77a5c04a7 100644
--- a/lib/rdoc/attr.rb
+++ b/lib/rdoc/attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An attribute created by \#attr, \#attr_reader, \#attr_writer or
# \#attr_accessor
diff --git a/lib/rdoc/class_module.rb b/lib/rdoc/class_module.rb
index 71566f050a..5881d6cf24 100644
--- a/lib/rdoc/class_module.rb
+++ b/lib/rdoc/class_module.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# ClassModule is the base class for objects representing either a class or a
# module.
diff --git a/lib/rdoc/code_object.rb b/lib/rdoc/code_object.rb
index 4620fa586d..dc195cc6ac 100644
--- a/lib/rdoc/code_object.rb
+++ b/lib/rdoc/code_object.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Base class for the RDoc code tree.
#
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb
index f1a626cd2e..564849e1d1 100644
--- a/lib/rdoc/code_objects.rb
+++ b/lib/rdoc/code_objects.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# This file was used to load all the RDoc::CodeObject subclasses at once. Now
# autoload handles this.
diff --git a/lib/rdoc/comment.rb b/lib/rdoc/comment.rb
index 33ced18b5a..ebff742233 100644
--- a/lib/rdoc/comment.rb
+++ b/lib/rdoc/comment.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A comment holds the text comment for a RDoc::CodeObject and provides a
# unified way of cleaning it up and parsing it into an RDoc::Markup::Document.
diff --git a/lib/rdoc/constant.rb b/lib/rdoc/constant.rb
index 97985cbf99..4fd5c5f10f 100644
--- a/lib/rdoc/constant.rb
+++ b/lib/rdoc/constant.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A constant
diff --git a/lib/rdoc/context.rb b/lib/rdoc/context.rb
index 5eb86ddc92..bc8c8eecf1 100644
--- a/lib/rdoc/context.rb
+++ b/lib/rdoc/context.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'cgi'
##
diff --git a/lib/rdoc/context/section.rb b/lib/rdoc/context/section.rb
index 580f07deff..90f184cb89 100644
--- a/lib/rdoc/context/section.rb
+++ b/lib/rdoc/context/section.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A section of documentation like:
#
diff --git a/lib/rdoc/cross_reference.rb b/lib/rdoc/cross_reference.rb
index 5b08d5202d..0e40d23159 100644
--- a/lib/rdoc/cross_reference.rb
+++ b/lib/rdoc/cross_reference.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# RDoc::CrossReference is a reusable way to create cross references for names.
diff --git a/lib/rdoc/encoding.rb b/lib/rdoc/encoding.rb
index b3515a435f..5327f9a961 100644
--- a/lib/rdoc/encoding.rb
+++ b/lib/rdoc/encoding.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
##
# This class is a wrapper around File IO and Encoding that helps RDoc load
diff --git a/lib/rdoc/erb_partial.rb b/lib/rdoc/erb_partial.rb
index 8359258d27..ebb8cb3117 100644
--- a/lib/rdoc/erb_partial.rb
+++ b/lib/rdoc/erb_partial.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Allows an ERB template to be rendered in the context (binding) of an
# existing ERB template evaluation.
diff --git a/lib/rdoc/erbio.rb b/lib/rdoc/erbio.rb
index 04a89fbd34..a2aaa90e67 100644
--- a/lib/rdoc/erbio.rb
+++ b/lib/rdoc/erbio.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'erb'
##
diff --git a/lib/rdoc/extend.rb b/lib/rdoc/extend.rb
index efa2c69bee..30b51a1dbd 100644
--- a/lib/rdoc/extend.rb
+++ b/lib/rdoc/extend.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A Module extension to a class with \#extend
#
diff --git a/lib/rdoc/generator.rb b/lib/rdoc/generator.rb
index 7d3989d42f..d37d1db61f 100644
--- a/lib/rdoc/generator.rb
+++ b/lib/rdoc/generator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# RDoc uses generators to turn parsed source code in the form of an
# RDoc::CodeObject tree into some form of output. RDoc comes with the HTML
diff --git a/lib/rdoc/generator/darkfish.rb b/lib/rdoc/generator/darkfish.rb
index 024040466d..18394a2c34 100644
--- a/lib/rdoc/generator/darkfish.rb
+++ b/lib/rdoc/generator/darkfish.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*-
require 'erb'
diff --git a/lib/rdoc/generator/json_index.rb b/lib/rdoc/generator/json_index.rb
index 5318b4cc57..90c68f91a1 100644
--- a/lib/rdoc/generator/json_index.rb
+++ b/lib/rdoc/generator/json_index.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'json'
begin
require 'zlib'
diff --git a/lib/rdoc/generator/markup.rb b/lib/rdoc/generator/markup.rb
index 788e5a485d..3ca423bb69 100644
--- a/lib/rdoc/generator/markup.rb
+++ b/lib/rdoc/generator/markup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Handle common RDoc::Markup tasks for various CodeObjects
#
diff --git a/lib/rdoc/generator/pot.rb b/lib/rdoc/generator/pot.rb
index db6f3a0354..e2cf22d730 100644
--- a/lib/rdoc/generator/pot.rb
+++ b/lib/rdoc/generator/pot.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Generates a POT file.
#
diff --git a/lib/rdoc/generator/pot/message_extractor.rb b/lib/rdoc/generator/pot/message_extractor.rb
index ceabc5262a..0dd2497c26 100644
--- a/lib/rdoc/generator/pot/message_extractor.rb
+++ b/lib/rdoc/generator/pot/message_extractor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Extracts message from RDoc::Store
diff --git a/lib/rdoc/generator/pot/po.rb b/lib/rdoc/generator/pot/po.rb
index 6a6b5821f3..60e14db831 100644
--- a/lib/rdoc/generator/pot/po.rb
+++ b/lib/rdoc/generator/pot/po.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Generates a PO format text
diff --git a/lib/rdoc/generator/pot/po_entry.rb b/lib/rdoc/generator/pot/po_entry.rb
index d4cef59ee9..515d02b48d 100644
--- a/lib/rdoc/generator/pot/po_entry.rb
+++ b/lib/rdoc/generator/pot/po_entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A PO entry in PO
diff --git a/lib/rdoc/generator/ri.rb b/lib/rdoc/generator/ri.rb
index b9c4141a5e..830777e587 100644
--- a/lib/rdoc/generator/ri.rb
+++ b/lib/rdoc/generator/ri.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Generates ri data files
diff --git a/lib/rdoc/ghost_method.rb b/lib/rdoc/ghost_method.rb
index 7eb2d93167..a1f75bfe4b 100644
--- a/lib/rdoc/ghost_method.rb
+++ b/lib/rdoc/ghost_method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# GhostMethod represents a method referenced only by a comment
diff --git a/lib/rdoc/i18n.rb b/lib/rdoc/i18n.rb
index 4cccbc66d3..20848aad75 100644
--- a/lib/rdoc/i18n.rb
+++ b/lib/rdoc/i18n.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# This module provides i18n realated features.
diff --git a/lib/rdoc/i18n/locale.rb b/lib/rdoc/i18n/locale.rb
index e98732e086..735a271bf3 100644
--- a/lib/rdoc/i18n/locale.rb
+++ b/lib/rdoc/i18n/locale.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A message container for a locale.
#
diff --git a/lib/rdoc/i18n/text.rb b/lib/rdoc/i18n/text.rb
index ee5c66a1ff..fcfe7611bc 100644
--- a/lib/rdoc/i18n/text.rb
+++ b/lib/rdoc/i18n/text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An i18n supported text.
#
diff --git a/lib/rdoc/include.rb b/lib/rdoc/include.rb
index 75ed9c7bff..efce43bffb 100644
--- a/lib/rdoc/include.rb
+++ b/lib/rdoc/include.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A Module included in a class with \#include
#
diff --git a/lib/rdoc/known_classes.rb b/lib/rdoc/known_classes.rb
index a04068a435..8d9421255b 100644
--- a/lib/rdoc/known_classes.rb
+++ b/lib/rdoc/known_classes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module RDoc
##
diff --git a/lib/rdoc/markdown.rb b/lib/rdoc/markdown.rb
index 033fc2be6d..f3d4bd86d0 100644
--- a/lib/rdoc/markdown.rb
+++ b/lib/rdoc/markdown.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
# :markup: markdown
##
diff --git a/lib/rdoc/markdown/entities.rb b/lib/rdoc/markdown/entities.rb
index 0661abab78..d32ae51053 100644
--- a/lib/rdoc/markdown/entities.rb
+++ b/lib/rdoc/markdown/entities.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# HTML entity name map for RDoc::Markdown
diff --git a/lib/rdoc/markdown/literals_1_9.rb b/lib/rdoc/markdown/literals_1_9.rb
index f7bfbe27a1..d7a27f12b1 100644
--- a/lib/rdoc/markdown/literals_1_9.rb
+++ b/lib/rdoc/markdown/literals_1_9.rb
@@ -1,4 +1,5 @@
# coding: UTF-8
+# frozen_string_literal: false
# :markup: markdown
##
diff --git a/lib/rdoc/markup.rb b/lib/rdoc/markup.rb
index 0e754ff33d..3406522596 100644
--- a/lib/rdoc/markup.rb
+++ b/lib/rdoc/markup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# RDoc::Markup parses plain text documents and attempts to decompose them into
# their constituent parts. Some of these parts are high-level: paragraphs,
diff --git a/lib/rdoc/markup/attr_changer.rb b/lib/rdoc/markup/attr_changer.rb
index 1772f18b2b..9a1a9c8c66 100644
--- a/lib/rdoc/markup/attr_changer.rb
+++ b/lib/rdoc/markup/attr_changer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
class RDoc::Markup
AttrChanger = Struct.new :turn_on, :turn_off # :nodoc:
diff --git a/lib/rdoc/markup/attr_span.rb b/lib/rdoc/markup/attr_span.rb
index b5c1b3b7b7..4d9e5b0217 100644
--- a/lib/rdoc/markup/attr_span.rb
+++ b/lib/rdoc/markup/attr_span.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An array of attributes which parallels the characters in a string.
diff --git a/lib/rdoc/markup/attribute_manager.rb b/lib/rdoc/markup/attribute_manager.rb
index ce4ac76d5b..3296d17af2 100644
--- a/lib/rdoc/markup/attribute_manager.rb
+++ b/lib/rdoc/markup/attribute_manager.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Manages changes of attributes in a block of text
diff --git a/lib/rdoc/markup/attributes.rb b/lib/rdoc/markup/attributes.rb
index 3423f10ca7..8776c4ed29 100644
--- a/lib/rdoc/markup/attributes.rb
+++ b/lib/rdoc/markup/attributes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# We manage a set of attributes. Each attribute has a symbol name and a bit
# value.
diff --git a/lib/rdoc/markup/blank_line.rb b/lib/rdoc/markup/blank_line.rb
index 5da0ac8d81..2b1ab91b47 100644
--- a/lib/rdoc/markup/blank_line.rb
+++ b/lib/rdoc/markup/blank_line.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An empty line. This class is a singleton.
diff --git a/lib/rdoc/markup/block_quote.rb b/lib/rdoc/markup/block_quote.rb
index 552f0c4baa..3be022f9dd 100644
--- a/lib/rdoc/markup/block_quote.rb
+++ b/lib/rdoc/markup/block_quote.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A quoted section which contains markup items.
diff --git a/lib/rdoc/markup/document.rb b/lib/rdoc/markup/document.rb
index be93d80eec..0692c3522f 100644
--- a/lib/rdoc/markup/document.rb
+++ b/lib/rdoc/markup/document.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A Document containing lists, headings, paragraphs, etc.
diff --git a/lib/rdoc/markup/formatter.rb b/lib/rdoc/markup/formatter.rb
index 7661c95239..197ff003e3 100644
--- a/lib/rdoc/markup/formatter.rb
+++ b/lib/rdoc/markup/formatter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Base class for RDoc markup formatters
#
diff --git a/lib/rdoc/markup/formatter_test_case.rb b/lib/rdoc/markup/formatter_test_case.rb
index 6616a75898..776fe00537 100644
--- a/lib/rdoc/markup/formatter_test_case.rb
+++ b/lib/rdoc/markup/formatter_test_case.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'minitest/unit'
##
diff --git a/lib/rdoc/markup/hard_break.rb b/lib/rdoc/markup/hard_break.rb
index 8445ad26e7..5898bfb644 100644
--- a/lib/rdoc/markup/hard_break.rb
+++ b/lib/rdoc/markup/hard_break.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A hard-break in the middle of a paragraph.
diff --git a/lib/rdoc/markup/heading.rb b/lib/rdoc/markup/heading.rb
index 535e310e54..5229287d5b 100644
--- a/lib/rdoc/markup/heading.rb
+++ b/lib/rdoc/markup/heading.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A heading with a level (1-6) and text
diff --git a/lib/rdoc/markup/include.rb b/lib/rdoc/markup/include.rb
index a2e8903279..891be71b85 100644
--- a/lib/rdoc/markup/include.rb
+++ b/lib/rdoc/markup/include.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A file included at generation time. Objects of this class are created by
# RDoc::RD for an extension-less include.
diff --git a/lib/rdoc/markup/indented_paragraph.rb b/lib/rdoc/markup/indented_paragraph.rb
index 1b8a8c725d..56a96bd3c9 100644
--- a/lib/rdoc/markup/indented_paragraph.rb
+++ b/lib/rdoc/markup/indented_paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An Indented Paragraph of text
diff --git a/lib/rdoc/markup/inline.rb b/lib/rdoc/markup/inline.rb
index fb3ab5c74d..58072fef06 100644
--- a/lib/rdoc/markup/inline.rb
+++ b/lib/rdoc/markup/inline.rb
@@ -1 +1,2 @@
+# frozen_string_literal: false
warn "requiring rdoc/markup/inline is deprecated and will be removed in RDoc 4." if $-w
diff --git a/lib/rdoc/markup/list.rb b/lib/rdoc/markup/list.rb
index 89b7fc20fa..bcaea7d7c1 100644
--- a/lib/rdoc/markup/list.rb
+++ b/lib/rdoc/markup/list.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A List is a homogeneous set of ListItems.
#
diff --git a/lib/rdoc/markup/list_item.rb b/lib/rdoc/markup/list_item.rb
index c5e59fe167..115ec0412c 100644
--- a/lib/rdoc/markup/list_item.rb
+++ b/lib/rdoc/markup/list_item.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# An item within a List that contains paragraphs, headings, etc.
#
diff --git a/lib/rdoc/markup/paragraph.rb b/lib/rdoc/markup/paragraph.rb
index 7180729f75..fefa12f9ef 100644
--- a/lib/rdoc/markup/paragraph.rb
+++ b/lib/rdoc/markup/paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A Paragraph of text
diff --git a/lib/rdoc/markup/parser.rb b/lib/rdoc/markup/parser.rb
index cc828a4513..2f8b7628e2 100644
--- a/lib/rdoc/markup/parser.rb
+++ b/lib/rdoc/markup/parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'strscan'
##
diff --git a/lib/rdoc/markup/pre_process.rb b/lib/rdoc/markup/pre_process.rb
index 01fb293462..d7cef36158 100644
--- a/lib/rdoc/markup/pre_process.rb
+++ b/lib/rdoc/markup/pre_process.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Handle common directives that can occur in a block of text:
#
diff --git a/lib/rdoc/markup/raw.rb b/lib/rdoc/markup/raw.rb
index e11e8efff4..8012d2cea6 100644
--- a/lib/rdoc/markup/raw.rb
+++ b/lib/rdoc/markup/raw.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A section of text that is added to the output document as-is
diff --git a/lib/rdoc/markup/rule.rb b/lib/rdoc/markup/rule.rb
index b778f2bc09..b96d4fb293 100644
--- a/lib/rdoc/markup/rule.rb
+++ b/lib/rdoc/markup/rule.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A horizontal rule with a weight
diff --git a/lib/rdoc/markup/special.rb b/lib/rdoc/markup/special.rb
index 1c0fc03eea..4d834b9e37 100644
--- a/lib/rdoc/markup/special.rb
+++ b/lib/rdoc/markup/special.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Hold details of a special sequence
diff --git a/lib/rdoc/markup/text_formatter_test_case.rb b/lib/rdoc/markup/text_formatter_test_case.rb
index 4abf42563b..1c8882aa36 100644
--- a/lib/rdoc/markup/text_formatter_test_case.rb
+++ b/lib/rdoc/markup/text_formatter_test_case.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Test case for creating new plain-text RDoc::Markup formatters. See also
# RDoc::Markup::FormatterTestCase
diff --git a/lib/rdoc/markup/to_ansi.rb b/lib/rdoc/markup/to_ansi.rb
index 4d439ce88d..56cd1fe446 100644
--- a/lib/rdoc/markup/to_ansi.rb
+++ b/lib/rdoc/markup/to_ansi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Outputs RDoc markup with vibrant ANSI color!
diff --git a/lib/rdoc/markup/to_bs.rb b/lib/rdoc/markup/to_bs.rb
index 10c31854d2..d55f64c5e7 100644
--- a/lib/rdoc/markup/to_bs.rb
+++ b/lib/rdoc/markup/to_bs.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Outputs RDoc markup with hot backspace action! You will probably need a
# pager to use this output format.
diff --git a/lib/rdoc/markup/to_html.rb b/lib/rdoc/markup/to_html.rb
index 2b1216ef2a..3bf66c2c31 100644
--- a/lib/rdoc/markup/to_html.rb
+++ b/lib/rdoc/markup/to_html.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'cgi'
##
diff --git a/lib/rdoc/markup/to_html_crossref.rb b/lib/rdoc/markup/to_html_crossref.rb
index d27e0ab627..3f03c65898 100644
--- a/lib/rdoc/markup/to_html_crossref.rb
+++ b/lib/rdoc/markup/to_html_crossref.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Subclass of the RDoc::Markup::ToHtml class that supports looking up method
# names, classes, etc to create links. RDoc::CrossReference is used to
diff --git a/lib/rdoc/markup/to_html_snippet.rb b/lib/rdoc/markup/to_html_snippet.rb
index 4ad0a9a4b9..75c1df94d9 100644
--- a/lib/rdoc/markup/to_html_snippet.rb
+++ b/lib/rdoc/markup/to_html_snippet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Outputs RDoc markup as paragraphs with inline markup only.
diff --git a/lib/rdoc/markup/to_joined_paragraph.rb b/lib/rdoc/markup/to_joined_paragraph.rb
index 835841071d..293258c092 100644
--- a/lib/rdoc/markup/to_joined_paragraph.rb
+++ b/lib/rdoc/markup/to_joined_paragraph.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Joins the parts of an RDoc::Markup::Paragraph into a single String.
#
diff --git a/lib/rdoc/markup/to_label.rb b/lib/rdoc/markup/to_label.rb
index 6fbe4a3dbd..bdf08b7aee 100644
--- a/lib/rdoc/markup/to_label.rb
+++ b/lib/rdoc/markup/to_label.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'cgi'
##
diff --git a/lib/rdoc/markup/to_markdown.rb b/lib/rdoc/markup/to_markdown.rb
index d4b15bf41b..9074547b4c 100644
--- a/lib/rdoc/markup/to_markdown.rb
+++ b/lib/rdoc/markup/to_markdown.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# :markup: markdown
##
diff --git a/lib/rdoc/markup/to_rdoc.rb b/lib/rdoc/markup/to_rdoc.rb
index f16b4ed5a3..a40c09859f 100644
--- a/lib/rdoc/markup/to_rdoc.rb
+++ b/lib/rdoc/markup/to_rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Outputs RDoc markup as RDoc markup! (mostly)
diff --git a/lib/rdoc/markup/to_table_of_contents.rb b/lib/rdoc/markup/to_table_of_contents.rb
index 2e0f98cfeb..eae7c59d94 100644
--- a/lib/rdoc/markup/to_table_of_contents.rb
+++ b/lib/rdoc/markup/to_table_of_contents.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Extracts just the RDoc::Markup::Heading elements from a
# RDoc::Markup::Document to help build a table of contents
diff --git a/lib/rdoc/markup/to_test.rb b/lib/rdoc/markup/to_test.rb
index c51f64b917..7b1fa8c630 100644
--- a/lib/rdoc/markup/to_test.rb
+++ b/lib/rdoc/markup/to_test.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# This Markup outputter is used for testing purposes.
diff --git a/lib/rdoc/markup/to_tt_only.rb b/lib/rdoc/markup/to_tt_only.rb
index e2da20c6f3..ba20fcdd00 100644
--- a/lib/rdoc/markup/to_tt_only.rb
+++ b/lib/rdoc/markup/to_tt_only.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Extracts sections of text enclosed in plus, tt or code. Used to discover
# undocumented parameters.
diff --git a/lib/rdoc/markup/verbatim.rb b/lib/rdoc/markup/verbatim.rb
index 0ddde675e3..a0b1d05928 100644
--- a/lib/rdoc/markup/verbatim.rb
+++ b/lib/rdoc/markup/verbatim.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A section of verbatim text
diff --git a/lib/rdoc/meta_method.rb b/lib/rdoc/meta_method.rb
index 68ba8109e0..408c089dd1 100644
--- a/lib/rdoc/meta_method.rb
+++ b/lib/rdoc/meta_method.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# MetaMethod represents a meta-programmed method
diff --git a/lib/rdoc/method_attr.rb b/lib/rdoc/method_attr.rb
index a0ea851dc5..50eab141be 100644
--- a/lib/rdoc/method_attr.rb
+++ b/lib/rdoc/method_attr.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Abstract class representing either a method or an attribute.
diff --git a/lib/rdoc/mixin.rb b/lib/rdoc/mixin.rb
index 547744f870..14f04c15e7 100644
--- a/lib/rdoc/mixin.rb
+++ b/lib/rdoc/mixin.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A Mixin adds features from a module into another context. RDoc::Include and
# RDoc::Extend are both mixins.
diff --git a/lib/rdoc/normal_class.rb b/lib/rdoc/normal_class.rb
index 7589e2686c..eb53e964dd 100644
--- a/lib/rdoc/normal_class.rb
+++ b/lib/rdoc/normal_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A normal class, neither singleton nor anonymous
diff --git a/lib/rdoc/normal_module.rb b/lib/rdoc/normal_module.rb
index 961c431ed6..d046c8cbfe 100644
--- a/lib/rdoc/normal_module.rb
+++ b/lib/rdoc/normal_module.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A normal module, like NormalClass
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 5779d35c44..17b0bb105d 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'optparse'
require 'pathname'
diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb
index 4da7f00d3c..9c207edcff 100644
--- a/lib/rdoc/parser.rb
+++ b/lib/rdoc/parser.rb
@@ -1,4 +1,5 @@
# -*- coding: us-ascii -*-
+# frozen_string_literal: false
##
# A parser is simple a class that subclasses RDoc::Parser and implements #scan
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb
index fd336f5f5b..cd139441ba 100644
--- a/lib/rdoc/parser/c.rb
+++ b/lib/rdoc/parser/c.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'tsort'
##
diff --git a/lib/rdoc/parser/changelog.rb b/lib/rdoc/parser/changelog.rb
index a3567c1f81..92c8d94ad6 100644
--- a/lib/rdoc/parser/changelog.rb
+++ b/lib/rdoc/parser/changelog.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'time'
##
diff --git a/lib/rdoc/parser/markdown.rb b/lib/rdoc/parser/markdown.rb
index 6fd88cf614..feffb26ced 100644
--- a/lib/rdoc/parser/markdown.rb
+++ b/lib/rdoc/parser/markdown.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Parse a Markdown format file. The parsed RDoc::Markup::Document is attached
# as a file comment.
diff --git a/lib/rdoc/parser/rd.rb b/lib/rdoc/parser/rd.rb
index 09069ae297..e6693b9ac8 100644
--- a/lib/rdoc/parser/rd.rb
+++ b/lib/rdoc/parser/rd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Parse a RD format file. The parsed RDoc::Markup::Document is attached as a
# file comment.
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb
index ce1083edc7..ac7094f488 100644
--- a/lib/rdoc/parser/ruby.rb
+++ b/lib/rdoc/parser/ruby.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# This file contains stuff stolen outright from:
#
diff --git a/lib/rdoc/parser/ruby_tools.rb b/lib/rdoc/parser/ruby_tools.rb
index 654431ea30..bbca065b5e 100644
--- a/lib/rdoc/parser/ruby_tools.rb
+++ b/lib/rdoc/parser/ruby_tools.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Collection of methods for writing parsers against RDoc::RubyLex and
# RDoc::RubyToken
diff --git a/lib/rdoc/parser/simple.rb b/lib/rdoc/parser/simple.rb
index 65cfc1b2e7..73bb7bdffb 100644
--- a/lib/rdoc/parser/simple.rb
+++ b/lib/rdoc/parser/simple.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Parse a non-source file. We basically take the whole thing as one big
# comment.
diff --git a/lib/rdoc/parser/text.rb b/lib/rdoc/parser/text.rb
index f973313551..1a13fd1186 100644
--- a/lib/rdoc/parser/text.rb
+++ b/lib/rdoc/parser/text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Indicates this parser is text and doesn't contain code constructs.
#
diff --git a/lib/rdoc/rd.rb b/lib/rdoc/rd.rb
index 28c5d286e0..39af3294f5 100644
--- a/lib/rdoc/rd.rb
+++ b/lib/rdoc/rd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# RDoc::RD implements the RD format from the rdtool gem.
#
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb
index ac754f4200..111ba90fdc 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.12
diff --git a/lib/rdoc/rd/inline.rb b/lib/rdoc/rd/inline.rb
index ee724fb80f..011ec67e33 100644
--- a/lib/rdoc/rd/inline.rb
+++ b/lib/rdoc/rd/inline.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Inline keeps track of markup and labels to create proper links.
diff --git a/lib/rdoc/rd/inline_parser.rb b/lib/rdoc/rd/inline_parser.rb
index 98b503564d..240f68ba13 100644
--- a/lib/rdoc/rd/inline_parser.rb
+++ b/lib/rdoc/rd/inline_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# DO NOT MODIFY!!!!
# This file is automatically generated by Racc 1.4.12
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index f4bb58e14b..7c5d34e089 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc'
require 'find'
diff --git a/lib/rdoc/require.rb b/lib/rdoc/require.rb
index a3d4bd18c0..f565ffad78 100644
--- a/lib/rdoc/require.rb
+++ b/lib/rdoc/require.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A file loaded by \#require
diff --git a/lib/rdoc/ri.rb b/lib/rdoc/ri.rb
index 8b35e0fa2f..388cb12c70 100644
--- a/lib/rdoc/ri.rb
+++ b/lib/rdoc/ri.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc'
##
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index 39064c1384..e571ae82ac 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'abbrev'
require 'optparse'
diff --git a/lib/rdoc/ri/formatter.rb b/lib/rdoc/ri/formatter.rb
index 84d37a9d31..d0c85dbe6b 100644
--- a/lib/rdoc/ri/formatter.rb
+++ b/lib/rdoc/ri/formatter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# For RubyGems backwards compatibility
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index 970cb91461..41529a3e0d 100644
--- a/lib/rdoc/ri/paths.rb
+++ b/lib/rdoc/ri/paths.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc/ri'
##
diff --git a/lib/rdoc/ri/store.rb b/lib/rdoc/ri/store.rb
index 9fa9bbb03c..66e234f521 100644
--- a/lib/rdoc/ri/store.rb
+++ b/lib/rdoc/ri/store.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module RDoc::RI
Store = RDoc::Store # :nodoc:
diff --git a/lib/rdoc/ri/task.rb b/lib/rdoc/ri/task.rb
index e545d4ac1e..d45f0c664c 100644
--- a/lib/rdoc/ri/task.rb
+++ b/lib/rdoc/ri/task.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
begin
gem 'rdoc'
diff --git a/lib/rdoc/ruby_lex.rb b/lib/rdoc/ruby_lex.rb
index 91b90ab2cf..e772e660e0 100644
--- a/lib/rdoc/ruby_lex.rb
+++ b/lib/rdoc/ruby_lex.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
#--
# irb/ruby-lex.rb - ruby lexcal analyzer
diff --git a/lib/rdoc/ruby_token.rb b/lib/rdoc/ruby_token.rb
index f091e1a676..d923e24b18 100644
--- a/lib/rdoc/ruby_token.rb
+++ b/lib/rdoc/ruby_token.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# irb/ruby-token.rb - ruby tokens
# $Release Version: 0.9.5$
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb
index c4eaddbd97..f6aeb84598 100644
--- a/lib/rdoc/rubygems_hook.rb
+++ b/lib/rdoc/rubygems_hook.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
require 'rubygems/user_interaction'
require 'fileutils'
diff --git a/lib/rdoc/servlet.rb b/lib/rdoc/servlet.rb
index 7ef04655e5..952be255db 100644
--- a/lib/rdoc/servlet.rb
+++ b/lib/rdoc/servlet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rdoc'
require 'time'
require 'json'
diff --git a/lib/rdoc/single_class.rb b/lib/rdoc/single_class.rb
index 358e1f38eb..7affa027e1 100644
--- a/lib/rdoc/single_class.rb
+++ b/lib/rdoc/single_class.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A singleton class
diff --git a/lib/rdoc/stats.rb b/lib/rdoc/stats.rb
index 94fdd279c7..354e904b19 100644
--- a/lib/rdoc/stats.rb
+++ b/lib/rdoc/stats.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# RDoc statistics collector which prints a summary and report of a project's
# documentation totals.
diff --git a/lib/rdoc/stats/normal.rb b/lib/rdoc/stats/normal.rb
index ef366a500e..f32db48005 100644
--- a/lib/rdoc/stats/normal.rb
+++ b/lib/rdoc/stats/normal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require 'io/console/size'
rescue LoadError
diff --git a/lib/rdoc/stats/quiet.rb b/lib/rdoc/stats/quiet.rb
index eed27b2a88..561c272ef7 100644
--- a/lib/rdoc/stats/quiet.rb
+++ b/lib/rdoc/stats/quiet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Stats printer that prints nothing
diff --git a/lib/rdoc/stats/verbose.rb b/lib/rdoc/stats/verbose.rb
index 430809ae07..e04edade52 100644
--- a/lib/rdoc/stats/verbose.rb
+++ b/lib/rdoc/stats/verbose.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# Stats printer that prints everything documented, including the documented
# status
diff --git a/lib/rdoc/store.rb b/lib/rdoc/store.rb
index fde6f0695b..3f91f05824 100644
--- a/lib/rdoc/store.rb
+++ b/lib/rdoc/store.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'fileutils'
##
diff --git a/lib/rdoc/task.rb b/lib/rdoc/task.rb
index a83939090d..0577677054 100644
--- a/lib/rdoc/task.rb
+++ b/lib/rdoc/task.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel
#
diff --git a/lib/rdoc/test_case.rb b/lib/rdoc/test_case.rb
index 4989516b7a..1d5469bc19 100644
--- a/lib/rdoc/test_case.rb
+++ b/lib/rdoc/test_case.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rubygems'
begin
diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb
index 827767b830..71a35de101 100644
--- a/lib/rdoc/text.rb
+++ b/lib/rdoc/text.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
##
# For RDoc::Text#to_html
diff --git a/lib/rdoc/token_stream.rb b/lib/rdoc/token_stream.rb
index b46b7da2f7..b0035227fa 100644
--- a/lib/rdoc/token_stream.rb
+++ b/lib/rdoc/token_stream.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A TokenStream is a list of tokens, gathered during the parse of some entity
# (say a method). Entities populate these streams by being registered with the
diff --git a/lib/rdoc/tom_doc.rb b/lib/rdoc/tom_doc.rb
index 2b62243525..d760849938 100644
--- a/lib/rdoc/tom_doc.rb
+++ b/lib/rdoc/tom_doc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# :markup: tomdoc
# A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a)
diff --git a/lib/rdoc/top_level.rb b/lib/rdoc/top_level.rb
index 64d81d20c1..38be646ad0 100644
--- a/lib/rdoc/top_level.rb
+++ b/lib/rdoc/top_level.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# A TopLevel context is a representation of the contents of a single file
diff --git a/lib/rexml/attlistdecl.rb b/lib/rexml/attlistdecl.rb
index e2135d9e83..dc1d2add0b 100644
--- a/lib/rexml/attlistdecl.rb
+++ b/lib/rexml/attlistdecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#vim:ts=2 sw=2 noexpandtab:
require 'rexml/child'
require 'rexml/source'
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index ef9e544294..e9917cf52d 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/namespace"
require 'rexml/text'
diff --git a/lib/rexml/cdata.rb b/lib/rexml/cdata.rb
index 73358edc28..fe9b49b5f7 100644
--- a/lib/rexml/cdata.rb
+++ b/lib/rexml/cdata.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/text"
module REXML
diff --git a/lib/rexml/child.rb b/lib/rexml/child.rb
index bf97d5f903..d23451e71e 100644
--- a/lib/rexml/child.rb
+++ b/lib/rexml/child.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/node"
module REXML
diff --git a/lib/rexml/comment.rb b/lib/rexml/comment.rb
index 000b03dddd..746af77296 100644
--- a/lib/rexml/comment.rb
+++ b/lib/rexml/comment.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
diff --git a/lib/rexml/doctype.rb b/lib/rexml/doctype.rb
index 0b3c533bb4..1eb1f5b4e1 100644
--- a/lib/rexml/doctype.rb
+++ b/lib/rexml/doctype.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/parent"
require "rexml/parseexception"
require "rexml/namespace"
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb
index d7d24f4732..806bc499cd 100644
--- a/lib/rexml/document.rb
+++ b/lib/rexml/document.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/security"
require "rexml/element"
require "rexml/xmldecl"
diff --git a/lib/rexml/dtd/attlistdecl.rb b/lib/rexml/dtd/attlistdecl.rb
index 25955ee274..32847daadb 100644
--- a/lib/rexml/dtd/attlistdecl.rb
+++ b/lib/rexml/dtd/attlistdecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
module DTD
diff --git a/lib/rexml/dtd/dtd.rb b/lib/rexml/dtd/dtd.rb
index 62317bac9e..927d5d847b 100644
--- a/lib/rexml/dtd/dtd.rb
+++ b/lib/rexml/dtd/dtd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/dtd/elementdecl"
require "rexml/dtd/entitydecl"
require "rexml/comment"
diff --git a/lib/rexml/dtd/elementdecl.rb b/lib/rexml/dtd/elementdecl.rb
index f90b27d761..119fd41a8f 100644
--- a/lib/rexml/dtd/elementdecl.rb
+++ b/lib/rexml/dtd/elementdecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
module DTD
diff --git a/lib/rexml/dtd/entitydecl.rb b/lib/rexml/dtd/entitydecl.rb
index a9286b2b90..45707e2f42 100644
--- a/lib/rexml/dtd/entitydecl.rb
+++ b/lib/rexml/dtd/entitydecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
module DTD
diff --git a/lib/rexml/dtd/notationdecl.rb b/lib/rexml/dtd/notationdecl.rb
index 17d1b9ef29..cfdf0b9b74 100644
--- a/lib/rexml/dtd/notationdecl.rb
+++ b/lib/rexml/dtd/notationdecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
module DTD
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index e459704d3c..f725d5a2be 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/parent"
require "rexml/namespace"
require "rexml/attribute"
diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb
index 1c7e79a124..da2d70d6c9 100644
--- a/lib/rexml/encoding.rb
+++ b/lib/rexml/encoding.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
module REXML
module Encoding
# ID ---> Encoding name
diff --git a/lib/rexml/entity.rb b/lib/rexml/entity.rb
index 3a35ec6b94..d9a72cc8fa 100644
--- a/lib/rexml/entity.rb
+++ b/lib/rexml/entity.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/child'
require 'rexml/source'
require 'rexml/xmltokens'
diff --git a/lib/rexml/formatters/default.rb b/lib/rexml/formatters/default.rb
index 574c821f96..b84759d2ff 100644
--- a/lib/rexml/formatters/default.rb
+++ b/lib/rexml/formatters/default.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
module Formatters
class Default
diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb
index e5ba561a58..a80274bdad 100644
--- a/lib/rexml/formatters/pretty.rb
+++ b/lib/rexml/formatters/pretty.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/formatters/default'
module REXML
diff --git a/lib/rexml/formatters/transitive.rb b/lib/rexml/formatters/transitive.rb
index 6cc690d922..81e67f3274 100644
--- a/lib/rexml/formatters/transitive.rb
+++ b/lib/rexml/formatters/transitive.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/formatters/pretty'
module REXML
diff --git a/lib/rexml/functions.rb b/lib/rexml/functions.rb
index 2010be14e0..ee73b28881 100644
--- a/lib/rexml/functions.rb
+++ b/lib/rexml/functions.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
# If you add a method, keep in mind two things:
# (1) the first argument will always be a list of nodes from which to
diff --git a/lib/rexml/instruction.rb b/lib/rexml/instruction.rb
index f8b734a5b5..576939ca2b 100644
--- a/lib/rexml/instruction.rb
+++ b/lib/rexml/instruction.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
require "rexml/source"
diff --git a/lib/rexml/light/node.rb b/lib/rexml/light/node.rb
index b33f78f7ce..d58119a3a4 100644
--- a/lib/rexml/light/node.rb
+++ b/lib/rexml/light/node.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/xmltokens'
# [ :element, parent, name, attributes, children* ]
diff --git a/lib/rexml/namespace.rb b/lib/rexml/namespace.rb
index aeb339ee83..90ba7cc635 100644
--- a/lib/rexml/namespace.rb
+++ b/lib/rexml/namespace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/xmltokens'
module REXML
diff --git a/lib/rexml/node.rb b/lib/rexml/node.rb
index cab6e9fddb..c7a3936799 100644
--- a/lib/rexml/node.rb
+++ b/lib/rexml/node.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/parseexception"
require "rexml/formatters/pretty"
require "rexml/formatters/default"
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb
index 0c6cc7a7f8..96dfea570e 100644
--- a/lib/rexml/output.rb
+++ b/lib/rexml/output.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/encoding'
module REXML
diff --git a/lib/rexml/parent.rb b/lib/rexml/parent.rb
index 2a07fcacbd..3bd0a96255 100644
--- a/lib/rexml/parent.rb
+++ b/lib/rexml/parent.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/child"
module REXML
diff --git a/lib/rexml/parseexception.rb b/lib/rexml/parseexception.rb
index 0c4d55abda..7b16cd1a41 100644
--- a/lib/rexml/parseexception.rb
+++ b/lib/rexml/parseexception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
class ParseException < RuntimeError
attr_accessor :source, :parser, :continued_exception
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index 6a08b8661d..80eeb0fa79 100644
--- a/lib/rexml/parsers/baseparser.rb
+++ b/lib/rexml/parsers/baseparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/parseexception'
require 'rexml/undefinednamespaceexception'
require 'rexml/source'
diff --git a/lib/rexml/parsers/lightparser.rb b/lib/rexml/parsers/lightparser.rb
index 81041681c2..f0601ae51b 100644
--- a/lib/rexml/parsers/lightparser.rb
+++ b/lib/rexml/parsers/lightparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/parsers/streamparser'
require 'rexml/parsers/baseparser'
require 'rexml/light/node'
diff --git a/lib/rexml/parsers/pullparser.rb b/lib/rexml/parsers/pullparser.rb
index 68a4ff7eae..8c49217553 100644
--- a/lib/rexml/parsers/pullparser.rb
+++ b/lib/rexml/parsers/pullparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'forwardable'
require 'rexml/parseexception'
diff --git a/lib/rexml/parsers/sax2parser.rb b/lib/rexml/parsers/sax2parser.rb
index a72c0a7971..1386f69c83 100644
--- a/lib/rexml/parsers/sax2parser.rb
+++ b/lib/rexml/parsers/sax2parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/parsers/baseparser'
require 'rexml/parseexception'
require 'rexml/namespace'
diff --git a/lib/rexml/parsers/streamparser.rb b/lib/rexml/parsers/streamparser.rb
index 9ea65ed3d1..b271e6743e 100644
--- a/lib/rexml/parsers/streamparser.rb
+++ b/lib/rexml/parsers/streamparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/parsers/baseparser"
module REXML
diff --git a/lib/rexml/parsers/treeparser.rb b/lib/rexml/parsers/treeparser.rb
index 68edb77759..fc0993c72a 100644
--- a/lib/rexml/parsers/treeparser.rb
+++ b/lib/rexml/parsers/treeparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/validation/validationexception'
require 'rexml/undefinednamespaceexception'
diff --git a/lib/rexml/parsers/ultralightparser.rb b/lib/rexml/parsers/ultralightparser.rb
index 4e2d7a81cf..6571d119bd 100644
--- a/lib/rexml/parsers/ultralightparser.rb
+++ b/lib/rexml/parsers/ultralightparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/parsers/streamparser'
require 'rexml/parsers/baseparser'
diff --git a/lib/rexml/parsers/xpathparser.rb b/lib/rexml/parsers/xpathparser.rb
index 57767fbcd1..32b70bb798 100644
--- a/lib/rexml/parsers/xpathparser.rb
+++ b/lib/rexml/parsers/xpathparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/namespace'
require 'rexml/xmltokens'
diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb
index 9bec2158dd..f3ad29a93a 100644
--- a/lib/rexml/quickpath.rb
+++ b/lib/rexml/quickpath.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/functions'
require 'rexml/xmltokens'
diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb
index f89951171a..fbc0d339d8 100644
--- a/lib/rexml/rexml.rb
+++ b/lib/rexml/rexml.rb
@@ -1,4 +1,5 @@
# -*- encoding: utf-8 -*-
+# frozen_string_literal: false
# REXML is an XML toolkit for Ruby[http://www.ruby-lang.org], in Ruby.
#
# REXML is a _pure_ Ruby, XML 1.0 conforming,
diff --git a/lib/rexml/sax2listener.rb b/lib/rexml/sax2listener.rb
index 9f276eb4ed..5afdc80890 100644
--- a/lib/rexml/sax2listener.rb
+++ b/lib/rexml/sax2listener.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
# A template for stream parser listeners.
# Note that the declarations (attlistdecl, elementdecl, etc) are trivially
diff --git a/lib/rexml/security.rb b/lib/rexml/security.rb
index 593b652dc6..99b7460772 100644
--- a/lib/rexml/security.rb
+++ b/lib/rexml/security.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
module Security
@@entity_expansion_limit = 10_000
diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb
index 87f7232232..af65cf4751 100644
--- a/lib/rexml/source.rb
+++ b/lib/rexml/source.rb
@@ -1,4 +1,5 @@
# coding: US-ASCII
+# frozen_string_literal: false
require 'rexml/encoding'
module REXML
diff --git a/lib/rexml/streamlistener.rb b/lib/rexml/streamlistener.rb
index 3a0528c102..30c8945179 100644
--- a/lib/rexml/streamlistener.rb
+++ b/lib/rexml/streamlistener.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
# A template for stream parser listeners.
# Note that the declarations (attlistdecl, elementdecl, etc) are trivially
diff --git a/lib/rexml/syncenumerator.rb b/lib/rexml/syncenumerator.rb
index 11609bdf3d..a9d2ad7f9c 100644
--- a/lib/rexml/syncenumerator.rb
+++ b/lib/rexml/syncenumerator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
class SyncEnumerator
include Enumerable
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb
index d3242ee46d..b132bab8f4 100644
--- a/lib/rexml/text.rb
+++ b/lib/rexml/text.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/security'
require 'rexml/entity'
require 'rexml/doctype'
diff --git a/lib/rexml/undefinednamespaceexception.rb b/lib/rexml/undefinednamespaceexception.rb
index 8ebfdfd0a9..e522ed57ea 100644
--- a/lib/rexml/undefinednamespaceexception.rb
+++ b/lib/rexml/undefinednamespaceexception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/parseexception'
module REXML
class UndefinedNamespaceException < ParseException
diff --git a/lib/rexml/validation/relaxng.rb b/lib/rexml/validation/relaxng.rb
index 370efd5a98..fb52438290 100644
--- a/lib/rexml/validation/relaxng.rb
+++ b/lib/rexml/validation/relaxng.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/validation/validation"
require "rexml/parsers/baseparser"
diff --git a/lib/rexml/validation/validation.rb b/lib/rexml/validation/validation.rb
index bab7f225a5..f0c76f976c 100644
--- a/lib/rexml/validation/validation.rb
+++ b/lib/rexml/validation/validation.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/validation/validationexception'
module REXML
diff --git a/lib/rexml/validation/validationexception.rb b/lib/rexml/validation/validationexception.rb
index 4723d9e4d3..78cd63fd04 100644
--- a/lib/rexml/validation/validationexception.rb
+++ b/lib/rexml/validation/validationexception.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
module Validation
class ValidationException < RuntimeError
diff --git a/lib/rexml/xmldecl.rb b/lib/rexml/xmldecl.rb
index 465e6abeb7..a37e9f3ddc 100644
--- a/lib/rexml/xmldecl.rb
+++ b/lib/rexml/xmldecl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/encoding'
require 'rexml/source'
diff --git a/lib/rexml/xmltokens.rb b/lib/rexml/xmltokens.rb
index 4d4dd27f2d..392b47b1d3 100644
--- a/lib/rexml/xmltokens.rb
+++ b/lib/rexml/xmltokens.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module REXML
# Defines a number of tokens used for parsing XML. Not for general
# consumption.
diff --git a/lib/rexml/xpath.rb b/lib/rexml/xpath.rb
index 0f99808def..f1cb99baea 100644
--- a/lib/rexml/xpath.rb
+++ b/lib/rexml/xpath.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/functions'
require 'rexml/xpath_parser'
diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb
index ef49a32fba..edd1127735 100644
--- a/lib/rexml/xpath_parser.rb
+++ b/lib/rexml/xpath_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rexml/namespace'
require 'rexml/xmltokens'
require 'rexml/attribute'
diff --git a/lib/rinda/rinda.rb b/lib/rinda/rinda.rb
index d9cd3782a0..36c3503aa8 100644
--- a/lib/rinda/rinda.rb
+++ b/lib/rinda/rinda.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'drb/drb'
require 'thread'
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index fe33420494..9ec8a2fb2f 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# Note: Rinda::Ring API is unstable.
#
diff --git a/lib/rinda/tuplespace.rb b/lib/rinda/tuplespace.rb
index 14cae9ebed..e29bd63126 100644
--- a/lib/rinda/tuplespace.rb
+++ b/lib/rinda/tuplespace.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'monitor'
require 'thread'
require 'drb/drb'
diff --git a/lib/rss.rb b/lib/rss.rb
index fd7364645b..1c7d72b9f7 100644
--- a/lib/rss.rb
+++ b/lib/rss.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# = RSS reading and writing
#
diff --git a/lib/rss/0.9.rb b/lib/rss/0.9.rb
index 77b2de131c..d852a6a85e 100644
--- a/lib/rss/0.9.rb
+++ b/lib/rss/0.9.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/parser"
module RSS
diff --git a/lib/rss/1.0.rb b/lib/rss/1.0.rb
index a2d88d459e..fb63937c5e 100644
--- a/lib/rss/1.0.rb
+++ b/lib/rss/1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/parser"
module RSS
diff --git a/lib/rss/2.0.rb b/lib/rss/2.0.rb
index 5c0caecd73..13f9ade918 100644
--- a/lib/rss/2.0.rb
+++ b/lib/rss/2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/0.9"
module RSS
diff --git a/lib/rss/atom.rb b/lib/rss/atom.rb
index d3524231ff..a232e358be 100644
--- a/lib/rss/atom.rb
+++ b/lib/rss/atom.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/parser'
module RSS
diff --git a/lib/rss/content.rb b/lib/rss/content.rb
index 5a2120c067..d35311075a 100644
--- a/lib/rss/content.rb
+++ b/lib/rss/content.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/rss"
module RSS
diff --git a/lib/rss/content/1.0.rb b/lib/rss/content/1.0.rb
index e5dc857930..1367dfe092 100644
--- a/lib/rss/content/1.0.rb
+++ b/lib/rss/content/1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/1.0'
module RSS
diff --git a/lib/rss/content/2.0.rb b/lib/rss/content/2.0.rb
index 8491a99937..3b468248ac 100644
--- a/lib/rss/content/2.0.rb
+++ b/lib/rss/content/2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/2.0"
module RSS
diff --git a/lib/rss/converter.rb b/lib/rss/converter.rb
index 3e79eba4fb..b92e35a051 100644
--- a/lib/rss/converter.rb
+++ b/lib/rss/converter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/utils"
module RSS
diff --git a/lib/rss/dublincore.rb b/lib/rss/dublincore.rb
index 58424141cd..8d1a551947 100644
--- a/lib/rss/dublincore.rb
+++ b/lib/rss/dublincore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/rss"
module RSS
diff --git a/lib/rss/dublincore/1.0.rb b/lib/rss/dublincore/1.0.rb
index efe2f5dad4..1d96fab9b9 100644
--- a/lib/rss/dublincore/1.0.rb
+++ b/lib/rss/dublincore/1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/1.0"
module RSS
diff --git a/lib/rss/dublincore/2.0.rb b/lib/rss/dublincore/2.0.rb
index a79c1e84a4..e3011fef6a 100644
--- a/lib/rss/dublincore/2.0.rb
+++ b/lib/rss/dublincore/2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/2.0"
module RSS
diff --git a/lib/rss/dublincore/atom.rb b/lib/rss/dublincore/atom.rb
index 8db9066bb8..0b8b11e440 100644
--- a/lib/rss/dublincore/atom.rb
+++ b/lib/rss/dublincore/atom.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/atom"
module RSS
diff --git a/lib/rss/image.rb b/lib/rss/image.rb
index b0619141bb..6b86ec0e5b 100644
--- a/lib/rss/image.rb
+++ b/lib/rss/image.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/1.0'
require 'rss/dublincore'
diff --git a/lib/rss/itunes.rb b/lib/rss/itunes.rb
index e6de5c1ca2..827970c209 100644
--- a/lib/rss/itunes.rb
+++ b/lib/rss/itunes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/2.0'
module RSS
diff --git a/lib/rss/maker.rb b/lib/rss/maker.rb
index 824b2b2dcd..33d285f6af 100644
--- a/lib/rss/maker.rb
+++ b/lib/rss/maker.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/rss"
module RSS
diff --git a/lib/rss/maker/0.9.rb b/lib/rss/maker/0.9.rb
index c398343ec4..622a4c30b4 100644
--- a/lib/rss/maker/0.9.rb
+++ b/lib/rss/maker/0.9.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/0.9"
require "rss/maker/base"
diff --git a/lib/rss/maker/1.0.rb b/lib/rss/maker/1.0.rb
index 1b9f7c3b79..3aee77e913 100644
--- a/lib/rss/maker/1.0.rb
+++ b/lib/rss/maker/1.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/1.0"
require "rss/maker/base"
diff --git a/lib/rss/maker/2.0.rb b/lib/rss/maker/2.0.rb
index 15b1349c2a..1f77a014d1 100644
--- a/lib/rss/maker/2.0.rb
+++ b/lib/rss/maker/2.0.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/2.0"
require "rss/maker/0.9"
diff --git a/lib/rss/maker/atom.rb b/lib/rss/maker/atom.rb
index fd3198cd9e..e0cd7623c8 100644
--- a/lib/rss/maker/atom.rb
+++ b/lib/rss/maker/atom.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/atom"
require "rss/maker/base"
diff --git a/lib/rss/maker/base.rb b/lib/rss/maker/base.rb
index 0f2fc11103..bc4ca84141 100644
--- a/lib/rss/maker/base.rb
+++ b/lib/rss/maker/base.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'forwardable'
require 'rss/rss'
diff --git a/lib/rss/maker/content.rb b/lib/rss/maker/content.rb
index 46c4911f73..3559a45ad0 100644
--- a/lib/rss/maker/content.rb
+++ b/lib/rss/maker/content.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/content'
require 'rss/maker/1.0'
require 'rss/maker/2.0'
diff --git a/lib/rss/maker/dublincore.rb b/lib/rss/maker/dublincore.rb
index 717b074fae..988209c045 100644
--- a/lib/rss/maker/dublincore.rb
+++ b/lib/rss/maker/dublincore.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/dublincore'
require 'rss/maker/1.0'
diff --git a/lib/rss/maker/entry.rb b/lib/rss/maker/entry.rb
index f8f5469f2c..f806cbcaae 100644
--- a/lib/rss/maker/entry.rb
+++ b/lib/rss/maker/entry.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/maker/atom"
require "rss/maker/feed"
diff --git a/lib/rss/maker/feed.rb b/lib/rss/maker/feed.rb
index 0129218b0c..fdef7ad643 100644
--- a/lib/rss/maker/feed.rb
+++ b/lib/rss/maker/feed.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/maker/atom"
module RSS
diff --git a/lib/rss/maker/image.rb b/lib/rss/maker/image.rb
index 06084b4af4..1957ba8689 100644
--- a/lib/rss/maker/image.rb
+++ b/lib/rss/maker/image.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/image'
require 'rss/maker/1.0'
require 'rss/maker/dublincore'
diff --git a/lib/rss/maker/itunes.rb b/lib/rss/maker/itunes.rb
index 8b7420da3c..cc1051ae0c 100644
--- a/lib/rss/maker/itunes.rb
+++ b/lib/rss/maker/itunes.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/itunes'
require 'rss/maker/2.0'
diff --git a/lib/rss/maker/slash.rb b/lib/rss/maker/slash.rb
index 27adef3832..3bd82d3057 100644
--- a/lib/rss/maker/slash.rb
+++ b/lib/rss/maker/slash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/slash'
require 'rss/maker/1.0'
diff --git a/lib/rss/maker/syndication.rb b/lib/rss/maker/syndication.rb
index b81230457c..840b70229a 100644
--- a/lib/rss/maker/syndication.rb
+++ b/lib/rss/maker/syndication.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/syndication'
require 'rss/maker/1.0'
diff --git a/lib/rss/maker/taxonomy.rb b/lib/rss/maker/taxonomy.rb
index 13ae9aa805..76a2d1600d 100644
--- a/lib/rss/maker/taxonomy.rb
+++ b/lib/rss/maker/taxonomy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/taxonomy'
require 'rss/maker/1.0'
require 'rss/maker/dublincore'
diff --git a/lib/rss/maker/trackback.rb b/lib/rss/maker/trackback.rb
index 00f001cb85..f97691c608 100644
--- a/lib/rss/maker/trackback.rb
+++ b/lib/rss/maker/trackback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/trackback'
require 'rss/maker/1.0'
require 'rss/maker/2.0'
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb
index 1b6e4e9596..a9842e6d40 100644
--- a/lib/rss/parser.rb
+++ b/lib/rss/parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "forwardable"
require "open-uri"
diff --git a/lib/rss/rexmlparser.rb b/lib/rss/rexmlparser.rb
index a5a2a2edbe..ef0595e447 100644
--- a/lib/rss/rexmlparser.rb
+++ b/lib/rss/rexmlparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rexml/document"
require "rexml/streamlistener"
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index dbea3b5344..1bb0f6e826 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "time"
class Time
diff --git a/lib/rss/slash.rb b/lib/rss/slash.rb
index 65c61142e1..0055fc9f88 100644
--- a/lib/rss/slash.rb
+++ b/lib/rss/slash.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'rss/1.0'
module RSS
diff --git a/lib/rss/syndication.rb b/lib/rss/syndication.rb
index c0bd5294f4..8f9620f9f3 100644
--- a/lib/rss/syndication.rb
+++ b/lib/rss/syndication.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/1.0"
module RSS
diff --git a/lib/rss/taxonomy.rb b/lib/rss/taxonomy.rb
index b7fbe6b0de..b7ea219e8c 100644
--- a/lib/rss/taxonomy.rb
+++ b/lib/rss/taxonomy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/1.0"
require "rss/dublincore"
diff --git a/lib/rss/trackback.rb b/lib/rss/trackback.rb
index 577bf0cef7..1a3c3849b5 100644
--- a/lib/rss/trackback.rb
+++ b/lib/rss/trackback.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# This file contains the implementation of trackbacks. It is entirely internal
# and not useful to outside developers.
require 'rss/1.0'
diff --git a/lib/rss/utils.rb b/lib/rss/utils.rb
index b420e6b24c..ce7dbf1b02 100644
--- a/lib/rss/utils.rb
+++ b/lib/rss/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module RSS
##
diff --git a/lib/rss/xml-stylesheet.rb b/lib/rss/xml-stylesheet.rb
index 96ee95050e..be9cfaaf64 100644
--- a/lib/rss/xml-stylesheet.rb
+++ b/lib/rss/xml-stylesheet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/utils"
module RSS
diff --git a/lib/rss/xml.rb b/lib/rss/xml.rb
index 1ae878b772..cda8668044 100644
--- a/lib/rss/xml.rb
+++ b/lib/rss/xml.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "rss/utils"
module RSS
diff --git a/lib/rss/xmlparser.rb b/lib/rss/xmlparser.rb
index 46df94a320..cb2dd2afdd 100644
--- a/lib/rss/xmlparser.rb
+++ b/lib/rss/xmlparser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
begin
require "xml/parser"
rescue LoadError
diff --git a/lib/rss/xmlscanner.rb b/lib/rss/xmlscanner.rb
index 1cdf81c0c3..6e3b13d2f5 100644
--- a/lib/rss/xmlscanner.rb
+++ b/lib/rss/xmlscanner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'xmlscan/scanner'
require 'stringio'
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index f0861b3533..fdcc2aa4d3 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# -*- ruby -*-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
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.
diff --git a/lib/scanf.rb b/lib/scanf.rb
index 6ba6847616..a98c359573 100644
--- a/lib/scanf.rb
+++ b/lib/scanf.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# scanf for Ruby
#
#--
diff --git a/lib/shell.rb b/lib/shell.rb
index db2d687908..bf389795b7 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/builtin-command.rb b/lib/shell/builtin-command.rb
index 80a0ce5534..c76fa81ee1 100644
--- a/lib/shell/builtin-command.rb
+++ b/lib/shell/builtin-command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/builtin-command.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index 13bc50c3fe..2239ca98f6 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/command-controller.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/error.rb b/lib/shell/error.rb
index 2701338b5a..677c424baf 100644
--- a/lib/shell/error.rb
+++ b/lib/shell/error.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/error.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb
index 9fae07d23e..c1f4b28a45 100644
--- a/lib/shell/filter.rb
+++ b/lib/shell/filter.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/filter.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index d0cad0ec05..a100727aa6 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/process-controller.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb
index 1fe37333d6..2a8ffd6ed9 100644
--- a/lib/shell/system-command.rb
+++ b/lib/shell/system-command.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# shell/system-command.rb -
# $Release Version: 0.7 $
diff --git a/lib/shell/version.rb b/lib/shell/version.rb
index 2568627e2b..bb4e7dfb8e 100644
--- a/lib/shell/version.rb
+++ b/lib/shell/version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# version.rb - shell version definition file
# $Release Version: 0.7$
diff --git a/lib/shellwords.rb b/lib/shellwords.rb
index 0030f0784f..76aedbc179 100644
--- a/lib/shellwords.rb
+++ b/lib/shellwords.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# frozen-string-literal: true
##
# == Manipulates strings like the UNIX Bourne shell
diff --git a/lib/singleton.rb b/lib/singleton.rb
index be1f7ff6ca..2ee9b5b3b5 100644
--- a/lib/singleton.rb
+++ b/lib/singleton.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'thread'
# The Singleton module implements the Singleton pattern.
diff --git a/lib/sync.rb b/lib/sync.rb
index 09542d59f9..ad6caf0743 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# sync.rb - 2 phase lock with counter
# $Release Version: 1.0$
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 77f3e4ede3..13d9585a3b 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# tempfile - manipulates temporary files
#
diff --git a/lib/thwait.rb b/lib/thwait.rb
index d9750a406b..db7e6b1ce5 100644
--- a/lib/thwait.rb
+++ b/lib/thwait.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# thwait.rb - thread synchronization class
# $Release Version: 0.9 $
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 63a629923d..79d28b6c5e 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Timeout long-running blocks
#
# == Synopsis
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 1d6b019bcf..fd45f003c8 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# $Release Version: 0.3$
# $Revision: 1.12 $
diff --git a/lib/ubygems.rb b/lib/ubygems.rb
index fec880f73b..3d1798fe98 100644
--- a/lib/ubygems.rb
+++ b/lib/ubygems.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# This file allows for the running of rubygems with a nice
# command line look-and-feel: ruby -rubygems foo.rb
#--
diff --git a/lib/un.rb b/lib/un.rb
index 1f336a4442..9c1ce624a5 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# = un.rb
#
diff --git a/lib/unicode_normalize.rb b/lib/unicode_normalize.rb
index e79f41d1a2..8daf7b301a 100644
--- a/lib/unicode_normalize.rb
+++ b/lib/unicode_normalize.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
# Copyright Ayumu Nojima (野島 歩) and Martin J. Dürst (duerst@it.aoyama.ac.jp)
diff --git a/lib/unicode_normalize/normalize.rb b/lib/unicode_normalize/normalize.rb
index 18080ce03d..8f0e8a20d1 100644
--- a/lib/unicode_normalize/normalize.rb
+++ b/lib/unicode_normalize/normalize.rb
@@ -1,4 +1,5 @@
# coding: utf-8
+# frozen_string_literal: false
# Copyright Ayumu Nojima (野島 歩) and Martin J. Dürst (duerst@it.aoyama.ac.jp)
diff --git a/lib/uri.rb b/lib/uri.rb
index 2a48621471..971a97038f 100644
--- a/lib/uri.rb
+++ b/lib/uri.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# URI is a module providing classes to handle Uniform Resource Identifiers
# (RFC2396[http://tools.ietf.org/html/rfc2396])
#
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 28b5c99789..4c7d112e61 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# = uri/common.rb
#
diff --git a/lib/uri/ftp.rb b/lib/uri/ftp.rb
index a90e9b20fd..e5c00b34da 100644
--- a/lib/uri/ftp.rb
+++ b/lib/uri/ftp.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/ftp.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
diff --git a/lib/uri/http.rb b/lib/uri/http.rb
index dc47613cdf..d43e9a28e0 100644
--- a/lib/uri/http.rb
+++ b/lib/uri/http.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/http.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
diff --git a/lib/uri/https.rb b/lib/uri/https.rb
index 7d242e7e79..3c8c905cc3 100644
--- a/lib/uri/https.rb
+++ b/lib/uri/https.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/https.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
diff --git a/lib/uri/ldap.rb b/lib/uri/ldap.rb
index 56d748e59e..4345875e28 100644
--- a/lib/uri/ldap.rb
+++ b/lib/uri/ldap.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/ldap.rb
#
# Author::
diff --git a/lib/uri/ldaps.rb b/lib/uri/ldaps.rb
index 42bbfe86ba..d03f8efa2d 100644
--- a/lib/uri/ldaps.rb
+++ b/lib/uri/ldaps.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/ldap.rb
#
# License:: You can redistribute it and/or modify it under the same term as Ruby.
diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb
index b4405630a9..495f939a3b 100644
--- a/lib/uri/mailto.rb
+++ b/lib/uri/mailto.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# = uri/mailto.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb
index a8af37502a..b9e7b2b26e 100644
--- a/lib/uri/rfc2396_parser.rb
+++ b/lib/uri/rfc2396_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# = uri/common.rb
#
diff --git a/lib/uri/rfc3986_parser.rb b/lib/uri/rfc3986_parser.rb
index 3923b0699c..871280044a 100644
--- a/lib/uri/rfc3986_parser.rb
+++ b/lib/uri/rfc3986_parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
module URI
class RFC3986_Parser # :nodoc:
# URI defined in RFC3986
diff --git a/lib/weakref.rb b/lib/weakref.rb
index cdcbabf77c..cdfbe4a679 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require "delegate"
# Weak Reference class that allows a referenced object to be
diff --git a/lib/webrick.rb b/lib/webrick.rb
index fd8522a6c5..b7f327ca33 100644
--- a/lib/webrick.rb
+++ b/lib/webrick.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# = WEB server toolkit.
#
diff --git a/lib/webrick/accesslog.rb b/lib/webrick/accesslog.rb
index 4df27efc29..17e5b38ac9 100644
--- a/lib/webrick/accesslog.rb
+++ b/lib/webrick/accesslog.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# accesslog.rb -- Access log handling utilities
#
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 80f636edc3..94f385f1dd 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgi.rb -- Yet another CGI library
#
diff --git a/lib/webrick/compat.rb b/lib/webrick/compat.rb
index d2bc3ef6b4..c497a1933c 100644
--- a/lib/webrick/compat.rb
+++ b/lib/webrick/compat.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# compat.rb -- cross platform compatibility
#
diff --git a/lib/webrick/config.rb b/lib/webrick/config.rb
index c347da4be6..5f7b0a7fa4 100644
--- a/lib/webrick/config.rb
+++ b/lib/webrick/config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# config.rb -- Default configurations.
#
diff --git a/lib/webrick/cookie.rb b/lib/webrick/cookie.rb
index d8df23133d..16f8d21827 100644
--- a/lib/webrick/cookie.rb
+++ b/lib/webrick/cookie.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cookie.rb -- Cookie class
#
diff --git a/lib/webrick/htmlutils.rb b/lib/webrick/htmlutils.rb
index 4cb3d0d7f6..ed9f4ac0d3 100644
--- a/lib/webrick/htmlutils.rb
+++ b/lib/webrick/htmlutils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# htmlutils.rb -- HTMLUtils Module
#
diff --git a/lib/webrick/httpauth.rb b/lib/webrick/httpauth.rb
index 96d479b2d7..bbb6776528 100644
--- a/lib/webrick/httpauth.rb
+++ b/lib/webrick/httpauth.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth.rb -- HTTP access authentication
#
diff --git a/lib/webrick/httpauth/authenticator.rb b/lib/webrick/httpauth/authenticator.rb
index f6d4ab844f..8655118a04 100644
--- a/lib/webrick/httpauth/authenticator.rb
+++ b/lib/webrick/httpauth/authenticator.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# httpauth/authenticator.rb -- Authenticator mix-in module.
#
diff --git a/lib/webrick/httpauth/basicauth.rb b/lib/webrick/httpauth/basicauth.rb
index ed5dcd1fcd..e23420fdfa 100644
--- a/lib/webrick/httpauth/basicauth.rb
+++ b/lib/webrick/httpauth/basicauth.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth/basicauth.rb -- HTTP basic access authentication
#
diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb
index d94bd890eb..018989e6dd 100644
--- a/lib/webrick/httpauth/digestauth.rb
+++ b/lib/webrick/httpauth/digestauth.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth/digestauth.rb -- HTTP digest access authentication
#
diff --git a/lib/webrick/httpauth/htdigest.rb b/lib/webrick/httpauth/htdigest.rb
index 5fb0635e2a..4bb25e1724 100644
--- a/lib/webrick/httpauth/htdigest.rb
+++ b/lib/webrick/httpauth/htdigest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth/htdigest.rb -- Apache compatible htdigest file
#
diff --git a/lib/webrick/httpauth/htgroup.rb b/lib/webrick/httpauth/htgroup.rb
index 0ecabef820..832ae8bd04 100644
--- a/lib/webrick/httpauth/htgroup.rb
+++ b/lib/webrick/httpauth/htgroup.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth/htgroup.rb -- Apache compatible htgroup file
#
diff --git a/lib/webrick/httpauth/htpasswd.rb b/lib/webrick/httpauth/htpasswd.rb
index 69b739fbfe..f43fc2c548 100644
--- a/lib/webrick/httpauth/htpasswd.rb
+++ b/lib/webrick/httpauth/htpasswd.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpauth/htpasswd -- Apache compatible htpasswd file
#
diff --git a/lib/webrick/httpauth/userdb.rb b/lib/webrick/httpauth/userdb.rb
index 005c18dfd0..7a17715cdf 100644
--- a/lib/webrick/httpauth/userdb.rb
+++ b/lib/webrick/httpauth/userdb.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# httpauth/userdb.rb -- UserDB mix-in module.
#
diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb
index 075d9c494d..79a2e8f55b 100644
--- a/lib/webrick/httpproxy.rb
+++ b/lib/webrick/httpproxy.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpproxy.rb -- HTTPProxy Class
#
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb
index 6aa2d1c1f2..88cdec8a52 100644
--- a/lib/webrick/httprequest.rb
+++ b/lib/webrick/httprequest.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httprequest.rb -- HTTPRequest Class
#
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index e897e8c01b..5fd54b77c7 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpresponse.rb -- HTTPResponse Class
#
diff --git a/lib/webrick/https.rb b/lib/webrick/https.rb
index 9194f9411c..73875d7326 100644
--- a/lib/webrick/https.rb
+++ b/lib/webrick/https.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# https.rb -- SSL/TLS enhancement for HTTPServer
#
diff --git a/lib/webrick/httpserver.rb b/lib/webrick/httpserver.rb
index 96bd3fa548..b27f2311bd 100644
--- a/lib/webrick/httpserver.rb
+++ b/lib/webrick/httpserver.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpserver.rb -- HTTPServer Class
#
diff --git a/lib/webrick/httpservlet.rb b/lib/webrick/httpservlet.rb
index ac7c022bd7..1ee04ec86f 100644
--- a/lib/webrick/httpservlet.rb
+++ b/lib/webrick/httpservlet.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpservlet.rb -- HTTPServlet Utility File
#
diff --git a/lib/webrick/httpservlet/abstract.rb b/lib/webrick/httpservlet/abstract.rb
index d3b00ab4e1..ee558eb026 100644
--- a/lib/webrick/httpservlet/abstract.rb
+++ b/lib/webrick/httpservlet/abstract.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httpservlet.rb -- HTTPServlet Module
#
diff --git a/lib/webrick/httpservlet/cgi_runner.rb b/lib/webrick/httpservlet/cgi_runner.rb
index 32ecb6fe00..597f48936b 100644
--- a/lib/webrick/httpservlet/cgi_runner.rb
+++ b/lib/webrick/httpservlet/cgi_runner.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgi_runner.rb -- CGI launcher.
#
diff --git a/lib/webrick/httpservlet/cgihandler.rb b/lib/webrick/httpservlet/cgihandler.rb
index 32100418e6..051bb7cfcc 100644
--- a/lib/webrick/httpservlet/cgihandler.rb
+++ b/lib/webrick/httpservlet/cgihandler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# cgihandler.rb -- CGIHandler Class
#
diff --git a/lib/webrick/httpservlet/erbhandler.rb b/lib/webrick/httpservlet/erbhandler.rb
index 1b8a82d67b..9bcec69883 100644
--- a/lib/webrick/httpservlet/erbhandler.rb
+++ b/lib/webrick/httpservlet/erbhandler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# erbhandler.rb -- ERBHandler Class
#
diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb
index cc9db4a870..068246c9d0 100644
--- a/lib/webrick/httpservlet/filehandler.rb
+++ b/lib/webrick/httpservlet/filehandler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# filehandler.rb -- FileHandler Module
#
diff --git a/lib/webrick/httpservlet/prochandler.rb b/lib/webrick/httpservlet/prochandler.rb
index 2f5aa66f45..c1f454e2f6 100644
--- a/lib/webrick/httpservlet/prochandler.rb
+++ b/lib/webrick/httpservlet/prochandler.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# prochandler.rb -- ProcHandler Class
#
diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb
index 7ffda64cf0..8664da26d0 100644
--- a/lib/webrick/httpstatus.rb
+++ b/lib/webrick/httpstatus.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# httpstatus.rb -- HTTPStatus Class
#
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb
index a5f0632b86..28f906ef4d 100644
--- a/lib/webrick/httputils.rb
+++ b/lib/webrick/httputils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# httputils.rb -- HTTPUtils Module
#
diff --git a/lib/webrick/httpversion.rb b/lib/webrick/httpversion.rb
index cdfb957296..8a251944a2 100644
--- a/lib/webrick/httpversion.rb
+++ b/lib/webrick/httpversion.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# HTTPVersion.rb -- presentation of HTTP version
#
diff --git a/lib/webrick/log.rb b/lib/webrick/log.rb
index 41cde4a740..7542d8f79a 100644
--- a/lib/webrick/log.rb
+++ b/lib/webrick/log.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# log.rb -- Log Class
#
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 73395a406d..e2e99bfc5f 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# server.rb -- GenericServer Class
#
diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb
index b69a836f5d..8eb3a442da 100644
--- a/lib/webrick/ssl.rb
+++ b/lib/webrick/ssl.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# ssl.rb -- SSL/TLS enhancement for GenericServer
#
diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb
index 654d9dea95..f7b4412c19 100644
--- a/lib/webrick/utils.rb
+++ b/lib/webrick/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# utils.rb -- Miscellaneous utilities
#
diff --git a/lib/webrick/version.rb b/lib/webrick/version.rb
index 48bdc6d94d..da5dac94a9 100644
--- a/lib/webrick/version.rb
+++ b/lib/webrick/version.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#--
# version.rb -- version and release date
#
diff --git a/lib/xmlrpc.rb b/lib/xmlrpc.rb
index 8cad6a1099..aa24afacac 100644
--- a/lib/xmlrpc.rb
+++ b/lib/xmlrpc.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# == Author and Copyright
#
# Copyright (C) 2001-2004 by Michael Neumann (mailto:mneumann@ntecs.de)
diff --git a/lib/xmlrpc/base64.rb b/lib/xmlrpc/base64.rb
index 4aac3520c5..21f8c65ce2 100644
--- a/lib/xmlrpc/base64.rb
+++ b/lib/xmlrpc/base64.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# xmlrpc/base64.rb
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb
index aab07a7f95..3cb9e9a9e9 100644
--- a/lib/xmlrpc/client.rb
+++ b/lib/xmlrpc/client.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# xmlrpc/client.rb
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
#
diff --git a/lib/xmlrpc/config.rb b/lib/xmlrpc/config.rb
index 7923f3a26e..f49adb6892 100644
--- a/lib/xmlrpc/config.rb
+++ b/lib/xmlrpc/config.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# $Id$
# Configuration file for XML-RPC for Ruby
diff --git a/lib/xmlrpc/create.rb b/lib/xmlrpc/create.rb
index 13c9cd8faa..93822c4dd2 100644
--- a/lib/xmlrpc/create.rb
+++ b/lib/xmlrpc/create.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
#
diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb
index 444a29f176..431ac24aa9 100644
--- a/lib/xmlrpc/datetime.rb
+++ b/lib/xmlrpc/datetime.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# xmlrpc/datetime.rb
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
diff --git a/lib/xmlrpc/marshal.rb b/lib/xmlrpc/marshal.rb
index ef1234f801..42b7b1e125 100644
--- a/lib/xmlrpc/marshal.rb
+++ b/lib/xmlrpc/marshal.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
#
diff --git a/lib/xmlrpc/parser.rb b/lib/xmlrpc/parser.rb
index be8accfd6b..3b912b6be2 100644
--- a/lib/xmlrpc/parser.rb
+++ b/lib/xmlrpc/parser.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
#
# $Id$
diff --git a/lib/xmlrpc/server.rb b/lib/xmlrpc/server.rb
index 64856ea1fa..cd0fdbad38 100644
--- a/lib/xmlrpc/server.rb
+++ b/lib/xmlrpc/server.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
# xmlrpc/server.rb
# Copyright (C) 2001, 2002, 2003, 2005 by Michael Neumann (mneumann@ntecs.de)
#
diff --git a/lib/xmlrpc/utils.rb b/lib/xmlrpc/utils.rb
index 186938a56e..cd2ab107d9 100644
--- a/lib/xmlrpc/utils.rb
+++ b/lib/xmlrpc/utils.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
#
diff --git a/lib/yaml.rb b/lib/yaml.rb
index b211ca5a73..0c33305e1d 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
##
# The YAML module is an alias of Psych, the YAML engine for Ruby.
diff --git a/lib/yaml/dbm.rb b/lib/yaml/dbm.rb
index 24a68bfa71..e2508cd74b 100644
--- a/lib/yaml/dbm.rb
+++ b/lib/yaml/dbm.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
require 'yaml'
require 'dbm'
diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb
index b0b580ba1a..57ef0ba500 100644
--- a/lib/yaml/store.rb
+++ b/lib/yaml/store.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# YAML::Store
#