fb_graph 2.2.0.beta → 2.2.0
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.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/fb_graph/action.rb +3 -3
- data/lib/fb_graph/connections/pokes.rb +12 -0
- data/lib/fb_graph/connections/question_options.rb +18 -0
- data/lib/fb_graph/connections/votes.rb +9 -0
- data/lib/fb_graph/location.rb +3 -3
- data/lib/fb_graph/poke.rb +19 -0
- data/lib/fb_graph/privacy.rb +7 -7
- data/lib/fb_graph/property.rb +4 -4
- data/lib/fb_graph/question.rb +26 -0
- data/lib/fb_graph/question_option.rb +22 -0
- data/lib/fb_graph/targeting.rb +5 -5
- data/lib/fb_graph/user.rb +1 -0
- data/lib/fb_graph/venue.rb +6 -6
- data/lib/fb_graph.rb +3 -0
- data/spec/fb_graph/connections/pokes_spec.rb +16 -0
- data/spec/fb_graph/connections/question_options_spec.rb +14 -0
- data/spec/fb_graph/connections/votes_spec.rb +15 -0
- data/spec/fb_graph/qeustion_option_spec.rb +35 -0
- data/spec/fb_graph/question_spec.rb +72 -0
- data/spec/mock_json/questions/options/matake_private.json +52 -0
- data/spec/mock_json/questions/options/votes/matake_private.json +15 -0
- data/spec/mock_json/users/pokes/sample.json +1 -0
- metadata +41 -19
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.0
|
1
|
+
2.2.0
|
data/lib/fb_graph/action.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module FbGraph
|
2
|
+
module Connections
|
3
|
+
module QuestionOptions
|
4
|
+
def options(opts = {})
|
5
|
+
question_options = if @_options_ && opts.blank?
|
6
|
+
self.connection(:question_options, opts.merge(:cached_collection => @_options_))
|
7
|
+
else
|
8
|
+
self.connection(:question_options, opts)
|
9
|
+
end
|
10
|
+
question_options.map! do |option|
|
11
|
+
QuestionOption.new(option[:id], option.merge(
|
12
|
+
:access_token => opts[:access_token] || self.access_token
|
13
|
+
))
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/fb_graph/location.rb
CHANGED
@@ -5,9 +5,9 @@ module FbGraph
|
|
5
5
|
|
6
6
|
attr_accessor :latitude, :longitude
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@latitude =
|
10
|
-
@longitude =
|
8
|
+
def initialize(attributes = {})
|
9
|
+
@latitude = attributes[:latitude]
|
10
|
+
@longitude = attributes[:longitude]
|
11
11
|
end
|
12
12
|
|
13
13
|
def to_hash(options = {})
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module FbGraph
|
2
|
+
class Poke
|
3
|
+
include Comparison
|
4
|
+
|
5
|
+
attr_accessor :from, :to, :created_time
|
6
|
+
|
7
|
+
def initialize(attributes = {})
|
8
|
+
if from = attributes[:from]
|
9
|
+
@from = User.new from[:id], from
|
10
|
+
end
|
11
|
+
if to = attributes[:to]
|
12
|
+
@to = User.new to[:id], to
|
13
|
+
end
|
14
|
+
if attributes[:created_time]
|
15
|
+
@created_time = Time.parse attributes[:created_time]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/fb_graph/privacy.rb
CHANGED
@@ -5,13 +5,13 @@ module FbGraph
|
|
5
5
|
|
6
6
|
attr_accessor :value, :friends, :networks, :allow, :deny
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@value =
|
10
|
-
@description =
|
11
|
-
@friends =
|
12
|
-
@networks =
|
13
|
-
@allow =
|
14
|
-
@deny =
|
8
|
+
def initialize(attributes = {})
|
9
|
+
@value = attributes[:value]
|
10
|
+
@description = attributes[:description]
|
11
|
+
@friends = attributes[:friends]
|
12
|
+
@networks = attributes[:networks]
|
13
|
+
@allow = attributes[:allow]
|
14
|
+
@deny = attributes[:deny]
|
15
15
|
end
|
16
16
|
|
17
17
|
def to_hash(options = {})
|
data/lib/fb_graph/property.rb
CHANGED
@@ -4,10 +4,10 @@ module FbGraph
|
|
4
4
|
|
5
5
|
attr_accessor :name, :text, :href
|
6
6
|
|
7
|
-
def initialize(
|
8
|
-
@name =
|
9
|
-
@text =
|
10
|
-
@href =
|
7
|
+
def initialize(attributes = {})
|
8
|
+
@name = attributes[:name]
|
9
|
+
@text = attributes[:text]
|
10
|
+
@href = attributes[:href]
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module FbGraph
|
2
|
+
class Question < Node
|
3
|
+
include Connections::QuestionOptions
|
4
|
+
|
5
|
+
attr_accessor :from, :question, :created_time, :updated_time
|
6
|
+
|
7
|
+
def initialize(identifier, attributes = {})
|
8
|
+
super
|
9
|
+
@from = if attributes[:from]
|
10
|
+
User.new(attributes[:from][:id], attributes[:from])
|
11
|
+
end
|
12
|
+
@question = attributes[:question]
|
13
|
+
@created_time = if attributes[:created_time]
|
14
|
+
Time.parse(attributes[:created_time]).utc
|
15
|
+
end
|
16
|
+
@updated_time = if attributes[:updated_time]
|
17
|
+
Time.parse(attributes[:updated_time]).utc
|
18
|
+
end
|
19
|
+
|
20
|
+
@_options_ = if attributes[:options]
|
21
|
+
# cached options
|
22
|
+
Collection.new(attributes[:options])
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module FbGraph
|
2
|
+
class QuestionOption < Node
|
3
|
+
include Connections::Votes
|
4
|
+
|
5
|
+
attr_accessor :from, :name, :vote_count, :object, :created_time
|
6
|
+
|
7
|
+
def initialize(identifier, attributes = {})
|
8
|
+
super
|
9
|
+
@from = if attributes[:from]
|
10
|
+
User.new(attributes[:from][:id], attributes[:from])
|
11
|
+
end
|
12
|
+
@name = attributes[:name]
|
13
|
+
@vote_count = attributes[:votes]
|
14
|
+
@object = if attributes[:object]
|
15
|
+
Page.new(attributes[:object][:id], attributes[:object])
|
16
|
+
end
|
17
|
+
@created_time = if attributes[:created_time]
|
18
|
+
Time.parse(attributes[:created_time]).utc
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/fb_graph/targeting.rb
CHANGED
@@ -4,11 +4,11 @@ module FbGraph
|
|
4
4
|
|
5
5
|
attr_accessor :country, :city, :region, :locale
|
6
6
|
|
7
|
-
def initialize(
|
8
|
-
@country =
|
9
|
-
@city =
|
10
|
-
@region =
|
11
|
-
@locale =
|
7
|
+
def initialize(attributes = {})
|
8
|
+
@country = attributes[:country]
|
9
|
+
@city = attributes[:city]
|
10
|
+
@region = attributes[:region]
|
11
|
+
@locale = attributes[:locale]
|
12
12
|
end
|
13
13
|
|
14
14
|
def to_hash(options = {})
|
data/lib/fb_graph/user.rb
CHANGED
data/lib/fb_graph/venue.rb
CHANGED
@@ -2,13 +2,13 @@ module FbGraph
|
|
2
2
|
class Venue < Location
|
3
3
|
attr_accessor :street, :city, :state, :zip, :country
|
4
4
|
|
5
|
-
def initialize(
|
5
|
+
def initialize(attributes = {})
|
6
6
|
super
|
7
|
-
@street =
|
8
|
-
@city =
|
9
|
-
@state =
|
10
|
-
@zip =
|
11
|
-
@country =
|
7
|
+
@street = attributes[:street]
|
8
|
+
@city = attributes[:city]
|
9
|
+
@state = attributes[:state]
|
10
|
+
@zip = attributes[:zip]
|
11
|
+
@country = attributes[:country]
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/fb_graph.rb
CHANGED
@@ -54,6 +54,7 @@ require 'fb_graph/searchable'
|
|
54
54
|
require 'fb_graph/action'
|
55
55
|
require 'fb_graph/education'
|
56
56
|
require 'fb_graph/location'
|
57
|
+
require 'fb_graph/poke'
|
57
58
|
require 'fb_graph/privacy'
|
58
59
|
require 'fb_graph/subscription'
|
59
60
|
require 'fb_graph/targeting'
|
@@ -96,6 +97,8 @@ require 'fb_graph/photo'
|
|
96
97
|
require 'fb_graph/place'
|
97
98
|
require 'fb_graph/post'
|
98
99
|
require 'fb_graph/property'
|
100
|
+
require 'fb_graph/question'
|
101
|
+
require 'fb_graph/question_option'
|
99
102
|
require 'fb_graph/review'
|
100
103
|
require 'fb_graph/status'
|
101
104
|
require 'fb_graph/tab'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph::Connections::Pokes do
|
4
|
+
describe '#pokes' do
|
5
|
+
it 'should return an Array of Poke' do
|
6
|
+
mock_graph :get, 'me/pokes', 'users/pokes/sample', :access_token => 'access_token' do
|
7
|
+
pokes = FbGraph::User.me('access_token').pokes
|
8
|
+
pokes.should be_instance_of FbGraph::Connection
|
9
|
+
pokes.should be_present
|
10
|
+
pokes.each do |poke|
|
11
|
+
poke.should be_instance_of FbGraph::Poke
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph::Connections::QuestionOptions, '#options' do
|
4
|
+
context 'when included by FbGraph::Question' do
|
5
|
+
it 'should return options as FbGraph::QuestionOption' do
|
6
|
+
mock_graph :get, '12345/question_options', 'questions/options/matake_private', :access_token => 'access_token' do
|
7
|
+
options = FbGraph::Question.new('12345', :access_token => 'access_token').options
|
8
|
+
options.each do |option|
|
9
|
+
option.should be_instance_of(FbGraph::QuestionOption)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph::Connections::Votes, '#votes' do
|
4
|
+
context 'when included by FbGraph::QuestionOption' do
|
5
|
+
it 'should return votes with user id and name' do
|
6
|
+
mock_graph :get, '12345/votes', 'questions/options/votes/matake_private', :access_token => 'access_token' do
|
7
|
+
votes = FbGraph::QuestionOption.new('12345', :access_token => 'access_token').votes
|
8
|
+
votes.each do |vote|
|
9
|
+
vote["id"].should_not be_blank
|
10
|
+
vote["name"].should_not be_blank
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph::QuestionOption do
|
4
|
+
|
5
|
+
describe '.new' do
|
6
|
+
it 'should setup all supported attributes' do
|
7
|
+
attributes = {
|
8
|
+
:id => '12345',
|
9
|
+
:from => {
|
10
|
+
:id => '23456',
|
11
|
+
:name => 'Mahmoud Khaled'
|
12
|
+
},
|
13
|
+
:name => 'option 1',
|
14
|
+
:votes => 5,
|
15
|
+
:object => {:name => "Ruby programming language",
|
16
|
+
:category => "Interest",
|
17
|
+
:id => "109932262369283"
|
18
|
+
},
|
19
|
+
:created_time => '2009-12-29T15:24:50+0000'
|
20
|
+
}
|
21
|
+
question = FbGraph::QuestionOption.new(attributes.delete(:id), attributes)
|
22
|
+
question.identifier.should == '12345'
|
23
|
+
question.from.should == FbGraph::User.new('23456', :name => 'Mahmoud Khaled')
|
24
|
+
question.name.should == 'option 1'
|
25
|
+
question.vote_count.should == 5
|
26
|
+
question.object.should be_instance_of(FbGraph::Page)
|
27
|
+
question.object.name.should == "Ruby programming language"
|
28
|
+
question.object.category.should == "Interest"
|
29
|
+
question.object.identifier.should == "109932262369283"
|
30
|
+
question.created_time.should == Time.parse('2009-12-29T15:24:50+0000')
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe FbGraph::Question do
|
4
|
+
|
5
|
+
describe '.new' do
|
6
|
+
it 'should setup all supported attributes' do
|
7
|
+
attributes = {
|
8
|
+
:id => '12345',
|
9
|
+
:from => {
|
10
|
+
:id => '23456',
|
11
|
+
:name => 'Mahmoud Khaled'
|
12
|
+
},
|
13
|
+
:question => 'question 1',
|
14
|
+
:created_time => '2009-12-29T15:24:50+0000',
|
15
|
+
:updated_time => '2010-01-02T15:37:41+0000',
|
16
|
+
:options => {
|
17
|
+
:data => [
|
18
|
+
{
|
19
|
+
:id => "34567",
|
20
|
+
:from => {
|
21
|
+
:name => "Mahmoud Khaled",
|
22
|
+
:id => "23456"
|
23
|
+
},
|
24
|
+
:name => "option 1",
|
25
|
+
:votes => 2,
|
26
|
+
:created_time => "2011-11-07T19:49:51+0000"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
:id => "34568",
|
30
|
+
:from => {
|
31
|
+
:name => "Mustafa Badawy",
|
32
|
+
:id => "23457"
|
33
|
+
},
|
34
|
+
:name => "option 2",
|
35
|
+
:votes => 0,
|
36
|
+
:created_time => "2011-11-07T19:49:48+0000"
|
37
|
+
}
|
38
|
+
]
|
39
|
+
}
|
40
|
+
}
|
41
|
+
question = FbGraph::Question.new(attributes.delete(:id), attributes)
|
42
|
+
question.identifier.should == '12345'
|
43
|
+
question.from.should == FbGraph::User.new('23456', :name => 'Mahmoud Khaled')
|
44
|
+
question.question.should == 'question 1'
|
45
|
+
question.created_time.should == Time.parse('2009-12-29T15:24:50+0000')
|
46
|
+
question.updated_time.should == Time.parse('2010-01-02T15:37:41+0000')
|
47
|
+
question.options.should == [FbGraph::QuestionOption.new(
|
48
|
+
'34567',
|
49
|
+
:from => {
|
50
|
+
:id => '23456',
|
51
|
+
:name => 'Mahmoud Khaled',
|
52
|
+
},
|
53
|
+
:name => "option 1",
|
54
|
+
:votes => 2,
|
55
|
+
:created_time => "2011-11-07T19:49:51+0000"
|
56
|
+
),
|
57
|
+
FbGraph::QuestionOption.new(
|
58
|
+
'34568',
|
59
|
+
:from => {
|
60
|
+
:id => '23457',
|
61
|
+
:name => 'Mustafa Badawy',
|
62
|
+
},
|
63
|
+
:name => "option 2",
|
64
|
+
:votes => 0,
|
65
|
+
:created_time => "2011-11-07T19:49:48+0000"
|
66
|
+
)
|
67
|
+
]
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"data": [
|
3
|
+
{
|
4
|
+
"id": "240094212711030",
|
5
|
+
"from": {
|
6
|
+
"name": "Mahmoud Khaled",
|
7
|
+
"id": "7168"
|
8
|
+
},
|
9
|
+
"name": "C++ programming language",
|
10
|
+
"votes": 0,
|
11
|
+
"object": {
|
12
|
+
"name": "C++ programming language",
|
13
|
+
"category": "Interest",
|
14
|
+
"id": "1065"
|
15
|
+
},
|
16
|
+
"created_time": "2011-11-07T21:03:06+0000"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"id": "1737",
|
20
|
+
"from": {
|
21
|
+
"name": "Mahmoud Khaled",
|
22
|
+
"id": "7168"
|
23
|
+
},
|
24
|
+
"name": "Ruby programming language",
|
25
|
+
"votes": 5,
|
26
|
+
"object": {
|
27
|
+
"name": "Ruby programming language",
|
28
|
+
"category": "Interest",
|
29
|
+
"id": "1099"
|
30
|
+
},
|
31
|
+
"created_time": "2011-11-07T21:03:07+0000"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"id": "3163",
|
35
|
+
"from": {
|
36
|
+
"name": "Mahmoud Khaled",
|
37
|
+
"id": "7168"
|
38
|
+
},
|
39
|
+
"name": "Java Programming Language.",
|
40
|
+
"votes": 0,
|
41
|
+
"object": {
|
42
|
+
"name": "Java Programming Language.",
|
43
|
+
"category": "Computers/internet",
|
44
|
+
"id": "3010"
|
45
|
+
},
|
46
|
+
"created_time": "2011-11-07T21:03:08+0000"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"paging": {
|
50
|
+
"next": "https://graph.facebook.com/12345/options?format=json&limit=25&offset=25"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"data":[{"to":{"name":"Nov Matake","id":"579612276"},"from":{"name":"Jr Nov","id":"1575327134"},"created_time":"2011-11-08T02:40:19+0000"}]}
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fb_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- nov matake
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-09 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
|
-
requirement: &
|
16
|
+
requirement: &70331591619820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.2.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70331591619820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rack-oauth2
|
27
|
-
requirement: &
|
27
|
+
requirement: &70331591617900 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.4
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70331591617900
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70331591615960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0.8'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70331591615960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cover_me
|
49
|
-
requirement: &
|
49
|
+
requirement: &70331591615000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.2.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70331591615000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70331591613740 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '2'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70331591613740
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
|
-
requirement: &
|
71
|
+
requirement: &70331591612260 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.6.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70331591612260
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: actionpack
|
82
|
-
requirement: &
|
82
|
+
requirement: &70331591599500 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: 3.0.6
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70331591599500
|
91
91
|
description: A full-stack Facebook Graph API wrapper in Ruby.
|
92
92
|
email: nov@matake.jp
|
93
93
|
executables: []
|
@@ -185,7 +185,9 @@ files:
|
|
185
185
|
- lib/fb_graph/connections/permissions.rb
|
186
186
|
- lib/fb_graph/connections/photos.rb
|
187
187
|
- lib/fb_graph/connections/picture.rb
|
188
|
+
- lib/fb_graph/connections/pokes.rb
|
188
189
|
- lib/fb_graph/connections/posts.rb
|
190
|
+
- lib/fb_graph/connections/question_options.rb
|
189
191
|
- lib/fb_graph/connections/reach_estimates.rb
|
190
192
|
- lib/fb_graph/connections/reviews.rb
|
191
193
|
- lib/fb_graph/connections/senders.rb
|
@@ -201,6 +203,7 @@ files:
|
|
201
203
|
- lib/fb_graph/connections/user_achievements.rb
|
202
204
|
- lib/fb_graph/connections/user_likes.rb
|
203
205
|
- lib/fb_graph/connections/videos.rb
|
206
|
+
- lib/fb_graph/connections/votes.rb
|
204
207
|
- lib/fb_graph/debugger.rb
|
205
208
|
- lib/fb_graph/doc.rb
|
206
209
|
- lib/fb_graph/domain.rb
|
@@ -228,11 +231,14 @@ files:
|
|
228
231
|
- lib/fb_graph/page/category_attributes.rb
|
229
232
|
- lib/fb_graph/photo.rb
|
230
233
|
- lib/fb_graph/place.rb
|
234
|
+
- lib/fb_graph/poke.rb
|
231
235
|
- lib/fb_graph/post.rb
|
232
236
|
- lib/fb_graph/privacy.rb
|
233
237
|
- lib/fb_graph/project.rb
|
234
238
|
- lib/fb_graph/property.rb
|
235
239
|
- lib/fb_graph/query.rb
|
240
|
+
- lib/fb_graph/question.rb
|
241
|
+
- lib/fb_graph/question_option.rb
|
236
242
|
- lib/fb_graph/reach_estimate.rb
|
237
243
|
- lib/fb_graph/review.rb
|
238
244
|
- lib/fb_graph/searchable.rb
|
@@ -321,7 +327,9 @@ files:
|
|
321
327
|
- spec/fb_graph/connections/permissions_spec.rb
|
322
328
|
- spec/fb_graph/connections/photos_spec.rb
|
323
329
|
- spec/fb_graph/connections/picture_spec.rb
|
330
|
+
- spec/fb_graph/connections/pokes_spec.rb
|
324
331
|
- spec/fb_graph/connections/posts_spec.rb
|
332
|
+
- spec/fb_graph/connections/question_options_spec.rb
|
325
333
|
- spec/fb_graph/connections/reach_estimates_spec.rb
|
326
334
|
- spec/fb_graph/connections/reviews_spec.rb
|
327
335
|
- spec/fb_graph/connections/senders_spec.rb
|
@@ -337,6 +345,7 @@ files:
|
|
337
345
|
- spec/fb_graph/connections/user_achievements_spec.rb
|
338
346
|
- spec/fb_graph/connections/user_likes_spec.rb
|
339
347
|
- spec/fb_graph/connections/videos_spec.rb
|
348
|
+
- spec/fb_graph/connections/votes_spec.rb
|
340
349
|
- spec/fb_graph/debugger_spec.rb
|
341
350
|
- spec/fb_graph/doc_spec.rb
|
342
351
|
- spec/fb_graph/domain_spec.rb
|
@@ -368,7 +377,9 @@ files:
|
|
368
377
|
- spec/fb_graph/post_spec.rb
|
369
378
|
- spec/fb_graph/privacy_spec.rb
|
370
379
|
- spec/fb_graph/project_spec.rb
|
380
|
+
- spec/fb_graph/qeustion_option_spec.rb
|
371
381
|
- spec/fb_graph/query_spec.rb
|
382
|
+
- spec/fb_graph/question_spec.rb
|
372
383
|
- spec/fb_graph/reach_estimate_spec.rb
|
373
384
|
- spec/fb_graph/searchable_spec.rb
|
374
385
|
- spec/fb_graph/seriarization_spec.rb
|
@@ -479,6 +490,8 @@ files:
|
|
479
490
|
- spec/mock_json/query/user/with_invalid_token.json
|
480
491
|
- spec/mock_json/query/user/with_valid_token.json
|
481
492
|
- spec/mock_json/query/user/without_token.json
|
493
|
+
- spec/mock_json/questions/options/matake_private.json
|
494
|
+
- spec/mock_json/questions/options/votes/matake_private.json
|
482
495
|
- spec/mock_json/statuses/with_likes.json
|
483
496
|
- spec/mock_json/thread/former_participants/private.json
|
484
497
|
- spec/mock_json/thread/messages/private.json
|
@@ -547,6 +560,7 @@ files:
|
|
547
560
|
- spec/mock_json/users/notes/matake_private.json
|
548
561
|
- spec/mock_json/users/outbox/me_private.json
|
549
562
|
- spec/mock_json/users/permissions/me_private.json
|
563
|
+
- spec/mock_json/users/pokes/sample.json
|
550
564
|
- spec/mock_json/users/posts/arjun_private.json
|
551
565
|
- spec/mock_json/users/posts/arjun_public.json
|
552
566
|
- spec/mock_json/users/statuses/arjun_private.json
|
@@ -577,9 +591,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
577
591
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
578
592
|
none: false
|
579
593
|
requirements:
|
580
|
-
- - ! '
|
594
|
+
- - ! '>='
|
581
595
|
- !ruby/object:Gem::Version
|
582
|
-
version:
|
596
|
+
version: '0'
|
583
597
|
requirements: []
|
584
598
|
rubyforge_project:
|
585
599
|
rubygems_version: 1.8.10
|
@@ -656,7 +670,9 @@ test_files:
|
|
656
670
|
- spec/fb_graph/connections/permissions_spec.rb
|
657
671
|
- spec/fb_graph/connections/photos_spec.rb
|
658
672
|
- spec/fb_graph/connections/picture_spec.rb
|
673
|
+
- spec/fb_graph/connections/pokes_spec.rb
|
659
674
|
- spec/fb_graph/connections/posts_spec.rb
|
675
|
+
- spec/fb_graph/connections/question_options_spec.rb
|
660
676
|
- spec/fb_graph/connections/reach_estimates_spec.rb
|
661
677
|
- spec/fb_graph/connections/reviews_spec.rb
|
662
678
|
- spec/fb_graph/connections/senders_spec.rb
|
@@ -672,6 +688,7 @@ test_files:
|
|
672
688
|
- spec/fb_graph/connections/user_achievements_spec.rb
|
673
689
|
- spec/fb_graph/connections/user_likes_spec.rb
|
674
690
|
- spec/fb_graph/connections/videos_spec.rb
|
691
|
+
- spec/fb_graph/connections/votes_spec.rb
|
675
692
|
- spec/fb_graph/debugger_spec.rb
|
676
693
|
- spec/fb_graph/doc_spec.rb
|
677
694
|
- spec/fb_graph/domain_spec.rb
|
@@ -703,7 +720,9 @@ test_files:
|
|
703
720
|
- spec/fb_graph/post_spec.rb
|
704
721
|
- spec/fb_graph/privacy_spec.rb
|
705
722
|
- spec/fb_graph/project_spec.rb
|
723
|
+
- spec/fb_graph/qeustion_option_spec.rb
|
706
724
|
- spec/fb_graph/query_spec.rb
|
725
|
+
- spec/fb_graph/question_spec.rb
|
707
726
|
- spec/fb_graph/reach_estimate_spec.rb
|
708
727
|
- spec/fb_graph/searchable_spec.rb
|
709
728
|
- spec/fb_graph/seriarization_spec.rb
|
@@ -814,6 +833,8 @@ test_files:
|
|
814
833
|
- spec/mock_json/query/user/with_invalid_token.json
|
815
834
|
- spec/mock_json/query/user/with_valid_token.json
|
816
835
|
- spec/mock_json/query/user/without_token.json
|
836
|
+
- spec/mock_json/questions/options/matake_private.json
|
837
|
+
- spec/mock_json/questions/options/votes/matake_private.json
|
817
838
|
- spec/mock_json/statuses/with_likes.json
|
818
839
|
- spec/mock_json/thread/former_participants/private.json
|
819
840
|
- spec/mock_json/thread/messages/private.json
|
@@ -882,6 +903,7 @@ test_files:
|
|
882
903
|
- spec/mock_json/users/notes/matake_private.json
|
883
904
|
- spec/mock_json/users/outbox/me_private.json
|
884
905
|
- spec/mock_json/users/permissions/me_private.json
|
906
|
+
- spec/mock_json/users/pokes/sample.json
|
885
907
|
- spec/mock_json/users/posts/arjun_private.json
|
886
908
|
- spec/mock_json/users/posts/arjun_public.json
|
887
909
|
- spec/mock_json/users/statuses/arjun_private.json
|