Sha256: 53b1eb954595ac0ff25570a0cd84c2421e200cf30c49da31617eef20678f3aca

Contents?: true

Size: 721 Bytes

Versions: 17

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true

# External components
# delegate should be removed because we don't need it, we just add it because of ruby-kafka
%w[
  forwardable
  json
  zeitwerk
  securerandom
  karafka-core
  pathname
].each { |lib| require lib }

# WaterDrop library
module WaterDrop
  class << self
    # @return [String] root path of this gem
    def gem_root
      Pathname.new(File.expand_path('..', __dir__))
    end
  end
end

loader = Zeitwerk::Loader.for_gem
loader.inflector.inflect('waterdrop' => 'WaterDrop')
# Do not load vendors instrumentation components. Those need to be required manually if needed
loader.ignore("#{__dir__}/waterdrop/instrumentation/vendors/**/*.rb")
loader.setup
loader.eager_load

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
waterdrop-2.7.0 lib/waterdrop.rb
waterdrop-2.7.0.rc2 lib/waterdrop.rb
waterdrop-2.7.0.rc1 lib/waterdrop.rb
waterdrop-2.7.0.beta2 lib/waterdrop.rb
waterdrop-2.7.0.beta1 lib/waterdrop.rb
waterdrop-2.7.0.alpha3 lib/waterdrop.rb
waterdrop-2.7.0.alpha2 lib/waterdrop.rb
waterdrop-2.7.0.alpha1 lib/waterdrop.rb
waterdrop-2.6.14 lib/waterdrop.rb
waterdrop-2.6.13 lib/waterdrop.rb
waterdrop-2.6.12 lib/waterdrop.rb
waterdrop-2.6.2 lib/waterdrop.rb
waterdrop-2.6.1 lib/waterdrop.rb
waterdrop-2.6.1.beta1 lib/waterdrop.rb
waterdrop-2.6.0 lib/waterdrop.rb
waterdrop-2.5.3 lib/waterdrop.rb
waterdrop-2.5.2 lib/waterdrop.rb