fb_graph2 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/fb_graph2/achievement.rb +3 -0
  4. data/lib/fb_graph2/album.rb +6 -0
  5. data/lib/fb_graph2/attribute_assigner.rb +20 -4
  6. data/lib/fb_graph2/comment.rb +17 -0
  7. data/lib/fb_graph2/edge/comments.rb +17 -0
  8. data/lib/fb_graph2/edge/invitable_friends.rb +12 -0
  9. data/lib/fb_graph2/edge/likes.rb +26 -7
  10. data/lib/fb_graph2/edge/notifications.rb +12 -0
  11. data/lib/fb_graph2/edge/permissions.rb +12 -0
  12. data/lib/fb_graph2/edge/photos.rb +18 -0
  13. data/lib/fb_graph2/edge/picture.rb +12 -0
  14. data/lib/fb_graph2/edge/pokes.rb +12 -0
  15. data/lib/fb_graph2/edge/scores.rb +12 -0
  16. data/lib/fb_graph2/edge/shared_posts.rb +13 -0
  17. data/lib/fb_graph2/edge/videos.rb +18 -0
  18. data/lib/fb_graph2/event.rb +3 -6
  19. data/lib/fb_graph2/group.rb +2 -6
  20. data/lib/fb_graph2/node.rb +15 -3
  21. data/lib/fb_graph2/notification.rb +17 -0
  22. data/lib/fb_graph2/page.rb +2 -1
  23. data/lib/fb_graph2/photo.rb +17 -0
  24. data/lib/fb_graph2/post.rb +4 -1
  25. data/lib/fb_graph2/struct.rb +15 -0
  26. data/lib/fb_graph2/struct/action.rb +9 -0
  27. data/lib/fb_graph2/struct/image_source.rb +9 -0
  28. data/lib/fb_graph2/struct/invitable_friend.rb +10 -0
  29. data/lib/fb_graph2/struct/permission.rb +9 -0
  30. data/lib/fb_graph2/struct/picture.rb +9 -0
  31. data/lib/fb_graph2/struct/poke.rb +10 -0
  32. data/lib/fb_graph2/struct/score.rb +11 -0
  33. data/lib/fb_graph2/user.rb +11 -2
  34. data/lib/fb_graph2/video.rb +10 -0
  35. data/spec/fb_graph2/node_spec.rb +38 -0
  36. data/spec/mock_json/error/400/2500.json +7 -0
  37. data/spec/mock_json/error/invalid_format.json +1 -0
  38. data/spec/spec_helper/mock_graph.rb +4 -0
  39. metadata +27 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2611fb2baed301de340cfdbfa644d4f0253ad59a
4
- data.tar.gz: 19d3d36952bc4ddfaef0d53c9e7615274a0937c1
3
+ metadata.gz: 0aada3bb0f27460fa19a74601046d482a0d08117
4
+ data.tar.gz: 5c7342702b69f58154689439912e73afca059111
5
5
  SHA512:
6
- metadata.gz: 3e35b7fd13586d1fff033a477b8778f9f1081f8f6488bc26d0d0ab3eeb135c507a2099a599e9baea5e86bffb3af9d0f6d647750a353abc688555a7fed7eee57d
7
- data.tar.gz: aa88f0f71ebe57734aa1612dae49e32031faa369810959bcd552fc1c16b48456d01751e57acd726403d2dec9544ae7780101a17a195e6a0b82a26e7662463c9f
6
+ metadata.gz: a44c71b1317b8e3c537e17e7511a6a023f355fc7916a5620e113f0e2ee8c8643d990650e4e4bb18b7447570a41891ea201260d21b6d13bc8fe14039ec914b94e
7
+ data.tar.gz: 3956dcb25143d937db3b10597e79fbf72083b0348a7ec81ebe58ad6d271ea68857e2bea5113b868d5409fe7598ef6f3da7280a73e18b2d7c958929ac0d12e28d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,5 +1,8 @@
1
1
  module FbGraph2
2
2
  class Achievement < Node
3
+ include Edge::Comments
4
+ include Edge::Likes::LikeeContext
5
+
3
6
  register_attributes(
4
7
  raw: [:type, :no_feed_story],
5
8
  time: [:publish_time],
@@ -1,5 +1,11 @@
1
1
  module FbGraph2
2
2
  class Album < Node
3
+ include Edge::Comments
4
+ include Edge::Likes::LikeeContext
5
+ include Edge::Picture
6
+ include Edge::Photos
7
+ include Edge::SharedPosts
8
+
3
9
  register_attributes(
4
10
  raw: [:can_upload, :count, :cover_photo, :description, :link, :location, :name, :privacy, :type],
5
11
  time: [:created_time, :updated_time],
@@ -19,8 +19,8 @@ module FbGraph2
19
19
  self.raw_attributes = attributes
20
20
  Array(self.class.registered_attributes).each do |type, keys|
21
21
  keys.each do |key|
22
- raw = attributes[key]
23
- if raw.present?
22
+ if attributes.include? key
23
+ raw = attributes[key]
24
24
  value = case type
25
25
  when :raw
26
26
  raw
@@ -30,22 +30,38 @@ module FbGraph2
30
30
  Time.parse raw
31
31
  when :timestamp
32
32
  Time.at raw
33
+ when :actions
34
+ Collection.new(raw).collect do |_raw_|
35
+ Struct::Action.new _raw_
36
+ end
37
+ when :album
38
+ Album.new raw[:id], raw
33
39
  when :application
34
40
  Application.new raw[:id], raw
41
+ when :comment
42
+ Comment.new raw[:id], raw
43
+ when :group
44
+ Group.new raw[:id], raw
45
+ when :image_sources
46
+ Collection.new(raw).collect do |_raw_|
47
+ Struct::ImageSource.new _raw_
48
+ end
35
49
  when :page
36
50
  Page.new raw[:id], raw
37
51
  when :pages
38
52
  Collection.new(raw).collect do |_raw_|
39
53
  Page.new _raw_[:id], _raw_
40
54
  end
55
+ when :photo
56
+ Photo.new raw[:id], raw
57
+ when :picture
58
+ Struct::Picture.new raw[:data]
41
59
  when :profile
42
60
  as_profile raw
43
61
  when :profiles
44
62
  Collection.new(raw).collect do |_raw_|
45
63
  as_profile _raw_
46
64
  end
47
- when :application
48
- Application.new raw[:id], raw
49
65
  when :user
50
66
  User.new raw[:id], raw
51
67
  else
@@ -0,0 +1,17 @@
1
+ module FbGraph2
2
+ class Comment < Node
3
+ register_attributes(
4
+ raw: [:can_comment, :can_remove, :comment_count, :like_count, :message, :user_likes],
5
+ time: [:created_time],
6
+ user: [:from],
7
+ comment: [:parent],
8
+ profiles: [:message_tags],
9
+ custom: [:attachment]
10
+ )
11
+
12
+ def initialize(id, attributes = {})
13
+ super
14
+ # TODO: handle custom attributes.
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Comments
4
+ def comments(params = {})
5
+ comments = self.edge :comments, params
6
+ comments.collect do |comment|
7
+ Comment.new(comment[:id], comment).authenticate self.access_token
8
+ end
9
+ end
10
+
11
+ def comment!(params = {})
12
+ comment = self.post params, edge: :comments
13
+ Comment.new(comment[:id], comment.merge(params)).authenticate self.access_token
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module InvitableFriends
4
+ def invitable_friends(params = {})
5
+ invitable_friends = self.edge :invitable_friends, params
6
+ invitable_friends.collect do |invitable_friend|
7
+ Struct::InvitableFriend.new invitable_friend
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,16 +1,35 @@
1
1
  module FbGraph2
2
2
  class Edge
3
3
  module Likes
4
- def likes(params = {})
5
- pages = self.edge :likes, params
6
- pages.collect do |page|
7
- Page.new(page[:id], page).authenticate self.access_token
4
+ module LikerContext
5
+ def likes(params = {})
6
+ pages = self.edge :likes, params
7
+ pages.collect do |page|
8
+ Page.new(page[:id], page).authenticate self.access_token
9
+ end
10
+ end
11
+
12
+ def liked?(page_id, params = {})
13
+ pages = self.edge :likes, params, edge_scope: page_id
14
+ pages.present?
8
15
  end
9
16
  end
10
17
 
11
- def liked?(page_id, params = {})
12
- pages = self.edge :likes, params, edge_scope: page_id
13
- pages.present?
18
+ module LikeeContext
19
+ def likes(params = {})
20
+ users = self.edge :likes, params
21
+ users.collect do |user|
22
+ User.new(user[:id], user).authenticate self.access_token
23
+ end
24
+ end
25
+
26
+ def like!(params = {})
27
+ self.post params, edge: :likes
28
+ end
29
+
30
+ def unlike!(params = {})
31
+ self.delete params, edge: :likes
32
+ end
14
33
  end
15
34
  end
16
35
  end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Notifications
4
+ def notifications(params = {})
5
+ notifications = self.edge :notifications, params
6
+ notifications.collect do |notification|
7
+ Notification.new notification[:id], notification
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Permissions
4
+ def permissions(params = {})
5
+ permissions = self.edge :permissions, params
6
+ permissions.collect do |permission|
7
+ Struct::Permission.new permission
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,18 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Photos
4
+ def photos(*args)
5
+ params = args.extract_options!
6
+ photos = self.edge :photos, params, edge_scope: args.first
7
+ photos.collect do |photo|
8
+ Photo.new(photo[:id], photo).authenticate self.access_token
9
+ end
10
+ end
11
+
12
+ def photo!(params = {})
13
+ photo = post params, edge: :photos
14
+ Photo.new(photo[:id], params.merge(photo)).authenticate self.access_token
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Picture
4
+ def picture(*args)
5
+ params = args.extract_options!
6
+ params[:type] = args.first if args.first
7
+ picture = self.get params.merge(redirect: false), edge: :picture
8
+ Struct::Picture.new picture[:data]
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Pokes
4
+ def pokes(params = {})
5
+ pokes = self.edge :pokes, params
6
+ pokes.collect do |poke|
7
+ Struct::Poke.new poke
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Scores
4
+ def scores(params = {})
5
+ scores = self.edge :scores, params
6
+ scores.collect do |score|
7
+ Struct::Score.new score
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module SharedPosts
4
+ def shared_posts(params = {})
5
+ posts = self.edge :posts, params
6
+ posts.collect do |post|
7
+ Post.new(post[:id], post).authenticate self.access_token
8
+ end
9
+ end
10
+ alias_method :sharedposts, :shared_posts
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,18 @@
1
+ module FbGraph2
2
+ class Edge
3
+ module Videos
4
+ def videos(*args)
5
+ params = args.extract_options!
6
+ videos = self.edge :videos, params, edge_scope: args.first
7
+ videos.collect do |video|
8
+ Video.new(video[:id], video).authenticate self.access_token
9
+ end
10
+ end
11
+
12
+ def video!(params = {})
13
+ video = post params, edge: :videos
14
+ Video.new(video[:id], params.merge(video)).authenticate self.access_token
15
+ end
16
+ end
17
+ end
18
+ end
@@ -4,12 +4,9 @@ module FbGraph2
4
4
  raw: [:description, :is_date_only, :location, :name, :privacy, :ticket_uri, :timezone],
5
5
  time: [:end_time, :start_time, :updated_time],
6
6
  page: [:venue],
7
- custom: [:cover, :owner, :parent_group]
7
+ profile: [:owner],
8
+ group: [:parent_group],
9
+ photo: [:cover]
8
10
  )
9
-
10
- def initialize(id, attributes = {})
11
- super
12
- # TODO: handle custom attributes.
13
- end
14
11
  end
15
12
  end
@@ -7,12 +7,8 @@ module FbGraph2
7
7
  :administrator, :bookmark_order, :unread
8
8
  ],
9
9
  time: [:updated_time],
10
- custom: [:cover, :owner, :parent]
10
+ profile: [:owner, :parent],
11
+ photo: [:cover]
11
12
  )
12
-
13
- def initialize(id, attributes = {})
14
- super
15
- # TODO: handle custom attributes.
16
- end
17
13
  end
18
14
  end
@@ -8,7 +8,7 @@ module FbGraph2
8
8
 
9
9
  def initialize(id, attributes = {})
10
10
  self.id = id
11
- assign attributes if respond_to?(:assign)
11
+ assign attributes if respond_to? :assign
12
12
  end
13
13
 
14
14
  def authenticate(access_token)
@@ -36,6 +36,10 @@ module FbGraph2
36
36
  )
37
37
  end
38
38
 
39
+ def destroy(params = {}, options = {})
40
+ delete params, options
41
+ end
42
+
39
43
  protected
40
44
 
41
45
  def http_client
@@ -54,6 +58,12 @@ module FbGraph2
54
58
  end
55
59
  end
56
60
 
61
+ def delete(params = {}, options = {})
62
+ handle_response do
63
+ http_client.delete build_endpoint(options), build_params(params)
64
+ end
65
+ end
66
+
57
67
  private
58
68
 
59
69
  def edge_for(edge, params = {}, options = {})
@@ -75,7 +85,8 @@ module FbGraph2
75
85
 
76
86
  def handle_response
77
87
  response = yield
78
- _response_ = MultiJson.load(response.body).with_indifferent_access
88
+ _response_ = MultiJson.load response.body
89
+ _response_ = _response_.with_indifferent_access if _response_.respond_to? :with_indifferent_access
79
90
  case response.status
80
91
  when 200...300
81
92
  _response_
@@ -84,7 +95,8 @@ module FbGraph2
84
95
  raise response.body
85
96
  end
86
97
  rescue MultiJson::DecodeError
87
- raise Exception.new(response.status, "Unparsable Response: #{response.body}")
98
+ # TODO: better exception structure
99
+ raise response.body
88
100
  end
89
101
  end
90
102
  end
@@ -0,0 +1,17 @@
1
+ module FbGraph2
2
+ class Notification < Node
3
+ register_attributes(
4
+ raw: [:title, :link, :unread],
5
+ time: [:created_time, :updated_time],
6
+ profile: [:from],
7
+ user: [:to],
8
+ application: [:application],
9
+ custom: [:object]
10
+ )
11
+
12
+ def initialize(id, attributes = {})
13
+ super
14
+ # TODO: handle custom attributes.
15
+ end
16
+ end
17
+ end
@@ -12,8 +12,9 @@ module FbGraph2
12
12
  time: [:created_time],
13
13
  date: [:birthday],
14
14
  page: [:best_page],
15
+ photo: [:cover],
15
16
  custom: [
16
- :category_list, :cover, :context, :hours, :location, :parking, :price_range, :restaurant_services,
17
+ :category_list, :context, :hours, :location, :parking, :price_range, :restaurant_services,
17
18
  :restaurant_specialties
18
19
  ]
19
20
  )
@@ -0,0 +1,17 @@
1
+ module FbGraph2
2
+ class Photo < Node
3
+ register_attributes(
4
+ raw: [
5
+ :backdated_time_granularity, :height, :icon, :link, :name, :page_story_id, :picture, :position, :source, :width,
6
+ # NOTE: as cover photo
7
+ :offset_y, :offset_x
8
+ ],
9
+ time: [:backdated_time, :created_time, :updated_time],
10
+ page: [:place],
11
+ profile: [:from],
12
+ album: [:album],
13
+ image_sources: [:images],
14
+ custom: [:name_tags]
15
+ )
16
+ end
17
+ end
@@ -1,5 +1,7 @@
1
1
  module FbGraph2
2
2
  class Post < Node
3
+ include Edge::Likes::LikeeContext
4
+
3
5
  register_attributes(
4
6
  raw: [
5
7
  :caption, :description, :icon, :is_hidden, :link, :message, :name, :object_id, :picture,
@@ -10,8 +12,9 @@ module FbGraph2
10
12
  page: [:place],
11
13
  profile: [:from],
12
14
  profiles: [:to, :with_tags],
15
+ actions: [:actions],
13
16
  custom: [
14
- :actions, :message_tags, :privacy, :properties, :shares, :status_type, :type
17
+ :message_tags, :privacy, :properties, :shares, :status_type, :type
15
18
  ]
16
19
  )
17
20
 
@@ -0,0 +1,15 @@
1
+ module FbGraph2
2
+ class Struct
3
+ def self.inherited(klass)
4
+ klass.include AttributeAssigner
5
+ end
6
+
7
+ def initialize(attributes = {})
8
+ assign attributes if respond_to? :assign
9
+ end
10
+ end
11
+ end
12
+
13
+ Dir[File.join(__dir__, 'struct/*.rb')].each do |file|
14
+ require file
15
+ end
@@ -0,0 +1,9 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class Action < Struct
4
+ register_attributes(
5
+ raw: [:name, :link]
6
+ )
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class ImageSource < Struct
4
+ register_attributes(
5
+ raw: [:height, :source, :width]
6
+ )
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class InvitableFriend < Struct
4
+ register_attributes(
5
+ raw: [:id, :name],
6
+ picture: [:picture]
7
+ )
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class Permission < Struct
4
+ register_attributes(
5
+ raw: [:permission, :status]
6
+ )
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class Picture < Struct
4
+ register_attributes(
5
+ raw: [:url, :is_silhouette, :height, :width]
6
+ )
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class Poke < Struct
4
+ register_attributes(
5
+ time: [:created_time],
6
+ user: [:from, :to]
7
+ )
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ module FbGraph2
2
+ class Struct
3
+ class Score < Struct
4
+ register_attributes(
5
+ raw: [:score],
6
+ user: [:user],
7
+ application: [:application]
8
+ )
9
+ end
10
+ end
11
+ end
@@ -13,14 +13,22 @@ module FbGraph2
13
13
  include Edge::Games
14
14
  include Edge::Home
15
15
  include Edge::Interests
16
- include Edge::Likes
16
+ include Edge::InvitableFriends
17
+ include Edge::Likes::LikerContext
17
18
  include Edge::Links
18
19
  include Edge::Movies
19
20
  include Edge::Music
21
+ include Edge::Notifications
22
+ include Edge::Permissions
23
+ include Edge::Picture
24
+ include Edge::Photos
25
+ include Edge::Pokes
20
26
  include Edge::Posts
27
+ include Edge::Scores
21
28
  include Edge::Statuses
22
29
  include Edge::Tagged
23
30
  include Edge::Television
31
+ include Edge::Videos
24
32
 
25
33
  register_attributes(
26
34
  raw: [
@@ -35,7 +43,8 @@ module FbGraph2
35
43
  page: [:hometown, :location],
36
44
  pages: [:favorite_athletes, :favorite_teams, :inspirational_people, :languages],
37
45
  user: [:significant_other],
38
- custom: [:age_range, :context, :cover, :currency, :education, :work]
46
+ photo: [:cover],
47
+ custom: [:age_range, :context, :currency, :education, :work]
39
48
  )
40
49
 
41
50
  def initialize(id, attributes = {})
@@ -0,0 +1,10 @@
1
+ module FbGraph2
2
+ class Video < Node
3
+ register_attributes(
4
+ raw: [:description, :embed_html, :icon, :length, :name, :picture, :source],
5
+ time: [:created_time, :updated_time],
6
+ profile: [:from],
7
+ custom: [:format, :thumbnails]
8
+ )
9
+ end
10
+ end
@@ -9,6 +9,14 @@ describe FbGraph2::Node do
9
9
  it { should_not respond_to :register_attributes }
10
10
  it { should_not respond_to :registered_attributes }
11
11
  it { should_not respond_to :registered_attributes= }
12
+
13
+ describe '.fetch' do
14
+ it 'should call API' do
15
+ expect do
16
+ klass.fetch 'foo'
17
+ end.to request_to '/foo'
18
+ end
19
+ end
12
20
  end
13
21
 
14
22
  context 'instance' do
@@ -25,5 +33,35 @@ describe FbGraph2::Node do
25
33
  before { instance.authenticate 'access_token' }
26
34
  its(:access_token) { should == 'access_token' }
27
35
  end
36
+
37
+ describe '#handle_response' do
38
+ context 'when error' do
39
+ context 'when valid json' do
40
+ it 'should raise' do
41
+ expect do
42
+ mock_graph :get, 'identifier', 'error/400/2500', status: 400 do
43
+ instance.fetch
44
+ end
45
+ end.to raise_error { |e|
46
+ e.should be_instance_of RuntimeError
47
+ e.message.should == mock_json('error/400/2500')
48
+ }
49
+ end
50
+ end
51
+
52
+ context 'when invalid json' do
53
+ it 'should raise' do
54
+ expect do
55
+ mock_graph :get, 'identifier', 'error/invalid_format', status: 400 do
56
+ instance.fetch
57
+ end
58
+ end.to raise_error { |e|
59
+ e.should be_instance_of RuntimeError
60
+ e.message.should == mock_json('error/invalid_format')
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
28
66
  end
29
67
  end
@@ -0,0 +1,7 @@
1
+ {
2
+ "error": {
3
+ "message": "An active access token must be used to query information about the current user.",
4
+ "type": "OAuthException",
5
+ "code": 2500
6
+ }
7
+ }
@@ -0,0 +1 @@
1
+ NOT FOUND
@@ -22,6 +22,10 @@ module MockGraph
22
22
  end
23
23
  end
24
24
 
25
+ def mock_json(response_path)
26
+ response_for(response_path)[:body].read
27
+ end
28
+
25
29
  def request_to(path, method = :get)
26
30
  raise_error { |e|
27
31
  e.should be_instance_of WebMock::NetConnectNotAllowedError
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -142,12 +142,14 @@ files:
142
142
  - lib/fb_graph2/application.rb
143
143
  - lib/fb_graph2/attribute_assigner.rb
144
144
  - lib/fb_graph2/collection.rb
145
+ - lib/fb_graph2/comment.rb
145
146
  - lib/fb_graph2/edge.rb
146
147
  - lib/fb_graph2/edge/accounts.rb
147
148
  - lib/fb_graph2/edge/achievements.rb
148
149
  - lib/fb_graph2/edge/activities.rb
149
150
  - lib/fb_graph2/edge/albums.rb
150
151
  - lib/fb_graph2/edge/books.rb
152
+ - lib/fb_graph2/edge/comments.rb
151
153
  - lib/fb_graph2/edge/events.rb
152
154
  - lib/fb_graph2/edge/family.rb
153
155
  - lib/fb_graph2/edge/feed.rb
@@ -157,23 +159,43 @@ files:
157
159
  - lib/fb_graph2/edge/groups.rb
158
160
  - lib/fb_graph2/edge/home.rb
159
161
  - lib/fb_graph2/edge/interests.rb
162
+ - lib/fb_graph2/edge/invitable_friends.rb
160
163
  - lib/fb_graph2/edge/likes.rb
161
164
  - lib/fb_graph2/edge/links.rb
162
165
  - lib/fb_graph2/edge/movies.rb
163
166
  - lib/fb_graph2/edge/music.rb
167
+ - lib/fb_graph2/edge/notifications.rb
168
+ - lib/fb_graph2/edge/permissions.rb
169
+ - lib/fb_graph2/edge/photos.rb
170
+ - lib/fb_graph2/edge/picture.rb
171
+ - lib/fb_graph2/edge/pokes.rb
164
172
  - lib/fb_graph2/edge/posts.rb
173
+ - lib/fb_graph2/edge/scores.rb
174
+ - lib/fb_graph2/edge/shared_posts.rb
165
175
  - lib/fb_graph2/edge/statuses.rb
166
176
  - lib/fb_graph2/edge/tagged.rb
167
177
  - lib/fb_graph2/edge/television.rb
178
+ - lib/fb_graph2/edge/videos.rb
168
179
  - lib/fb_graph2/event.rb
169
180
  - lib/fb_graph2/friend_list.rb
170
181
  - lib/fb_graph2/group.rb
171
182
  - lib/fb_graph2/node.rb
183
+ - lib/fb_graph2/notification.rb
172
184
  - lib/fb_graph2/page.rb
185
+ - lib/fb_graph2/photo.rb
173
186
  - lib/fb_graph2/post.rb
174
187
  - lib/fb_graph2/request_filter/authenticator.rb
175
188
  - lib/fb_graph2/request_filter/debugger.rb
189
+ - lib/fb_graph2/struct.rb
190
+ - lib/fb_graph2/struct/action.rb
191
+ - lib/fb_graph2/struct/image_source.rb
192
+ - lib/fb_graph2/struct/invitable_friend.rb
193
+ - lib/fb_graph2/struct/permission.rb
194
+ - lib/fb_graph2/struct/picture.rb
195
+ - lib/fb_graph2/struct/poke.rb
196
+ - lib/fb_graph2/struct/score.rb
176
197
  - lib/fb_graph2/user.rb
198
+ - lib/fb_graph2/video.rb
177
199
  - spec/fb_graph2/edge/accounts_spec.rb
178
200
  - spec/fb_graph2/edge/feed_spec.rb
179
201
  - spec/fb_graph2/node_spec.rb
@@ -181,6 +203,8 @@ files:
181
203
  - spec/fb_graph2/page_spec.rb
182
204
  - spec/fb_graph2/user_spec.rb
183
205
  - spec/fb_graph2_spec.rb
206
+ - spec/mock_json/error/400/2500.json
207
+ - spec/mock_json/error/invalid_format.json
184
208
  - spec/mock_json/success_with_id.json
185
209
  - spec/mock_json/user/accounts.json
186
210
  - spec/mock_json/user/me.json
@@ -206,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
230
  version: '0'
207
231
  requirements: []
208
232
  rubyforge_project:
209
- rubygems_version: 2.2.2
233
+ rubygems_version: 2.2.0
210
234
  signing_key:
211
235
  specification_version: 4
212
236
  summary: Facebook Graph API v2.0 Wrapper in Ruby