Add frozen string literal comment to files.
This commit is contained in:
parent
dcb9e31b7d
commit
5a459fbb6e
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# bundle install
|
# bundle install
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# name: discourse-oauth2-basic
|
# name: discourse-oauth2-basic
|
||||||
# about: Generic OAuth2 Plugin
|
# about: Generic OAuth2 Plugin
|
||||||
# version: 0.3
|
# version: 0.3
|
||||||
|
@ -64,7 +66,7 @@ class OAuth2BasicAuthenticator < ::Auth::OAuth2Authenticator
|
||||||
end
|
end
|
||||||
|
|
||||||
def json_walk(result, user_json, prop)
|
def json_walk(result, user_json, prop)
|
||||||
path = SiteSetting.send("oauth2_json_#{prop}_path")
|
path = SiteSetting.get("oauth2_json_#{prop}_path")
|
||||||
if path.present?
|
if path.present?
|
||||||
segments = path.split('.')
|
segments = path.split('.')
|
||||||
val = walk_path(user_json, segments)
|
val = walk_path(user_json, segments)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue