omniauth-redbooth 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/omniauth-redbooth/version.rb +1 -1
- data/lib/omniauth/strategies/redbooth.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d68f7bff9852d165bd901d5423dfda0a2557f128
|
4
|
+
data.tar.gz: 42bdf66ca001d21f81a3b1a612492e39904229ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c51928a9f1540219a21c3468f6a5946397303eebfec896e34f07efe5d9f4650a145062a66ce3e271afd6e10e1ece72049593d3227d6ee0a5c61380b4ce63e3fa
|
7
|
+
data.tar.gz: 0192d3a843db8febd0fc1bac175dec51c5af628f808ea6a19a49c6e52ab2d2c84e8afe30bb9ffc869c6e3f48f15f465f32c29cee020715fcf8676c3f963dee6b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-redbooth (0.0.
|
4
|
+
omniauth-redbooth (0.0.4)
|
5
5
|
omniauth-oauth2 (~> 1.2.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -44,9 +44,9 @@ GEM
|
|
44
44
|
guard (~> 2.1)
|
45
45
|
guard-compat (~> 1.1)
|
46
46
|
rspec (>= 2.99.0, < 4.0)
|
47
|
-
hashie (3.4.
|
47
|
+
hashie (3.4.2)
|
48
48
|
hitimes (1.2.2)
|
49
|
-
jwt (1.
|
49
|
+
jwt (1.5.0)
|
50
50
|
listen (2.8.5)
|
51
51
|
celluloid (>= 0.15.2)
|
52
52
|
rb-fsevent (>= 0.9.3)
|
@@ -43,6 +43,22 @@ module OmniAuth
|
|
43
43
|
def raw_info
|
44
44
|
@raw_info ||= access_token.get("#{options[:client_options][:site]}/me").parsed
|
45
45
|
end
|
46
|
+
|
47
|
+
# Override OmniAuth's `request` method and make sure that
|
48
|
+
# `request.url` is properly defined when `PATH_INFO` doesn't
|
49
|
+
# start with a slash.
|
50
|
+
#
|
51
|
+
# This is needed because when mounting an engine on the root,
|
52
|
+
# the `path_prefix` cannot start with a slash. Because of that
|
53
|
+
# `request.url` becomes host:portpath (notice the lack of a slash).
|
54
|
+
#
|
55
|
+
# This code sets the `SCRIPT_NAME` environment variable to a slash
|
56
|
+
# if it's empty (meaning that it's the root) and then calls
|
57
|
+
# the parent code which instantiates a request.
|
58
|
+
def request
|
59
|
+
@env['SCRIPT_NAME'] = '/' if @env['SCRIPT_NAME'] == ''
|
60
|
+
super
|
61
|
+
end
|
46
62
|
end
|
47
63
|
end
|
48
64
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-redbooth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andres Bravo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-06-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.4.
|
127
|
+
rubygems_version: 2.4.3
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Official OmniAuth strategy for Redbooth.com.
|