Skip to content

Commit 13dde0c

Browse files
author
Jesse Doyle
committed
OAuth2 - PKCE | CI
__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.
1 parent a7b3b73 commit 13dde0c

File tree

9 files changed

+11
-17
lines changed

9 files changed

+11
-17
lines changed

.rubocop.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
AllCops:
22
NewCops: enable
33

4+
Gemspec/RequiredRubyVersion:
5+
Enabled: false
6+
47
Layout/AccessModifierIndentation:
58
EnforcedStyle: outdent
69

@@ -11,8 +14,11 @@ Layout/LineLength:
1114
Layout/SpaceInsideHashLiteralBraces:
1215
EnforcedStyle: no_space
1316

17+
Lint/MissingSuper:
18+
Enabled: false
19+
1420
Metrics/AbcSize:
15-
Max: 17
21+
Max: 18
1622

1723
Metrics/BlockLength:
1824
Exclude:
@@ -52,6 +58,9 @@ Style/DoubleNegation:
5258
Style/ExpandPathArguments:
5359
Enabled: false
5460

61+
Style/FrozenStringLiteralComment:
62+
Enabled: false
63+
5564
Style/HashSyntax:
5665
EnforcedStyle: hash_rockets
5766

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frozen_string_literal: true
2-
31
source "https://rubygems.org"
42

53
gem "rake", "~> 12.0"

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env rake
2-
# frozen_string_literal: true
32

43
require "bundler/gem_tasks"
54
require "rspec/core/rake_task"

lib/omniauth-oauth2.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# frozen_string_literal: true
2-
31
require "omniauth-oauth2/version"
42
require "omniauth/strategies/oauth2"

lib/omniauth-oauth2/version.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# frozen_string_literal: true
2-
31
module OmniAuth
42
module OAuth2
5-
VERSION = "1.6.0"
3+
VERSION = "1.6.0".freeze
64
end
75
end

lib/omniauth/strategies/oauth2.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frozen_string_literal: true
2-
31
require "oauth2"
42
require "omniauth"
53
require "securerandom"

omniauth-oauth2.gemspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frozen_string_literal: true
2-
31
lib = File.expand_path("../lib", __FILE__)
42
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
53
require "omniauth-oauth2/version"

spec/helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frozen_string_literal: true
2-
31
$LOAD_PATH.unshift File.expand_path("..", __FILE__)
42
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
53

spec/omniauth/strategies/oauth2_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# frozen_string_literal: true
2-
31
require "helper"
42

53
describe OmniAuth::Strategies::OAuth2 do

0 commit comments

Comments
 (0)