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.
  • Loading branch information
Jesse Doyle committed Aug 10, 2020
1 parent a7b3b73 commit 9ef9e5b
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -52,6 +52,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 9ef9e5b

Please sign in to comment.