fb_graph 1.6.4 → 1.6.5

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.
@@ -243,69 +243,6 @@ Not tested well yet.
243
243
  Sample is here.
244
244
  https://gist.github.com/752914
245
245
 
246
- == Documents
247
-
248
- Currently fb_graph isn't so well documented.
249
-
250
- I'm continuously updating RDoc now, but writing all documents <b>in English</b> is heavy task for me.
251
-
252
- Please see RDoc.info (http://rdoc.info/github/nov/fb_graph), and if the document is missing or hard to understand, please contact me on github.
253
-
254
- I'll add more documents or sample code.
255
-
256
- === Objects
257
-
258
- * FbGraph::Album[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Album]
259
- * FbGraph::Application[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Application]
260
- * FbGraph::Checkin[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Checkin]
261
- * FbGraph::Comment[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Comment]
262
- * FbGraph::Event[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Event]
263
- * FbGraph::Group[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Group]
264
- * FbGraph::Insight[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Insight]
265
- * FbGraph::Link[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Link]
266
- * FbGraph::Note[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Note]
267
- * FbGraph::Page[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Page]
268
- * FbGraph::Photo[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Photo]
269
- * FbGraph::Post[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Post]
270
- * FbGraph::Status[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Status]
271
- * FbGraph::Subscription[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Subscription]
272
- * FbGraph::User[http://rdoc.info/github/nov/fb_graph/master/FbGraph/User]
273
- * FbGraph::Video[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Video]
274
-
275
- === Connections
276
-
277
- * FbGraph::Connections::Accounts[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Accounts]
278
- * FbGraph::Connections::Activities[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Activities]
279
- * FbGraph::Connections::Albums[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Albums]
280
- * FbGraph::Connections::Attending[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Attending]
281
- * FbGraph::Connections::Books[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Books]
282
- * FbGraph::Connections::Checkins[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Checkins]
283
- * FbGraph::Connections::Comments[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Comments]
284
- * FbGraph::Connections::Declined[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Declined]
285
- * FbGraph::Connections::Events[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Events]
286
- * FbGraph::Connections::Feed[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Feed]
287
- * FbGraph::Connections::Friends[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Friends]
288
- * FbGraph::Connections::Groups[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Groups]
289
- * FbGraph::Connections::Home[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Home]
290
- * FbGraph::Connections::Insights[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Insights]
291
- * FbGraph::Connections::Interests[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Interests]
292
- * FbGraph::Connections::Invited[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Invited]
293
- * FbGraph::Connections::Likes[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Likes]
294
- * FbGraph::Connections::Links[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Links]
295
- * FbGraph::Connections::Maybe[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Maybe]
296
- * FbGraph::Connections::Members[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Members]
297
- * FbGraph::Connections::Movies[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Movies]
298
- * FbGraph::Connections::Music[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Music]
299
- * FbGraph::Connections::Noreply[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Noreply]
300
- * FbGraph::Connections::Notes[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Notes]
301
- * FbGraph::Connections::Photos[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Photos]
302
- * FbGraph::Connections::Picture[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Picture]
303
- * FbGraph::Connections::Statuses[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Statuses]
304
- * FbGraph::Connections::Subscriptions[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Subscriptions]
305
- * FbGraph::Connections::Tagged[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Tagged]
306
- * FbGraph::Connections::Television[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Television]
307
- * FbGraph::Connections::Videos[http://rdoc.info/github/nov/fb_graph/master/FbGraph/Connections/Videos]
308
-
309
246
  == Note on Patches/Pull Requests
310
247
 
311
248
  * Fork the project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.4
1
+ 1.6.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.6.4"
8
+ s.version = "1.6.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
12
- s.date = %q{2011-03-30}
12
+ s.date = %q{2011-04-01}
13
13
  s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
14
14
  s.email = %q{nov@matake.jp}
15
15
  s.extra_rdoc_files = [
@@ -71,6 +71,7 @@ require 'fb_graph/insight'
71
71
  require 'fb_graph/link'
72
72
  require 'fb_graph/message'
73
73
  require 'fb_graph/note'
74
+ require 'fb_graph/order'
74
75
  require 'fb_graph/page'
75
76
  require 'fb_graph/photo'
76
77
  require 'fb_graph/place'
@@ -5,6 +5,7 @@ module FbGraph
5
5
  posts = self.connection(:feed, options)
6
6
  posts.map! do |post|
7
7
  Post.new(post.delete(:id), post.merge(
8
+ :context => self.class,
8
9
  :access_token => options[:access_token] || self.access_token
9
10
  ))
10
11
  end
@@ -20,8 +20,17 @@ module FbGraph
20
20
  Collection.new(attributes[:to]).each do |to|
21
21
  @to << if to[:category]
22
22
  Page.new(to.delete(:id), to)
23
+ elsif to[:start_time]
24
+ Event.new(to.delete(:id), to)
25
+ elsif to[:version]
26
+ Group.new(to.delete(:id), to)
23
27
  else
24
- User.new(to.delete(:id), to)
28
+ case attributes[:context]
29
+ when Application
30
+ Application.new(to.delete(:id), to)
31
+ else
32
+ User.new(to.delete(:id), to)
33
+ end
25
34
  end
26
35
  end
27
36
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 6
9
- - 4
10
- version: 1.6.4
9
+ - 5
10
+ version: 1.6.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-30 00:00:00 +09:00
18
+ date: 2011-04-01 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency