flickr_fakr 0.1.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/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use 1.9.2@flickr_fakr --create
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source :rubygems
2
+
3
+ gem 'sinatra', '= 1.3.1'
4
+ gem 'haml', '= 3.1.3'
5
+
6
+ group :development do
7
+ gem 'jeweler', '= 1.6.4'
8
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ haml (3.1.3)
6
+ jeweler (1.6.4)
7
+ bundler (~> 1.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rack (1.3.5)
11
+ rack-protection (1.1.4)
12
+ rack
13
+ rake (0.8.7)
14
+ sinatra (1.3.1)
15
+ rack (~> 1.3, >= 1.3.4)
16
+ rack-protection (~> 1.1, >= 1.1.2)
17
+ tilt (~> 1.3, >= 1.3.3)
18
+ tilt (1.3.3)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ haml (= 3.1.3)
25
+ jeweler (= 1.6.4)
26
+ sinatra (= 1.3.1)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 James Ottaway
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ gem.name = "flickr_fakr"
17
+ gem.homepage = "http://github.com/jamesottaway/flickr_fakr"
18
+ gem.executables = ['flickr_fakr']
19
+ gem.default_executable = 'flickr_fakr'
20
+ gem.license = "MIT"
21
+ gem.summary = %Q{a fake version of the Flickr API}
22
+ gem.description = %Q{Use flickr_fakr to help you write functional tests without having a dependency on Flickr}
23
+ gem.email = "james@ottaway.mp"
24
+ gem.authors = ["James Ottaway"]
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/bin/flickr_fakr ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ $: << File.dirname(__FILE__)+'/../lib'
4
+ require 'flickr_fakr/flickr_fakr.rb'
5
+ FlickrFakr.run!
6
+ rescue LoadError
7
+ require 'rubygems'
8
+ path = File.expand_path '../../lib', __FILE__
9
+ $:.unshift(path) if File.directory?(path) && !$:.include?(path)
10
+ require 'flickr_fakr/flickr_fakr.rb'
11
+ end
data/config.ru ADDED
@@ -0,0 +1,3 @@
1
+ $: << File.dirname(__FILE__)+'/lib/flickr_fakr'
2
+ require 'flickr_fakr'
3
+ run FlickrFakr
@@ -0,0 +1,59 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{flickr_fakr}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = [%q{James Ottaway}]
12
+ s.date = %q{2011-11-07}
13
+ s.description = %q{Use flickr_fakr to help you write functional tests without having a dependency on Flickr}
14
+ s.email = %q{james@ottaway.mp}
15
+ s.executables = [%q{flickr_fakr}]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE.txt"
18
+ ]
19
+ s.files = [
20
+ ".rvmrc",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "bin/flickr_fakr",
27
+ "config.ru",
28
+ "flickr_fakr.gemspec",
29
+ "lib/flickr_fakr/flickr_fakr.rb",
30
+ "lib/flickr_fakr/views/flickr.auth.getFrob.json.haml",
31
+ "lib/flickr_fakr/views/flickr.auth.getToken.json.haml",
32
+ "lib/flickr_fakr/views/flickr.reflection.getMethods.json.haml",
33
+ "lib/flickr_fakr/views/flickr.test.login.json.haml"
34
+ ]
35
+ s.homepage = %q{http://github.com/jamesottaway/flickr_fakr}
36
+ s.licenses = [%q{MIT}]
37
+ s.require_paths = [%q{lib}]
38
+ s.rubygems_version = %q{1.8.8}
39
+ s.summary = %q{a fake version of the Flickr API}
40
+
41
+ if s.respond_to? :specification_version then
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<sinatra>, ["= 1.3.1"])
46
+ s.add_runtime_dependency(%q<haml>, ["= 3.1.3"])
47
+ s.add_development_dependency(%q<jeweler>, ["= 1.6.4"])
48
+ else
49
+ s.add_dependency(%q<sinatra>, ["= 1.3.1"])
50
+ s.add_dependency(%q<haml>, ["= 3.1.3"])
51
+ s.add_dependency(%q<jeweler>, ["= 1.6.4"])
52
+ end
53
+ else
54
+ s.add_dependency(%q<sinatra>, ["= 1.3.1"])
55
+ s.add_dependency(%q<haml>, ["= 3.1.3"])
56
+ s.add_dependency(%q<jeweler>, ["= 1.6.4"])
57
+ end
58
+ end
59
+
@@ -0,0 +1,20 @@
1
+ require 'sinatra/base'
2
+ require 'haml'
3
+
4
+ class FlickrFakr < Sinatra::Base
5
+ get '/' do
6
+ 'Welcome to Flickr Fakr!'
7
+ end
8
+
9
+ get '/services/auth/' do
10
+ redirect 'http://localhost:9292/flickr/callback?frob=123'
11
+ end
12
+
13
+ post '/services/rest/' do
14
+ args = {}
15
+ request.body.rewind
16
+ request.body.read.split('&').each { |arg| args[arg.split('=').first] = arg.split('=').last }
17
+ view = "#{args['method']}.#{args['format']}"
18
+ haml view.to_sym
19
+ end
20
+ end
@@ -0,0 +1 @@
1
+ {"frob":{"_content":"72157628008826732-d18f7df9bfd670c3-31528"}, "stat":"ok"}
@@ -0,0 +1 @@
1
+ {"auth":{"token":{"_content":"72197626744597143-36de57c6a59d1a8d"}, "perms":{"_content":"write"}, "user":{"nsid":"13314999@N06", "username":"johnsmith", "fullname":"John Smith"}}, "stat":"ok"}
@@ -0,0 +1,556 @@
1
+ {
2
+ "methods": {
3
+ "method": [
4
+ {
5
+ "_content": "flickr.activity.userComments"
6
+ },
7
+ {
8
+ "_content": "flickr.activity.userPhotos"
9
+ },
10
+ {
11
+ "_content": "flickr.auth.checkToken"
12
+ },
13
+ {
14
+ "_content": "flickr.auth.getFrob"
15
+ },
16
+ {
17
+ "_content": "flickr.auth.getFullToken"
18
+ },
19
+ {
20
+ "_content": "flickr.auth.getToken"
21
+ },
22
+ {
23
+ "_content": "flickr.auth.oauth.getAccessToken"
24
+ },
25
+ {
26
+ "_content": "flickr.blogs.getList"
27
+ },
28
+ {
29
+ "_content": "flickr.blogs.getServices"
30
+ },
31
+ {
32
+ "_content": "flickr.blogs.postPhoto"
33
+ },
34
+ {
35
+ "_content": "flickr.collections.getInfo"
36
+ },
37
+ {
38
+ "_content": "flickr.collections.getTree"
39
+ },
40
+ {
41
+ "_content": "flickr.commons.getInstitutions"
42
+ },
43
+ {
44
+ "_content": "flickr.contacts.getList"
45
+ },
46
+ {
47
+ "_content": "flickr.contacts.getListRecentlyUploaded"
48
+ },
49
+ {
50
+ "_content": "flickr.contacts.getPublicList"
51
+ },
52
+ {
53
+ "_content": "flickr.favorites.add"
54
+ },
55
+ {
56
+ "_content": "flickr.favorites.getContext"
57
+ },
58
+ {
59
+ "_content": "flickr.favorites.getList"
60
+ },
61
+ {
62
+ "_content": "flickr.favorites.getPublicList"
63
+ },
64
+ {
65
+ "_content": "flickr.favorites.remove"
66
+ },
67
+ {
68
+ "_content": "flickr.galleries.addPhoto"
69
+ },
70
+ {
71
+ "_content": "flickr.galleries.create"
72
+ },
73
+ {
74
+ "_content": "flickr.galleries.editMeta"
75
+ },
76
+ {
77
+ "_content": "flickr.galleries.editPhoto"
78
+ },
79
+ {
80
+ "_content": "flickr.galleries.editPhotos"
81
+ },
82
+ {
83
+ "_content": "flickr.galleries.getInfo"
84
+ },
85
+ {
86
+ "_content": "flickr.galleries.getList"
87
+ },
88
+ {
89
+ "_content": "flickr.galleries.getListForPhoto"
90
+ },
91
+ {
92
+ "_content": "flickr.galleries.getPhotos"
93
+ },
94
+ {
95
+ "_content": "flickr.groups.browse"
96
+ },
97
+ {
98
+ "_content": "flickr.groups.getInfo"
99
+ },
100
+ {
101
+ "_content": "flickr.groups.members.getList"
102
+ },
103
+ {
104
+ "_content": "flickr.groups.pools.add"
105
+ },
106
+ {
107
+ "_content": "flickr.groups.pools.getContext"
108
+ },
109
+ {
110
+ "_content": "flickr.groups.pools.getGroups"
111
+ },
112
+ {
113
+ "_content": "flickr.groups.pools.getPhotos"
114
+ },
115
+ {
116
+ "_content": "flickr.groups.pools.remove"
117
+ },
118
+ {
119
+ "_content": "flickr.groups.search"
120
+ },
121
+ {
122
+ "_content": "flickr.interestingness.getList"
123
+ },
124
+ {
125
+ "_content": "flickr.machinetags.getNamespaces"
126
+ },
127
+ {
128
+ "_content": "flickr.machinetags.getPairs"
129
+ },
130
+ {
131
+ "_content": "flickr.machinetags.getPredicates"
132
+ },
133
+ {
134
+ "_content": "flickr.machinetags.getRecentValues"
135
+ },
136
+ {
137
+ "_content": "flickr.machinetags.getValues"
138
+ },
139
+ {
140
+ "_content": "flickr.panda.getList"
141
+ },
142
+ {
143
+ "_content": "flickr.panda.getPhotos"
144
+ },
145
+ {
146
+ "_content": "flickr.people.findByEmail"
147
+ },
148
+ {
149
+ "_content": "flickr.people.findByUsername"
150
+ },
151
+ {
152
+ "_content": "flickr.people.getInfo"
153
+ },
154
+ {
155
+ "_content": "flickr.people.getPhotos"
156
+ },
157
+ {
158
+ "_content": "flickr.people.getPhotosOf"
159
+ },
160
+ {
161
+ "_content": "flickr.people.getPublicGroups"
162
+ },
163
+ {
164
+ "_content": "flickr.people.getPublicPhotos"
165
+ },
166
+ {
167
+ "_content": "flickr.people.getUploadStatus"
168
+ },
169
+ {
170
+ "_content": "flickr.photos.addTags"
171
+ },
172
+ {
173
+ "_content": "flickr.photos.comments.addComment"
174
+ },
175
+ {
176
+ "_content": "flickr.photos.comments.deleteComment"
177
+ },
178
+ {
179
+ "_content": "flickr.photos.comments.editComment"
180
+ },
181
+ {
182
+ "_content": "flickr.photos.comments.getList"
183
+ },
184
+ {
185
+ "_content": "flickr.photos.comments.getRecentForContacts"
186
+ },
187
+ {
188
+ "_content": "flickr.photos.delete"
189
+ },
190
+ {
191
+ "_content": "flickr.photos.geo.batchCorrectLocation"
192
+ },
193
+ {
194
+ "_content": "flickr.photos.geo.correctLocation"
195
+ },
196
+ {
197
+ "_content": "flickr.photos.geo.getLocation"
198
+ },
199
+ {
200
+ "_content": "flickr.photos.geo.getPerms"
201
+ },
202
+ {
203
+ "_content": "flickr.photos.geo.photosForLocation"
204
+ },
205
+ {
206
+ "_content": "flickr.photos.geo.removeLocation"
207
+ },
208
+ {
209
+ "_content": "flickr.photos.geo.setContext"
210
+ },
211
+ {
212
+ "_content": "flickr.photos.geo.setLocation"
213
+ },
214
+ {
215
+ "_content": "flickr.photos.geo.setPerms"
216
+ },
217
+ {
218
+ "_content": "flickr.photos.getAllContexts"
219
+ },
220
+ {
221
+ "_content": "flickr.photos.getContactsPhotos"
222
+ },
223
+ {
224
+ "_content": "flickr.photos.getContactsPublicPhotos"
225
+ },
226
+ {
227
+ "_content": "flickr.photos.getContext"
228
+ },
229
+ {
230
+ "_content": "flickr.photos.getCounts"
231
+ },
232
+ {
233
+ "_content": "flickr.photos.getExif"
234
+ },
235
+ {
236
+ "_content": "flickr.photos.getFavorites"
237
+ },
238
+ {
239
+ "_content": "flickr.photos.getInfo"
240
+ },
241
+ {
242
+ "_content": "flickr.photos.getNotInSet"
243
+ },
244
+ {
245
+ "_content": "flickr.photos.getPerms"
246
+ },
247
+ {
248
+ "_content": "flickr.photos.getRecent"
249
+ },
250
+ {
251
+ "_content": "flickr.photos.getSizes"
252
+ },
253
+ {
254
+ "_content": "flickr.photos.getUntagged"
255
+ },
256
+ {
257
+ "_content": "flickr.photos.getWithGeoData"
258
+ },
259
+ {
260
+ "_content": "flickr.photos.getWithoutGeoData"
261
+ },
262
+ {
263
+ "_content": "flickr.photos.licenses.getInfo"
264
+ },
265
+ {
266
+ "_content": "flickr.photos.licenses.setLicense"
267
+ },
268
+ {
269
+ "_content": "flickr.photos.notes.add"
270
+ },
271
+ {
272
+ "_content": "flickr.photos.notes.delete"
273
+ },
274
+ {
275
+ "_content": "flickr.photos.notes.edit"
276
+ },
277
+ {
278
+ "_content": "flickr.photos.people.add"
279
+ },
280
+ {
281
+ "_content": "flickr.photos.people.delete"
282
+ },
283
+ {
284
+ "_content": "flickr.photos.people.deleteCoords"
285
+ },
286
+ {
287
+ "_content": "flickr.photos.people.editCoords"
288
+ },
289
+ {
290
+ "_content": "flickr.photos.people.getList"
291
+ },
292
+ {
293
+ "_content": "flickr.photos.recentlyUpdated"
294
+ },
295
+ {
296
+ "_content": "flickr.photos.removeTag"
297
+ },
298
+ {
299
+ "_content": "flickr.photos.search"
300
+ },
301
+ {
302
+ "_content": "flickr.photos.setContentType"
303
+ },
304
+ {
305
+ "_content": "flickr.photos.setDates"
306
+ },
307
+ {
308
+ "_content": "flickr.photos.setMeta"
309
+ },
310
+ {
311
+ "_content": "flickr.photos.setPerms"
312
+ },
313
+ {
314
+ "_content": "flickr.photos.setSafetyLevel"
315
+ },
316
+ {
317
+ "_content": "flickr.photos.setTags"
318
+ },
319
+ {
320
+ "_content": "flickr.photos.transform.rotate"
321
+ },
322
+ {
323
+ "_content": "flickr.photos.upload.checkTickets"
324
+ },
325
+ {
326
+ "_content": "flickr.photosets.addPhoto"
327
+ },
328
+ {
329
+ "_content": "flickr.photosets.comments.addComment"
330
+ },
331
+ {
332
+ "_content": "flickr.photosets.comments.deleteComment"
333
+ },
334
+ {
335
+ "_content": "flickr.photosets.comments.editComment"
336
+ },
337
+ {
338
+ "_content": "flickr.photosets.comments.getList"
339
+ },
340
+ {
341
+ "_content": "flickr.photosets.create"
342
+ },
343
+ {
344
+ "_content": "flickr.photosets.delete"
345
+ },
346
+ {
347
+ "_content": "flickr.photosets.editMeta"
348
+ },
349
+ {
350
+ "_content": "flickr.photosets.editPhotos"
351
+ },
352
+ {
353
+ "_content": "flickr.photosets.getContext"
354
+ },
355
+ {
356
+ "_content": "flickr.photosets.getInfo"
357
+ },
358
+ {
359
+ "_content": "flickr.photosets.getList"
360
+ },
361
+ {
362
+ "_content": "flickr.photosets.getPhotos"
363
+ },
364
+ {
365
+ "_content": "flickr.photosets.orderSets"
366
+ },
367
+ {
368
+ "_content": "flickr.photosets.removePhoto"
369
+ },
370
+ {
371
+ "_content": "flickr.photosets.removePhotos"
372
+ },
373
+ {
374
+ "_content": "flickr.photosets.reorderPhotos"
375
+ },
376
+ {
377
+ "_content": "flickr.photosets.setPrimaryPhoto"
378
+ },
379
+ {
380
+ "_content": "flickr.places.find"
381
+ },
382
+ {
383
+ "_content": "flickr.places.findByLatLon"
384
+ },
385
+ {
386
+ "_content": "flickr.places.getChildrenWithPhotosPublic"
387
+ },
388
+ {
389
+ "_content": "flickr.places.getInfo"
390
+ },
391
+ {
392
+ "_content": "flickr.places.getInfoByUrl"
393
+ },
394
+ {
395
+ "_content": "flickr.places.getPlaceTypes"
396
+ },
397
+ {
398
+ "_content": "flickr.places.getShapeHistory"
399
+ },
400
+ {
401
+ "_content": "flickr.places.getTopPlacesList"
402
+ },
403
+ {
404
+ "_content": "flickr.places.placesForBoundingBox"
405
+ },
406
+ {
407
+ "_content": "flickr.places.placesForContacts"
408
+ },
409
+ {
410
+ "_content": "flickr.places.placesForTags"
411
+ },
412
+ {
413
+ "_content": "flickr.places.placesForUser"
414
+ },
415
+ {
416
+ "_content": "flickr.places.resolvePlaceId"
417
+ },
418
+ {
419
+ "_content": "flickr.places.resolvePlaceURL"
420
+ },
421
+ {
422
+ "_content": "flickr.places.tagsForPlace"
423
+ },
424
+ {
425
+ "_content": "flickr.prefs.getContentType"
426
+ },
427
+ {
428
+ "_content": "flickr.prefs.getGeoPerms"
429
+ },
430
+ {
431
+ "_content": "flickr.prefs.getHidden"
432
+ },
433
+ {
434
+ "_content": "flickr.prefs.getPrivacy"
435
+ },
436
+ {
437
+ "_content": "flickr.prefs.getSafetyLevel"
438
+ },
439
+ {
440
+ "_content": "flickr.push.getSubscriptions"
441
+ },
442
+ {
443
+ "_content": "flickr.push.getTopics"
444
+ },
445
+ {
446
+ "_content": "flickr.push.subscribe"
447
+ },
448
+ {
449
+ "_content": "flickr.push.unsubscribe"
450
+ },
451
+ {
452
+ "_content": "flickr.reflection.getMethodInfo"
453
+ },
454
+ {
455
+ "_content": "flickr.reflection.getMethods"
456
+ },
457
+ {
458
+ "_content": "flickr.stats.getCollectionDomains"
459
+ },
460
+ {
461
+ "_content": "flickr.stats.getCollectionReferrers"
462
+ },
463
+ {
464
+ "_content": "flickr.stats.getCollectionStats"
465
+ },
466
+ {
467
+ "_content": "flickr.stats.getCSVFiles"
468
+ },
469
+ {
470
+ "_content": "flickr.stats.getPhotoDomains"
471
+ },
472
+ {
473
+ "_content": "flickr.stats.getPhotoReferrers"
474
+ },
475
+ {
476
+ "_content": "flickr.stats.getPhotosetDomains"
477
+ },
478
+ {
479
+ "_content": "flickr.stats.getPhotosetReferrers"
480
+ },
481
+ {
482
+ "_content": "flickr.stats.getPhotosetStats"
483
+ },
484
+ {
485
+ "_content": "flickr.stats.getPhotoStats"
486
+ },
487
+ {
488
+ "_content": "flickr.stats.getPhotostreamDomains"
489
+ },
490
+ {
491
+ "_content": "flickr.stats.getPhotostreamReferrers"
492
+ },
493
+ {
494
+ "_content": "flickr.stats.getPhotostreamStats"
495
+ },
496
+ {
497
+ "_content": "flickr.stats.getPopularPhotos"
498
+ },
499
+ {
500
+ "_content": "flickr.stats.getTotalViews"
501
+ },
502
+ {
503
+ "_content": "flickr.tags.getClusterPhotos"
504
+ },
505
+ {
506
+ "_content": "flickr.tags.getClusters"
507
+ },
508
+ {
509
+ "_content": "flickr.tags.getHotList"
510
+ },
511
+ {
512
+ "_content": "flickr.tags.getListPhoto"
513
+ },
514
+ {
515
+ "_content": "flickr.tags.getListUser"
516
+ },
517
+ {
518
+ "_content": "flickr.tags.getListUserPopular"
519
+ },
520
+ {
521
+ "_content": "flickr.tags.getListUserRaw"
522
+ },
523
+ {
524
+ "_content": "flickr.tags.getRelated"
525
+ },
526
+ {
527
+ "_content": "flickr.test.echo"
528
+ },
529
+ {
530
+ "_content": "flickr.test.login"
531
+ },
532
+ {
533
+ "_content": "flickr.test.null"
534
+ },
535
+ {
536
+ "_content": "flickr.urls.getGroup"
537
+ },
538
+ {
539
+ "_content": "flickr.urls.getUserPhotos"
540
+ },
541
+ {
542
+ "_content": "flickr.urls.getUserProfile"
543
+ },
544
+ {
545
+ "_content": "flickr.urls.lookupGallery"
546
+ },
547
+ {
548
+ "_content": "flickr.urls.lookupGroup"
549
+ },
550
+ {
551
+ "_content": "flickr.urls.lookupUser"
552
+ }
553
+ ]
554
+ },
555
+ "stat": "ok"
556
+ }
@@ -0,0 +1 @@
1
+ {"user":{"id":"13314999@N06", "username":{"_content":"johnsmith"}}, "stat":"ok"}
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flickr_fakr
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - James Ottaway
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-11-07 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: sinatra
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - "="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.3.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: haml
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - "="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: jeweler
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - "="
43
+ - !ruby/object:Gem::Version
44
+ version: 1.6.4
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ description: Use flickr_fakr to help you write functional tests without having a dependency on Flickr
49
+ email: james@ottaway.mp
50
+ executables:
51
+ - flickr_fakr
52
+ extensions: []
53
+
54
+ extra_rdoc_files:
55
+ - LICENSE.txt
56
+ files:
57
+ - .rvmrc
58
+ - Gemfile
59
+ - Gemfile.lock
60
+ - LICENSE.txt
61
+ - Rakefile
62
+ - VERSION
63
+ - bin/flickr_fakr
64
+ - config.ru
65
+ - flickr_fakr.gemspec
66
+ - lib/flickr_fakr/flickr_fakr.rb
67
+ - lib/flickr_fakr/views/flickr.auth.getFrob.json.haml
68
+ - lib/flickr_fakr/views/flickr.auth.getToken.json.haml
69
+ - lib/flickr_fakr/views/flickr.reflection.getMethods.json.haml
70
+ - lib/flickr_fakr/views/flickr.test.login.json.haml
71
+ homepage: http://github.com/jamesottaway/flickr_fakr
72
+ licenses:
73
+ - MIT
74
+ post_install_message:
75
+ rdoc_options: []
76
+
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ hash: -2318779034493770044
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ requirements: []
95
+
96
+ rubyforge_project:
97
+ rubygems_version: 1.8.8
98
+ signing_key:
99
+ specification_version: 3
100
+ summary: a fake version of the Flickr API
101
+ test_files: []
102
+