Sha256: d9c4559e82a753aecde2b285c0a2e3bf494328acc904ada524b3dd2256bed736

Contents?: true

Size: 609 Bytes

Versions: 17

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Analytics
    ##
    # a completely empty module to include if no parser is configured
    module NullAnalyticsParser; end

    def self.provider_parser
      "Hyrax::Analytics::#{Hyrax.config.analytics_provider.to_s.capitalize}".constantize
    rescue NameError => err
      Hyrax.logger.warn("Couldn't find an Analytics provider matching "\
                        " #{Hyrax.config.analytics_provider}. Loading " \
                        " NullAnalyticsProvider.\n#{err.message}")
      NullAnalyticsParser
    end

    include provider_parser
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/analytics.rb
hyrax-5.0.0 app/services/hyrax/analytics.rb
hyrax-5.0.0.rc3 app/services/hyrax/analytics.rb
hyrax-5.0.0.rc2 app/services/hyrax/analytics.rb
hyrax-5.0.0.rc1 app/services/hyrax/analytics.rb
hyrax-3.6.0 app/services/hyrax/analytics.rb
hyrax-4.0.0 app/services/hyrax/analytics.rb
hyrax-4.0.0.rc3 app/services/hyrax/analytics.rb
hyrax-4.0.0.rc2 app/services/hyrax/analytics.rb
hyrax-4.0.0.rc1 app/services/hyrax/analytics.rb
hyrax-3.5.0 app/services/hyrax/analytics.rb
hyrax-4.0.0.beta2 app/services/hyrax/analytics.rb
hyrax-3.4.2 app/services/hyrax/analytics.rb
hyrax-4.0.0.beta1 app/services/hyrax/analytics.rb
hyrax-3.4.1 app/services/hyrax/analytics.rb
hyrax-3.4.0 app/services/hyrax/analytics.rb
hyrax-3.3.0 app/services/hyrax/analytics.rb