Skip to content

Commit

Permalink
OAuth2 - PKCE | CI
Browse files Browse the repository at this point in the history
__review__

* Remove Ruby 2.3 frozen string magic comments as requested because
  it is out of scope for this feature.
* Add an exception to `rubocop.yml` so that the missing
  magic comment is not a CI failure.
* Add exceptions for `Lint/MissingSuper` and
  `Gemspec/REquiredRubyVersion` to minimize churn on the feature.
  • Loading branch information
Jesse Doyle committed Aug 10, 2020
1 parent a7b3b73 commit 13dde0c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 17 deletions.
11 changes: 10 additions & 1 deletion .rubocop.yml
@@ -1,6 +1,9 @@
AllCops:
NewCops: enable

Gemspec/RequiredRubyVersion:
Enabled: false

Layout/AccessModifierIndentation:
EnforcedStyle: outdent

Expand All @@ -11,8 +14,11 @@ Layout/LineLength:
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/MissingSuper:
Enabled: false

Metrics/AbcSize:
Max: 17
Max: 18

Metrics/BlockLength:
Exclude:
Expand Down Expand Up @@ -52,6 +58,9 @@ Style/DoubleNegation:
Style/ExpandPathArguments:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/HashSyntax:
EnforcedStyle: hash_rockets

Expand Down
2 changes: 0 additions & 2 deletions Gemfile
@@ -1,5 +1,3 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rake", "~> 12.0"
Expand Down
1 change: 0 additions & 1 deletion Rakefile
@@ -1,5 +1,4 @@
#!/usr/bin/env rake
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
Expand Down
2 changes: 0 additions & 2 deletions lib/omniauth-oauth2.rb
@@ -1,4 +1,2 @@
# frozen_string_literal: true

require "omniauth-oauth2/version"
require "omniauth/strategies/oauth2"
4 changes: 1 addition & 3 deletions lib/omniauth-oauth2/version.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true

module OmniAuth
module OAuth2
VERSION = "1.6.0"
VERSION = "1.6.0".freeze
end
end
2 changes: 0 additions & 2 deletions lib/omniauth/strategies/oauth2.rb
@@ -1,5 +1,3 @@
# frozen_string_literal: true

require "oauth2"
require "omniauth"
require "securerandom"
Expand Down
2 changes: 0 additions & 2 deletions omniauth-oauth2.gemspec
@@ -1,5 +1,3 @@
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "omniauth-oauth2/version"
Expand Down
2 changes: 0 additions & 2 deletions spec/helper.rb
@@ -1,5 +1,3 @@
# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path("..", __FILE__)
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

Expand Down
2 changes: 0 additions & 2 deletions spec/omniauth/strategies/oauth2_spec.rb
@@ -1,5 +1,3 @@
# frozen_string_literal: true

require "helper"

describe OmniAuth::Strategies::OAuth2 do
Expand Down

0 comments on commit 13dde0c

Please sign in to comment.