Sha256: e52dd3d6b3045597f742c01b29625cb5f4e56225016c6fef78a652eedd193836

Contents?: true

Size: 725 Bytes

Versions: 13

Compression:

Stored size: 725 Bytes

Contents

require 'unleash/version'
require 'unleash/spec_version'
require 'unleash/configuration'
require 'unleash/strategies'
require 'unleash/context'
require 'unleash/client'
require 'logger'

module Unleash
  TIME_RESOLUTION = 3

  class << self
    attr_accessor :configuration, :toggle_fetcher, :reporter, :logger, :engine
  end

  self.configuration = Unleash::Configuration.new

  # Deprecated: Use Unleash.configure to add custom strategies
  STRATEGIES = self.configuration.strategies

  # Support for configuration via yield:
  def self.configure
    yield(configuration)

    self.configuration.validate!
    self.configuration.refresh_backup_file!
  end

  def self.strategies
    self.configuration.strategies
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
unleash-6.0.9 lib/unleash.rb
unleash-6.0.8 lib/unleash.rb
unleash-6.0.8.beta.1 lib/unleash.rb
unleash-6.0.7 lib/unleash.rb
unleash-6.0.6 lib/unleash.rb
unleash-6.0.5 lib/unleash.rb
unleash-6.0.0 lib/unleash.rb
unleash-6.0.5.pre lib/unleash.rb
unleash-6.0.4.pre lib/unleash.rb
unleash-6.0.3.pre lib/unleash.rb
unleash-6.0.2.pre lib/unleash.rb
unleash-6.0.1.pre lib/unleash.rb
unleash-6.0.0.pre lib/unleash.rb