diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-10-06 11:51:33 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-24 08:49:14 +0900 |
commit | d04d6bbc6cf14a4e3ca292095a00c1956e63d9fb (patch) | |
tree | e01ca04aea30848179706563c4165f6f963d2b2c /ext/psych/lib/psych/json | |
parent | 48cd633094e5e57d1120c5d81afdbeb2290837b3 (diff) |
[ruby/psych] Prefer `require_relative` for internal requires
https://github.com/ruby/psych/commit/a0f55ee85a
Diffstat (limited to 'ext/psych/lib/psych/json')
-rw-r--r-- | ext/psych/lib/psych/json/stream.rb | 4 | ||||
-rw-r--r-- | ext/psych/lib/psych/json/tree_builder.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/psych/lib/psych/json/stream.rb b/ext/psych/lib/psych/json/stream.rb index 2ebd3d7a66..24dd4b9baf 100644 --- a/ext/psych/lib/psych/json/stream.rb +++ b/ext/psych/lib/psych/json/stream.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require 'psych/json/ruby_events' -require 'psych/json/yaml_events' +require_relative 'ruby_events' +require_relative 'yaml_events' module Psych module JSON diff --git a/ext/psych/lib/psych/json/tree_builder.rb b/ext/psych/lib/psych/json/tree_builder.rb index 5c2ee8ca25..9a45f6b94c 100644 --- a/ext/psych/lib/psych/json/tree_builder.rb +++ b/ext/psych/lib/psych/json/tree_builder.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -require 'psych/json/yaml_events' +require_relative 'yaml_events' module Psych module JSON |