fgraph 0.1.1 → 0.1.2

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.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :build:
5
5
  :minor: 1
data/lib/fgraph/client.rb CHANGED
@@ -33,8 +33,8 @@ module FGraph
33
33
  @options = options
34
34
  end
35
35
 
36
- def oauth_authorize_url(redirect_uri)
37
- FGraph.oauth_authorize_url(self.options[:client_id], redirect_uri)
36
+ def oauth_authorize_url(redirect_uri, options={})
37
+ FGraph.oauth_authorize_url(self.options[:client_id], redirect_uri, options)
38
38
  end
39
39
 
40
40
  def oauth_access_token(redirect_uri, code)
@@ -19,8 +19,10 @@ class ClientTest < Test::Unit::TestCase
19
19
 
20
20
  context "FGraph::Client#oauth_authorize_url" do
21
21
  should "call FGraph.oauth_authorize_url with :client_id option" do
22
- FGraph.expects(:oauth_authorize_url).with(FACEBOOK_API_KEY, FACEBOOK_OAUTH_REDIRECT_URI)
23
- fb_client.oauth_authorize_url(FACEBOOK_OAUTH_REDIRECT_URI)
22
+ FGraph.expects(:oauth_authorize_url).with(FACEBOOK_API_KEY, FACEBOOK_OAUTH_REDIRECT_URI, {
23
+ :scope => 'user_photos'
24
+ })
25
+ fb_client.oauth_authorize_url(FACEBOOK_OAUTH_REDIRECT_URI, :scope => 'user_photos')
24
26
  end
25
27
  end
26
28
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Herryanto Siatono