fb_graph2 0.7.5 → 0.7.6

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: 5dff2abb98ac745ab5794798b2464f545f264310
4
- data.tar.gz: c1e1bf71b981067e42a5b199c982404126456c74
3
+ metadata.gz: 69ec4e6069e5343761974c392cd95a313291061e
4
+ data.tar.gz: 1c82d7da560affc0a29933248274690645021f9c
5
5
  SHA512:
6
- metadata.gz: 3ea181a68ed183e4845afe6919bb095551242bb1553e8511c75a73cf7e397a71c10efe341f77ee3e81c2e935dde246eba17184ea84360a6e731e0afbaadbe128
7
- data.tar.gz: 13a8b6b2050e946d42af1c58a523e3f6cf49abb83a89b302e2493eecc2d0e02ea6bbaf5ba2a3cc3b904775efa0a3f751c4181cc602a6292b5c842c989a5c9084
6
+ metadata.gz: cf86d72e211fbc961909d732a45c78564203edd6ed5089bc8292610f4015cb8c8bf66b386cff39ee2aa0e2c13b1cd4f16545305f9523f099b6a3c58f83f7daaf
7
+ data.tar.gz: 26b060c6087e06557ffe1451265685b836c14d3d5b8ce2dbe66c1fb22a8e2449952fa48ab0e86bf7f682a2846debda7f71e3a5637bc22e383430a9854da7da9c
data/.travis.yml CHANGED
@@ -1,4 +1,8 @@
1
+ before_install:
2
+ - gem install bundler
3
+
1
4
  rvm:
2
- - 2.0.0
3
- - 2.1.5
4
- - 2.2.0
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.5
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
- def compact_hash_with_blank_redirect_uri(hash)
5
- original_redirect_uri = hash[:redirect_uri]
6
- result = compact_hash_without_blank_redirect_uri hash
7
- if original_redirect_uri
8
- result[:redirect_uri] ||= original_redirect_uri
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
- alias_method_chain :compact_hash, :blank_redirect_uri
15
+ prepend ComcactHashWithBrankRedirect
13
16
  end
14
17
  end
@@ -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.5
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: 2015-12-12 00:00:00.000000000 Z
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.4.5.1
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