fb_graph 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. data/.gitignore +21 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +52 -0
  5. data/README.rdoc +1 -0
  6. data/Rakefile +8 -34
  7. data/VERSION +1 -1
  8. data/fb_graph.gemspec +15 -433
  9. data/lib/fb_graph/connections/family.rb +14 -0
  10. data/lib/fb_graph/connections/permissions.rb +12 -0
  11. data/lib/fb_graph/page/category_attributes.rb +1 -0
  12. data/lib/fb_graph/user.rb +4 -1
  13. data/lib/fb_graph.rb +0 -1
  14. data/spec/fb_graph/application_spec.rb +8 -14
  15. data/spec/fb_graph/auth_spec.rb +1 -1
  16. data/spec/fb_graph/checkin_spec.rb +15 -11
  17. data/spec/fb_graph/collection_spec.rb +8 -7
  18. data/spec/fb_graph/connection_spec.rb +36 -25
  19. data/spec/fb_graph/connections/accounts_spec.rb +30 -26
  20. data/spec/fb_graph/connections/activities_spec.rb +19 -18
  21. data/spec/fb_graph/connections/albums_spec.rb +40 -37
  22. data/spec/fb_graph/connections/app_requests_spec.rb +7 -7
  23. data/spec/fb_graph/connections/attending_spec.rb +12 -12
  24. data/spec/fb_graph/connections/books_spec.rb +18 -17
  25. data/spec/fb_graph/connections/checkins_spec.rb +91 -91
  26. data/spec/fb_graph/connections/comments_spec.rb +41 -48
  27. data/spec/fb_graph/connections/declined_spec.rb +13 -9
  28. data/spec/fb_graph/connections/events_spec.rb +31 -32
  29. data/spec/fb_graph/connections/family_spec.rb +34 -0
  30. data/spec/fb_graph/connections/feed_spec.rb +65 -70
  31. data/spec/fb_graph/connections/former_participants_spec.rb +8 -7
  32. data/spec/fb_graph/connections/friend_lists_spec.rb +7 -7
  33. data/spec/fb_graph/connections/friends_spec.rb +29 -24
  34. data/spec/fb_graph/connections/games_spec.rb +15 -15
  35. data/spec/fb_graph/connections/groups_spec.rb +17 -16
  36. data/spec/fb_graph/connections/home_spec.rb +40 -35
  37. data/spec/fb_graph/connections/insights_spec.rb +74 -70
  38. data/spec/fb_graph/connections/interests_spec.rb +7 -7
  39. data/spec/fb_graph/connections/invited_spec.rb +7 -7
  40. data/spec/fb_graph/connections/likes_spec.rb +23 -19
  41. data/spec/fb_graph/connections/links_spec.rb +17 -19
  42. data/spec/fb_graph/connections/maybe_spec.rb +10 -12
  43. data/spec/fb_graph/connections/members_spec.rb +7 -7
  44. data/spec/fb_graph/connections/messages_spec.rb +8 -7
  45. data/spec/fb_graph/connections/movies_spec.rb +7 -7
  46. data/spec/fb_graph/connections/music_spec.rb +7 -7
  47. data/spec/fb_graph/connections/noreply_spec.rb +7 -7
  48. data/spec/fb_graph/connections/notes_spec.rb +18 -16
  49. data/spec/fb_graph/connections/participants_spec.rb +8 -7
  50. data/spec/fb_graph/connections/permissions_spec.rb +18 -0
  51. data/spec/fb_graph/connections/photos_spec.rb +24 -24
  52. data/spec/fb_graph/connections/posts_spec.rb +23 -26
  53. data/spec/fb_graph/connections/senders_spec.rb +8 -7
  54. data/spec/fb_graph/connections/statuses_spec.rb +45 -43
  55. data/spec/fb_graph/connections/subscriptions_spec.rb +7 -7
  56. data/spec/fb_graph/connections/tagged_spec.rb +30 -33
  57. data/spec/fb_graph/connections/television_spec.rb +7 -7
  58. data/spec/fb_graph/connections/test_users_spec.rb +13 -9
  59. data/spec/fb_graph/connections/threads_spec.rb +7 -7
  60. data/spec/fb_graph/connections/videos_spec.rb +7 -7
  61. data/spec/fb_graph/page/local_business_spec.rb +4 -4
  62. data/spec/fb_graph/page/movie_spec.rb +4 -4
  63. data/spec/fb_graph/page/music_spec.rb +4 -4
  64. data/spec/fb_graph/page/person_spec.rb +4 -4
  65. data/spec/fb_graph/page/product_spec.rb +4 -4
  66. data/spec/fb_graph/page_spec.rb +8 -16
  67. data/spec/fb_graph/post_spec.rb +50 -46
  68. data/spec/fb_graph/query/core_spec.rb +39 -51
  69. data/spec/fb_graph/searchable_spec.rb +13 -9
  70. data/spec/fb_graph/test_user_spec.rb +5 -11
  71. data/spec/fb_graph/user_spec.rb +96 -91
  72. data/spec/helpers/webmock_helper.rb +71 -0
  73. data/spec/{fake_json → mock_json}/albums/photos/matake_private.json +0 -0
  74. data/spec/{fake_json → mock_json}/albums/photos/post_with_valid_access_token.json +0 -0
  75. data/spec/{fake_json → mock_json}/applications/feed/public.json +0 -0
  76. data/spec/{fake_json → mock_json}/applications/subscriptions/fb_graph_private.json +0 -0
  77. data/spec/{fake_json → mock_json}/applications/test_users/created.json +0 -0
  78. data/spec/{fake_json → mock_json}/applications/test_users/private.json +0 -0
  79. data/spec/{fake_json → mock_json}/checkins/search_private.json +0 -0
  80. data/spec/{fake_json → mock_json}/checkins/search_public.json +0 -0
  81. data/spec/{fake_json → mock_json}/events/attending/post_with_valid_access_token.json +0 -0
  82. data/spec/{fake_json → mock_json}/events/attending/smartday_private.json +0 -0
  83. data/spec/{fake_json → mock_json}/events/declined/post_with_valid_access_token.json +0 -0
  84. data/spec/{fake_json → mock_json}/events/declined/smartday_private.json +0 -0
  85. data/spec/{fake_json → mock_json}/events/invited/smartday_private.json +0 -0
  86. data/spec/{fake_json → mock_json}/events/maybe/post_with_valid_access_token.json +0 -0
  87. data/spec/{fake_json → mock_json}/events/maybe/smartday_private.json +0 -0
  88. data/spec/{fake_json → mock_json}/events/noreply/smartday_private.json +0 -0
  89. data/spec/{fake_json → mock_json}/groups/members/emacs_private.json +0 -0
  90. data/spec/{fake_json → mock_json}/pages/categories/local_business.json +0 -0
  91. data/spec/{fake_json → mock_json}/pages/categories/movie.json +0 -0
  92. data/spec/{fake_json → mock_json}/pages/categories/music.json +0 -0
  93. data/spec/{fake_json → mock_json}/pages/categories/person.json +0 -0
  94. data/spec/{fake_json → mock_json}/pages/categories/product.json +0 -0
  95. data/spec/{fake_json → mock_json}/pages/checkins/gowalla_private.json +0 -0
  96. data/spec/{fake_json → mock_json}/pages/checkins/gowalla_public.json +0 -0
  97. data/spec/{fake_json → mock_json}/pages/insights/FbGraph_private.json +0 -0
  98. data/spec/{fake_json → mock_json}/pages/insights/FbGraph_public.json +0 -0
  99. data/spec/{fake_json → mock_json}/pages/insights/page_like_adds/FbGraph_private.json +0 -0
  100. data/spec/{fake_json → mock_json}/pages/insights/page_like_adds/day/FbGraph_private.json +0 -0
  101. data/spec/{fake_json → mock_json}/pages/notes/post_with_valid_access_token.json +0 -0
  102. data/spec/{fake_json → mock_json}/pages/platform_private.json +0 -0
  103. data/spec/{fake_json → mock_json}/pages/platform_public.json +0 -0
  104. data/spec/{fake_json → mock_json}/pages/search_fb_graph.json +0 -0
  105. data/spec/{fake_json → mock_json}/pages/search_google.json +0 -0
  106. data/spec/{fake_json → mock_json}/pages/statuses/platform_private.json +0 -0
  107. data/spec/{fake_json → mock_json}/pages/statuses/platform_public.json +0 -0
  108. data/spec/{fake_json → mock_json}/posts/comments/post_with_invalid_access_token.json +0 -0
  109. data/spec/{fake_json → mock_json}/posts/comments/post_with_valid_access_token.json +0 -0
  110. data/spec/{fake_json → mock_json}/posts/comments/post_without_access_token.json +0 -0
  111. data/spec/{fake_json → mock_json}/posts/likes/post_with_invalid_access_token.json +0 -0
  112. data/spec/{fake_json → mock_json}/posts/likes/post_with_valid_access_token.json +0 -0
  113. data/spec/{fake_json → mock_json}/posts/likes/post_without_access_token.json +0 -0
  114. data/spec/{fake_json → mock_json}/posts/no_comments.json +0 -0
  115. data/spec/{fake_json → mock_json}/posts/platform_private.json +0 -0
  116. data/spec/{fake_json → mock_json}/posts/platform_public.json +0 -0
  117. data/spec/{fake_json → mock_json}/posts/to_application.json +0 -0
  118. data/spec/{fake_json → mock_json}/posts/to_event.json +0 -0
  119. data/spec/{fake_json → mock_json}/posts/to_group.json +0 -0
  120. data/spec/{fake_json → mock_json}/query/user/with_invalid_token.json +0 -0
  121. data/spec/{fake_json → mock_json}/query/user/with_valid_token.json +0 -0
  122. data/spec/{fake_json → mock_json}/query/user/without_token.json +0 -0
  123. data/spec/{fake_json → mock_json}/statuses/with_likes.json +0 -0
  124. data/spec/{fake_json → mock_json}/thread/former_participants/private.json +0 -0
  125. data/spec/{fake_json → mock_json}/thread/messages/private.json +0 -0
  126. data/spec/{fake_json → mock_json}/thread/participants/private.json +0 -0
  127. data/spec/{fake_json → mock_json}/thread/senders/private.json +0 -0
  128. data/spec/{fake_json → mock_json}/token_response.json +0 -0
  129. data/spec/{fake_json → mock_json}/true.json +0 -0
  130. data/spec/{fake_json → mock_json}/users/accounts/matake_private.json +0 -0
  131. data/spec/{fake_json → mock_json}/users/accounts/matake_private_with_manage_pages_permission.json +0 -0
  132. data/spec/{fake_json → mock_json}/users/accounts/matake_public.json +0 -0
  133. data/spec/{fake_json → mock_json}/users/activities/arjun_private.json +0 -0
  134. data/spec/{fake_json → mock_json}/users/activities/arjun_public.json +0 -0
  135. data/spec/{fake_json → mock_json}/users/albums/matake_private.json +0 -0
  136. data/spec/{fake_json → mock_json}/users/albums/matake_public.json +0 -0
  137. data/spec/{fake_json → mock_json}/users/albums/post_with_valid_access_token.json +0 -0
  138. data/spec/{fake_json → mock_json}/users/app_requests/me_private.json +0 -0
  139. data/spec/{fake_json → mock_json}/users/arjun_private.json +0 -0
  140. data/spec/{fake_json → mock_json}/users/arjun_public.json +0 -0
  141. data/spec/{fake_json → mock_json}/users/books/matake_private.json +0 -0
  142. data/spec/{fake_json → mock_json}/users/books/matake_public.json +0 -0
  143. data/spec/{fake_json → mock_json}/users/checkins/mattt_private.json +0 -0
  144. data/spec/{fake_json → mock_json}/users/checkins/mattt_public.json +0 -0
  145. data/spec/{fake_json → mock_json}/users/checkins/posted.json +0 -0
  146. data/spec/{fake_json → mock_json}/users/events/matake_private.json +0 -0
  147. data/spec/{fake_json → mock_json}/users/events/matake_public.json +0 -0
  148. data/spec/{fake_json → mock_json}/users/events/post_with_valid_access_token.json +0 -0
  149. data/spec/mock_json/users/family/family_without_access_token.json +6 -0
  150. data/spec/mock_json/users/family/me_public.json +19 -0
  151. data/spec/{fake_json → mock_json}/users/feed/arjun_private.json +0 -0
  152. data/spec/{fake_json → mock_json}/users/feed/arjun_public.json +0 -0
  153. data/spec/{fake_json → mock_json}/users/feed/post_with_invalid_access_token.json +0 -0
  154. data/spec/{fake_json → mock_json}/users/feed/post_with_valid_access_token.json +0 -0
  155. data/spec/{fake_json → mock_json}/users/feed/post_without_access_token.json +0 -0
  156. data/spec/{fake_json → mock_json}/users/friend_lists/matake.json +0 -0
  157. data/spec/{fake_json → mock_json}/users/friends/arjun_private.json +0 -0
  158. data/spec/{fake_json → mock_json}/users/friends/arjun_public.json +0 -0
  159. data/spec/{fake_json → mock_json}/users/friends/me_private.json +0 -0
  160. data/spec/{fake_json → mock_json}/users/friends/me_public.json +0 -0
  161. data/spec/{fake_json → mock_json}/users/games/matake_private.json +0 -0
  162. data/spec/{fake_json → mock_json}/users/groups/matake_private.json +0 -0
  163. data/spec/{fake_json → mock_json}/users/groups/matake_public.json +0 -0
  164. data/spec/{fake_json → mock_json}/users/home/arjun_private.json +0 -0
  165. data/spec/{fake_json → mock_json}/users/home/arjun_public.json +0 -0
  166. data/spec/{fake_json → mock_json}/users/home/me_private.json +0 -0
  167. data/spec/{fake_json → mock_json}/users/home/me_private_next.json +0 -0
  168. data/spec/{fake_json → mock_json}/users/home/me_private_previous.json +0 -0
  169. data/spec/{fake_json → mock_json}/users/home/me_public.json +0 -0
  170. data/spec/{fake_json → mock_json}/users/interests/matake_private.json +0 -0
  171. data/spec/{fake_json → mock_json}/users/likes/arjun_private.json +0 -0
  172. data/spec/{fake_json → mock_json}/users/likes/arjun_public.json +0 -0
  173. data/spec/{fake_json → mock_json}/users/links/matake_private.json +0 -0
  174. data/spec/{fake_json → mock_json}/users/links/post_with_valid_access_token.json +0 -0
  175. data/spec/{fake_json → mock_json}/users/me_private.json +0 -0
  176. data/spec/{fake_json → mock_json}/users/me_public.json +0 -0
  177. data/spec/{fake_json → mock_json}/users/movies/matake_private.json +0 -0
  178. data/spec/{fake_json → mock_json}/users/music/matake_private.json +0 -0
  179. data/spec/{fake_json → mock_json}/users/notes/matake_private.json +0 -0
  180. data/spec/mock_json/users/permissions/me_private.json +70 -0
  181. data/spec/{fake_json → mock_json}/users/posts/arjun_private.json +0 -0
  182. data/spec/{fake_json → mock_json}/users/posts/arjun_public.json +0 -0
  183. data/spec/{fake_json → mock_json}/users/statuses/arjun_private.json +0 -0
  184. data/spec/{fake_json → mock_json}/users/statuses/arjun_public.json +0 -0
  185. data/spec/{fake_json → mock_json}/users/tagged/arjun_private.json +0 -0
  186. data/spec/{fake_json → mock_json}/users/tagged/arjun_public.json +0 -0
  187. data/spec/{fake_json → mock_json}/users/television/matake_private.json +0 -0
  188. data/spec/{fake_json → mock_json}/users/threads/me_private.json +0 -0
  189. data/spec/{fake_json → mock_json}/users/videos/kirk_private.json +0 -0
  190. data/spec/spec_helper.rb +2 -7
  191. metadata +267 -128
  192. data/.rspec-tm +0 -1
  193. data/spec/helpers/fake_json_helper.rb +0 -37
  194. data/spec/spec.opts +0 -3
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format=documentation
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'http://rubygems.org'
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,52 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fb_graph (1.7.1)
5
+ rack-oauth2 (>= 0.6.5)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ activesupport (3.0.7)
11
+ addressable (2.2.5)
12
+ attr_required (0.0.3)
13
+ crack (0.1.8)
14
+ diff-lcs (1.1.2)
15
+ i18n (0.5.0)
16
+ json (1.5.1)
17
+ mime-types (1.16)
18
+ rack (1.2.2)
19
+ rack-oauth2 (0.6.6)
20
+ activesupport (>= 2.3)
21
+ attr_required (>= 0.0.3)
22
+ i18n
23
+ json (>= 1.4.3)
24
+ rack (>= 1.1)
25
+ restclient_with_cert
26
+ rake (0.8.7)
27
+ rcov (0.9.9)
28
+ rest-client (1.6.1)
29
+ mime-types (>= 1.16)
30
+ restclient_with_cert (0.0.7)
31
+ rest-client (>= 1.6)
32
+ rspec (2.5.0)
33
+ rspec-core (~> 2.5.0)
34
+ rspec-expectations (~> 2.5.0)
35
+ rspec-mocks (~> 2.5.0)
36
+ rspec-core (2.5.1)
37
+ rspec-expectations (2.5.0)
38
+ diff-lcs (~> 1.1.2)
39
+ rspec-mocks (2.5.0)
40
+ webmock (1.6.2)
41
+ addressable (>= 2.2.2)
42
+ crack (>= 0.1.7)
43
+
44
+ PLATFORMS
45
+ ruby
46
+
47
+ DEPENDENCIES
48
+ fb_graph!
49
+ rake (>= 0.8)
50
+ rcov (>= 0.9)
51
+ rspec (>= 2)
52
+ webmock (>= 1.6.2)
data/README.rdoc CHANGED
@@ -54,6 +54,7 @@ Plus, you can play an Rails sample app here. http://fbgraphsample.heroku.com/
54
54
  user.posts
55
55
  user.friends
56
56
  user.tagged
57
+ user.family
57
58
  :
58
59
 
59
60
  # Private connections requires "access_token"
data/Rakefile CHANGED
@@ -1,46 +1,20 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
3
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = 'fb_graph'
8
- gem.summary = %Q{A full-stack Facebook Graph API wrapper in Ruby.}
9
- gem.description = %Q{A full-stack Facebook Graph API wrapper in Ruby.}
10
- gem.email = 'nov@matake.jp'
11
- gem.homepage = 'http://github.com/nov/fb_graph'
12
- gem.authors = ['nov matake']
13
- gem.add_dependency 'rack-oauth2', '>= 0.6.5'
14
- gem.add_development_dependency 'rspec', '~> 1.3'
15
- gem.add_development_dependency 'rcov'
16
- gem.add_development_dependency 'fakeweb', '>= 1.3.0'
17
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
- end
19
- Jeweler::GemcutterTasks.new
20
- rescue LoadError
21
- puts 'Jeweler not available. Install it with: gem install jeweler'
22
- end
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec)
23
6
 
24
- require 'spec/rake/spectask'
25
- Spec::Rake::SpecTask.new(:spec) do |spec|
26
- spec.fail_on_error = false
27
- spec.libs << 'lib' << 'spec'
28
- spec.spec_files = FileList['spec/**/*_spec.rb']
29
- end
30
- Spec::Rake::SpecTask.new(:rcov) do |spec|
31
- spec.libs << 'lib' << 'spec'
32
- spec.pattern = 'spec/**/*_spec.rb'
7
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
33
8
  spec.rcov = true
34
- spec.rcov_opts = ['--exclude spec,gems']
9
+ spec.rcov_opts = ['-Ilib -Ispec --exclude spec,gems']
35
10
  end
36
- task :spec => :check_dependencies
11
+
37
12
  task :default => :spec
38
13
 
39
14
  require 'rake/rdoctask'
40
15
  Rake::RDocTask.new do |rdoc|
41
- version = File.read('VERSION')
42
16
  rdoc.rdoc_dir = 'rdoc'
43
- rdoc.title = 'fb_graph #{version}'
17
+ rdoc.title = "fb_graph #{File.read('VERSION')}"
44
18
  rdoc.rdoc_files.include('README*')
45
19
  rdoc.rdoc_files.include('lib/**/*.rb')
46
20
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.1
1
+ 1.7.2
data/fb_graph.gemspec CHANGED
@@ -1,438 +1,20 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
1
  Gem::Specification.new do |s|
7
- s.name = %q{fb_graph}
8
- s.version = "1.7.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
2
+ s.name = "fb_graph"
3
+ s.version = File.read("VERSION")
11
4
  s.authors = ["nov matake"]
12
- s.date = %q{2011-04-24}
13
5
  s.description = %q{A full-stack Facebook Graph API wrapper in Ruby.}
14
- s.email = %q{nov@matake.jp}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".rspec-tm",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "assets/fb_graph.ai",
27
- "assets/fb_graph.png",
28
- "fb_graph.gemspec",
29
- "lib/fb_graph.rb",
30
- "lib/fb_graph/action.rb",
31
- "lib/fb_graph/album.rb",
32
- "lib/fb_graph/app_request.rb",
33
- "lib/fb_graph/application.rb",
34
- "lib/fb_graph/auth.rb",
35
- "lib/fb_graph/auth/cookie.rb",
36
- "lib/fb_graph/auth/signed_request.rb",
37
- "lib/fb_graph/checkin.rb",
38
- "lib/fb_graph/collection.rb",
39
- "lib/fb_graph/comment.rb",
40
- "lib/fb_graph/comparison.rb",
41
- "lib/fb_graph/connection.rb",
42
- "lib/fb_graph/connections.rb",
43
- "lib/fb_graph/connections/accounts.rb",
44
- "lib/fb_graph/connections/activities.rb",
45
- "lib/fb_graph/connections/albums.rb",
46
- "lib/fb_graph/connections/app_requests.rb",
47
- "lib/fb_graph/connections/attending.rb",
48
- "lib/fb_graph/connections/books.rb",
49
- "lib/fb_graph/connections/checkins.rb",
50
- "lib/fb_graph/connections/comments.rb",
51
- "lib/fb_graph/connections/declined.rb",
52
- "lib/fb_graph/connections/events.rb",
53
- "lib/fb_graph/connections/feed.rb",
54
- "lib/fb_graph/connections/former_participants.rb",
55
- "lib/fb_graph/connections/friend_lists.rb",
56
- "lib/fb_graph/connections/friends.rb",
57
- "lib/fb_graph/connections/games.rb",
58
- "lib/fb_graph/connections/groups.rb",
59
- "lib/fb_graph/connections/home.rb",
60
- "lib/fb_graph/connections/insights.rb",
61
- "lib/fb_graph/connections/interests.rb",
62
- "lib/fb_graph/connections/invited.rb",
63
- "lib/fb_graph/connections/likes.rb",
64
- "lib/fb_graph/connections/links.rb",
65
- "lib/fb_graph/connections/maybe.rb",
66
- "lib/fb_graph/connections/members.rb",
67
- "lib/fb_graph/connections/messages.rb",
68
- "lib/fb_graph/connections/movies.rb",
69
- "lib/fb_graph/connections/music.rb",
70
- "lib/fb_graph/connections/noreply.rb",
71
- "lib/fb_graph/connections/notes.rb",
72
- "lib/fb_graph/connections/participants.rb",
73
- "lib/fb_graph/connections/payments.rb",
74
- "lib/fb_graph/connections/photos.rb",
75
- "lib/fb_graph/connections/picture.rb",
76
- "lib/fb_graph/connections/posts.rb",
77
- "lib/fb_graph/connections/senders.rb",
78
- "lib/fb_graph/connections/statuses.rb",
79
- "lib/fb_graph/connections/subscriptions.rb",
80
- "lib/fb_graph/connections/tagged.rb",
81
- "lib/fb_graph/connections/television.rb",
82
- "lib/fb_graph/connections/test_users.rb",
83
- "lib/fb_graph/connections/threads.rb",
84
- "lib/fb_graph/connections/videos.rb",
85
- "lib/fb_graph/education.rb",
86
- "lib/fb_graph/event.rb",
87
- "lib/fb_graph/friend_list.rb",
88
- "lib/fb_graph/group.rb",
89
- "lib/fb_graph/insight.rb",
90
- "lib/fb_graph/klass.rb",
91
- "lib/fb_graph/link.rb",
92
- "lib/fb_graph/location.rb",
93
- "lib/fb_graph/message.rb",
94
- "lib/fb_graph/node.rb",
95
- "lib/fb_graph/note.rb",
96
- "lib/fb_graph/order.rb",
97
- "lib/fb_graph/page.rb",
98
- "lib/fb_graph/page/category_attributes.rb",
99
- "lib/fb_graph/photo.rb",
100
- "lib/fb_graph/place.rb",
101
- "lib/fb_graph/post.rb",
102
- "lib/fb_graph/privacy.rb",
103
- "lib/fb_graph/project.rb",
104
- "lib/fb_graph/query.rb",
105
- "lib/fb_graph/searchable.rb",
106
- "lib/fb_graph/searchable/result.rb",
107
- "lib/fb_graph/serialization.rb",
108
- "lib/fb_graph/status.rb",
109
- "lib/fb_graph/subscription.rb",
110
- "lib/fb_graph/tag.rb",
111
- "lib/fb_graph/targeting.rb",
112
- "lib/fb_graph/test_user.rb",
113
- "lib/fb_graph/thread.rb",
114
- "lib/fb_graph/user.rb",
115
- "lib/fb_graph/venue.rb",
116
- "lib/fb_graph/video.rb",
117
- "lib/fb_graph/work.rb",
118
- "spec/fake_json/albums/photos/matake_private.json",
119
- "spec/fake_json/albums/photos/post_with_valid_access_token.json",
120
- "spec/fake_json/applications/feed/public.json",
121
- "spec/fake_json/applications/subscriptions/fb_graph_private.json",
122
- "spec/fake_json/applications/test_users/created.json",
123
- "spec/fake_json/applications/test_users/private.json",
124
- "spec/fake_json/checkins/search_private.json",
125
- "spec/fake_json/checkins/search_public.json",
126
- "spec/fake_json/events/attending/post_with_valid_access_token.json",
127
- "spec/fake_json/events/attending/smartday_private.json",
128
- "spec/fake_json/events/declined/post_with_valid_access_token.json",
129
- "spec/fake_json/events/declined/smartday_private.json",
130
- "spec/fake_json/events/invited/smartday_private.json",
131
- "spec/fake_json/events/maybe/post_with_valid_access_token.json",
132
- "spec/fake_json/events/maybe/smartday_private.json",
133
- "spec/fake_json/events/noreply/smartday_private.json",
134
- "spec/fake_json/groups/members/emacs_private.json",
135
- "spec/fake_json/pages/categories/local_business.json",
136
- "spec/fake_json/pages/categories/movie.json",
137
- "spec/fake_json/pages/categories/music.json",
138
- "spec/fake_json/pages/categories/person.json",
139
- "spec/fake_json/pages/categories/product.json",
140
- "spec/fake_json/pages/checkins/gowalla_private.json",
141
- "spec/fake_json/pages/checkins/gowalla_public.json",
142
- "spec/fake_json/pages/insights/FbGraph_private.json",
143
- "spec/fake_json/pages/insights/FbGraph_public.json",
144
- "spec/fake_json/pages/insights/page_like_adds/FbGraph_private.json",
145
- "spec/fake_json/pages/insights/page_like_adds/day/FbGraph_private.json",
146
- "spec/fake_json/pages/notes/post_with_valid_access_token.json",
147
- "spec/fake_json/pages/platform_private.json",
148
- "spec/fake_json/pages/platform_public.json",
149
- "spec/fake_json/pages/search_fb_graph.json",
150
- "spec/fake_json/pages/search_google.json",
151
- "spec/fake_json/pages/statuses/platform_private.json",
152
- "spec/fake_json/pages/statuses/platform_public.json",
153
- "spec/fake_json/posts/comments/post_with_invalid_access_token.json",
154
- "spec/fake_json/posts/comments/post_with_valid_access_token.json",
155
- "spec/fake_json/posts/comments/post_without_access_token.json",
156
- "spec/fake_json/posts/likes/post_with_invalid_access_token.json",
157
- "spec/fake_json/posts/likes/post_with_valid_access_token.json",
158
- "spec/fake_json/posts/likes/post_without_access_token.json",
159
- "spec/fake_json/posts/no_comments.json",
160
- "spec/fake_json/posts/platform_private.json",
161
- "spec/fake_json/posts/platform_public.json",
162
- "spec/fake_json/posts/to_application.json",
163
- "spec/fake_json/posts/to_event.json",
164
- "spec/fake_json/posts/to_group.json",
165
- "spec/fake_json/query/user/with_invalid_token.json",
166
- "spec/fake_json/query/user/with_valid_token.json",
167
- "spec/fake_json/query/user/without_token.json",
168
- "spec/fake_json/statuses/with_likes.json",
169
- "spec/fake_json/thread/former_participants/private.json",
170
- "spec/fake_json/thread/messages/private.json",
171
- "spec/fake_json/thread/participants/private.json",
172
- "spec/fake_json/thread/senders/private.json",
173
- "spec/fake_json/token_response.json",
174
- "spec/fake_json/true.json",
175
- "spec/fake_json/users/accounts/matake_private.json",
176
- "spec/fake_json/users/accounts/matake_private_with_manage_pages_permission.json",
177
- "spec/fake_json/users/accounts/matake_public.json",
178
- "spec/fake_json/users/activities/arjun_private.json",
179
- "spec/fake_json/users/activities/arjun_public.json",
180
- "spec/fake_json/users/albums/matake_private.json",
181
- "spec/fake_json/users/albums/matake_public.json",
182
- "spec/fake_json/users/albums/post_with_valid_access_token.json",
183
- "spec/fake_json/users/app_requests/me_private.json",
184
- "spec/fake_json/users/arjun_private.json",
185
- "spec/fake_json/users/arjun_public.json",
186
- "spec/fake_json/users/books/matake_private.json",
187
- "spec/fake_json/users/books/matake_public.json",
188
- "spec/fake_json/users/checkins/mattt_private.json",
189
- "spec/fake_json/users/checkins/mattt_public.json",
190
- "spec/fake_json/users/checkins/posted.json",
191
- "spec/fake_json/users/events/matake_private.json",
192
- "spec/fake_json/users/events/matake_public.json",
193
- "spec/fake_json/users/events/post_with_valid_access_token.json",
194
- "spec/fake_json/users/feed/arjun_private.json",
195
- "spec/fake_json/users/feed/arjun_public.json",
196
- "spec/fake_json/users/feed/post_with_invalid_access_token.json",
197
- "spec/fake_json/users/feed/post_with_valid_access_token.json",
198
- "spec/fake_json/users/feed/post_without_access_token.json",
199
- "spec/fake_json/users/friend_lists/matake.json",
200
- "spec/fake_json/users/friends/arjun_private.json",
201
- "spec/fake_json/users/friends/arjun_public.json",
202
- "spec/fake_json/users/friends/me_private.json",
203
- "spec/fake_json/users/friends/me_public.json",
204
- "spec/fake_json/users/games/matake_private.json",
205
- "spec/fake_json/users/groups/matake_private.json",
206
- "spec/fake_json/users/groups/matake_public.json",
207
- "spec/fake_json/users/home/arjun_private.json",
208
- "spec/fake_json/users/home/arjun_public.json",
209
- "spec/fake_json/users/home/me_private.json",
210
- "spec/fake_json/users/home/me_private_next.json",
211
- "spec/fake_json/users/home/me_private_previous.json",
212
- "spec/fake_json/users/home/me_public.json",
213
- "spec/fake_json/users/interests/matake_private.json",
214
- "spec/fake_json/users/likes/arjun_private.json",
215
- "spec/fake_json/users/likes/arjun_public.json",
216
- "spec/fake_json/users/links/matake_private.json",
217
- "spec/fake_json/users/links/post_with_valid_access_token.json",
218
- "spec/fake_json/users/me_private.json",
219
- "spec/fake_json/users/me_public.json",
220
- "spec/fake_json/users/movies/matake_private.json",
221
- "spec/fake_json/users/music/matake_private.json",
222
- "spec/fake_json/users/notes/matake_private.json",
223
- "spec/fake_json/users/posts/arjun_private.json",
224
- "spec/fake_json/users/posts/arjun_public.json",
225
- "spec/fake_json/users/statuses/arjun_private.json",
226
- "spec/fake_json/users/statuses/arjun_public.json",
227
- "spec/fake_json/users/tagged/arjun_private.json",
228
- "spec/fake_json/users/tagged/arjun_public.json",
229
- "spec/fake_json/users/television/matake_private.json",
230
- "spec/fake_json/users/threads/me_private.json",
231
- "spec/fake_json/users/videos/kirk_private.json",
232
- "spec/fb_graph/album_spec.rb",
233
- "spec/fb_graph/app_request_spec.rb",
234
- "spec/fb_graph/application_spec.rb",
235
- "spec/fb_graph/auth/cookie_spec.rb",
236
- "spec/fb_graph/auth/signed_request_spec.rb",
237
- "spec/fb_graph/auth_spec.rb",
238
- "spec/fb_graph/checkin_spec.rb",
239
- "spec/fb_graph/collection_spec.rb",
240
- "spec/fb_graph/comment_spec.rb",
241
- "spec/fb_graph/connection_spec.rb",
242
- "spec/fb_graph/connections/accounts_spec.rb",
243
- "spec/fb_graph/connections/activities_spec.rb",
244
- "spec/fb_graph/connections/albums_spec.rb",
245
- "spec/fb_graph/connections/app_requests_spec.rb",
246
- "spec/fb_graph/connections/attending_spec.rb",
247
- "spec/fb_graph/connections/books_spec.rb",
248
- "spec/fb_graph/connections/checkins_spec.rb",
249
- "spec/fb_graph/connections/comments_spec.rb",
250
- "spec/fb_graph/connections/declined_spec.rb",
251
- "spec/fb_graph/connections/events_spec.rb",
252
- "spec/fb_graph/connections/feed_spec.rb",
253
- "spec/fb_graph/connections/former_participants_spec.rb",
254
- "spec/fb_graph/connections/friend_lists_spec.rb",
255
- "spec/fb_graph/connections/friends_spec.rb",
256
- "spec/fb_graph/connections/games_spec.rb",
257
- "spec/fb_graph/connections/groups_spec.rb",
258
- "spec/fb_graph/connections/home_spec.rb",
259
- "spec/fb_graph/connections/insights_spec.rb",
260
- "spec/fb_graph/connections/interests_spec.rb",
261
- "spec/fb_graph/connections/invited_spec.rb",
262
- "spec/fb_graph/connections/likes_spec.rb",
263
- "spec/fb_graph/connections/links_spec.rb",
264
- "spec/fb_graph/connections/maybe_spec.rb",
265
- "spec/fb_graph/connections/members_spec.rb",
266
- "spec/fb_graph/connections/messages_spec.rb",
267
- "spec/fb_graph/connections/movies_spec.rb",
268
- "spec/fb_graph/connections/music_spec.rb",
269
- "spec/fb_graph/connections/noreply_spec.rb",
270
- "spec/fb_graph/connections/notes_spec.rb",
271
- "spec/fb_graph/connections/participants_spec.rb",
272
- "spec/fb_graph/connections/photos_spec.rb",
273
- "spec/fb_graph/connections/picture_spec.rb",
274
- "spec/fb_graph/connections/posts_spec.rb",
275
- "spec/fb_graph/connections/senders_spec.rb",
276
- "spec/fb_graph/connections/statuses_spec.rb",
277
- "spec/fb_graph/connections/subscriptions_spec.rb",
278
- "spec/fb_graph/connections/tagged_spec.rb",
279
- "spec/fb_graph/connections/television_spec.rb",
280
- "spec/fb_graph/connections/test_users_spec.rb",
281
- "spec/fb_graph/connections/threads_spec.rb",
282
- "spec/fb_graph/connections/videos_spec.rb",
283
- "spec/fb_graph/education_spec.rb",
284
- "spec/fb_graph/event_spec.rb",
285
- "spec/fb_graph/exception_spec.rb",
286
- "spec/fb_graph/friend_list_spec.rb",
287
- "spec/fb_graph/group_spec.rb",
288
- "spec/fb_graph/insight_spec.rb",
289
- "spec/fb_graph/link_spec.rb",
290
- "spec/fb_graph/location_spec.rb",
291
- "spec/fb_graph/message_spec.rb",
292
- "spec/fb_graph/node_spec.rb",
293
- "spec/fb_graph/note_spec.rb",
294
- "spec/fb_graph/page/local_business_spec.rb",
295
- "spec/fb_graph/page/movie_spec.rb",
296
- "spec/fb_graph/page/music_spec.rb",
297
- "spec/fb_graph/page/person_spec.rb",
298
- "spec/fb_graph/page/product_spec.rb",
299
- "spec/fb_graph/page_spec.rb",
300
- "spec/fb_graph/photo_spec.rb",
301
- "spec/fb_graph/place_spec.rb",
302
- "spec/fb_graph/post_spec.rb",
303
- "spec/fb_graph/privacy_spec.rb",
304
- "spec/fb_graph/project_spec.rb",
305
- "spec/fb_graph/query/core_spec.rb",
306
- "spec/fb_graph/searchable_spec.rb",
307
- "spec/fb_graph/seriarization_spec.rb",
308
- "spec/fb_graph/status_spec.rb",
309
- "spec/fb_graph/subscription_spec.rb",
310
- "spec/fb_graph/tag_spec.rb",
311
- "spec/fb_graph/targeting_spec.rb",
312
- "spec/fb_graph/test_user_spec.rb",
313
- "spec/fb_graph/thread_spec.rb",
314
- "spec/fb_graph/user_spec.rb",
315
- "spec/fb_graph/venue_spec.rb",
316
- "spec/fb_graph/video_spec.rb",
317
- "spec/fb_graph/work_spec.rb",
318
- "spec/helpers/fake_json_helper.rb",
319
- "spec/spec.opts",
320
- "spec/spec_helper.rb"
321
- ]
322
- s.homepage = %q{http://github.com/nov/fb_graph}
323
- s.require_paths = ["lib"]
324
- s.rubygems_version = %q{1.7.2}
325
6
  s.summary = %q{A full-stack Facebook Graph API wrapper in Ruby.}
326
- s.test_files = [
327
- "spec/fb_graph/album_spec.rb",
328
- "spec/fb_graph/app_request_spec.rb",
329
- "spec/fb_graph/application_spec.rb",
330
- "spec/fb_graph/auth/cookie_spec.rb",
331
- "spec/fb_graph/auth/signed_request_spec.rb",
332
- "spec/fb_graph/auth_spec.rb",
333
- "spec/fb_graph/checkin_spec.rb",
334
- "spec/fb_graph/collection_spec.rb",
335
- "spec/fb_graph/comment_spec.rb",
336
- "spec/fb_graph/connection_spec.rb",
337
- "spec/fb_graph/connections/accounts_spec.rb",
338
- "spec/fb_graph/connections/activities_spec.rb",
339
- "spec/fb_graph/connections/albums_spec.rb",
340
- "spec/fb_graph/connections/app_requests_spec.rb",
341
- "spec/fb_graph/connections/attending_spec.rb",
342
- "spec/fb_graph/connections/books_spec.rb",
343
- "spec/fb_graph/connections/checkins_spec.rb",
344
- "spec/fb_graph/connections/comments_spec.rb",
345
- "spec/fb_graph/connections/declined_spec.rb",
346
- "spec/fb_graph/connections/events_spec.rb",
347
- "spec/fb_graph/connections/feed_spec.rb",
348
- "spec/fb_graph/connections/former_participants_spec.rb",
349
- "spec/fb_graph/connections/friend_lists_spec.rb",
350
- "spec/fb_graph/connections/friends_spec.rb",
351
- "spec/fb_graph/connections/games_spec.rb",
352
- "spec/fb_graph/connections/groups_spec.rb",
353
- "spec/fb_graph/connections/home_spec.rb",
354
- "spec/fb_graph/connections/insights_spec.rb",
355
- "spec/fb_graph/connections/interests_spec.rb",
356
- "spec/fb_graph/connections/invited_spec.rb",
357
- "spec/fb_graph/connections/likes_spec.rb",
358
- "spec/fb_graph/connections/links_spec.rb",
359
- "spec/fb_graph/connections/maybe_spec.rb",
360
- "spec/fb_graph/connections/members_spec.rb",
361
- "spec/fb_graph/connections/messages_spec.rb",
362
- "spec/fb_graph/connections/movies_spec.rb",
363
- "spec/fb_graph/connections/music_spec.rb",
364
- "spec/fb_graph/connections/noreply_spec.rb",
365
- "spec/fb_graph/connections/notes_spec.rb",
366
- "spec/fb_graph/connections/participants_spec.rb",
367
- "spec/fb_graph/connections/photos_spec.rb",
368
- "spec/fb_graph/connections/picture_spec.rb",
369
- "spec/fb_graph/connections/posts_spec.rb",
370
- "spec/fb_graph/connections/senders_spec.rb",
371
- "spec/fb_graph/connections/statuses_spec.rb",
372
- "spec/fb_graph/connections/subscriptions_spec.rb",
373
- "spec/fb_graph/connections/tagged_spec.rb",
374
- "spec/fb_graph/connections/television_spec.rb",
375
- "spec/fb_graph/connections/test_users_spec.rb",
376
- "spec/fb_graph/connections/threads_spec.rb",
377
- "spec/fb_graph/connections/videos_spec.rb",
378
- "spec/fb_graph/education_spec.rb",
379
- "spec/fb_graph/event_spec.rb",
380
- "spec/fb_graph/exception_spec.rb",
381
- "spec/fb_graph/friend_list_spec.rb",
382
- "spec/fb_graph/group_spec.rb",
383
- "spec/fb_graph/insight_spec.rb",
384
- "spec/fb_graph/link_spec.rb",
385
- "spec/fb_graph/location_spec.rb",
386
- "spec/fb_graph/message_spec.rb",
387
- "spec/fb_graph/node_spec.rb",
388
- "spec/fb_graph/note_spec.rb",
389
- "spec/fb_graph/page/local_business_spec.rb",
390
- "spec/fb_graph/page/movie_spec.rb",
391
- "spec/fb_graph/page/music_spec.rb",
392
- "spec/fb_graph/page/person_spec.rb",
393
- "spec/fb_graph/page/product_spec.rb",
394
- "spec/fb_graph/page_spec.rb",
395
- "spec/fb_graph/photo_spec.rb",
396
- "spec/fb_graph/place_spec.rb",
397
- "spec/fb_graph/post_spec.rb",
398
- "spec/fb_graph/privacy_spec.rb",
399
- "spec/fb_graph/project_spec.rb",
400
- "spec/fb_graph/query/core_spec.rb",
401
- "spec/fb_graph/searchable_spec.rb",
402
- "spec/fb_graph/seriarization_spec.rb",
403
- "spec/fb_graph/status_spec.rb",
404
- "spec/fb_graph/subscription_spec.rb",
405
- "spec/fb_graph/tag_spec.rb",
406
- "spec/fb_graph/targeting_spec.rb",
407
- "spec/fb_graph/test_user_spec.rb",
408
- "spec/fb_graph/thread_spec.rb",
409
- "spec/fb_graph/user_spec.rb",
410
- "spec/fb_graph/venue_spec.rb",
411
- "spec/fb_graph/video_spec.rb",
412
- "spec/fb_graph/work_spec.rb",
413
- "spec/helpers/fake_json_helper.rb",
414
- "spec/spec_helper.rb"
415
- ]
416
-
417
- if s.respond_to? :specification_version then
418
- s.specification_version = 3
419
-
420
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
421
- s.add_runtime_dependency(%q<rack-oauth2>, [">= 0.6.5"])
422
- s.add_development_dependency(%q<rspec>, ["~> 1.3"])
423
- s.add_development_dependency(%q<rcov>, [">= 0"])
424
- s.add_development_dependency(%q<fakeweb>, [">= 1.3.0"])
425
- else
426
- s.add_dependency(%q<rack-oauth2>, [">= 0.6.5"])
427
- s.add_dependency(%q<rspec>, ["~> 1.3"])
428
- s.add_dependency(%q<rcov>, [">= 0"])
429
- s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
430
- end
431
- else
432
- s.add_dependency(%q<rack-oauth2>, [">= 0.6.5"])
433
- s.add_dependency(%q<rspec>, ["~> 1.3"])
434
- s.add_dependency(%q<rcov>, [">= 0"])
435
- s.add_dependency(%q<fakeweb>, [">= 1.3.0"])
436
- end
7
+ s.email = "nov@matake.jp"
8
+ s.extra_rdoc_files = ["LICENSE", "README.rdoc"]
9
+ s.rdoc_options = ["--charset=UTF-8"]
10
+ s.homepage = "http://github.com/nov/fb_graph"
11
+ s.require_paths = ["lib"]
12
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
13
+ s.files = `git ls-files`.split("\n")
14
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
+ s.add_runtime_dependency "rack-oauth2", ">= 0.6.5"
16
+ s.add_development_dependency "rake", ">= 0.8"
17
+ s.add_development_dependency "rcov", ">= 0.9"
18
+ s.add_development_dependency "rspec", ">= 2"
19
+ s.add_development_dependency "webmock", ">= 1.6.2"
437
20
  end
438
-
@@ -0,0 +1,14 @@
1
+ module FbGraph
2
+ module Connections
3
+ module Family
4
+ def family(options = {})
5
+ users = self.connection(:family, options)
6
+ users.map! do |user|
7
+ User.new(user.delete(:id), user.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ ))
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ module FbGraph
2
+ module Connections
3
+ module Permissions
4
+ def permissions(options = {})
5
+ self.connection(:permissions, options).first.inject([]) do |arr, (key, value)|
6
+ arr << key.to_sym if value.to_i == 1
7
+ arr
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -20,6 +20,7 @@ module FbGraph
20
20
  :general_info,
21
21
  :general_manager,
22
22
  :genre,
23
+ :hometown,
23
24
  :influences,
24
25
  :is_community_page,
25
26
  :link,