From f6b65b4d9510cdf0e4d126679236d6d6419ca56d Mon Sep 17 00:00:00 2001 From: Nikita Bulai Date: Thu, 4 Oct 2018 11:38:16 +0300 Subject: [PATCH] [ci skip] News entry --- NEWS.md | 1 + lib/doorkeeper/errors.rb | 2 ++ lib/doorkeeper/grape/authorization_decorator.rb | 2 ++ lib/doorkeeper/grape/helpers.rb | 2 ++ lib/doorkeeper/helpers/controller.rb | 2 ++ lib/doorkeeper/models/access_grant_mixin.rb | 2 ++ lib/doorkeeper/models/access_token_mixin.rb | 2 ++ lib/doorkeeper/models/application_mixin.rb | 2 ++ lib/doorkeeper/models/concerns/accessible.rb | 2 ++ lib/doorkeeper/models/concerns/expirable.rb | 2 ++ lib/doorkeeper/models/concerns/orderable.rb | 2 ++ lib/doorkeeper/models/concerns/ownership.rb | 2 ++ lib/doorkeeper/models/concerns/revocable.rb | 2 ++ lib/doorkeeper/models/concerns/scopes.rb | 2 ++ lib/doorkeeper/oauth/authorization/code.rb | 2 ++ lib/doorkeeper/oauth/authorization/context.rb | 2 ++ lib/doorkeeper/oauth/authorization/token.rb | 2 ++ lib/doorkeeper/oauth/authorization/uri_builder.rb | 2 ++ lib/doorkeeper/oauth/authorization_code_request.rb | 2 ++ lib/doorkeeper/oauth/base_request.rb | 2 ++ lib/doorkeeper/oauth/base_response.rb | 2 ++ lib/doorkeeper/oauth/client.rb | 2 ++ lib/doorkeeper/oauth/client/credentials.rb | 2 ++ lib/doorkeeper/oauth/client_credentials/creator.rb | 2 ++ lib/doorkeeper/oauth/client_credentials/issuer.rb | 2 ++ lib/doorkeeper/oauth/client_credentials/validation.rb | 2 ++ lib/doorkeeper/oauth/client_credentials_request.rb | 2 ++ lib/doorkeeper/oauth/code_request.rb | 2 ++ lib/doorkeeper/oauth/code_response.rb | 2 ++ lib/doorkeeper/oauth/error.rb | 2 ++ lib/doorkeeper/oauth/error_response.rb | 2 ++ lib/doorkeeper/oauth/forbidden_token_response.rb | 2 ++ lib/doorkeeper/oauth/helpers/scope_checker.rb | 2 ++ lib/doorkeeper/oauth/helpers/unique_token.rb | 2 ++ lib/doorkeeper/oauth/helpers/uri_checker.rb | 2 ++ lib/doorkeeper/oauth/invalid_token_response.rb | 2 ++ lib/doorkeeper/oauth/password_access_token_request.rb | 2 ++ lib/doorkeeper/oauth/pre_authorization.rb | 2 ++ lib/doorkeeper/oauth/refresh_token_request.rb | 2 ++ lib/doorkeeper/oauth/scopes.rb | 2 ++ lib/doorkeeper/oauth/token.rb | 2 ++ lib/doorkeeper/oauth/token_introspection.rb | 2 ++ lib/doorkeeper/oauth/token_request.rb | 2 ++ lib/doorkeeper/oauth/token_response.rb | 2 ++ lib/doorkeeper/orm/active_record.rb | 2 ++ lib/doorkeeper/rails/helpers.rb | 2 ++ lib/doorkeeper/rails/routes.rb | 2 ++ lib/doorkeeper/rails/routes/mapper.rb | 2 ++ lib/doorkeeper/rails/routes/mapping.rb | 2 ++ lib/doorkeeper/request.rb | 2 ++ lib/doorkeeper/request/authorization_code.rb | 2 ++ lib/doorkeeper/request/client_credentials.rb | 2 ++ lib/doorkeeper/request/code.rb | 2 ++ lib/doorkeeper/request/password.rb | 2 ++ lib/doorkeeper/request/refresh_token.rb | 2 ++ lib/doorkeeper/request/strategy.rb | 2 ++ lib/doorkeeper/request/token.rb | 2 ++ lib/doorkeeper/server.rb | 2 ++ lib/doorkeeper/stale_records_cleaner.rb | 2 ++ lib/doorkeeper/validations.rb | 2 ++ lib/doorkeeper/version.rb | 2 ++ 61 files changed, 121 insertions(+) diff --git a/NEWS.md b/NEWS.md index 4a36c9266..ffe1a2300 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,7 @@ User-visible changes worth mentioning. triggers every time) - [#1149] Fix for `URIChecker#valid_for_authorization?` false negative when query is blank, but `?` present. - [#1151] Fix Refresh Token strategy: add proper validation of client credentials both for Public & Private clients. +- [#1154] Refactor `StaleRecordsCleaner` to be ORM agnostic. ## 5.0.0 diff --git a/lib/doorkeeper/errors.rb b/lib/doorkeeper/errors.rb index 10a2d41e5..0a73f3a85 100644 --- a/lib/doorkeeper/errors.rb +++ b/lib/doorkeeper/errors.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Errors class DoorkeeperError < StandardError diff --git a/lib/doorkeeper/grape/authorization_decorator.rb b/lib/doorkeeper/grape/authorization_decorator.rb index f5b71a398..414fc4156 100644 --- a/lib/doorkeeper/grape/authorization_decorator.rb +++ b/lib/doorkeeper/grape/authorization_decorator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Grape class AuthorizationDecorator < SimpleDelegator diff --git a/lib/doorkeeper/grape/helpers.rb b/lib/doorkeeper/grape/helpers.rb index 0ed73e8bc..31da6b1f1 100644 --- a/lib/doorkeeper/grape/helpers.rb +++ b/lib/doorkeeper/grape/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doorkeeper/grape/authorization_decorator' module Doorkeeper diff --git a/lib/doorkeeper/helpers/controller.rb b/lib/doorkeeper/helpers/controller.rb index ea3449529..e71a4f319 100644 --- a/lib/doorkeeper/helpers/controller.rb +++ b/lib/doorkeeper/helpers/controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Define methods that can be called in any controller that inherits from # Doorkeeper::ApplicationMetalController or Doorkeeper::ApplicationController module Doorkeeper diff --git a/lib/doorkeeper/models/access_grant_mixin.rb b/lib/doorkeeper/models/access_grant_mixin.rb index 2665db1bc..e016b28e5 100644 --- a/lib/doorkeeper/models/access_grant_mixin.rb +++ b/lib/doorkeeper/models/access_grant_mixin.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module AccessGrantMixin extend ActiveSupport::Concern diff --git a/lib/doorkeeper/models/access_token_mixin.rb b/lib/doorkeeper/models/access_token_mixin.rb index 71dcb611b..098d6ed98 100644 --- a/lib/doorkeeper/models/access_token_mixin.rb +++ b/lib/doorkeeper/models/access_token_mixin.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module AccessTokenMixin extend ActiveSupport::Concern diff --git a/lib/doorkeeper/models/application_mixin.rb b/lib/doorkeeper/models/application_mixin.rb index 10c871610..a8bfdd994 100644 --- a/lib/doorkeeper/models/application_mixin.rb +++ b/lib/doorkeeper/models/application_mixin.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module ApplicationMixin extend ActiveSupport::Concern diff --git a/lib/doorkeeper/models/concerns/accessible.rb b/lib/doorkeeper/models/concerns/accessible.rb index f2f0044f9..a0bc125f6 100644 --- a/lib/doorkeeper/models/concerns/accessible.rb +++ b/lib/doorkeeper/models/concerns/accessible.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Accessible diff --git a/lib/doorkeeper/models/concerns/expirable.rb b/lib/doorkeeper/models/concerns/expirable.rb index 541a09931..2b7721294 100644 --- a/lib/doorkeeper/models/concerns/expirable.rb +++ b/lib/doorkeeper/models/concerns/expirable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Expirable diff --git a/lib/doorkeeper/models/concerns/orderable.rb b/lib/doorkeeper/models/concerns/orderable.rb index 072c8c42c..6d5938839 100644 --- a/lib/doorkeeper/models/concerns/orderable.rb +++ b/lib/doorkeeper/models/concerns/orderable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Orderable diff --git a/lib/doorkeeper/models/concerns/ownership.rb b/lib/doorkeeper/models/concerns/ownership.rb index 535e4622b..22ab88493 100644 --- a/lib/doorkeeper/models/concerns/ownership.rb +++ b/lib/doorkeeper/models/concerns/ownership.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Ownership diff --git a/lib/doorkeeper/models/concerns/revocable.rb b/lib/doorkeeper/models/concerns/revocable.rb index fac80c217..24159c9f6 100644 --- a/lib/doorkeeper/models/concerns/revocable.rb +++ b/lib/doorkeeper/models/concerns/revocable.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Revocable diff --git a/lib/doorkeeper/models/concerns/scopes.rb b/lib/doorkeeper/models/concerns/scopes.rb index 8d0788c11..4f475dcb4 100644 --- a/lib/doorkeeper/models/concerns/scopes.rb +++ b/lib/doorkeeper/models/concerns/scopes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Models module Scopes diff --git a/lib/doorkeeper/oauth/authorization/code.rb b/lib/doorkeeper/oauth/authorization/code.rb index 960662e5e..73e631f5a 100644 --- a/lib/doorkeeper/oauth/authorization/code.rb +++ b/lib/doorkeeper/oauth/authorization/code.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Authorization diff --git a/lib/doorkeeper/oauth/authorization/context.rb b/lib/doorkeeper/oauth/authorization/context.rb index 1281d576e..b0524214b 100644 --- a/lib/doorkeeper/oauth/authorization/context.rb +++ b/lib/doorkeeper/oauth/authorization/context.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Authorization diff --git a/lib/doorkeeper/oauth/authorization/token.rb b/lib/doorkeeper/oauth/authorization/token.rb index e881df4c4..a022b926c 100644 --- a/lib/doorkeeper/oauth/authorization/token.rb +++ b/lib/doorkeeper/oauth/authorization/token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Authorization diff --git a/lib/doorkeeper/oauth/authorization/uri_builder.rb b/lib/doorkeeper/oauth/authorization/uri_builder.rb index d8546aa42..bb6ce20fd 100644 --- a/lib/doorkeeper/oauth/authorization/uri_builder.rb +++ b/lib/doorkeeper/oauth/authorization/uri_builder.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'rack/utils' module Doorkeeper diff --git a/lib/doorkeeper/oauth/authorization_code_request.rb b/lib/doorkeeper/oauth/authorization_code_request.rb index f4c3eed45..b93fac8c7 100644 --- a/lib/doorkeeper/oauth/authorization_code_request.rb +++ b/lib/doorkeeper/oauth/authorization_code_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class AuthorizationCodeRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/base_request.rb b/lib/doorkeeper/oauth/base_request.rb index 636e42346..573b128e4 100644 --- a/lib/doorkeeper/oauth/base_request.rb +++ b/lib/doorkeeper/oauth/base_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class BaseRequest diff --git a/lib/doorkeeper/oauth/base_response.rb b/lib/doorkeeper/oauth/base_response.rb index dd7c1bebd..84c29f640 100644 --- a/lib/doorkeeper/oauth/base_response.rb +++ b/lib/doorkeeper/oauth/base_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class BaseResponse diff --git a/lib/doorkeeper/oauth/client.rb b/lib/doorkeeper/oauth/client.rb index d8ce77e17..3a31b0531 100644 --- a/lib/doorkeeper/oauth/client.rb +++ b/lib/doorkeeper/oauth/client.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class Client diff --git a/lib/doorkeeper/oauth/client/credentials.rb b/lib/doorkeeper/oauth/client/credentials.rb index 62cc8dac5..d9b69e4c7 100644 --- a/lib/doorkeeper/oauth/client/credentials.rb +++ b/lib/doorkeeper/oauth/client/credentials.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class Client diff --git a/lib/doorkeeper/oauth/client_credentials/creator.rb b/lib/doorkeeper/oauth/client_credentials/creator.rb index 09ad284d5..287c979b8 100644 --- a/lib/doorkeeper/oauth/client_credentials/creator.rb +++ b/lib/doorkeeper/oauth/client_credentials/creator.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ClientCredentialsRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/client_credentials/issuer.rb b/lib/doorkeeper/oauth/client_credentials/issuer.rb index 7c8edaf57..f9bb67b13 100644 --- a/lib/doorkeeper/oauth/client_credentials/issuer.rb +++ b/lib/doorkeeper/oauth/client_credentials/issuer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ClientCredentialsRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/client_credentials/validation.rb b/lib/doorkeeper/oauth/client_credentials/validation.rb index 964f97b89..fadd62933 100644 --- a/lib/doorkeeper/oauth/client_credentials/validation.rb +++ b/lib/doorkeeper/oauth/client_credentials/validation.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ClientCredentialsRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/client_credentials_request.rb b/lib/doorkeeper/oauth/client_credentials_request.rb index f9df39d65..05422b078 100644 --- a/lib/doorkeeper/oauth/client_credentials_request.rb +++ b/lib/doorkeeper/oauth/client_credentials_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ClientCredentialsRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/code_request.rb b/lib/doorkeeper/oauth/code_request.rb index a81f4b8c7..b7583dcaa 100644 --- a/lib/doorkeeper/oauth/code_request.rb +++ b/lib/doorkeeper/oauth/code_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class CodeRequest diff --git a/lib/doorkeeper/oauth/code_response.rb b/lib/doorkeeper/oauth/code_response.rb index 83cc32f19..cf193c931 100644 --- a/lib/doorkeeper/oauth/code_response.rb +++ b/lib/doorkeeper/oauth/code_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class CodeResponse < BaseResponse diff --git a/lib/doorkeeper/oauth/error.rb b/lib/doorkeeper/oauth/error.rb index 93505ccf5..a6c99fb0f 100644 --- a/lib/doorkeeper/oauth/error.rb +++ b/lib/doorkeeper/oauth/error.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth Error = Struct.new(:name, :state) do diff --git a/lib/doorkeeper/oauth/error_response.rb b/lib/doorkeeper/oauth/error_response.rb index 1fb7549ff..afcc561aa 100644 --- a/lib/doorkeeper/oauth/error_response.rb +++ b/lib/doorkeeper/oauth/error_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ErrorResponse < BaseResponse diff --git a/lib/doorkeeper/oauth/forbidden_token_response.rb b/lib/doorkeeper/oauth/forbidden_token_response.rb index d87ce0aae..ed004d4c2 100644 --- a/lib/doorkeeper/oauth/forbidden_token_response.rb +++ b/lib/doorkeeper/oauth/forbidden_token_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class ForbiddenTokenResponse < ErrorResponse diff --git a/lib/doorkeeper/oauth/helpers/scope_checker.rb b/lib/doorkeeper/oauth/helpers/scope_checker.rb index 3cf853e08..c1754eceb 100644 --- a/lib/doorkeeper/oauth/helpers/scope_checker.rb +++ b/lib/doorkeeper/oauth/helpers/scope_checker.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Helpers diff --git a/lib/doorkeeper/oauth/helpers/unique_token.rb b/lib/doorkeeper/oauth/helpers/unique_token.rb index f506a85da..13f012596 100644 --- a/lib/doorkeeper/oauth/helpers/unique_token.rb +++ b/lib/doorkeeper/oauth/helpers/unique_token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Helpers diff --git a/lib/doorkeeper/oauth/helpers/uri_checker.rb b/lib/doorkeeper/oauth/helpers/uri_checker.rb index eda3d3859..7cb7f1db2 100644 --- a/lib/doorkeeper/oauth/helpers/uri_checker.rb +++ b/lib/doorkeeper/oauth/helpers/uri_checker.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth module Helpers diff --git a/lib/doorkeeper/oauth/invalid_token_response.rb b/lib/doorkeeper/oauth/invalid_token_response.rb index 8e507f95c..8034d169e 100644 --- a/lib/doorkeeper/oauth/invalid_token_response.rb +++ b/lib/doorkeeper/oauth/invalid_token_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class InvalidTokenResponse < ErrorResponse diff --git a/lib/doorkeeper/oauth/password_access_token_request.rb b/lib/doorkeeper/oauth/password_access_token_request.rb index 5f6aac605..9d2b088fd 100644 --- a/lib/doorkeeper/oauth/password_access_token_request.rb +++ b/lib/doorkeeper/oauth/password_access_token_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class PasswordAccessTokenRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/pre_authorization.rb b/lib/doorkeeper/oauth/pre_authorization.rb index 9ec0a1a69..64a22bb35 100644 --- a/lib/doorkeeper/oauth/pre_authorization.rb +++ b/lib/doorkeeper/oauth/pre_authorization.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class PreAuthorization diff --git a/lib/doorkeeper/oauth/refresh_token_request.rb b/lib/doorkeeper/oauth/refresh_token_request.rb index af80850d2..b033131d4 100644 --- a/lib/doorkeeper/oauth/refresh_token_request.rb +++ b/lib/doorkeeper/oauth/refresh_token_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class RefreshTokenRequest < BaseRequest diff --git a/lib/doorkeeper/oauth/scopes.rb b/lib/doorkeeper/oauth/scopes.rb index 5da0a5342..1865c621c 100644 --- a/lib/doorkeeper/oauth/scopes.rb +++ b/lib/doorkeeper/oauth/scopes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class Scopes diff --git a/lib/doorkeeper/oauth/token.rb b/lib/doorkeeper/oauth/token.rb index 36fb581b8..c3a9d672f 100644 --- a/lib/doorkeeper/oauth/token.rb +++ b/lib/doorkeeper/oauth/token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class Token diff --git a/lib/doorkeeper/oauth/token_introspection.rb b/lib/doorkeeper/oauth/token_introspection.rb index 26a63de48..a87371ccd 100644 --- a/lib/doorkeeper/oauth/token_introspection.rb +++ b/lib/doorkeeper/oauth/token_introspection.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth # RFC7662 OAuth 2.0 Token Introspection diff --git a/lib/doorkeeper/oauth/token_request.rb b/lib/doorkeeper/oauth/token_request.rb index 9908c23ef..b8aa38429 100644 --- a/lib/doorkeeper/oauth/token_request.rb +++ b/lib/doorkeeper/oauth/token_request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class TokenRequest diff --git a/lib/doorkeeper/oauth/token_response.rb b/lib/doorkeeper/oauth/token_response.rb index 93f6bbe7e..aa3c31119 100644 --- a/lib/doorkeeper/oauth/token_response.rb +++ b/lib/doorkeeper/oauth/token_response.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module OAuth class TokenResponse diff --git a/lib/doorkeeper/orm/active_record.rb b/lib/doorkeeper/orm/active_record.rb index 5cda5f1ab..0cbb4f94b 100644 --- a/lib/doorkeeper/orm/active_record.rb +++ b/lib/doorkeeper/orm/active_record.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'active_support/lazy_load_hooks' require 'doorkeeper/orm/active_record/stale_records_cleaner' diff --git a/lib/doorkeeper/rails/helpers.rb b/lib/doorkeeper/rails/helpers.rb index 780bcf5cd..70c9b0148 100644 --- a/lib/doorkeeper/rails/helpers.rb +++ b/lib/doorkeeper/rails/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Rails module Helpers diff --git a/lib/doorkeeper/rails/routes.rb b/lib/doorkeeper/rails/routes.rb index a44b2df99..cd88e4139 100644 --- a/lib/doorkeeper/rails/routes.rb +++ b/lib/doorkeeper/rails/routes.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'doorkeeper/rails/routes/mapping' require 'doorkeeper/rails/routes/mapper' diff --git a/lib/doorkeeper/rails/routes/mapper.rb b/lib/doorkeeper/rails/routes/mapper.rb index bfee19b52..7ec5fd75b 100644 --- a/lib/doorkeeper/rails/routes/mapper.rb +++ b/lib/doorkeeper/rails/routes/mapper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Rails class Routes # :nodoc: diff --git a/lib/doorkeeper/rails/routes/mapping.rb b/lib/doorkeeper/rails/routes/mapping.rb index d2f129ce1..71b543972 100644 --- a/lib/doorkeeper/rails/routes/mapping.rb +++ b/lib/doorkeeper/rails/routes/mapping.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Rails class Routes # :nodoc: diff --git a/lib/doorkeeper/request.rb b/lib/doorkeeper/request.rb index f1b231762..e8366b651 100644 --- a/lib/doorkeeper/request.rb +++ b/lib/doorkeeper/request.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class << self diff --git a/lib/doorkeeper/request/authorization_code.rb b/lib/doorkeeper/request/authorization_code.rb index 51cf3abe5..d4a46a3ee 100644 --- a/lib/doorkeeper/request/authorization_code.rb +++ b/lib/doorkeeper/request/authorization_code.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class AuthorizationCode < Strategy diff --git a/lib/doorkeeper/request/client_credentials.rb b/lib/doorkeeper/request/client_credentials.rb index d05f39916..00d89ff3d 100644 --- a/lib/doorkeeper/request/client_credentials.rb +++ b/lib/doorkeeper/request/client_credentials.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class ClientCredentials < Strategy diff --git a/lib/doorkeeper/request/code.rb b/lib/doorkeeper/request/code.rb index 39782b0f2..d4cadb5d0 100644 --- a/lib/doorkeeper/request/code.rb +++ b/lib/doorkeeper/request/code.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class Code < Strategy diff --git a/lib/doorkeeper/request/password.rb b/lib/doorkeeper/request/password.rb index 9ee966424..4f1379d2c 100644 --- a/lib/doorkeeper/request/password.rb +++ b/lib/doorkeeper/request/password.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class Password < Strategy diff --git a/lib/doorkeeper/request/refresh_token.rb b/lib/doorkeeper/request/refresh_token.rb index cfc5ace52..c47ce6b14 100644 --- a/lib/doorkeeper/request/refresh_token.rb +++ b/lib/doorkeeper/request/refresh_token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class RefreshToken < Strategy diff --git a/lib/doorkeeper/request/strategy.rb b/lib/doorkeeper/request/strategy.rb index ecf6f4157..a4f379ba8 100644 --- a/lib/doorkeeper/request/strategy.rb +++ b/lib/doorkeeper/request/strategy.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class Strategy diff --git a/lib/doorkeeper/request/token.rb b/lib/doorkeeper/request/token.rb index 93528d992..4e609835d 100644 --- a/lib/doorkeeper/request/token.rb +++ b/lib/doorkeeper/request/token.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Request class Token < Strategy diff --git a/lib/doorkeeper/server.rb b/lib/doorkeeper/server.rb index 697c2d903..2fa8fadea 100644 --- a/lib/doorkeeper/server.rb +++ b/lib/doorkeeper/server.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper class Server attr_accessor :context diff --git a/lib/doorkeeper/stale_records_cleaner.rb b/lib/doorkeeper/stale_records_cleaner.rb index 5c9c6efbd..45c2b5669 100644 --- a/lib/doorkeeper/stale_records_cleaner.rb +++ b/lib/doorkeeper/stale_records_cleaner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper class StaleRecordsCleaner CLEANER_CLASS = 'StaleRecordsCleaner'.freeze diff --git a/lib/doorkeeper/validations.rb b/lib/doorkeeper/validations.rb index 1fe8e5bab..d82ced79e 100644 --- a/lib/doorkeeper/validations.rb +++ b/lib/doorkeeper/validations.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper module Validations extend ActiveSupport::Concern diff --git a/lib/doorkeeper/version.rb b/lib/doorkeeper/version.rb index af5e4cecc..5f2da8dad 100644 --- a/lib/doorkeeper/version.rb +++ b/lib/doorkeeper/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Doorkeeper def self.gem_version Gem::Version.new VERSION::STRING