Sha256: 5c9f25ba4037ddb8c4abb7689118db63e5c156fed9559d3dbc9a3b2e9d04a35b
Contents?: true
Size: 758 Bytes
Versions: 19
Compression:
Stored size: 758 Bytes
Contents
# Silences "Struct::Tms is deprecated" warnings on Ruby 2.6.2 that would # otherwise spam hundereds of warnings, on apparently every single const # eager loaded (or something). The constant Tms is not used anywhere in # the aws-sdk gem, so it seems safe to skip it. # # Maybe submit a patch to aws-sdk? Aws::EagerLoader.class_eval do def load(klass_or_module) @loaded << klass_or_module klass_or_module.constants.each do |const_name| next if const_name == :Tms path = klass_or_module.autoload?(const_name) begin require(path) if path const = klass_or_module.const_get(const_name) self.load(const) if Module === const && !@loaded.include?(const) rescue LoadError end end self end end
Version data entries
19 entries across 19 versions & 1 rubygems