Sha256: 1e21af0935dedcc614def1e252b711b78e4b2156a5515a3ca1268eae737c46c0

Contents?: true

Size: 974 Bytes

Versions: 11

Compression:

Stored size: 974 Bytes

Contents

require 'rack'
require 'json'
require 'httpclient'
require 'logger'
require 'active_support/core_ext'
require 'attr_required'
require 'attr_optional'

module Rack
  module OAuth2
    VERSION = ::File.read(
      ::File.join(::File.dirname(__FILE__), '../../VERSION')
    )

    def self.logger
      @@logger
    end
    def self.logger=(logger)
      @@logger = logger
    end
    self.logger = ::Logger.new(STDOUT)
    self.logger.progname = 'Rack::OAuth2'

    def self.debugging?
      @@debugging
    end
    def self.debugging=(boolean)
      @@debugging = boolean
    end
    def self.debug!
      self.debugging = true
    end
    def self.debug(&block)
      original = self.debugging?
      self.debugging = true
      yield
    ensure
      self.debugging = original
    end
    self.debugging = false
  end
end

require 'rack/oauth2/util'
require 'rack/oauth2/server'
require 'rack/oauth2/client'
require 'rack/oauth2/access_token'
require 'rack/oauth2/debugger'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rack-oauth2-0.13.0 lib/rack/oauth2.rb
rack-oauth2-0.12.2 lib/rack/oauth2.rb
rack-oauth2-0.12.1 lib/rack/oauth2.rb
rack-oauth2-0.12.0 lib/rack/oauth2.rb
rack-oauth2-0.11.0 lib/rack/oauth2.rb
rack-oauth2-0.10.1 lib/rack/oauth2.rb
rack-oauth2-0.10.0 lib/rack/oauth2.rb
rack-oauth2-0.10.0.alpha lib/rack/oauth2.rb
rack-oauth2-0.9.5 lib/rack/oauth2.rb
rack-oauth2-0.9.4 lib/rack/oauth2.rb
rack-oauth2-0.9.3 lib/rack/oauth2.rb