omniauth 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3be9f7e5731f11a7a1895e8a3891d9f2431ed0eca0881e36d7de7c44a7b89268
4
- data.tar.gz: 751f6f3a75e0d62b30f9a998fdc41af6166f02c90002b9987cc893d1503fbb38
3
+ metadata.gz: bda926095916de4b9694aaea0102e28ba4589485ac7299e14818d16c80114e2d
4
+ data.tar.gz: 933f85d44aa3ce65274350f6b460c0c1f48bfe0e7c6231091e0fe05cc07b741c
5
5
  SHA512:
6
- metadata.gz: 7c5715a5d05241734e86c7c8d2a64b884010d5e1ba977197d7a365872ecac77b6738a13ef3c469344c6c16e901ce767190a97d1e1e1da4248ded5bb807321c5d
7
- data.tar.gz: 66f2008e6e0dda83c388b2d03e0b9b757707cd194c2eb9c7f0049decbc021ab124c757dadfe194f84c32467d0061a6b08fb7ce0df66e701a5101da20044035a3
6
+ metadata.gz: b67754b61bea388ad20c8a2e305fdcdb0310cc6cd910eec4b3fbb6d2e5b86c24d99970e79f2b9913f4cc575ec25572408c87a4236728214edb10a7d0fe926fc0
7
+ data.tar.gz: a089f325f9b80fdba2f0f0561e0d050b36d47f49e763e33e381d427d8592009fa4da80db50e47f2d172bf96fb6d8d46455b68ec0e3fae632b752a1decbf0941f
@@ -38,7 +38,7 @@ jobs:
38
38
  fail-fast: false
39
39
  matrix:
40
40
  os: [ubuntu, macos]
41
- jruby: [jruby, jruby-head]
41
+ jruby: [jruby] # TODO: Add back jruby-head once we figure out why there's a bundler mismatch
42
42
  steps:
43
43
  - uses: actions/checkout@v2
44
44
  - name: Set up Ruby
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [codeclimate]: https://codeclimate.com/github/omniauth/omniauth
11
11
  [coveralls]: https://coveralls.io/r/omniauth/omniauth
12
12
 
13
- This is the documentation for OmniAuth [v2.0.3](https://github.com/omniauth/omniauth/tree/v2.0.3).
13
+ This is the documentation for the version [v2.0.4](https://github.com/omniauth/omniauth/tree/v2.0.4) of OmniAuth.
14
14
 
15
15
  ## An Introduction
16
16
  OmniAuth is a library that standardizes multi-provider authentication for
@@ -180,9 +180,10 @@ module OmniAuth
180
180
  raise(error)
181
181
  end
182
182
 
183
- warn_if_using_get
184
-
185
183
  @env = env
184
+
185
+ warn_if_using_get_on_request_path
186
+
186
187
  @env['omniauth.strategy'] = self if on_auth_path?
187
188
 
188
189
  return mock_call!(env) if OmniAuth.config.test_mode
@@ -201,7 +202,8 @@ module OmniAuth
201
202
  @app.call(env)
202
203
  end
203
204
 
204
- def warn_if_using_get
205
+ def warn_if_using_get_on_request_path
206
+ return unless on_request_path?
205
207
  return unless OmniAuth.config.allowed_request_methods.include?(:get)
206
208
  return if OmniAuth.config.silence_get_warning
207
209
 
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-18 00:00:00.000000000 Z
13
+ date: 2021-04-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie