fb_graph 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/.rspec-tm +1 -0
  2. data/VERSION +1 -1
  3. data/fb_graph.gemspec +4 -3
  4. data/lib/fb_graph/page/category_attributes.rb +5 -1
  5. data/spec/fb_graph/album_spec.rb +1 -1
  6. data/spec/fb_graph/app_request_spec.rb +1 -1
  7. data/spec/fb_graph/application_spec.rb +1 -1
  8. data/spec/fb_graph/auth/cookie_spec.rb +1 -1
  9. data/spec/fb_graph/auth/signed_request_spec.rb +1 -1
  10. data/spec/fb_graph/auth_spec.rb +1 -1
  11. data/spec/fb_graph/checkin_spec.rb +1 -1
  12. data/spec/fb_graph/collection_spec.rb +1 -1
  13. data/spec/fb_graph/comment_spec.rb +1 -1
  14. data/spec/fb_graph/connection_spec.rb +1 -1
  15. data/spec/fb_graph/connections/accounts_spec.rb +1 -1
  16. data/spec/fb_graph/connections/activities_spec.rb +2 -1
  17. data/spec/fb_graph/connections/albums_spec.rb +2 -1
  18. data/spec/fb_graph/connections/app_requests_spec.rb +1 -1
  19. data/spec/fb_graph/connections/attending_spec.rb +1 -1
  20. data/spec/fb_graph/connections/books_spec.rb +1 -1
  21. data/spec/fb_graph/connections/checkins_spec.rb +1 -1
  22. data/spec/fb_graph/connections/comments_spec.rb +1 -1
  23. data/spec/fb_graph/connections/declined_spec.rb +1 -1
  24. data/spec/fb_graph/connections/events_spec.rb +1 -1
  25. data/spec/fb_graph/connections/feed_spec.rb +1 -1
  26. data/spec/fb_graph/connections/former_participants_spec.rb +1 -1
  27. data/spec/fb_graph/connections/friend_lists_spec.rb +1 -1
  28. data/spec/fb_graph/connections/friends_spec.rb +1 -1
  29. data/spec/fb_graph/connections/games_spec.rb +1 -1
  30. data/spec/fb_graph/connections/groups_spec.rb +1 -1
  31. data/spec/fb_graph/connections/home_spec.rb +2 -1
  32. data/spec/fb_graph/connections/insights_spec.rb +1 -1
  33. data/spec/fb_graph/connections/interests_spec.rb +1 -1
  34. data/spec/fb_graph/connections/invited_spec.rb +1 -1
  35. data/spec/fb_graph/connections/likes_spec.rb +2 -1
  36. data/spec/fb_graph/connections/links_spec.rb +1 -1
  37. data/spec/fb_graph/connections/maybe_spec.rb +1 -1
  38. data/spec/fb_graph/connections/members_spec.rb +1 -1
  39. data/spec/fb_graph/connections/messages_spec.rb +1 -1
  40. data/spec/fb_graph/connections/movies_spec.rb +1 -1
  41. data/spec/fb_graph/connections/music_spec.rb +1 -1
  42. data/spec/fb_graph/connections/noreply_spec.rb +1 -1
  43. data/spec/fb_graph/connections/notes_spec.rb +1 -1
  44. data/spec/fb_graph/connections/participants_spec.rb +1 -1
  45. data/spec/fb_graph/connections/photos_spec.rb +1 -1
  46. data/spec/fb_graph/connections/picture_spec.rb +1 -1
  47. data/spec/fb_graph/connections/posts_spec.rb +1 -1
  48. data/spec/fb_graph/connections/senders_spec.rb +1 -1
  49. data/spec/fb_graph/connections/statuses_spec.rb +1 -1
  50. data/spec/fb_graph/connections/subscriptions_spec.rb +1 -1
  51. data/spec/fb_graph/connections/tagged_spec.rb +2 -1
  52. data/spec/fb_graph/connections/television_spec.rb +1 -1
  53. data/spec/fb_graph/connections/test_users_spec.rb +1 -1
  54. data/spec/fb_graph/connections/threads_spec.rb +1 -1
  55. data/spec/fb_graph/connections/videos_spec.rb +1 -1
  56. data/spec/fb_graph/education_spec.rb +1 -1
  57. data/spec/fb_graph/event_spec.rb +1 -1
  58. data/spec/fb_graph/exception_spec.rb +1 -1
  59. data/spec/fb_graph/friend_list_spec.rb +1 -1
  60. data/spec/fb_graph/group_spec.rb +1 -1
  61. data/spec/fb_graph/insight_spec.rb +1 -1
  62. data/spec/fb_graph/link_spec.rb +1 -1
  63. data/spec/fb_graph/location_spec.rb +1 -1
  64. data/spec/fb_graph/message_spec.rb +1 -1
  65. data/spec/fb_graph/node_spec.rb +1 -1
  66. data/spec/fb_graph/note_spec.rb +1 -1
  67. data/spec/fb_graph/page/local_business_spec.rb +2 -1
  68. data/spec/fb_graph/page/movie_spec.rb +1 -1
  69. data/spec/fb_graph/page/music_spec.rb +1 -1
  70. data/spec/fb_graph/page/person_spec.rb +1 -1
  71. data/spec/fb_graph/page/product_spec.rb +1 -1
  72. data/spec/fb_graph/page_spec.rb +1 -1
  73. data/spec/fb_graph/photo_spec.rb +1 -1
  74. data/spec/fb_graph/place_spec.rb +1 -1
  75. data/spec/fb_graph/post_spec.rb +1 -1
  76. data/spec/fb_graph/privacy_spec.rb +1 -1
  77. data/spec/fb_graph/project_spec.rb +1 -1
  78. data/spec/fb_graph/query/core_spec.rb +1 -1
  79. data/spec/fb_graph/searchable_spec.rb +1 -1
  80. data/spec/fb_graph/seriarization_spec.rb +1 -1
  81. data/spec/fb_graph/status_spec.rb +1 -1
  82. data/spec/fb_graph/subscription_spec.rb +1 -1
  83. data/spec/fb_graph/tag_spec.rb +1 -1
  84. data/spec/fb_graph/targeting_spec.rb +1 -1
  85. data/spec/fb_graph/test_user_spec.rb +1 -1
  86. data/spec/fb_graph/thread_spec.rb +1 -1
  87. data/spec/fb_graph/user_spec.rb +2 -2
  88. data/spec/fb_graph/venue_spec.rb +1 -1
  89. data/spec/fb_graph/video_spec.rb +1 -1
  90. data/spec/fb_graph/work_spec.rb +1 -1
  91. metadata +4 -33
data/.rspec-tm ADDED
@@ -0,0 +1 @@
1
+ --rspec-version 1.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.7.1
data/fb_graph.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.7.0"
8
+ s.version = "1.7.1"
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-04-23}
12
+ s.date = %q{2011-04-24}
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 = [
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
+ ".rspec-tm",
21
22
  "LICENSE",
22
23
  "README.rdoc",
23
24
  "Rakefile",
@@ -320,7 +321,7 @@ Gem::Specification.new do |s|
320
321
  ]
321
322
  s.homepage = %q{http://github.com/nov/fb_graph}
322
323
  s.require_paths = ["lib"]
323
- s.rubygems_version = %q{1.5.3}
324
+ s.rubygems_version = %q{1.7.2}
324
325
  s.summary = %q{A full-stack Facebook Graph API wrapper in Ruby.}
325
326
  s.test_files = [
326
327
  "spec/fb_graph/album_spec.rb",
@@ -78,7 +78,11 @@ module FbGraph
78
78
  end
79
79
  @@attributes[:date].each do |key|
80
80
  if attributes[key]
81
- value = Date.parse(attributes[key]) rescue attributes[key]
81
+ value = if attributes[key] =~ /\d{2}\/\d{2}\/\d{4}/
82
+ Date.strptime(attributes[key], '%m/%d/%Y')
83
+ else
84
+ Date.parse(attributes[key]) rescue attributes[key]
85
+ end
82
86
  self.send :"#{key}=", value
83
87
  end
84
88
  end
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Album, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::AppRequest, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Application, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Auth::Cookie, '.parse' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Auth::SignedRequest, '.parse' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Auth, '.new' do
4
4
  it 'should setup Rack::OAuth2::Client' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Checkin, '.new' do
4
4
  it 'should accept FbGraph::Place as place' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Collection, '.new' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Comment, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connection, '.new' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Accounts, '#accounts' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Connections::Activities, '#activities' do
4
5
  context 'when included by FbGraph::User' do
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Connections::Albums, '#albums' do
4
5
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::AppRequests, '#app_requests' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Attending, '#attending' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Books, '#books' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Checkins, '#checkins' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Comments, '#comments' do
4
4
  context 'when included by FbGraph::Post' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Declined, '#declined' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Events, '#events' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Feed, '#feed' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::FormerParticipants, '#former_participants' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::FriendLists, '#friend_lists' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Friends, '#friends' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Activities, '#activities' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Groups, '#groups' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Connections::Home, '#home' do
4
5
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Insights, '#insights' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Interests, '#interests' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Invited, '#invited' do
4
4
  before do
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Connections::Likes, '#likes' do
4
5
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Links, '#links' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Maybe, '#maybe' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Friends, '#friends' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Messages, '#messages' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Movies, '#movies' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Music, '#music' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Noreply, '#noreply' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Notes, '#notes' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Participants, '#participants' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Photos, '#photos' do
4
4
  context 'when included by FbGraph::Album' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Picture, '#picture' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Posts, '#posts' do
4
4
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Senders, '#senders' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Statuses, '#statuses' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Subscriptions, '#subscriptions' do
4
4
  context 'when included by FbGraph::Application' do
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Connections::Tagged, '#tagged' do
4
5
  context 'when included by FbGraph::User' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Television, '#television' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::TestUsers, '#test_users' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Threads, '#threads' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Connections::Videos, '#videos' do
4
4
  before do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Education, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Event do
4
4
  let :attributes do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Exception do
4
4
  context 'when response body is given' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::FriendList, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Group, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Insight, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Link, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Location, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Message, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Node, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Note, '.new' do
4
4
 
@@ -1,4 +1,5 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ # -*- coding: utf-8 -*-
2
+ require 'spec_helper'
2
3
 
3
4
  describe FbGraph::Page do
4
5
  context 'for local_business category' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Page do
4
4
  context 'for people category' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Page do
4
4
  context 'for music category' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Page do
4
4
  context 'for person category' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Page do
4
4
  context 'for product category' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Page do
4
4
  let(:attributes) do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Photo, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Place, '.to_json' do
4
4
  it 'should return identifier' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Post, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Privacy, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Project, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Query, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Searchable do
4
4
  context 'when included by FbGraph::Page' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  class Klass1
4
4
  include FbGraph::Serialization
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Status, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Subscription, '.new' do
4
4
  # TODO
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Tag, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Targeting, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::TestUser, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Thread, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::User, '.new' do
4
4
  it 'should setup all supported attributes' do
@@ -93,7 +93,7 @@ describe FbGraph::User, '.fetch' do
93
93
 
94
94
  # private
95
95
  user.about.should == 'daydrea'
96
- user.birthday.should == Date.parse('04/15/1984')
96
+ user.birthday.should == Date.strptime("04/15/1984", "%m/%d/%Y")
97
97
  user.work.should == [
98
98
  FbGraph::Work.new({
99
99
  :employer => {:name => 'Facebook', :id => 20531316728},
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Venue, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Video, '.new' do
4
4
 
@@ -1,4 +1,4 @@
1
- require File.join(File.dirname(__FILE__), '../spec_helper')
1
+ require 'spec_helper'
2
2
 
3
3
  describe FbGraph::Work, '.new' do
4
4
 
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 7
9
- - 0
10
- version: 1.7.0
5
+ version: 1.7.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - nov matake
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-04-23 00:00:00 +09:00
19
- default_executable:
13
+ date: 2011-04-24 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: rack-oauth2
@@ -26,11 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 0
32
- - 6
33
- - 5
34
23
  version: 0.6.5
35
24
  type: :runtime
36
25
  version_requirements: *id001
@@ -42,10 +31,6 @@ dependencies:
42
31
  requirements:
43
32
  - - ~>
44
33
  - !ruby/object:Gem::Version
45
- hash: 9
46
- segments:
47
- - 1
48
- - 3
49
34
  version: "1.3"
50
35
  type: :development
51
36
  version_requirements: *id002
@@ -57,9 +42,6 @@ dependencies:
57
42
  requirements:
58
43
  - - ">="
59
44
  - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
45
  version: "0"
64
46
  type: :development
65
47
  version_requirements: *id003
@@ -71,11 +53,6 @@ dependencies:
71
53
  requirements:
72
54
  - - ">="
73
55
  - !ruby/object:Gem::Version
74
- hash: 27
75
- segments:
76
- - 1
77
- - 3
78
- - 0
79
56
  version: 1.3.0
80
57
  type: :development
81
58
  version_requirements: *id004
@@ -90,6 +67,7 @@ extra_rdoc_files:
90
67
  - README.rdoc
91
68
  files:
92
69
  - .document
70
+ - .rspec-tm
93
71
  - LICENSE
94
72
  - README.rdoc
95
73
  - Rakefile
@@ -389,7 +367,6 @@ files:
389
367
  - spec/helpers/fake_json_helper.rb
390
368
  - spec/spec.opts
391
369
  - spec/spec_helper.rb
392
- has_rdoc: true
393
370
  homepage: http://github.com/nov/fb_graph
394
371
  licenses: []
395
372
 
@@ -403,23 +380,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
403
380
  requirements:
404
381
  - - ">="
405
382
  - !ruby/object:Gem::Version
406
- hash: 3
407
- segments:
408
- - 0
409
383
  version: "0"
410
384
  required_rubygems_version: !ruby/object:Gem::Requirement
411
385
  none: false
412
386
  requirements:
413
387
  - - ">="
414
388
  - !ruby/object:Gem::Version
415
- hash: 3
416
- segments:
417
- - 0
418
389
  version: "0"
419
390
  requirements: []
420
391
 
421
392
  rubyforge_project:
422
- rubygems_version: 1.5.3
393
+ rubygems_version: 1.7.2
423
394
  signing_key:
424
395
  specification_version: 3
425
396
  summary: A full-stack Facebook Graph API wrapper in Ruby.