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.
- data/.rspec-tm +1 -0
- data/VERSION +1 -1
- data/fb_graph.gemspec +4 -3
- data/lib/fb_graph/page/category_attributes.rb +5 -1
- data/spec/fb_graph/album_spec.rb +1 -1
- data/spec/fb_graph/app_request_spec.rb +1 -1
- data/spec/fb_graph/application_spec.rb +1 -1
- data/spec/fb_graph/auth/cookie_spec.rb +1 -1
- data/spec/fb_graph/auth/signed_request_spec.rb +1 -1
- data/spec/fb_graph/auth_spec.rb +1 -1
- data/spec/fb_graph/checkin_spec.rb +1 -1
- data/spec/fb_graph/collection_spec.rb +1 -1
- data/spec/fb_graph/comment_spec.rb +1 -1
- data/spec/fb_graph/connection_spec.rb +1 -1
- data/spec/fb_graph/connections/accounts_spec.rb +1 -1
- data/spec/fb_graph/connections/activities_spec.rb +2 -1
- data/spec/fb_graph/connections/albums_spec.rb +2 -1
- data/spec/fb_graph/connections/app_requests_spec.rb +1 -1
- data/spec/fb_graph/connections/attending_spec.rb +1 -1
- data/spec/fb_graph/connections/books_spec.rb +1 -1
- data/spec/fb_graph/connections/checkins_spec.rb +1 -1
- data/spec/fb_graph/connections/comments_spec.rb +1 -1
- data/spec/fb_graph/connections/declined_spec.rb +1 -1
- data/spec/fb_graph/connections/events_spec.rb +1 -1
- data/spec/fb_graph/connections/feed_spec.rb +1 -1
- data/spec/fb_graph/connections/former_participants_spec.rb +1 -1
- data/spec/fb_graph/connections/friend_lists_spec.rb +1 -1
- data/spec/fb_graph/connections/friends_spec.rb +1 -1
- data/spec/fb_graph/connections/games_spec.rb +1 -1
- data/spec/fb_graph/connections/groups_spec.rb +1 -1
- data/spec/fb_graph/connections/home_spec.rb +2 -1
- data/spec/fb_graph/connections/insights_spec.rb +1 -1
- data/spec/fb_graph/connections/interests_spec.rb +1 -1
- data/spec/fb_graph/connections/invited_spec.rb +1 -1
- data/spec/fb_graph/connections/likes_spec.rb +2 -1
- data/spec/fb_graph/connections/links_spec.rb +1 -1
- data/spec/fb_graph/connections/maybe_spec.rb +1 -1
- data/spec/fb_graph/connections/members_spec.rb +1 -1
- data/spec/fb_graph/connections/messages_spec.rb +1 -1
- data/spec/fb_graph/connections/movies_spec.rb +1 -1
- data/spec/fb_graph/connections/music_spec.rb +1 -1
- data/spec/fb_graph/connections/noreply_spec.rb +1 -1
- data/spec/fb_graph/connections/notes_spec.rb +1 -1
- data/spec/fb_graph/connections/participants_spec.rb +1 -1
- data/spec/fb_graph/connections/photos_spec.rb +1 -1
- data/spec/fb_graph/connections/picture_spec.rb +1 -1
- data/spec/fb_graph/connections/posts_spec.rb +1 -1
- data/spec/fb_graph/connections/senders_spec.rb +1 -1
- data/spec/fb_graph/connections/statuses_spec.rb +1 -1
- data/spec/fb_graph/connections/subscriptions_spec.rb +1 -1
- data/spec/fb_graph/connections/tagged_spec.rb +2 -1
- data/spec/fb_graph/connections/television_spec.rb +1 -1
- data/spec/fb_graph/connections/test_users_spec.rb +1 -1
- data/spec/fb_graph/connections/threads_spec.rb +1 -1
- data/spec/fb_graph/connections/videos_spec.rb +1 -1
- data/spec/fb_graph/education_spec.rb +1 -1
- data/spec/fb_graph/event_spec.rb +1 -1
- data/spec/fb_graph/exception_spec.rb +1 -1
- data/spec/fb_graph/friend_list_spec.rb +1 -1
- data/spec/fb_graph/group_spec.rb +1 -1
- data/spec/fb_graph/insight_spec.rb +1 -1
- data/spec/fb_graph/link_spec.rb +1 -1
- data/spec/fb_graph/location_spec.rb +1 -1
- data/spec/fb_graph/message_spec.rb +1 -1
- data/spec/fb_graph/node_spec.rb +1 -1
- data/spec/fb_graph/note_spec.rb +1 -1
- data/spec/fb_graph/page/local_business_spec.rb +2 -1
- data/spec/fb_graph/page/movie_spec.rb +1 -1
- data/spec/fb_graph/page/music_spec.rb +1 -1
- data/spec/fb_graph/page/person_spec.rb +1 -1
- data/spec/fb_graph/page/product_spec.rb +1 -1
- data/spec/fb_graph/page_spec.rb +1 -1
- data/spec/fb_graph/photo_spec.rb +1 -1
- data/spec/fb_graph/place_spec.rb +1 -1
- data/spec/fb_graph/post_spec.rb +1 -1
- data/spec/fb_graph/privacy_spec.rb +1 -1
- data/spec/fb_graph/project_spec.rb +1 -1
- data/spec/fb_graph/query/core_spec.rb +1 -1
- data/spec/fb_graph/searchable_spec.rb +1 -1
- data/spec/fb_graph/seriarization_spec.rb +1 -1
- data/spec/fb_graph/status_spec.rb +1 -1
- data/spec/fb_graph/subscription_spec.rb +1 -1
- data/spec/fb_graph/tag_spec.rb +1 -1
- data/spec/fb_graph/targeting_spec.rb +1 -1
- data/spec/fb_graph/test_user_spec.rb +1 -1
- data/spec/fb_graph/thread_spec.rb +1 -1
- data/spec/fb_graph/user_spec.rb +2 -2
- data/spec/fb_graph/venue_spec.rb +1 -1
- data/spec/fb_graph/video_spec.rb +1 -1
- data/spec/fb_graph/work_spec.rb +1 -1
- metadata +4 -33
data/.rspec-tm
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--rspec-version 1.3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
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.
|
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-
|
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.
|
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 =
|
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
|
data/spec/fb_graph/album_spec.rb
CHANGED
data/spec/fb_graph/auth_spec.rb
CHANGED
data/spec/fb_graph/event_spec.rb
CHANGED
data/spec/fb_graph/group_spec.rb
CHANGED
data/spec/fb_graph/link_spec.rb
CHANGED
data/spec/fb_graph/node_spec.rb
CHANGED
data/spec/fb_graph/note_spec.rb
CHANGED
data/spec/fb_graph/page_spec.rb
CHANGED
data/spec/fb_graph/photo_spec.rb
CHANGED
data/spec/fb_graph/place_spec.rb
CHANGED
data/spec/fb_graph/post_spec.rb
CHANGED
data/spec/fb_graph/tag_spec.rb
CHANGED
data/spec/fb_graph/user_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
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.
|
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},
|
data/spec/fb_graph/venue_spec.rb
CHANGED
data/spec/fb_graph/video_spec.rb
CHANGED
data/spec/fb_graph/work_spec.rb
CHANGED
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
|
-
|
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-
|
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.
|
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.
|