mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
cleanup: rubocop: fix Layout/IndentationConsistency in test/mocks/open_id_authentication_mock.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19220 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -171,13 +171,6 @@ Layout/IndentFirstArrayElement:
|
|||||||
Layout/IndentFirstHashElement:
|
Layout/IndentFirstHashElement:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: normal, indented_internal_methods
|
|
||||||
Layout/IndentationConsistency:
|
|
||||||
Exclude:
|
|
||||||
- 'test/mocks/open_id_authentication_mock.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: Width, IgnoredPatterns.
|
# Configuration parameters: Width, IgnoredPatterns.
|
||||||
Layout/IndentationWidth:
|
Layout/IndentationWidth:
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ module OpenIdAuthentication
|
|||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def authenticate_with_open_id(identity_url = params[:openid_url], options = {})
|
def authenticate_with_open_id(identity_url = params[:openid_url], options = {})
|
||||||
if User.find_by_identity_url(identity_url) || identity_url.include?('good')
|
if User.find_by_identity_url(identity_url) || identity_url.include?('good')
|
||||||
extension_response_fields = {}
|
extension_response_fields = {}
|
||||||
|
|
||||||
@@ -38,12 +38,12 @@ module OpenIdAuthentication
|
|||||||
logger.info "OpenID authentication failed: #{identity_url}"
|
logger.info "OpenID authentication failed: #{identity_url}"
|
||||||
yield Result[:failed], identity_url, nil
|
yield Result[:failed], identity_url, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def add_simple_registration_fields(open_id_response, fields)
|
def add_simple_registration_fields(open_id_response, fields)
|
||||||
open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required]
|
open_id_response.add_extension_arg('sreg', 'required', [ fields[:required] ].flatten * ',') if fields[:required]
|
||||||
open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional]
|
open_id_response.add_extension_arg('sreg', 'optional', [ fields[:optional] ].flatten * ',') if fields[:optional]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user