Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #44

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ updates:
allow:
- dependency-type: "direct"
- dependency-type: "indirect"
assignees:
- "biow0lf"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
- "biow0lf"
44 changes: 44 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "CodeQL"

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
# CodeQL supports [ "cpp", "csharp", "go", "java", "javascript", "python", "ruby" ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
language:
- "ruby"

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
4 changes: 3 additions & 1 deletion .github/workflows/mdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"

jobs:
mdl:
Expand All @@ -15,4 +17,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: run mdl
uses: actionshub/markdownlint@2.0.2
uses: actionshub/markdownlint@main
24 changes: 24 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: rubocop

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"

jobs:
rubocop:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: run rubocop
run: bundle exec rubocop --parallel
24 changes: 24 additions & 0 deletions .github/workflows/standardrb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: standardrb

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"

jobs:
standardrb:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: run standardrb
run: bundle exec standardrb
1 change: 0 additions & 1 deletion .mdlrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rules "~MD013"

12 changes: 12 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ Bundler/OrderedGems:

Layout/LineLength:
Enabled: false

Naming/FileName:
Enabled: false

Layout/ArgumentAlignment:
Enabled: false

Layout/MultilineMethodCallIndentation:
Enabled: false

Gemspec/OrderedDependencies:
Enabled: false
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.2
3.0.3
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby_version: 2.6
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ DEPENDENCIES
standard

BUNDLED WITH
2.2.31
2.3.6
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/eve_online_sso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EveOnlineSso < OmniAuth::Strategies::OAuth2

def raw_info
@raw_info ||= JWT.decode(access_token.token, nil, false)
.find { |element| element.keys.include?("scp") }.tap do |hash|
.find { |element| element.key?("scp") }.tap do |hash|
hash["character_id"] = hash["sub"].split(":")[-1]
hash["scopes"] = [*hash["scp"]].join(" ")
hash["token_type"] = hash["sub"].split(":")[0].capitalize
Expand Down
9 changes: 9 additions & 0 deletions omniauth-eve_online-sso.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/evemonk/omniauth-eve_online-sso"
spec.license = "MIT"

spec.metadata = {
"rubygems_mfa_required" => "true",
"bug_tracker_uri" => "https://github.com/evemonk/omniauth-eve_online-sso/issues",
"changelog_uri" => "https://github.com/evemonk/omniauth-eve_online-sso/blob/main/CHANGELOG.md",
"documentation_uri" => "https://github.com/evemonk/omniauth-eve_online-sso/blob/main/README.md",
"homepage_uri" => "https://github.com/evemonk/omniauth-eve_online-sso",
"source_code_uri" => "https://github.com/evemonk/omniauth-eve_online-sso"
}

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = ["lib"]

Expand Down