doorkeeper_hub 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4886a1e7e646155e1ece5c76032fbe062bf349e2
4
- data.tar.gz: 46dcb35435f9ecd36f26618143b8e86898fa0adf
3
+ metadata.gz: c0dd30c40dac5b61e23001a9f927e0c4f39b4fbf
4
+ data.tar.gz: 95f649330d8ceba5f7a85e813f04f84de0394f94
5
5
  SHA512:
6
- metadata.gz: cef5140bb3c95bc5839a25a46f905d1e326bd89b96b022ff6f9f8ad79779de8ae60a615ab0bb498153b7581eb433eeda344d7a7b04d8eb036b0f5d0e75e91663
7
- data.tar.gz: f67e59d3d307c29317aa5296e5444402e57b07b49de20d363a4093b5a041f1a51985d2660e9eb5fdee66e5a40f863f764f4a5e3342dcbf868852892d577fce51
6
+ metadata.gz: 0c7f4f909dccd7ceca35b349828fc0573c716e16eb1f9b215c77c926b568c4f37b6bcb1ec835f8ad59865d58e2da96c5b78cbc57262264e6eddd86e236206a5c
7
+ data.tar.gz: b6d1424fd202aa347b57df3a1dd501b444a63b6beaa38ab9d9820cd93936ab05af7ddc744608ffeaa0b398a5e97f809a293845fc747c7d899d99b2098a623a8f
@@ -27,7 +27,7 @@ module DoorkeeperHub
27
27
  end
28
28
 
29
29
  def after_sign_in_path_for(_)
30
- request.env['omniauth.origin']
30
+ request.env['omniauth.origin'] || (DoorkeeperHub.client_mode? ? root_path : root_path_with_token)
31
31
  end
32
32
 
33
33
  def root_path_with_token
@@ -1,3 +1,3 @@
1
1
  module DoorkeeperHub
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Fan