fb_graph2 0.7.5 → 0.7.6
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 +4 -4
- data/.travis.yml +7 -3
- data/VERSION +1 -1
- data/lib/patch/rack/oauth2/util.rb +10 -7
- data/spec/fb_graph2/auth_spec.rb +4 -2
- 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: 69ec4e6069e5343761974c392cd95a313291061e
|
4
|
+
data.tar.gz: 1c82d7da560affc0a29933248274690645021f9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf86d72e211fbc961909d732a45c78564203edd6ed5089bc8292610f4015cb8c8bf66b386cff39ee2aa0e2c13b1cd4f16545305f9523f099b6a3c58f83f7daaf
|
7
|
+
data.tar.gz: 26b060c6087e06557ffe1451265685b836c14d3d5b8ce2dbe66c1fb22a8e2449952fa48ab0e86bf7f682a2846debda7f71e3a5637bc22e383430a9854da7da9c
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.6
|
@@ -1,14 +1,17 @@
|
|
1
1
|
# NOTE: Authorization code given via FB JS SDK needs blank string as redirect_uri
|
2
|
+
|
2
3
|
module Rack::OAuth2::Util
|
3
4
|
class << self
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
module ComcactHashWithBrankRedirect
|
6
|
+
def compact_hash(hash)
|
7
|
+
original_redirect_uri = hash[:redirect_uri]
|
8
|
+
result = super
|
9
|
+
if original_redirect_uri
|
10
|
+
result[:redirect_uri] ||= original_redirect_uri
|
11
|
+
end
|
12
|
+
result
|
9
13
|
end
|
10
|
-
result
|
11
14
|
end
|
12
|
-
|
15
|
+
prepend ComcactHashWithBrankRedirect
|
13
16
|
end
|
14
17
|
end
|
data/spec/fb_graph2/auth_spec.rb
CHANGED
@@ -98,7 +98,8 @@ describe FbGraph2::Auth do
|
|
98
98
|
grant_type: 'authorization_code',
|
99
99
|
code: '8d60d684082d56732671e170.1-579612276|7jdVZz2SK5F6oH-CmEAkYeZnV10',
|
100
100
|
client_id: 'client_id',
|
101
|
-
client_secret: 'client_secret'
|
101
|
+
client_secret: 'client_secret',
|
102
|
+
redirect_uri: ''
|
102
103
|
} do
|
103
104
|
instance.from_cookie token
|
104
105
|
end
|
@@ -118,7 +119,8 @@ describe FbGraph2::Auth do
|
|
118
119
|
grant_type: 'authorization_code',
|
119
120
|
code: '8d60d684082d56732671e170.1-579612276|7jdVZz2SK5F6oH-CmEAkYeZnV10',
|
120
121
|
client_id: 'client_id',
|
121
|
-
client_secret: 'client_secret'
|
122
|
+
client_secret: 'client_secret',
|
123
|
+
redirect_uri: ''
|
122
124
|
} do
|
123
125
|
instance.from_cookie cookie
|
124
126
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nov matake
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -493,7 +493,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
493
493
|
version: '0'
|
494
494
|
requirements: []
|
495
495
|
rubyforge_project:
|
496
|
-
rubygems_version: 2.
|
496
|
+
rubygems_version: 2.5.1
|
497
497
|
signing_key:
|
498
498
|
specification_version: 4
|
499
499
|
summary: Facebook Graph API v2.x Wrapper in Ruby
|