lib/doorkeeper.rb in doorkeeper-4.4.3 vs lib/doorkeeper.rb in doorkeeper-5.0.0.rc1
- old
+ new
@@ -6,16 +6,18 @@
require 'doorkeeper/server'
require 'doorkeeper/request'
require 'doorkeeper/validations'
require 'doorkeeper/oauth/authorization/code'
+require 'doorkeeper/oauth/authorization/context'
require 'doorkeeper/oauth/authorization/token'
require 'doorkeeper/oauth/authorization/uri_builder'
require 'doorkeeper/oauth/helpers/scope_checker'
require 'doorkeeper/oauth/helpers/uri_checker'
require 'doorkeeper/oauth/helpers/unique_token'
+require 'doorkeeper/oauth'
require 'doorkeeper/oauth/scopes'
require 'doorkeeper/oauth/error'
require 'doorkeeper/oauth/base_response'
require 'doorkeeper/oauth/code_response'
require 'doorkeeper/oauth/token_response'
@@ -47,29 +49,14 @@
require 'doorkeeper/helpers/controller'
require 'doorkeeper/rails/routes'
require 'doorkeeper/rails/helpers'
+require 'doorkeeper/rake'
+
require 'doorkeeper/orm/active_record'
-require 'active_support/deprecation'
-
module Doorkeeper
- def self.configured?
- ActiveSupport::Deprecation.warn "Method `Doorkeeper#configured?` has been deprecated without replacement."
- @config.present?
- end
-
- def self.database_installed?
- ActiveSupport::Deprecation.warn "Method `Doorkeeper#database_installed?` has been deprecated without replacement."
- [AccessToken, AccessGrant, Application].all?(&:table_exists?)
- end
-
- def self.installed?
- ActiveSupport::Deprecation.warn "Method `Doorkeeper#installed?` has been deprecated without replacement."
- configured? && database_installed?
- end
-
def self.authenticate(request, methods = Doorkeeper.configuration.access_token_methods)
OAuth::Token.authenticate(request, *methods)
end
end