fb_graph 1.3.5 → 1.3.6

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.
@@ -25,8 +25,7 @@
25
25
  "value": "EVERYONE"
26
26
  },
27
27
  "created_time": "2010-04-24T08:07:59+0000",
28
- "updated_time": "2010-04-24T08:07:59+0000",
29
- "likes": 1
28
+ "updated_time": "2010-04-24T08:07:59+0000"
30
29
  },
31
30
  {
32
31
  "id": "7901103_10100207879175340",
@@ -223,8 +222,7 @@
223
222
  "value": "EVERYONE"
224
223
  },
225
224
  "created_time": "2010-04-21T18:00:23+0000",
226
- "updated_time": "2010-04-21T18:00:23+0000",
227
- "likes": 3
225
+ "updated_time": "2010-04-21T18:00:23+0000"
228
226
  },
229
227
  {
230
228
  "id": "7901103_113242142040451",
@@ -250,7 +248,6 @@
250
248
  },
251
249
  "created_time": "2010-04-21T17:55:50+0000",
252
250
  "updated_time": "2010-04-21T20:22:56+0000",
253
- "likes": 1,
254
251
  "comments": {
255
252
  "data": [
256
253
  {
@@ -297,8 +294,7 @@
297
294
  "value": "EVERYONE"
298
295
  },
299
296
  "created_time": "2010-04-21T07:55:49+0000",
300
- "updated_time": "2010-04-21T07:55:49+0000",
301
- "likes": 1
297
+ "updated_time": "2010-04-21T07:55:49+0000"
302
298
  }
303
299
  ],
304
300
  "paging": {
@@ -24,7 +24,6 @@ describe FbGraph::Connections::Feed, '#feed' do
24
24
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif',
25
25
  :created_time => '2010-04-25T04:05:32+0000',
26
26
  :updated_time => '2010-04-25T04:05:32+0000',
27
- :likes => 1,
28
27
  :privacy => {
29
28
  :value => 'EVERYONE'
30
29
  }
@@ -53,7 +52,6 @@ describe FbGraph::Connections::Feed, '#feed' do
53
52
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif',
54
53
  :created_time => '2010-04-25T04:05:32+0000',
55
54
  :updated_time => '2010-04-25T04:05:32+0000',
56
- :likes => 1,
57
55
  :privacy => {
58
56
  :value => 'EVERYONE'
59
57
  }
@@ -24,7 +24,6 @@ describe FbGraph::Connections::Posts, '#posts' do
24
24
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/z9XZ8/hash/976ulj6z.gif',
25
25
  :created_time => '2010-04-25T04:05:32+0000',
26
26
  :updated_time => '2010-04-25T04:05:32+0000',
27
- :likes => 1,
28
27
  :privacy => {
29
28
  :value => 'EVERYONE'
30
29
  }
@@ -31,7 +31,6 @@ describe FbGraph::Connections::Tagged, '#tagged' do
31
31
  :icon => 'http://static.ak.fbcdn.net/rsrc.php/zB010/hash/9yvl71tw.gif',
32
32
  :created_time => '2010-04-24T08:07:59+0000',
33
33
  :updated_time => '2010-04-24T08:07:59+0000',
34
- :likes => 1,
35
34
  :privacy => {
36
35
  :value => 'EVERYONE'
37
36
  }
@@ -10,7 +10,7 @@ describe FbGraph::Page, '.new' do
10
10
  :username => 'platform',
11
11
  :mission => 'To make the web more open and social.',
12
12
  :products => "Facebook Application Programming Interface (API)\nFacebook Query Language (FQL)\nFacebook Markup Language (FBML)\nFacebook JavaScript (FBJS)\nFacebook Connect\n",
13
- :fan_count => 578246,
13
+ :likes => 578246,
14
14
  :company_overview => 'Facebook Platform enables anyone to build social applications on Facebook and the web.',
15
15
  :link => 'http://www.facebook.com/platform',
16
16
  :picture => 'http://profile.ak.fbcdn.net/profile-ak-snc1/object3/1566/8/s19292868552_1660.jpg',
@@ -30,11 +30,12 @@ describe FbGraph::Page, '.new' do
30
30
  'Facebook JavaScript (FBJS)',
31
31
  'Facebook Connect'
32
32
  ]
33
- page.fan_count.should == 578246
33
+ page.like_count.should == 578246
34
34
  page.company_overview.should == 'Facebook Platform enables anyone to build social applications on Facebook and the web.'
35
- page.link.should == 'http://www.facebook.com/platform'
36
- page.picture.should == 'https://graph.facebook.com/19292868552/picture' # use connection
37
- page.website.should == 'http://developers.facebook.com'
35
+ page.link.should == 'http://www.facebook.com/platform'
36
+ page.picture.should == 'https://graph.facebook.com/19292868552/picture' # use connection
37
+ page.website.should == 'http://developers.facebook.com'
38
+ page.websites.should == ['http://developers.facebook.com']
38
39
  end
39
40
 
40
41
  it 'should allow invalid date as founded' do
@@ -109,7 +109,10 @@ describe FbGraph::Post, '#fetch' do
109
109
  :category => "Technology"
110
110
  )
111
111
  post.message.should == "We're getting ready for f8! Check out the latest on the f8 Page, including a video from the first event, when Platform launched :: http://bit.ly/ahHl7j"
112
- post.like_count.should == 61
112
+ post.likes.should == [
113
+ FbGraph::User.new("100000785546814", :name => "Anter Saied")
114
+ ]
115
+ post.likes.collection.total_count.should == 270
113
116
  post.created_time.should == Time.parse("2010-04-15T17:37:03+0000")
114
117
  post.updated_time.should == Time.parse("2010-04-22T18:19:13+0000")
115
118
  post.comments.size.should == 4
@@ -130,7 +133,6 @@ describe FbGraph::Post, '#fetch' do
130
133
  :category => "Technology"
131
134
  )
132
135
  post.message.should == "We're getting ready for f8! Check out the latest on the f8 Page, including a video from the first event, when Platform launched :: http://bit.ly/ahHl7j"
133
- post.like_count.should == 61
134
136
  post.created_time.should == Time.parse("2010-04-15T17:37:03+0000")
135
137
  post.updated_time.should == Time.parse("2010-04-22T18:19:13+0000")
136
138
  post.comments.size.should == 9
@@ -43,7 +43,8 @@ describe FbGraph::User, '.fetch' do
43
43
  user.interested_in.should == ['female']
44
44
  user.meeting_for.should == ['Friendship', 'Networking']
45
45
  user.relationship_status.should == 'Married'
46
- user.website.should == ['http://matake.jp']
46
+ user.website.should == 'http://matake.jp'
47
+ user.websites.should == ['http://matake.jp']
47
48
  user.religion.should be_nil
48
49
  user.political.should be_nil
49
50
  user.timezone.should == 9
@@ -122,7 +123,8 @@ describe FbGraph::User, '.fetch' do
122
123
  })
123
124
  ]
124
125
  user.email.should == nil
125
- user.website.should == []
126
+ user.website.should == nil
127
+ user.websites.should == []
126
128
  user.hometown.should == FbGraph::Page.new(109533479072558, :name => 'Minnetonka, Minnesota')
127
129
  user.interested_in.should == ['female']
128
130
  user.meeting_for.should == ['Friendship']
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: 17
5
- prerelease:
4
+ hash: 23
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 5
10
- version: 1.3.5
9
+ - 6
10
+ version: 1.3.6
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-01-15 00:00:00 +09:00
18
+ date: 2011-01-17 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -136,6 +136,7 @@ extra_rdoc_files:
136
136
  - README.rdoc
137
137
  files:
138
138
  - .document
139
+ - .gitignore
139
140
  - LICENSE
140
141
  - README.rdoc
141
142
  - Rakefile
@@ -396,8 +397,8 @@ homepage: http://github.com/nov/fb_graph
396
397
  licenses: []
397
398
 
398
399
  post_install_message:
399
- rdoc_options: []
400
-
400
+ rdoc_options:
401
+ - --charset=UTF-8
401
402
  require_paths:
402
403
  - lib
403
404
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -421,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
421
422
  requirements: []
422
423
 
423
424
  rubyforge_project:
424
- rubygems_version: 1.4.1
425
+ rubygems_version: 1.3.7
425
426
  signing_key:
426
427
  specification_version: 3
427
428
  summary: A full-stack Facebook Graph API wrapper in Ruby.