fb_graph 2.4.17 → 2.4.18

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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fb_graph (2.4.16)
4
+ fb_graph (2.4.17)
5
5
  httpclient (>= 2.2.0.2)
6
6
  rack-oauth2 (>= 0.14.4)
7
7
  tzinfo
@@ -40,7 +40,7 @@ GEM
40
40
  hike (1.2.1)
41
41
  httpclient (2.2.5)
42
42
  i18n (0.6.0)
43
- journey (1.0.3)
43
+ journey (1.0.4)
44
44
  json (1.7.3)
45
45
  multi_json (1.3.6)
46
46
  rack (1.4.1)
@@ -56,14 +56,14 @@ GEM
56
56
  rack-test (0.6.1)
57
57
  rack (>= 1.0)
58
58
  rake (0.9.2.2)
59
- rspec (2.10.0)
60
- rspec-core (~> 2.10.0)
61
- rspec-expectations (~> 2.10.0)
62
- rspec-mocks (~> 2.10.0)
63
- rspec-core (2.10.1)
64
- rspec-expectations (2.10.0)
59
+ rspec (2.11.0)
60
+ rspec-core (~> 2.11.0)
61
+ rspec-expectations (~> 2.11.0)
62
+ rspec-mocks (~> 2.11.0)
63
+ rspec-core (2.11.0)
64
+ rspec-expectations (2.11.1)
65
65
  diff-lcs (~> 1.1.3)
66
- rspec-mocks (2.10.1)
66
+ rspec-mocks (2.11.1)
67
67
  sprockets (2.1.3)
68
68
  hike (~> 1.2)
69
69
  rack (~> 1.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.17
1
+ 2.4.18
@@ -7,7 +7,12 @@ module FbGraph
7
7
  account[:access_token] ||= options[:access_token] || self.access_token
8
8
  case self
9
9
  when User
10
- Page.new account[:id], account
10
+ if account[:category] == 'Application'
11
+ account.delete(:category)
12
+ Application.new account[:id], account
13
+ else
14
+ Page.new account[:id], account
15
+ end
11
16
  when Application
12
17
  TestUser.new account[:id], account
13
18
  end
data/lib/fb_graph/page.rb CHANGED
@@ -24,7 +24,7 @@ module FbGraph
24
24
  include Connections::Videos
25
25
  extend Searchable
26
26
 
27
- attr_accessor :name, :username, :category, :like_count, :talking_about_count
27
+ attr_accessor :name, :username, :category, :like_count, :talking_about_count, :perms
28
28
 
29
29
  def initialize(identifier, attributes = {})
30
30
  super
@@ -32,6 +32,7 @@ module FbGraph
32
32
  self.send :"#{key}=", attributes[key]
33
33
  end
34
34
  @like_count = attributes[:likes] || attributes[:fan_count]
35
+ @perms = attributes[:perms]
35
36
  end
36
37
  end
37
38
  end
data/lib/fb_graph/post.rb CHANGED
@@ -6,7 +6,7 @@ module FbGraph
6
6
  include Connections::Likes::Likable
7
7
  extend Searchable
8
8
 
9
- attr_accessor :from, :to, :with_tags, :message, :message_tags, :picture, :link, :name, :caption, :description, :source, :properties, :icon, :actions, :privacy, :type, :graph_object_id, :application, :targeting, :created_time, :updated_time, :story, :story_tags
9
+ attr_accessor :from, :to, :with_tags, :message, :message_tags, :picture, :link, :name, :caption, :description, :source, :properties, :icon, :actions, :privacy, :type, :graph_object_id, :application, :targeting, :created_time, :updated_time, :story, :story_tags, :place
10
10
 
11
11
  def initialize(identifier, attributes = {})
12
12
  super
@@ -43,7 +43,7 @@ module FbGraph
43
43
  end
44
44
  @message = attributes[:message]
45
45
  @message_tags = []
46
- if message_tags = attributes[:message_tags]
46
+ if (message_tags = attributes[:message_tags])
47
47
  message_tags.each do |index, message_tag|
48
48
  message_tag.each do |_message_tag_|
49
49
  @message_tags << TaggedObject.new(_message_tag_[:id], _message_tag_)
@@ -103,6 +103,16 @@ module FbGraph
103
103
  end
104
104
  end
105
105
  end
106
+ if (place = attributes[:place])
107
+ @place = case place
108
+ when Place
109
+ place
110
+ when String, Integer
111
+ Place.new(place)
112
+ when Hash
113
+ Place.new(place[:id], place)
114
+ end
115
+ end
106
116
 
107
117
  # cached connection
108
118
  cache_collections attributes, :comments, :likes
@@ -45,7 +45,7 @@ describe FbGraph::Achievement do
45
45
 
46
46
  describe '#destroy' do
47
47
  it 'should call DELETE /:app_id/achievements' do
48
- expect { achievement.destroy }.should request_to('134145643294322/achievements', :delete)
48
+ expect { achievement.destroy }.to request_to('134145643294322/achievements', :delete)
49
49
  end
50
50
 
51
51
  it 'should delete achievement' do
@@ -78,7 +78,7 @@ describe FbGraph::Album do
78
78
 
79
79
  context 'otherwise' do
80
80
  it do
81
- expect { album.picture }.should raise_error(FbGraph::Unauthorized)
81
+ expect { album.picture }.to raise_error(FbGraph::Unauthorized)
82
82
  end
83
83
  end
84
84
  end
@@ -23,9 +23,7 @@ describe FbGraph::Auth do
23
23
  {:cookie => 'invalid'}
24
24
  end
25
25
  it 'should raise FbGraph::VerificationFailed' do
26
- expect do
27
- auth
28
- end.should raise_exception(FbGraph::Auth::VerificationFailed)
26
+ expect { auth }.to raise_exception(FbGraph::Auth::VerificationFailed)
29
27
  end
30
28
  end
31
29
 
@@ -35,9 +33,7 @@ describe FbGraph::Auth do
35
33
  end
36
34
 
37
35
  it 'should raise FbGraph::VerificationFailed' do
38
- expect do
39
- auth
40
- end.should raise_exception(FbGraph::Auth::VerificationFailed)
36
+ expect { auth }.to raise_exception(FbGraph::Auth::VerificationFailed)
41
37
  end
42
38
  end
43
39
 
@@ -73,9 +69,7 @@ describe FbGraph::Auth do
73
69
  end
74
70
 
75
71
  it 'should exchange code with access token' do
76
- expect do
77
- auth.from_cookie(cookie)
78
- end.should request_to '/oauth/access_token', :post
72
+ expect { auth.from_cookie(cookie) }.to request_to '/oauth/access_token', :post
79
73
  end
80
74
 
81
75
  it 'should setup user and access_token' do
@@ -14,7 +14,7 @@ describe FbGraph::Connections::Accounts do
14
14
  end
15
15
 
16
16
  context 'when access_token is given' do
17
- it 'should return accounts as FbGraph::Page' do
17
+ it 'should return accounts as FbGraph::Page or FbGraph::Application' do
18
18
  mock_graph :get, 'matake/accounts', 'users/accounts/matake_private', :access_token => 'access_token' do
19
19
  accounts = FbGraph::User.new('matake', :access_token => 'access_token').accounts
20
20
  accounts.class.should == FbGraph::Connection
@@ -22,11 +22,27 @@ describe FbGraph::Connections::Accounts do
22
22
  '140478125968442',
23
23
  :access_token => 'access_token',
24
24
  :name => 'OAuth.jp',
25
- :category => 'Technology'
25
+ :category => 'Community organization',
26
+ :perms => [
27
+ "ADMINISTER",
28
+ "EDIT_PROFILE",
29
+ "CREATE_CONTENT",
30
+ "MODERATE_CONTENT",
31
+ "CREATE_ADS",
32
+ "BASIC_ADMIN"
33
+ ]
26
34
  )
27
- accounts.each do |account|
35
+ accounts.last.should == FbGraph::Application.new(
36
+ '159306934123399',
37
+ :access_token => 'access_token',
38
+ :name => 'Rack::OAuth2 Sample'
39
+ )
40
+ accounts[0, 9].each do |account|
28
41
  account.should be_instance_of(FbGraph::Page)
29
42
  end
43
+ accounts[9, 4].each do |account|
44
+ account.should be_instance_of(FbGraph::Application)
45
+ end
30
46
  end
31
47
  end
32
48
 
@@ -44,9 +44,7 @@ describe FbGraph::Connections::AdGroupStats, '#ad_group_stats' do
44
44
  it 'should use adcampaignstats as connection name' do
45
45
  mock_graph :get, 'act_11223344/adgroupstats', 'ad_accounts/ad_group_stats/test_ad_group_stats', :access_token => 'access_token' do
46
46
  ad_group_stats = FbGraph::AdAccount.new('act_11223344', :access_token => 'access_token').ad_group_stats
47
- expect do
48
- ad_group_stats.next
49
- end.should request_to 'act_11223344/adgroupstats'
47
+ expect { ad_group_stats.next }.to request_to 'act_11223344/adgroupstats'
50
48
  end
51
49
  end
52
50
  end
@@ -95,5 +95,30 @@ describe FbGraph::Connections::Feed, '#feed!' do
95
95
  end
96
96
  end
97
97
  end
98
+
99
+ context 'when place is given as page_id' do
100
+ it 'should have Place' do
101
+ mock_graph :post, 'matake/feed', 'users/feed/post_with_valid_access_token', :access_token => 'access_token', :params => {
102
+ :message => 'hello',
103
+ :place => 'place_page_id'
104
+ } do
105
+ post = FbGraph::User.new('matake', :access_token => 'access_token').feed!(:message => 'hello', :place => 'place_page_id')
106
+ post.place.should == FbGraph::Page.new('place_page_id')
107
+ end
108
+ end
109
+ end
110
+
111
+ context 'when place is given as FbGraph::Place' do
112
+ it 'should have Place' do
113
+ mock_graph :post, 'matake/feed', 'users/feed/post_with_valid_access_token', :access_token => 'access_token', :params => {
114
+ :message => 'hello',
115
+ :place => 'place_page_id'
116
+ } do
117
+ place = FbGraph::Place.new('place_page_id')
118
+ post = FbGraph::User.new('matake', :access_token => 'access_token').feed!(:message => 'hello', :place => place)
119
+ post.place.should == place
120
+ end
121
+ end
122
+ end
98
123
  end
99
124
  end
@@ -94,8 +94,8 @@ describe FbGraph::Connections::Insights do
94
94
  it 'should used for pagination' do
95
95
  mock_graph :get, 'FbGraph/insights/page_like_adds/day', 'pages/insights/page_like_adds/day/FbGraph_private', :access_token => 'access_token' do
96
96
  insights = FbGraph::Page.new('FbGraph').insights(:access_token => 'access_token', :metrics => :page_like_adds, :period => :day)
97
- expect { insights.next }.should request_to 'FbGraph/insights/page_like_adds/day?access_token=access_token&since=1292065709&until=1292324909'
98
- expect { insights.previous }.should request_to 'FbGraph/insights/page_like_adds/day?access_token=access_token&since=1291547309&until=1291806509'
97
+ expect { insights.next }.to request_to 'FbGraph/insights/page_like_adds/day?access_token=access_token&since=1292065709&until=1292324909'
98
+ expect { insights.previous }.to request_to 'FbGraph/insights/page_like_adds/day?access_token=access_token&since=1291547309&until=1291806509'
99
99
  end
100
100
  end
101
101
  end
@@ -24,9 +24,7 @@ describe FbGraph::Connections::Questions do
24
24
  :options => ['Yes', 'Yes!', 'Yes!!']
25
25
  )
26
26
  question.should be_instance_of(FbGraph::Question)
27
- expect do
28
- question.question_options
29
- end.should request_to "#{question.identifier}/options"
27
+ expect { question.question_options }.to request_to "#{question.identifier}/options"
30
28
  end
31
29
  end
32
30
  end
@@ -33,7 +33,7 @@ describe FbGraph::Connections::Settings do
33
33
 
34
34
  context 'when no_cache specified' do
35
35
  it 'should request API' do
36
- expect { page.send(:"#{setting}?", :no_cache => true) }.should request_to 'page_id/settings'
36
+ expect { page.send(:"#{setting}?", :no_cache => true) }.to request_to 'page_id/settings'
37
37
  end
38
38
  end
39
39
  end
@@ -10,10 +10,10 @@ describe FbGraph::Connections::Tags do
10
10
  describe '#tags' do
11
11
  context 'when cached' do
12
12
  it 'should not make request' do
13
- expect { photo.tags }.should_not request_to "#{photo.identifier}/tags"
13
+ expect { photo.tags }.not_to request_to "#{photo.identifier}/tags"
14
14
  end
15
15
  it 'should make request when any options are specified' do
16
- expect { photo.tags(:no_cache => true) }.should request_to "#{photo.identifier}/tags"
16
+ expect { photo.tags(:no_cache => true) }.to request_to "#{photo.identifier}/tags"
17
17
  end
18
18
  end
19
19
  end
@@ -23,7 +23,7 @@ describe FbGraph::Connections::Tags do
23
23
  it 'should post a tag' do
24
24
  expect do
25
25
  photo.tag!(:to => 'matake', :x => 50, :y => 50)
26
- end.should request_to "#{photo.identifier}/tags", :post
26
+ end.to request_to "#{photo.identifier}/tags", :post
27
27
  end
28
28
  end
29
29
  end
@@ -57,7 +57,7 @@ describe FbGraph::Node do
57
57
  params = node.send :build_params, :upload => upload
58
58
  (params[:upload].equal? tmpfile).should be_true
59
59
  # NOTE: For some reason, below fails with RSpec 2.10.0
60
- # params[:upload].should be_equal tmpfile
60
+ # params[:upload].should == tmpfile
61
61
  end
62
62
  end
63
63
 
@@ -84,7 +84,7 @@ describe FbGraph::Node do
84
84
  node.send :handle_response do
85
85
  HTTP::Message.new_response 'invalid'
86
86
  end
87
- end.should raise_error FbGraph::Exception
87
+ end.to raise_error FbGraph::Exception
88
88
  end
89
89
  end
90
90
 
@@ -36,7 +36,7 @@ describe FbGraph::Order do
36
36
 
37
37
  describe '#settle!' do
38
38
  it do
39
- expect { order.settle! }.should request_to order.identifier, :post
39
+ expect { order.settle! }.to request_to order.identifier, :post
40
40
  end
41
41
 
42
42
  it 'I have never succeeded this call yet'
@@ -44,7 +44,7 @@ describe FbGraph::Order do
44
44
 
45
45
  describe '#refund!' do
46
46
  it do
47
- expect { order.refund! }.should request_to order.identifier, :post
47
+ expect { order.refund! }.to request_to order.identifier, :post
48
48
  end
49
49
 
50
50
  it 'should return true' do
@@ -58,7 +58,7 @@ describe FbGraph::Order do
58
58
 
59
59
  describe '#cancel!' do
60
60
  it do
61
- expect { order.cancel! }.should request_to order.identifier, :post
61
+ expect { order.cancel! }.to request_to order.identifier, :post
62
62
  end
63
63
 
64
64
  it 'I have never succeeded this call yet'
@@ -197,6 +197,21 @@ describe FbGraph::Post, '#fetch' do
197
197
  end
198
198
  end
199
199
 
200
+ context 'when include "place"' do
201
+ it 'should include place as Venue' do
202
+ mock_graph :get, 'post_id', 'posts/with_place', :access_token => 'access_token' do
203
+ post = FbGraph::Post.fetch('post_id', :access_token => 'access_token')
204
+ place = post.place
205
+ place.should be_instance_of FbGraph::Place
206
+ place.identifier.should == '100563866688613'
207
+ place.name.should == 'Kawasaki-shi, Kanagawa, Japan'
208
+ location = place.location
209
+ location.should be_instance_of FbGraph::Venue
210
+ location.latitude.should == 35.5167
211
+ location.longitude.should == 139.7
212
+ end
213
+ end
214
+ end
200
215
  end
201
216
 
202
217
  describe FbGraph::Post, '#to' do
@@ -39,7 +39,7 @@ describe FbGraph::UserAchievement do
39
39
 
40
40
  describe '#destroy' do
41
41
  it 'should call DELETE /:app_id/achievements' do
42
- expect { achievement.destroy }.should request_to('10150351898227277/achievements', :delete)
42
+ expect { achievement.destroy }.to request_to('10150351898227277/achievements', :delete)
43
43
  end
44
44
 
45
45
  it 'should delete achievement' do
@@ -39,11 +39,17 @@ describe FbGraph do
39
39
  before do
40
40
  FbGraph.http_config do |config|
41
41
  config.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE
42
+ config.connect_timeout = 30
43
+ config.send_timeout = 40
44
+ config.receive_timeout = 60
42
45
  end
43
46
  end
44
47
  it 'should configure Rack::OAuth2 and FbGraph http_client' do
45
48
  [Rack::OAuth2, FbGraph].each do |klass|
46
49
  klass.http_client.ssl_config.verify_mode.should == OpenSSL::SSL::VERIFY_NONE
50
+ klass.http_client.connect_timeout.should == 30
51
+ klass.http_client.send_timeout.should == 40
52
+ klass.http_client.receive_timeout.should == 60
47
53
  end
48
54
  end
49
55
  end
@@ -0,0 +1,33 @@
1
+ {
2
+ "id": "579612276_10151083802022277",
3
+ "from": {
4
+ "name": "Nov Matake",
5
+ "id": "579612276"
6
+ },
7
+ "message": "Sample post for FbGraph::Post#place support.",
8
+ "actions": [{
9
+ "name": "Comment",
10
+ "link": "http:\/\/www.facebook.com\/579612276\/posts\/10151083802022277"
11
+ }, {
12
+ "name": "Like",
13
+ "link": "http:\/\/www.facebook.com\/579612276\/posts\/10151083802022277"
14
+ }],
15
+ "privacy": {
16
+ "description": "Public",
17
+ "value": "EVERYONE"
18
+ },
19
+ "place": {
20
+ "id": "100563866688613",
21
+ "name": "Kawasaki-shi, Kanagawa, Japan",
22
+ "location": {
23
+ "latitude": 35.5167,
24
+ "longitude": 139.7
25
+ }
26
+ },
27
+ "type": "status",
28
+ "created_time": "2012-07-18T14:59:26+0000",
29
+ "updated_time": "2012-07-18T14:59:26+0000",
30
+ "comments": {
31
+ "count": 0
32
+ }
33
+ }
@@ -1,14 +1,157 @@
1
1
  {
2
- "data": [
3
- {
4
- "name": "OAuth.jp",
5
- "category": "Technology",
6
- "id": "140478125968442"
7
- },
8
- {
9
- "name": "FbGraph",
10
- "category": "Technology",
11
- "id": "117513961602338"
12
- }
13
- ]
2
+ "data": [
3
+ {
4
+ "name": "OAuth.jp",
5
+ "access_token": "access_token",
6
+ "category": "Community organization",
7
+ "id": "140478125968442",
8
+ "perms": [
9
+ "ADMINISTER",
10
+ "EDIT_PROFILE",
11
+ "CREATE_CONTENT",
12
+ "MODERATE_CONTENT",
13
+ "CREATE_ADS",
14
+ "BASIC_ADMIN"
15
+ ]
16
+ },
17
+ {
18
+ "name": "Doshisha High School",
19
+ "access_token": "access_token",
20
+ "category": "School",
21
+ "id": "168218936549964",
22
+ "perms": [
23
+ "ADMINISTER",
24
+ "EDIT_PROFILE",
25
+ "CREATE_CONTENT",
26
+ "MODERATE_CONTENT",
27
+ "CREATE_ADS",
28
+ "BASIC_ADMIN"
29
+ ]
30
+ },
31
+ {
32
+ "name": "FbGraph",
33
+ "access_token": "access_token",
34
+ "category": "Software",
35
+ "id": "117513961602338",
36
+ "perms": [
37
+ "ADMINISTER",
38
+ "EDIT_PROFILE",
39
+ "CREATE_CONTENT",
40
+ "MODERATE_CONTENT",
41
+ "CREATE_ADS",
42
+ "BASIC_ADMIN"
43
+ ]
44
+ },
45
+ {
46
+ "name": "Identity Conference #idcon",
47
+ "access_token": "access_token",
48
+ "category": "Community",
49
+ "id": "367989543259757",
50
+ "perms": [
51
+ "ADMINISTER",
52
+ "EDIT_PROFILE",
53
+ "CREATE_CONTENT",
54
+ "MODERATE_CONTENT",
55
+ "CREATE_ADS",
56
+ "BASIC_ADMIN"
57
+ ]
58
+ },
59
+ {
60
+ "name": "OpenID Foundation Japan",
61
+ "access_token": "access_token",
62
+ "category": "Non-profit organization",
63
+ "id": "157574337644417",
64
+ "perms": [
65
+ "ADMINISTER",
66
+ "EDIT_PROFILE",
67
+ "CREATE_CONTENT",
68
+ "MODERATE_CONTENT",
69
+ "CREATE_ADS",
70
+ "BASIC_ADMIN"
71
+ ]
72
+ },
73
+ {
74
+ "name": "Rack::OAuth2",
75
+ "access_token": "access_token",
76
+ "category": "Software",
77
+ "id": "141477809244105",
78
+ "perms": [
79
+ "ADMINISTER",
80
+ "EDIT_PROFILE",
81
+ "CREATE_CONTENT",
82
+ "MODERATE_CONTENT",
83
+ "CREATE_ADS",
84
+ "BASIC_ADMIN"
85
+ ]
86
+ },
87
+ {
88
+ "name": "OpenID/OAuth in Kyoto",
89
+ "access_token": "access_token",
90
+ "category": "Community organization",
91
+ "id": "141923172537216",
92
+ "perms": [
93
+ "ADMINISTER",
94
+ "EDIT_PROFILE",
95
+ "CREATE_CONTENT",
96
+ "MODERATE_CONTENT",
97
+ "CREATE_ADS",
98
+ "BASIC_ADMIN"
99
+ ]
100
+ },
101
+ {
102
+ "name": "OpenID Connect Ruby",
103
+ "access_token": "access_token",
104
+ "category": "Software",
105
+ "id": "134681459957370",
106
+ "perms": [
107
+ "ADMINISTER",
108
+ "EDIT_PROFILE",
109
+ "CREATE_CONTENT",
110
+ "MODERATE_CONTENT",
111
+ "CREATE_ADS",
112
+ "BASIC_ADMIN"
113
+ ]
114
+ },
115
+ {
116
+ "name": "OpenID Connect Community",
117
+ "access_token": "access_token",
118
+ "category": "App page",
119
+ "id": "271985462898291",
120
+ "perms": [
121
+ "ADMINISTER",
122
+ "EDIT_PROFILE",
123
+ "CREATE_CONTENT",
124
+ "MODERATE_CONTENT",
125
+ "CREATE_ADS",
126
+ "BASIC_ADMIN"
127
+ ]
128
+ },
129
+ {
130
+ "name": "gem sample",
131
+ "access_token": "access_token",
132
+ "category": "Application",
133
+ "id": "210798282372757"
134
+ },
135
+ {
136
+ "name": "Localhost",
137
+ "access_token": "access_token",
138
+ "category": "Application",
139
+ "id": "158245434257042"
140
+ },
141
+ {
142
+ "name": "OpenID Connect Sample",
143
+ "access_token": "access_token",
144
+ "category": "Application",
145
+ "id": "248378975186078"
146
+ },
147
+ {
148
+ "name": "Rack::OAuth2 Sample",
149
+ "access_token": "access_token",
150
+ "category": "Application",
151
+ "id": "159306934123399"
152
+ }
153
+ ],
154
+ "paging": {
155
+ "next": "https://graph.facebook.com/579612276/accounts?value=1&redirect=1&limit=5000&offset=5000"
156
+ }
14
157
  }
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,6 @@ if RUBY_VERSION >= '1.9'
2
2
  require 'cover_me'
3
3
  end
4
4
 
5
- require 'fb_graph'
6
5
  require 'rspec'
6
+ require 'fb_graph'
7
7
  require 'helpers/webmock_helper'
metadata CHANGED
@@ -1,152 +1,139 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
- version: !ruby/object:Gem::Version
4
- version: 2.4.17
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 4
8
+ - 18
9
+ version: 2.4.18
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - nov matake
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-06-13 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-07-19 00:00:00 +09:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: httpclient
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 2.2.0.2
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 2
30
+ - 0
31
+ - 2
29
32
  version: 2.2.0.2
30
- - !ruby/object:Gem::Dependency
31
- name: rack-oauth2
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 0.14.4
38
33
  type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rack-oauth2
39
37
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 14
45
+ - 4
45
46
  version: 0.14.4
46
- - !ruby/object:Gem::Dependency
47
- name: tzinfo
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
47
  type: :runtime
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: tzinfo
55
51
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
58
+ version: "0"
59
+ type: :runtime
60
+ version_requirements: *id003
61
+ - !ruby/object:Gem::Dependency
63
62
  name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0.8'
70
- type: :development
71
63
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0.8'
78
- - !ruby/object:Gem::Dependency
79
- name: cover_me
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: 1.2.0
64
+ requirement: &id004 !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
70
+ - 8
71
+ version: "0.8"
86
72
  type: :development
73
+ version_requirements: *id004
74
+ - !ruby/object:Gem::Dependency
75
+ name: rcov
87
76
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: 1.2.0
94
- - !ruby/object:Gem::Dependency
95
- name: rspec
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '2'
77
+ requirement: &id005 !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
83
+ - 9
84
+ version: "0.9"
102
85
  type: :development
86
+ version_requirements: *id005
87
+ - !ruby/object:Gem::Dependency
88
+ name: rspec
103
89
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '2'
110
- - !ruby/object:Gem::Dependency
111
- name: webmock
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: 1.6.2
90
+ requirement: &id006 !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ segments:
95
+ - 2
96
+ version: "2"
118
97
  type: :development
98
+ version_requirements: *id006
99
+ - !ruby/object:Gem::Dependency
100
+ name: webmock
119
101
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
102
+ requirement: &id007 !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ segments:
107
+ - 1
108
+ - 6
109
+ - 2
125
110
  version: 1.6.2
126
- - !ruby/object:Gem::Dependency
127
- name: actionpack
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: 3.0.6
134
111
  type: :development
112
+ version_requirements: *id007
113
+ - !ruby/object:Gem::Dependency
114
+ name: actionpack
135
115
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
116
+ requirement: &id008 !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ segments:
121
+ - 3
122
+ - 0
123
+ - 6
141
124
  version: 3.0.6
125
+ type: :development
126
+ version_requirements: *id008
142
127
  description: A full-stack Facebook Graph API wrapper in Ruby.
143
128
  email: nov@matake.jp
144
129
  executables: []
130
+
145
131
  extensions: []
146
- extra_rdoc_files:
132
+
133
+ extra_rdoc_files:
147
134
  - LICENSE
148
135
  - README.rdoc
149
- files:
136
+ files:
150
137
  - .document
151
138
  - .gitignore
152
139
  - .rspec
@@ -581,6 +568,7 @@ files:
581
568
  - spec/mock_json/posts/to_event.json
582
569
  - spec/mock_json/posts/to_group.json
583
570
  - spec/mock_json/posts/with_message.json
571
+ - spec/mock_json/posts/with_place.json
584
572
  - spec/mock_json/posts/with_story.json
585
573
  - spec/mock_json/query/user/multi_query.json
586
574
  - spec/mock_json/query/user/with_invalid_token.json
@@ -678,32 +666,37 @@ files:
678
666
  - spec/mock_json/users/videos/posted.json
679
667
  - spec/mock_json/videos/private.json
680
668
  - spec/spec_helper.rb
669
+ has_rdoc: true
681
670
  homepage: http://github.com/nov/fb_graph
682
671
  licenses: []
672
+
683
673
  post_install_message:
684
- rdoc_options:
674
+ rdoc_options:
685
675
  - --charset=UTF-8
686
- require_paths:
676
+ require_paths:
687
677
  - lib
688
- required_ruby_version: !ruby/object:Gem::Requirement
689
- none: false
690
- requirements:
691
- - - ! '>='
692
- - !ruby/object:Gem::Version
693
- version: '0'
694
- required_rubygems_version: !ruby/object:Gem::Requirement
695
- none: false
696
- requirements:
697
- - - ! '>='
698
- - !ruby/object:Gem::Version
699
- version: '0'
678
+ required_ruby_version: !ruby/object:Gem::Requirement
679
+ requirements:
680
+ - - ">="
681
+ - !ruby/object:Gem::Version
682
+ segments:
683
+ - 0
684
+ version: "0"
685
+ required_rubygems_version: !ruby/object:Gem::Requirement
686
+ requirements:
687
+ - - ">="
688
+ - !ruby/object:Gem::Version
689
+ segments:
690
+ - 0
691
+ version: "0"
700
692
  requirements: []
693
+
701
694
  rubyforge_project:
702
- rubygems_version: 1.8.24
695
+ rubygems_version: 1.3.6
703
696
  signing_key:
704
697
  specification_version: 3
705
698
  summary: A full-stack Facebook Graph API wrapper in Ruby.
706
- test_files:
699
+ test_files:
707
700
  - spec/fb_graph/achievement_spec.rb
708
701
  - spec/fb_graph/ad_account_spec.rb
709
702
  - spec/fb_graph/ad_campaign_spec.rb
@@ -960,6 +953,7 @@ test_files:
960
953
  - spec/mock_json/posts/to_event.json
961
954
  - spec/mock_json/posts/to_group.json
962
955
  - spec/mock_json/posts/with_message.json
956
+ - spec/mock_json/posts/with_place.json
963
957
  - spec/mock_json/posts/with_story.json
964
958
  - spec/mock_json/query/user/multi_query.json
965
959
  - spec/mock_json/query/user/with_invalid_token.json