class Airbrake::Filters::DependencyFilter
@since v2.10.0
@api private
Attaches loaded dependencies to the notice object.
def call(notice)
def call(notice) deps = {} Gem.loaded_specs.map.with_object(deps) do |(name, spec), h| h[name] = "#{spec.version}#{git_version(spec)}" end notice[:context][:versions] = {} unless notice[:context].key?(:versions) notice[:context][:versions][:dependencies] = deps end
def git_version(spec)
def git_version(spec) return unless spec.respond_to?(:git_version) || spec.git_version spec.git_version.to_s end
def initialize
def initialize @weight = 117 end