forked from dlindahl/omniauth-cas
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from ifad/chore/rubocopify
Rubocopify gem
- Loading branch information
Showing
18 changed files
with
409 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.rubocop_todo.yml linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: RuboCop | ||
|
||
on: | ||
push: | ||
branches: [ master, develop ] | ||
pull_request: | ||
branches: [ master, develop ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
rubocop: | ||
name: RuboCop | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby-version: ['3.2'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: RuboCop | ||
run: bundle exec rubocop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- rubocop-performance | ||
- rubocop-rake | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.1 | ||
NewCops: enable | ||
Exclude: | ||
- 'bin/*' | ||
- 'coverage/**/*' | ||
- 'doc/**/*' | ||
- 'gemfiles/*' | ||
- 'vendor/**/*' | ||
|
||
Gemspec: | ||
Enabled: false |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
gem 'byebug' | ||
|
||
# Specify your gem's dependencies in omniauth-cas.gemspec | ||
gemspec | ||
|
||
if RUBY_VERSION < "2.2.2" | ||
if RUBY_VERSION < '2.2.2' | ||
# Rack 2 needs Ruby 2.2.2+ | ||
gem 'rack', '< 2' | ||
end | ||
|
||
if RUBY_VERSION >= '2.7' | ||
gem 'rubocop', require: false | ||
gem 'rubocop-performance', require: false | ||
gem 'rubocop-rake', require: false | ||
gem 'rubocop-rspec', require: false | ||
end | ||
|
||
gem 'awesome_print' | ||
gem 'byebug' | ||
gem 'rack-test' | ||
gem 'rake' | ||
gem 'rspec' | ||
gem 'webmock' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'omniauth/cas/version' | ||
require 'omniauth/strategies/cas' | ||
require 'omniauth/strategies/cas' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Omniauth | ||
module Cas | ||
VERSION = '2.0.0' | ||
|
Oops, something went wrong.