koala 1.2.0beta1 → 1.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/CHANGELOG +27 -2
- data/koala.gemspec +7 -8
- data/lib/koala/graph_api.rb +11 -22
- data/lib/koala/graph_batch_api.rb +11 -1
- data/lib/koala/graph_collection.rb +7 -2
- data/lib/koala/http_service.rb +3 -3
- data/lib/koala/multipart_request.rb +35 -0
- data/lib/koala/oauth.rb +37 -24
- data/lib/koala/realtime_updates.rb +1 -1
- data/lib/koala/rest_api.rb +5 -0
- data/lib/koala/test_users.rb +2 -3
- data/lib/koala/uploadable_io.rb +2 -1
- data/lib/koala/version.rb +3 -0
- data/lib/koala.rb +8 -2
- data/readme.md +44 -7
- data/spec/cases/{api_base_spec.rb → api_spec.rb} +35 -10
- data/spec/cases/graph_and_rest_api_spec.rb +0 -26
- data/spec/cases/graph_api_batch_spec.rb +12 -30
- data/spec/cases/graph_api_spec.rb +0 -20
- data/spec/cases/graph_collection_spec.rb +116 -0
- data/spec/cases/http_service_spec.rb +13 -12
- data/spec/cases/koala_spec.rb +7 -3
- data/spec/cases/multipart_request_spec.rb +66 -0
- data/spec/cases/oauth_spec.rb +227 -102
- data/spec/cases/rest_api_spec.rb +0 -19
- data/spec/cases/test_users_spec.rb +25 -35
- data/spec/cases/uploadable_io_spec.rb +28 -0
- data/spec/fixtures/facebook_data.yml +3 -2
- data/spec/fixtures/mock_facebook_responses.yml +18 -5
- data/spec/support/graph_api_shared_examples.rb +105 -126
- data/spec/support/koala_test.rb +41 -15
- data/spec/support/mock_http_service.rb +2 -1
- data/spec/support/rest_api_shared_examples.rb +69 -25
- metadata +94 -72
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
shared_examples_for "Koala RestAPI" do
|
|
2
2
|
# REST_CALL
|
|
3
3
|
describe "when making a rest request" do
|
|
4
|
-
it "
|
|
4
|
+
it "uses the proper path" do
|
|
5
5
|
method = stub('methodName')
|
|
6
6
|
@api.should_receive(:api).with(
|
|
7
7
|
"method/#{method}",
|
|
@@ -13,7 +13,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
13
13
|
@api.rest_call(method)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
it "
|
|
16
|
+
it "always uses the rest api" do
|
|
17
17
|
@api.should_receive(:api).with(
|
|
18
18
|
anything,
|
|
19
19
|
anything,
|
|
@@ -24,7 +24,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
24
24
|
@api.rest_call('anything')
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
it "
|
|
27
|
+
it "sets the read_only option to true if the method is listed in the read-only list" do
|
|
28
28
|
method = Koala::Facebook::RestAPI::READ_ONLY_METHODS.first
|
|
29
29
|
|
|
30
30
|
@api.should_receive(:api).with(
|
|
@@ -37,7 +37,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
37
37
|
@api.rest_call(method)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
it "
|
|
40
|
+
it "sets the read_only option to false if the method is not inthe read-only list" do
|
|
41
41
|
method = "I'm not a read-only method"
|
|
42
42
|
|
|
43
43
|
@api.should_receive(:api).with(
|
|
@@ -51,7 +51,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
it "
|
|
54
|
+
it "takes an optional hash of arguments" do
|
|
55
55
|
args = {:arg1 => 'arg1'}
|
|
56
56
|
|
|
57
57
|
@api.should_receive(:api).with(
|
|
@@ -64,7 +64,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
64
64
|
@api.rest_call('anything', args)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
it "
|
|
67
|
+
it "always asks for JSON" do
|
|
68
68
|
@api.should_receive(:api).with(
|
|
69
69
|
anything,
|
|
70
70
|
hash_including('format' => 'json'),
|
|
@@ -75,7 +75,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
75
75
|
@api.rest_call('anything')
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
it "
|
|
78
|
+
it "passes any options provided to the API" do
|
|
79
79
|
options = {:a => 2}
|
|
80
80
|
|
|
81
81
|
@api.should_receive(:api).with(
|
|
@@ -111,13 +111,13 @@ shared_examples_for "Koala RestAPI" do
|
|
|
111
111
|
@api.rest_call('anything', {}, {}, method)
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
it "
|
|
114
|
+
it "throws an APIError if the result hash has an error key" do
|
|
115
115
|
Koala.stub(:make_request).and_return(Koala::Response.new(500, {"error_code" => "An error occurred!"}, {}))
|
|
116
116
|
lambda { @api.rest_call("koppel", {}) }.should raise_exception(Koala::Facebook::APIError)
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
describe "when making a FQL request" do
|
|
120
|
-
it "
|
|
120
|
+
it "calls fql.query method" do
|
|
121
121
|
@api.should_receive(:rest_call).with(
|
|
122
122
|
"fql.query", anything, anything
|
|
123
123
|
).and_return(Koala::Response.new(200, "2", {}))
|
|
@@ -125,7 +125,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
125
125
|
@api.fql_query stub('query string')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
it "
|
|
128
|
+
it "passes a query argument" do
|
|
129
129
|
query = stub('query string')
|
|
130
130
|
|
|
131
131
|
@api.should_receive(:rest_call).with(
|
|
@@ -135,13 +135,13 @@ shared_examples_for "Koala RestAPI" do
|
|
|
135
135
|
@api.fql_query(query)
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
it "
|
|
138
|
+
it "passes on any other arguments provided" do
|
|
139
139
|
args = {:a => 2}
|
|
140
140
|
@api.should_receive(:rest_call).with(anything, hash_including(args), anything)
|
|
141
141
|
@api.fql_query("a query", args)
|
|
142
142
|
end
|
|
143
143
|
|
|
144
|
-
it "
|
|
144
|
+
it "passes on any http options provided" do
|
|
145
145
|
opts = {:a => 2}
|
|
146
146
|
@api.should_receive(:rest_call).with(anything, anything, hash_including(opts))
|
|
147
147
|
@api.fql_query("a query", {}, opts)
|
|
@@ -149,7 +149,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
149
149
|
end
|
|
150
150
|
|
|
151
151
|
describe "when making a FQL-multiquery request" do
|
|
152
|
-
it "
|
|
152
|
+
it "calls fql.multiquery method" do
|
|
153
153
|
@api.should_receive(:rest_call).with(
|
|
154
154
|
"fql.multiquery", anything, anything
|
|
155
155
|
).and_return({})
|
|
@@ -157,7 +157,7 @@ shared_examples_for "Koala RestAPI" do
|
|
|
157
157
|
@api.fql_multiquery 'query string'
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
it "
|
|
160
|
+
it "passes a queries argument" do
|
|
161
161
|
queries = stub('query string')
|
|
162
162
|
queries_json = "some JSON"
|
|
163
163
|
MultiJson.stub(:encode).with(queries).and_return(queries_json)
|
|
@@ -186,30 +186,34 @@ shared_examples_for "Koala RestAPI" do
|
|
|
186
186
|
results.should == expected_results
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
it "
|
|
189
|
+
it "passes on any other arguments provided" do
|
|
190
190
|
args = {:a => 2}
|
|
191
191
|
@api.should_receive(:rest_call).with(anything, hash_including(args), anything)
|
|
192
192
|
@api.fql_multiquery("a query", args)
|
|
193
193
|
end
|
|
194
194
|
|
|
195
|
-
it "
|
|
195
|
+
it "passes on any http options provided" do
|
|
196
196
|
opts = {:a => 2}
|
|
197
197
|
@api.should_receive(:rest_call).with(anything, anything, hash_including(opts))
|
|
198
198
|
@api.fql_multiquery("a query", {}, opts)
|
|
199
199
|
end
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
|
+
|
|
203
|
+
it "can use the beta tier" do
|
|
204
|
+
@api.fql_query("select first_name from user where uid = #{KoalaTest.user2_id}", {}, :beta => true)
|
|
205
|
+
end
|
|
202
206
|
end
|
|
203
207
|
|
|
204
208
|
shared_examples_for "Koala RestAPI with an access token" do
|
|
205
209
|
# FQL
|
|
206
|
-
it "
|
|
210
|
+
it "can access public information via FQL" do
|
|
207
211
|
result = @api.fql_query("select first_name from user where uid = #{KoalaTest.user2_id}")
|
|
208
212
|
result.size.should == 1
|
|
209
213
|
result.first['first_name'].should == KoalaTest.user2_name
|
|
210
214
|
end
|
|
211
215
|
|
|
212
|
-
it "
|
|
216
|
+
it "can access public information via FQL.multiquery" do
|
|
213
217
|
result = @api.fql_multiquery(
|
|
214
218
|
:query1 => "select first_name from user where uid = #{KoalaTest.user2_id}",
|
|
215
219
|
:query2 => "select first_name from user where uid = #{KoalaTest.user1_id}"
|
|
@@ -219,7 +223,7 @@ shared_examples_for "Koala RestAPI with an access token" do
|
|
|
219
223
|
result["query2"].first['first_name'].should == KoalaTest.user1_name
|
|
220
224
|
end
|
|
221
225
|
|
|
222
|
-
it "
|
|
226
|
+
it "can access protected information via FQL" do
|
|
223
227
|
# Tests agains the permissions fql table
|
|
224
228
|
|
|
225
229
|
# get the current user's ID
|
|
@@ -235,8 +239,7 @@ shared_examples_for "Koala RestAPI with an access token" do
|
|
|
235
239
|
result.first["read_stream"].should == 1
|
|
236
240
|
end
|
|
237
241
|
|
|
238
|
-
|
|
239
|
-
it "should be able to access protected information via FQL.multiquery" do
|
|
242
|
+
it "can access protected information via FQL.multiquery" do
|
|
240
243
|
result = @api.fql_multiquery(
|
|
241
244
|
:query1 => "select post_id from stream where source_id = me()",
|
|
242
245
|
:query2 => "select fromid from comment where post_id in (select post_id from #query1)",
|
|
@@ -245,20 +248,57 @@ shared_examples_for "Koala RestAPI with an access token" do
|
|
|
245
248
|
result.size.should == 3
|
|
246
249
|
result.keys.should include("query1", "query2", "query3")
|
|
247
250
|
end
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
describe ".set_app_properties" do
|
|
254
|
+
it "sends Facebook the properties JSON-encoded as :properties" do
|
|
255
|
+
props = {:a => 2, :c => [1, 2, "d"]}
|
|
256
|
+
@api.should_receive(:rest_call).with(anything, hash_including(:properties => MultiJson.encode(props)), anything, anything)
|
|
257
|
+
@api.set_app_properties(props)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
it "calls the admin.setAppProperties method" do
|
|
261
|
+
@api.should_receive(:rest_call).with("admin.setAppProperties", anything, anything, anything)
|
|
262
|
+
@api.set_app_properties({})
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
it "includes any other provided arguments" do
|
|
266
|
+
args = {:c => 3, :d => "a"}
|
|
267
|
+
@api.should_receive(:rest_call).with(anything, hash_including(args), anything, anything)
|
|
268
|
+
@api.set_app_properties({:a => 2}, args)
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
it "includes any http_options provided" do
|
|
272
|
+
opts = {:c => 3, :d => "a"}
|
|
273
|
+
@api.should_receive(:rest_call).with(anything, anything, opts, anything)
|
|
274
|
+
@api.set_app_properties({}, {}, opts)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
it "makes a POST" do
|
|
278
|
+
@api.should_receive(:rest_call).with(anything, anything, anything, "post")
|
|
279
|
+
@api.set_app_properties({})
|
|
280
|
+
end
|
|
248
281
|
|
|
282
|
+
it "can set app properties using the app's access token" do
|
|
283
|
+
oauth = Koala::Facebook::OAuth.new(KoalaTest.app_id, KoalaTest.secret)
|
|
284
|
+
app_token = oauth.get_app_access_token
|
|
285
|
+
@app_api = Koala::Facebook::API.new(app_token)
|
|
286
|
+
@app_api.set_app_properties(:desktop => 0).should be_true
|
|
287
|
+
end
|
|
288
|
+
end
|
|
249
289
|
end
|
|
250
290
|
|
|
251
291
|
|
|
252
292
|
shared_examples_for "Koala RestAPI without an access token" do
|
|
253
293
|
# FQL_QUERY
|
|
254
294
|
describe "when making a FQL request" do
|
|
255
|
-
it "
|
|
295
|
+
it "can access public information via FQL" do
|
|
256
296
|
result = @api.fql_query("select first_name from user where uid = #{KoalaTest.user2_id}")
|
|
257
297
|
result.size.should == 1
|
|
258
298
|
result.first['first_name'].should == KoalaTest.user2_name
|
|
259
299
|
end
|
|
260
300
|
|
|
261
|
-
it "
|
|
301
|
+
it "can access public information via FQL.multiquery" do
|
|
262
302
|
result = @api.fql_multiquery(
|
|
263
303
|
:query1 => "select first_name from user where uid = #{KoalaTest.user2_id}",
|
|
264
304
|
:query2 => "select first_name from user where uid = #{KoalaTest.user1_id}"
|
|
@@ -268,11 +308,11 @@ shared_examples_for "Koala RestAPI without an access token" do
|
|
|
268
308
|
result["query2"].first['first_name'].should == KoalaTest.user1_name
|
|
269
309
|
end
|
|
270
310
|
|
|
271
|
-
it "
|
|
311
|
+
it "can't access protected information via FQL" do
|
|
272
312
|
lambda { @api.fql_query("select read_stream from permissions where uid = #{KoalaTest.user2_id}") }.should raise_error(Koala::Facebook::APIError)
|
|
273
313
|
end
|
|
274
314
|
|
|
275
|
-
it "
|
|
315
|
+
it "can't access protected information via FQL.multiquery" do
|
|
276
316
|
lambda {
|
|
277
317
|
@api.fql_multiquery(
|
|
278
318
|
:query1 => "select post_id from stream where source_id = me()",
|
|
@@ -282,4 +322,8 @@ shared_examples_for "Koala RestAPI without an access token" do
|
|
|
282
322
|
}.should raise_error(Koala::Facebook::APIError)
|
|
283
323
|
end
|
|
284
324
|
end
|
|
325
|
+
|
|
326
|
+
it "can't use set_app_properties" do
|
|
327
|
+
lambda { @api.set_app_properties(:desktop => 0) }.should raise_error(Koala::Facebook::APIError)
|
|
328
|
+
end
|
|
285
329
|
end
|
metadata
CHANGED
|
@@ -1,84 +1,95 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: koala
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease:
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 29
|
|
5
|
+
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 1
|
|
8
|
+
- 2
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.2.1
|
|
6
11
|
platform: ruby
|
|
7
|
-
authors:
|
|
12
|
+
authors:
|
|
8
13
|
- Alex Koppel, Chris Baclig, Rafi Jacoby, Context Optional
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
16
|
cert_chain: []
|
|
12
|
-
|
|
17
|
+
|
|
18
|
+
date: 2011-10-04 00:00:00 +02:00
|
|
13
19
|
default_executable:
|
|
14
|
-
dependencies:
|
|
15
|
-
- !ruby/object:Gem::Dependency
|
|
20
|
+
dependencies:
|
|
21
|
+
- !ruby/object:Gem::Dependency
|
|
22
|
+
type: :runtime
|
|
16
23
|
name: multi_json
|
|
17
|
-
|
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
|
18
25
|
none: false
|
|
19
|
-
requirements:
|
|
26
|
+
requirements:
|
|
20
27
|
- - ~>
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 15
|
|
30
|
+
segments:
|
|
31
|
+
- 1
|
|
32
|
+
- 0
|
|
33
|
+
version: "1.0"
|
|
34
|
+
requirement: *id001
|
|
24
35
|
prerelease: false
|
|
25
|
-
|
|
26
|
-
- !ruby/object:Gem::Dependency
|
|
27
|
-
name: faraday
|
|
28
|
-
requirement: &70190931209740 !ruby/object:Gem::Requirement
|
|
29
|
-
none: false
|
|
30
|
-
requirements:
|
|
31
|
-
- - ~>
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.7.4
|
|
36
|
+
- !ruby/object:Gem::Dependency
|
|
34
37
|
type: :runtime
|
|
35
|
-
|
|
36
|
-
version_requirements:
|
|
37
|
-
- !ruby/object:Gem::Dependency
|
|
38
|
-
name: faraday-stack
|
|
39
|
-
requirement: &70190931200940 !ruby/object:Gem::Requirement
|
|
38
|
+
name: faraday
|
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
|
40
40
|
none: false
|
|
41
|
-
requirements:
|
|
41
|
+
requirements:
|
|
42
42
|
- - ~>
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
- !ruby/object:Gem::Version
|
|
44
|
+
hash: 3
|
|
45
|
+
segments:
|
|
46
|
+
- 0
|
|
47
|
+
- 7
|
|
48
|
+
- 0
|
|
49
|
+
version: 0.7.0
|
|
50
|
+
requirement: *id002
|
|
46
51
|
prerelease: false
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
53
|
+
type: :development
|
|
49
54
|
name: rspec
|
|
50
|
-
|
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
|
51
56
|
none: false
|
|
52
|
-
requirements:
|
|
57
|
+
requirements:
|
|
53
58
|
- - ~>
|
|
54
|
-
- !ruby/object:Gem::Version
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
hash: 9
|
|
61
|
+
segments:
|
|
62
|
+
- 2
|
|
63
|
+
- 5
|
|
64
|
+
version: "2.5"
|
|
65
|
+
requirement: *id003
|
|
57
66
|
prerelease: false
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
- !ruby/object:Gem::Dependency
|
|
68
|
+
type: :development
|
|
60
69
|
name: rake
|
|
61
|
-
|
|
70
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
|
62
71
|
none: false
|
|
63
|
-
requirements:
|
|
72
|
+
requirements:
|
|
64
73
|
- - ~>
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
hash: 49
|
|
76
|
+
segments:
|
|
77
|
+
- 0
|
|
78
|
+
- 8
|
|
79
|
+
- 7
|
|
66
80
|
version: 0.8.7
|
|
67
|
-
|
|
81
|
+
requirement: *id004
|
|
68
82
|
prerelease: false
|
|
69
|
-
|
|
70
|
-
description: Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write
|
|
71
|
-
access to the social graph via the Graph and REST APIs, as well as support for realtime
|
|
72
|
-
updates and OAuth and Facebook Connect authentication. Koala is fully tested and
|
|
73
|
-
supports Net::HTTP and Typhoeus connections out of the box and can accept custom
|
|
74
|
-
modules for other services.
|
|
83
|
+
description: Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write access to the social graph via the Graph and REST APIs, as well as support for realtime updates and OAuth and Facebook Connect authentication. Koala is fully tested and supports Net::HTTP and Typhoeus connections out of the box and can accept custom modules for other services.
|
|
75
84
|
email: alex@alexkoppel.com
|
|
76
85
|
executables: []
|
|
86
|
+
|
|
77
87
|
extensions: []
|
|
78
|
-
|
|
88
|
+
|
|
89
|
+
extra_rdoc_files:
|
|
79
90
|
- readme.md
|
|
80
91
|
- CHANGELOG
|
|
81
|
-
files:
|
|
92
|
+
files:
|
|
82
93
|
- .autotest
|
|
83
94
|
- .gitignore
|
|
84
95
|
- .travis.yml
|
|
@@ -95,20 +106,24 @@ files:
|
|
|
95
106
|
- lib/koala/graph_batch_api.rb
|
|
96
107
|
- lib/koala/graph_collection.rb
|
|
97
108
|
- lib/koala/http_service.rb
|
|
109
|
+
- lib/koala/multipart_request.rb
|
|
98
110
|
- lib/koala/oauth.rb
|
|
99
111
|
- lib/koala/realtime_updates.rb
|
|
100
112
|
- lib/koala/rest_api.rb
|
|
101
113
|
- lib/koala/test_users.rb
|
|
102
114
|
- lib/koala/uploadable_io.rb
|
|
103
115
|
- lib/koala/utils.rb
|
|
116
|
+
- lib/koala/version.rb
|
|
104
117
|
- readme.md
|
|
105
|
-
- spec/cases/
|
|
118
|
+
- spec/cases/api_spec.rb
|
|
106
119
|
- spec/cases/error_spec.rb
|
|
107
120
|
- spec/cases/graph_and_rest_api_spec.rb
|
|
108
121
|
- spec/cases/graph_api_batch_spec.rb
|
|
109
122
|
- spec/cases/graph_api_spec.rb
|
|
123
|
+
- spec/cases/graph_collection_spec.rb
|
|
110
124
|
- spec/cases/http_service_spec.rb
|
|
111
125
|
- spec/cases/koala_spec.rb
|
|
126
|
+
- spec/cases/multipart_request_spec.rb
|
|
112
127
|
- spec/cases/oauth_spec.rb
|
|
113
128
|
- spec/cases/realtime_updates_spec.rb
|
|
114
129
|
- spec/cases/rest_api_spec.rb
|
|
@@ -130,44 +145,51 @@ files:
|
|
|
130
145
|
has_rdoc: true
|
|
131
146
|
homepage: http://github.com/arsduo/koala
|
|
132
147
|
licenses: []
|
|
148
|
+
|
|
133
149
|
post_install_message:
|
|
134
|
-
rdoc_options:
|
|
150
|
+
rdoc_options:
|
|
135
151
|
- --line-numbers
|
|
136
152
|
- --inline-source
|
|
137
153
|
- --title
|
|
138
154
|
- Koala
|
|
139
|
-
require_paths:
|
|
155
|
+
require_paths:
|
|
140
156
|
- lib
|
|
141
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
158
|
none: false
|
|
143
|
-
requirements:
|
|
144
|
-
- -
|
|
145
|
-
- !ruby/object:Gem::Version
|
|
146
|
-
|
|
147
|
-
segments:
|
|
159
|
+
requirements:
|
|
160
|
+
- - ">="
|
|
161
|
+
- !ruby/object:Gem::Version
|
|
162
|
+
hash: 3
|
|
163
|
+
segments:
|
|
148
164
|
- 0
|
|
149
|
-
|
|
150
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
|
+
version: "0"
|
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
167
|
none: false
|
|
152
|
-
requirements:
|
|
153
|
-
- -
|
|
154
|
-
- !ruby/object:Gem::Version
|
|
155
|
-
|
|
168
|
+
requirements:
|
|
169
|
+
- - ">="
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
hash: 11
|
|
172
|
+
segments:
|
|
173
|
+
- 1
|
|
174
|
+
- 2
|
|
175
|
+
version: "1.2"
|
|
156
176
|
requirements: []
|
|
177
|
+
|
|
157
178
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 1.
|
|
179
|
+
rubygems_version: 1.5.2
|
|
159
180
|
signing_key:
|
|
160
181
|
specification_version: 3
|
|
161
|
-
summary: A lightweight, flexible library for Facebook with support for the Graph API,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
- spec/cases/api_base_spec.rb
|
|
182
|
+
summary: A lightweight, flexible library for Facebook with support for the Graph API, the REST API, realtime updates, and OAuth authentication.
|
|
183
|
+
test_files:
|
|
184
|
+
- spec/cases/api_spec.rb
|
|
165
185
|
- spec/cases/error_spec.rb
|
|
166
186
|
- spec/cases/graph_and_rest_api_spec.rb
|
|
167
187
|
- spec/cases/graph_api_batch_spec.rb
|
|
168
188
|
- spec/cases/graph_api_spec.rb
|
|
189
|
+
- spec/cases/graph_collection_spec.rb
|
|
169
190
|
- spec/cases/http_service_spec.rb
|
|
170
191
|
- spec/cases/koala_spec.rb
|
|
192
|
+
- spec/cases/multipart_request_spec.rb
|
|
171
193
|
- spec/cases/oauth_spec.rb
|
|
172
194
|
- spec/cases/realtime_updates_spec.rb
|
|
173
195
|
- spec/cases/rest_api_spec.rb
|