DEV: Update rubocop-discourse to version 3.8.0

This commit is contained in:
Loïc Guitaut 2024-05-28 11:17:17 +02:00
parent d3725f4646
commit 29d0044493
No known key found for this signature in database
3 changed files with 16 additions and 10 deletions

View File

@ -29,6 +29,7 @@ GEM
racc racc
prettier_print (1.2.1) prettier_print (1.2.1)
racc (1.8.0) racc (1.8.0)
rack (3.0.11)
rainbow (3.1.1) rainbow (3.1.1)
regexp_parser (2.9.2) regexp_parser (2.9.2)
rexml (3.2.8) rexml (3.2.8)
@ -48,14 +49,20 @@ GEM
parser (>= 3.3.1.0) parser (>= 3.3.1.0)
rubocop-capybara (2.20.0) rubocop-capybara (2.20.0)
rubocop (~> 1.41) rubocop (~> 1.41)
rubocop-discourse (3.7.1) rubocop-discourse (3.8.0)
activesupport (>= 6.1) activesupport (>= 6.1)
rubocop (>= 1.59.0) rubocop (>= 1.59.0)
rubocop-capybara (>= 2.0.0) rubocop-capybara (>= 2.0.0)
rubocop-factory_bot (>= 2.0.0) rubocop-factory_bot (>= 2.0.0)
rubocop-rails (>= 2.25.0)
rubocop-rspec (>= 2.25.0) rubocop-rspec (>= 2.25.0)
rubocop-factory_bot (2.25.1) rubocop-factory_bot (2.25.1)
rubocop (~> 1.41) rubocop (~> 1.41)
rubocop-rails (2.25.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (2.29.2) rubocop-rspec (2.29.2)
rubocop (~> 1.40) rubocop (~> 1.40)
rubocop-capybara (~> 2.17) rubocop-capybara (~> 2.17)
@ -79,4 +86,4 @@ DEPENDENCIES
syntax_tree syntax_tree
BUNDLED WITH BUNDLED WITH
2.5.4 2.5.10

View File

@ -88,7 +88,7 @@ module ::OmniAuth
def authorize_params def authorize_params
super.tap do |params| super.tap do |params|
options[:passthrough_authorize_options].each do |k| options[:passthrough_authorize_options].each do |k|
params[k] = request.params[k.to_s] unless [nil, ""].include?(request.params[k.to_s]) params[k] = request.params[k.to_s] if [nil, ""].exclude?(request.params[k.to_s])
end end
params[:claims] = options[:claims] if options[:claims].present? params[:claims] = options[:claims] if options[:claims].present?
@ -97,7 +97,7 @@ module ::OmniAuth
session["omniauth.nonce"] = params[:nonce] = SecureRandom.hex(32) session["omniauth.nonce"] = params[:nonce] = SecureRandom.hex(32)
options[:passthrough_token_options].each do |k| options[:passthrough_token_options].each do |k|
session["omniauth.param.#{k}"] = request.params[k.to_s] unless [nil, ""].include?( session["omniauth.param.#{k}"] = request.params[k.to_s] if [nil, ""].exclude?(
request.params[k.to_s], request.params[k.to_s],
) )
end end
@ -108,7 +108,7 @@ module ::OmniAuth
params = {} params = {}
options[:passthrough_token_options].each do |k| options[:passthrough_token_options].each do |k|
val = session.delete("omniauth.param.#{k}") val = session.delete("omniauth.param.#{k}")
params[k] = val unless [nil, ""].include?(val) params[k] = val if [nil, ""].exclude?(val)
end end
super.merge(params) super.merge(params)
end end

View File

@ -1,10 +1,9 @@
{ {
"name": "discourse-openid-connect",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "^1.3.5", "@discourse/lint-configs": "1.3.9",
"ember-template-lint": "^5.13.0", "ember-template-lint": "6.0.0",
"eslint": "^8.56.0", "eslint": "8.57.0",
"prettier": "^2.8.8" "prettier": "2.8.8"
} }
} }