fbgraph 1.8.4 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/fbgraph.gemspec +11 -11
  3. data/lib/fbgraph/selection.rb +23 -16
  4. metadata +208 -127
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.4
1
+ 1.9.0
data/fbgraph.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "fbgraph"
8
- s.version = "1.8.4"
7
+ s.name = %q{fbgraph}
8
+ s.version = "1.9.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nicolas Santa"]
12
- s.date = "2011-10-09"
13
- s.description = "A Gem for Facebook Open Graph API"
14
- s.email = "nicolas55ar@gmail.com"
11
+ s.authors = [%q{Nicolas Santa}]
12
+ s.date = %q{2011-10-17}
13
+ s.description = %q{A Gem for Facebook Open Graph API}
14
+ s.email = %q{nicolas55ar@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README",
17
17
  "README.textile"
@@ -45,11 +45,11 @@ Gem::Specification.new do |s|
45
45
  "specs/lib/fbauth/selection_spec.rb",
46
46
  "specs/spec_helper.rb"
47
47
  ]
48
- s.homepage = "http://github.com/nsanta/fbgraph"
49
- s.licenses = ["MIT"]
50
- s.require_paths = ["lib"]
51
- s.rubygems_version = "1.8.11"
52
- s.summary = "A Gem for Facebook Open Graph API"
48
+ s.homepage = %q{http://github.com/nsanta/fbgraph}
49
+ s.licenses = [%q{MIT}]
50
+ s.require_paths = [%q{lib}]
51
+ s.rubygems_version = %q{1.8.5}
52
+ s.summary = %q{A Gem for Facebook Open Graph API}
53
53
 
54
54
  if s.respond_to? :specification_version then
55
55
  s.specification_version = 3
@@ -1,20 +1,20 @@
1
1
  module FBGraph
2
2
  class Selection < Base
3
-
4
- OBJECTS = %w(user album event group link note page photo post status
3
+
4
+ OBJECTS = %w(user album event group link note page photo post status
5
5
  video comment checkin friendlist thread order application
6
6
  apprequest).freeze
7
-
8
- CONNECTION_TYPES = %w(home photos comments feed noreply
9
- maybe invited attending declined picture
10
- members tagged links groups albums
11
- statuses videos notes posts events friends
12
- activities interests music books movies television
13
- likes inbox outbox updates accounts checkins
14
- friendlists platformrequests threads participants
15
- former_participants senders messages insights
16
- subscriptions payments apprequests).freeze
17
-
7
+
8
+ CONNECTION_TYPES = %w(home photos comments feed noreply
9
+ maybe invited attending declined picture
10
+ members tagged links groups albums
11
+ statuses videos notes posts events friends
12
+ activities interests music books movies television
13
+ likes inbox outbox updates accounts checkins
14
+ friendlists platformrequests threads participants
15
+ former_participants senders messages insights
16
+ subscriptions payments apprequests reviews).freeze
17
+
18
18
  OBJECTS.each do |object|
19
19
  class_eval <<-METHOD
20
20
  def #{object}(object)
@@ -23,7 +23,7 @@ module FBGraph
23
23
  end
24
24
  METHOD
25
25
  end
26
-
26
+
27
27
  CONNECTION_TYPES.each do |object|
28
28
  class_eval <<-METHOD
29
29
  def #{object}
@@ -37,11 +37,17 @@ module FBGraph
37
37
  def me
38
38
  find('me')
39
39
  end
40
-
40
+
41
+
42
+ def action(namespace,action)
43
+ connection([namespace,action].join(':'))
44
+ self
45
+ end
46
+
41
47
  def metadata
42
48
  @params.merge!({:metadata => '1'})
43
49
  self
44
- end
50
+ end
45
51
 
46
52
  def picture(type='square')
47
53
  params = {:type => type}
@@ -51,3 +57,4 @@ module FBGraph
51
57
 
52
58
  end
53
59
  end
60
+
metadata CHANGED
@@ -1,189 +1,264 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fbgraph
3
- version: !ruby/object:Gem::Version
4
- version: 1.8.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 51
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 9
9
+ - 0
10
+ version: 1.9.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Nicolas Santa
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-10-09 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: activesupport
16
- requirement: &10815980 !ruby/object:Gem::Requirement
17
+
18
+ date: 2011-10-17 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
22
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ hash: 3
27
+ segments:
28
+ - 0
29
+ version: "0"
22
30
  type: :runtime
31
+ requirement: *id001
23
32
  prerelease: false
24
- version_requirements: *10815980
25
- - !ruby/object:Gem::Dependency
26
- name: hashie
27
- requirement: &10815240 !ruby/object:Gem::Requirement
33
+ name: activesupport
34
+ - !ruby/object:Gem::Dependency
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
28
36
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ hash: 23
41
+ segments:
42
+ - 1
43
+ - 0
44
+ - 0
32
45
  version: 1.0.0
33
46
  type: :runtime
47
+ requirement: *id002
34
48
  prerelease: false
35
- version_requirements: *10815240
36
- - !ruby/object:Gem::Dependency
37
- name: oauth2
38
- requirement: &10814240 !ruby/object:Gem::Requirement
49
+ name: hashie
50
+ - !ruby/object:Gem::Dependency
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
39
52
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 11
57
+ segments:
58
+ - 0
59
+ - 5
60
+ - 0
43
61
  version: 0.5.0
44
62
  type: :runtime
63
+ requirement: *id003
45
64
  prerelease: false
46
- version_requirements: *10814240
47
- - !ruby/object:Gem::Dependency
48
- name: faraday
49
- requirement: &10813360 !ruby/object:Gem::Requirement
65
+ name: oauth2
66
+ - !ruby/object:Gem::Dependency
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
50
68
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ hash: 9
73
+ segments:
74
+ - 0
75
+ - 7
76
+ - 5
54
77
  version: 0.7.5
55
78
  type: :runtime
79
+ requirement: *id004
56
80
  prerelease: false
57
- version_requirements: *10813360
58
- - !ruby/object:Gem::Dependency
59
- name: json
60
- requirement: &10789560 !ruby/object:Gem::Requirement
81
+ name: faraday
82
+ - !ruby/object:Gem::Dependency
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
61
84
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 23
89
+ segments:
90
+ - 1
91
+ - 0
92
+ - 0
65
93
  version: 1.0.0
66
94
  type: :runtime
95
+ requirement: *id005
67
96
  prerelease: false
68
- version_requirements: *10789560
69
- - !ruby/object:Gem::Dependency
70
- name: rest-client
71
- requirement: &10788400 !ruby/object:Gem::Requirement
97
+ name: json
98
+ - !ruby/object:Gem::Dependency
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
72
100
  none: false
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
77
108
  type: :runtime
109
+ requirement: *id006
78
110
  prerelease: false
79
- version_requirements: *10788400
80
- - !ruby/object:Gem::Dependency
81
- name: i18n
82
- requirement: &10755900 !ruby/object:Gem::Requirement
111
+ name: rest-client
112
+ - !ruby/object:Gem::Dependency
113
+ version_requirements: &id007 !ruby/object:Gem::Requirement
83
114
  none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
121
+ version: "0"
88
122
  type: :runtime
123
+ requirement: *id007
89
124
  prerelease: false
90
- version_requirements: *10755900
91
- - !ruby/object:Gem::Dependency
92
- name: jeweler
93
- requirement: &10753280 !ruby/object:Gem::Requirement
125
+ name: i18n
126
+ - !ruby/object:Gem::Dependency
127
+ version_requirements: &id008 !ruby/object:Gem::Requirement
94
128
  none: false
95
- requirements:
129
+ requirements:
96
130
  - - ~>
97
- - !ruby/object:Gem::Version
131
+ - !ruby/object:Gem::Version
132
+ hash: 15
133
+ segments:
134
+ - 1
135
+ - 6
136
+ - 0
98
137
  version: 1.6.0
99
138
  type: :development
139
+ requirement: *id008
100
140
  prerelease: false
101
- version_requirements: *10753280
102
- - !ruby/object:Gem::Dependency
103
- name: rake
104
- requirement: &10751720 !ruby/object:Gem::Requirement
141
+ name: jeweler
142
+ - !ruby/object:Gem::Dependency
143
+ version_requirements: &id009 !ruby/object:Gem::Requirement
105
144
  none: false
106
- requirements:
145
+ requirements:
107
146
  - - ~>
108
- - !ruby/object:Gem::Version
147
+ - !ruby/object:Gem::Version
148
+ hash: 63
149
+ segments:
150
+ - 0
151
+ - 9
152
+ - 2
109
153
  version: 0.9.2
110
154
  type: :development
155
+ requirement: *id009
111
156
  prerelease: false
112
- version_requirements: *10751720
113
- - !ruby/object:Gem::Dependency
114
- name: bundler
115
- requirement: &10750160 !ruby/object:Gem::Requirement
157
+ name: rake
158
+ - !ruby/object:Gem::Dependency
159
+ version_requirements: &id010 !ruby/object:Gem::Requirement
116
160
  none: false
117
- requirements:
161
+ requirements:
118
162
  - - ~>
119
- - !ruby/object:Gem::Version
163
+ - !ruby/object:Gem::Version
164
+ hash: 23
165
+ segments:
166
+ - 1
167
+ - 0
168
+ - 0
120
169
  version: 1.0.0
121
170
  type: :development
171
+ requirement: *id010
122
172
  prerelease: false
123
- version_requirements: *10750160
124
- - !ruby/object:Gem::Dependency
125
- name: fakeweb
126
- requirement: &10724100 !ruby/object:Gem::Requirement
173
+ name: bundler
174
+ - !ruby/object:Gem::Dependency
175
+ version_requirements: &id011 !ruby/object:Gem::Requirement
127
176
  none: false
128
- requirements:
177
+ requirements:
129
178
  - - ~>
130
- - !ruby/object:Gem::Version
179
+ - !ruby/object:Gem::Version
180
+ hash: 27
181
+ segments:
182
+ - 1
183
+ - 3
184
+ - 0
131
185
  version: 1.3.0
132
186
  type: :development
187
+ requirement: *id011
133
188
  prerelease: false
134
- version_requirements: *10724100
135
- - !ruby/object:Gem::Dependency
136
- name: rspec
137
- requirement: &10723040 !ruby/object:Gem::Requirement
189
+ name: fakeweb
190
+ - !ruby/object:Gem::Dependency
191
+ version_requirements: &id012 !ruby/object:Gem::Requirement
138
192
  none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ hash: 23
197
+ segments:
198
+ - 2
199
+ - 6
200
+ - 0
142
201
  version: 2.6.0
143
202
  type: :development
203
+ requirement: *id012
144
204
  prerelease: false
145
- version_requirements: *10723040
146
- - !ruby/object:Gem::Dependency
147
- name: rcov
148
- requirement: &10721560 !ruby/object:Gem::Requirement
205
+ name: rspec
206
+ - !ruby/object:Gem::Dependency
207
+ version_requirements: &id013 !ruby/object:Gem::Requirement
149
208
  none: false
150
- requirements:
151
- - - ! '>='
152
- - !ruby/object:Gem::Version
153
- version: '0'
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ hash: 3
213
+ segments:
214
+ - 0
215
+ version: "0"
154
216
  type: :development
217
+ requirement: *id013
155
218
  prerelease: false
156
- version_requirements: *10721560
157
- - !ruby/object:Gem::Dependency
158
- name: rdoc
159
- requirement: &10720500 !ruby/object:Gem::Requirement
219
+ name: rcov
220
+ - !ruby/object:Gem::Dependency
221
+ version_requirements: &id014 !ruby/object:Gem::Requirement
160
222
  none: false
161
- requirements:
162
- - - ! '>='
163
- - !ruby/object:Gem::Version
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ hash: 35
227
+ segments:
228
+ - 3
229
+ - 9
230
+ - 0
164
231
  version: 3.9.0
165
232
  type: :development
233
+ requirement: *id014
166
234
  prerelease: false
167
- version_requirements: *10720500
168
- - !ruby/object:Gem::Dependency
169
- name: redgreen
170
- requirement: &10719020 !ruby/object:Gem::Requirement
235
+ name: rdoc
236
+ - !ruby/object:Gem::Dependency
237
+ version_requirements: &id015 !ruby/object:Gem::Requirement
171
238
  none: false
172
- requirements:
239
+ requirements:
173
240
  - - ~>
174
- - !ruby/object:Gem::Version
241
+ - !ruby/object:Gem::Version
242
+ hash: 27
243
+ segments:
244
+ - 1
245
+ - 2
246
+ - 2
175
247
  version: 1.2.2
176
248
  type: :development
249
+ requirement: *id015
177
250
  prerelease: false
178
- version_requirements: *10719020
251
+ name: redgreen
179
252
  description: A Gem for Facebook Open Graph API
180
253
  email: nicolas55ar@gmail.com
181
254
  executables: []
255
+
182
256
  extensions: []
183
- extra_rdoc_files:
257
+
258
+ extra_rdoc_files:
184
259
  - README
185
260
  - README.textile
186
- files:
261
+ files:
187
262
  - .bundle/config
188
263
  - Gemfile
189
264
  - Manifest
@@ -212,31 +287,37 @@ files:
212
287
  - specs/lib/fbauth/selection_spec.rb
213
288
  - specs/spec_helper.rb
214
289
  homepage: http://github.com/nsanta/fbgraph
215
- licenses:
290
+ licenses:
216
291
  - MIT
217
292
  post_install_message:
218
293
  rdoc_options: []
219
- require_paths:
294
+
295
+ require_paths:
220
296
  - lib
221
- required_ruby_version: !ruby/object:Gem::Requirement
297
+ required_ruby_version: !ruby/object:Gem::Requirement
222
298
  none: false
223
- requirements:
224
- - - ! '>='
225
- - !ruby/object:Gem::Version
226
- version: '0'
227
- segments:
299
+ requirements:
300
+ - - ">="
301
+ - !ruby/object:Gem::Version
302
+ hash: 3
303
+ segments:
228
304
  - 0
229
- hash: 1689592253076345241
230
- required_rubygems_version: !ruby/object:Gem::Requirement
305
+ version: "0"
306
+ required_rubygems_version: !ruby/object:Gem::Requirement
231
307
  none: false
232
- requirements:
233
- - - ! '>='
234
- - !ruby/object:Gem::Version
235
- version: '0'
308
+ requirements:
309
+ - - ">="
310
+ - !ruby/object:Gem::Version
311
+ hash: 3
312
+ segments:
313
+ - 0
314
+ version: "0"
236
315
  requirements: []
316
+
237
317
  rubyforge_project:
238
- rubygems_version: 1.8.11
318
+ rubygems_version: 1.8.5
239
319
  signing_key:
240
320
  specification_version: 3
241
321
  summary: A Gem for Facebook Open Graph API
242
322
  test_files: []
323
+