lib/dor/services/client.rb in dor-services-client-3.9.2 vs lib/dor/services/client.rb in dor-services-client-4.0.0
- old
+ new
@@ -1,30 +1,16 @@
# frozen_string_literal: true
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/blank'
-require 'deprecation'
require 'cocina/models'
require 'faraday'
require 'singleton'
require 'zeitwerk'
-class DorServicesClientInflector < Zeitwerk::Inflector
- def camelize(basename, _abspath)
- case basename
- when 'sdr'
- 'SDR'
- when 'version'
- 'VERSION'
- else
- super
- end
- end
-end
-
loader = Zeitwerk::Loader.new
-loader.inflector = DorServicesClientInflector.new
+loader.inflector = Zeitwerk::GemInflector.new(__FILE__)
loader.push_dir(File.absolute_path("#{__FILE__}/../../.."))
loader.setup
module Dor
module Services