Sha256: c4daffad1b88c2d3479f5050be2d95a117f99298211ef07b62f49256ef985f51

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

module ShopifyApiRateLimiter
  class << self
    attr_accessor :logger
  end

  class Railties < ::Rails::Railtie
    initializer 'Rails logger' do
      ShopifyApiRateLimiter.logger = Rails.logger
    end
  end

  if defined?(Rails)
    require 'shopify_api_rate_limiter/active_resource/connection'
    require 'shopify_api_rate_limiter/throttled_connection'
    require 'shopify_api_rate_limiter/engine'
  else
    require 'shopify_api_rate_limiter/active_resource/connection'
    require 'shopify_api_rate_limiter/throttled_connection'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify_api_rate_limiter-0.0.9 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.8 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.7 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.6 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.4 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.3 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.2 lib/shopify_api_rate_limiter.rb
shopify_api_rate_limiter-0.0.1 lib/shopify_api_rate_limiter.rb