fb_graph 2.2.0 → 2.2.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.1
@@ -19,7 +19,7 @@ module FbGraph
19
19
  collection[:data].delete_if(&:nil?)
20
20
 
21
21
  result = replace(collection[:data])
22
- if summary = collection[:summary]
22
+ if (summary = collection[:summary]).present?
23
23
  @total_count = summary[:total_count]
24
24
  @unread_count = summary[:unread_count]
25
25
  @updated_time = Time.parse(summary[:updated_time]) if summary[:updated_time]
@@ -0,0 +1,14 @@
1
+ module FbGraph
2
+ module Connections
3
+ module Questions
4
+ def questions(options = {})
5
+ questions = self.connection :questions, options
6
+ questions.map! do |question|
7
+ Question.new question[:id], question.merge(
8
+ :access_token => options[:access_token] || self.access_token
9
+ )
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -51,6 +51,7 @@ module FbGraph
51
51
  :connection => :settings
52
52
  )
53
53
  if succeeded
54
+ @settings ||= []
54
55
  if value
55
56
  @settings << setting.to_sym
56
57
  else
@@ -14,6 +14,7 @@ module FbGraph
14
14
  include Connections::Photos
15
15
  include Connections::Picture
16
16
  include Connections::Posts
17
+ include Connections::Questions
17
18
  include Connections::Settings
18
19
  include Connections::Statuses
19
20
  include Connections::Tabs
@@ -31,6 +31,7 @@ module FbGraph
31
31
  include Connections::Picture
32
32
  include Connections::Pokes
33
33
  include Connections::Posts
34
+ include Connections::Questions
34
35
  include Connections::Statuses
35
36
  include Connections::Tagged
36
37
  include Connections::Television
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-09 00:00:00.000000000Z
12
+ date: 2011-11-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70331591619820 !ruby/object:Gem::Requirement
16
+ requirement: &70174485999580 !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: *70331591619820
24
+ version_requirements: *70174485999580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rack-oauth2
27
- requirement: &70331591617900 !ruby/object:Gem::Requirement
27
+ requirement: &70174485998760 !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: *70331591617900
35
+ version_requirements: *70174485998760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70331591615960 !ruby/object:Gem::Requirement
38
+ requirement: &70174485998180 !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: *70331591615960
46
+ version_requirements: *70174485998180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cover_me
49
- requirement: &70331591615000 !ruby/object:Gem::Requirement
49
+ requirement: &70174485997480 !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: *70331591615000
57
+ version_requirements: *70174485997480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70331591613740 !ruby/object:Gem::Requirement
60
+ requirement: &70174485996140 !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: *70331591613740
68
+ version_requirements: *70174485996140
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
- requirement: &70331591612260 !ruby/object:Gem::Requirement
71
+ requirement: &70174485995580 !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: *70331591612260
79
+ version_requirements: *70174485995580
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: actionpack
82
- requirement: &70331591599500 !ruby/object:Gem::Requirement
82
+ requirement: &70174485994840 !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: *70331591599500
90
+ version_requirements: *70174485994840
91
91
  description: A full-stack Facebook Graph API wrapper in Ruby.
92
92
  email: nov@matake.jp
93
93
  executables: []
@@ -188,6 +188,7 @@ files:
188
188
  - lib/fb_graph/connections/pokes.rb
189
189
  - lib/fb_graph/connections/posts.rb
190
190
  - lib/fb_graph/connections/question_options.rb
191
+ - lib/fb_graph/connections/questions.rb
191
192
  - lib/fb_graph/connections/reach_estimates.rb
192
193
  - lib/fb_graph/connections/reviews.rb
193
194
  - lib/fb_graph/connections/senders.rb