flickrie 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -1
- data/README.md +1 -1
- data/lib/flickrie/api_methods.rb +13 -13
- data/lib/flickrie/version.rb +1 -1
- metadata +16 -18
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -133,7 +133,7 @@ So, in your ERB template you could do something like this (in Rails):
|
|
133
133
|
```
|
134
134
|
|
135
135
|
You can see the full list of available methods and attributes in the
|
136
|
-
[documentation](http://
|
136
|
+
[documentation](http://rubydoc.info/gems/flickrie/).
|
137
137
|
For photos (and videos) have a look at the `Flickrie::Media` module,
|
138
138
|
because it's included into `Flickrie::Photo` and `Flickrie::Video`, and most
|
139
139
|
of the attributes are there.
|
data/lib/flickrie/api_methods.rb
CHANGED
@@ -181,7 +181,7 @@ module Flickrie
|
|
181
181
|
|
182
182
|
# Fetches photos and videos from contacts of the user who authenticated.
|
183
183
|
#
|
184
|
-
# @param params [Hash] Options for this API method (see the link below)
|
184
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
185
185
|
# @return [Array<Flickrie::Photo, Flickrie::Video>]
|
186
186
|
# @api_method [flickr.photos.getContactsPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPhotos.html)
|
187
187
|
#
|
@@ -192,7 +192,7 @@ module Flickrie
|
|
192
192
|
end
|
193
193
|
# Fetches photos from contacts of the user who authenticated.
|
194
194
|
#
|
195
|
-
# @param params [Hash] Options for this API method (see the link below)
|
195
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
196
196
|
# @return [Array<Flickrie::Photo>]
|
197
197
|
# @api_method [flickr.photos.getContactsPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPhotos.html)
|
198
198
|
#
|
@@ -202,7 +202,7 @@ module Flickrie
|
|
202
202
|
end
|
203
203
|
# Fetches videos from contacts of the user who authenticated.
|
204
204
|
#
|
205
|
-
# @param params [Hash] Options for this API method (see the link below)
|
205
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
206
206
|
# @return [Array<Flickrie::Video>]
|
207
207
|
# @api_method [flickr.photos.getContactsPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPhotos.html)
|
208
208
|
#
|
@@ -215,7 +215,7 @@ module Flickrie
|
|
215
215
|
# given NSID.
|
216
216
|
#
|
217
217
|
# @param nsid [String]
|
218
|
-
# @param params [Hash] Options for this API method (see the link below)
|
218
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
219
219
|
# @api_method [flickr.photos.getContactsPublicPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPublicPhotos.html)
|
220
220
|
def public_media_from_user_contacts(nsid, params = {})
|
221
221
|
response = client.public_media_from_user_contacts(nsid, params)
|
@@ -225,7 +225,7 @@ module Flickrie
|
|
225
225
|
# given NSID.
|
226
226
|
#
|
227
227
|
# @param nsid [String]
|
228
|
-
# @param params [Hash] Options for this API method (see the link below)
|
228
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
229
229
|
# @api_method [flickr.photos.getContactsPublicPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPublicPhotos.html)
|
230
230
|
def public_photos_from_user_contacts(nsid, params = {})
|
231
231
|
public_media_from_user_contacts(nsid, params).
|
@@ -235,7 +235,7 @@ module Flickrie
|
|
235
235
|
# given NSID.
|
236
236
|
#
|
237
237
|
# @param nsid [String]
|
238
|
-
# @param params [Hash] Options for this API method (see the link below)
|
238
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
239
239
|
# @api_method [flickr.photos.getContactsPublicPhotos](http://www.flickr.com/services/api/flickr.photos.getContactsPublicPhotos.html)
|
240
240
|
def public_videos_from_user_contacts(nsid, params = {})
|
241
241
|
public_media_from_user_contacts(nsid, params).
|
@@ -271,7 +271,7 @@ module Flickrie
|
|
271
271
|
# count.date_range.begin # => 2011-01-03 01:00:00 +0100
|
272
272
|
# count.from # => 2011-01-03 01:00:00 +0100
|
273
273
|
#
|
274
|
-
# @param params [Hash] Options for this API method (see the link below)
|
274
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
275
275
|
# @return [Flickrie::MediaCount]
|
276
276
|
# @api_method [flickr.photos.getCounts](http://www.flickr.com/services/api/flickr.photos.getCounts.html)
|
277
277
|
def get_media_counts(params = {})
|
@@ -397,7 +397,7 @@ module Flickrie
|
|
397
397
|
|
398
398
|
# Fetches photos and videos matching a certain criteria.
|
399
399
|
#
|
400
|
-
# @param search_params [Hash] Options for searching (see the link below)
|
400
|
+
# @param search_params [Hash] Options for searching (see the link below under "Flickr API method")
|
401
401
|
# @return [Array<Flickrie::Photo, Flickrie::Video>]
|
402
402
|
# @api_method [flickr.photos.search](http://www.flickr.com/services/api/flickr.photos.search.html)
|
403
403
|
def search_media(search_params = {})
|
@@ -406,7 +406,7 @@ module Flickrie
|
|
406
406
|
end
|
407
407
|
# Fetches photos matching a certain criteria.
|
408
408
|
#
|
409
|
-
# @param search_params [Hash] Options for searching (see the link below)
|
409
|
+
# @param search_params [Hash] Options for searching (see the link below under "Flickr API method")
|
410
410
|
# @return [Array<Flickrie::Photo>]
|
411
411
|
# @api_method [flickr.photos.search](http://www.flickr.com/services/api/flickr.photos.search.html)
|
412
412
|
def search_photos(search_params = {})
|
@@ -414,7 +414,7 @@ module Flickrie
|
|
414
414
|
end
|
415
415
|
# Fetches videos matching a certain criteria.
|
416
416
|
#
|
417
|
-
# @param search_params [Hash] Options for searching (see the link below)
|
417
|
+
# @param search_params [Hash] Options for searching (see the link below under "Flickr API method")
|
418
418
|
# @return [Array<Flickrie::Video>]
|
419
419
|
# @api_method [flickr.photos.search](http://www.flickr.com/services/api/flickr.photos.search.html)
|
420
420
|
def search_videos(search_params = {})
|
@@ -474,7 +474,7 @@ module Flickrie
|
|
474
474
|
# Fetches photos and videos from a set with the given ID.
|
475
475
|
#
|
476
476
|
# @param set_id [String]
|
477
|
-
# @param params [Hash] Options for this API method (see the link below)
|
477
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
478
478
|
# @return [Array<Flickrie::Photo, Flickrie::Video>]
|
479
479
|
# @api_method [flickr.photosets.getPhotos](http://www.flickr.com/services/api/flickr.photosets.getPhotos.html)
|
480
480
|
def media_from_set(set_id, params = {})
|
@@ -484,7 +484,7 @@ module Flickrie
|
|
484
484
|
# Fetches photos from a set with the given ID.
|
485
485
|
#
|
486
486
|
# @param set_id [String]
|
487
|
-
# @param params [Hash] Options for this API method (see the link below)
|
487
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
488
488
|
# @return [Array<Flickrie::Photo>]
|
489
489
|
# @api_method [flickr.photosets.getPhotos](http://www.flickr.com/services/api/flickr.photosets.getPhotos.html)
|
490
490
|
def photos_from_set(set_id, params = {})
|
@@ -493,7 +493,7 @@ module Flickrie
|
|
493
493
|
# Fetches videos from a set with the given ID.
|
494
494
|
#
|
495
495
|
# @param set_id [String]
|
496
|
-
# @param params [Hash] Options for this API method (see the link below)
|
496
|
+
# @param params [Hash] Options for this API method (see the link below under "Flickr API method")
|
497
497
|
# @return [Array<Flickrie::Video>]
|
498
498
|
# @api_method [flickr.photosets.getPhotos](http://www.flickr.com/services/api/flickr.photosets.getPhotos.html)
|
499
499
|
def videos_from_set(set_id, params = {})
|
data/lib/flickrie/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flickrie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday_middleware
|
16
|
-
requirement: &
|
16
|
+
requirement: &70241200690780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '0.9'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70241200690780
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: faraday
|
30
|
-
requirement: &
|
30
|
+
requirement: &70241200690040 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -38,10 +38,10 @@ dependencies:
|
|
38
38
|
version: '0.9'
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
|
-
version_requirements: *
|
41
|
+
version_requirements: *70241200690040
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: simple_oauth
|
44
|
-
requirement: &
|
44
|
+
requirement: &70241200689320 !ruby/object:Gem::Requirement
|
45
45
|
none: false
|
46
46
|
requirements:
|
47
47
|
- - ~>
|
@@ -49,10 +49,10 @@ dependencies:
|
|
49
49
|
version: '0.1'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
|
-
version_requirements: *
|
52
|
+
version_requirements: *70241200689320
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: multi_xml
|
55
|
-
requirement: &
|
55
|
+
requirement: &70241200688860 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
58
58
|
- - ~>
|
@@ -60,10 +60,10 @@ dependencies:
|
|
60
60
|
version: '0.4'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
|
-
version_requirements: *
|
63
|
+
version_requirements: *70241200688860
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: rake
|
66
|
-
requirement: &
|
66
|
+
requirement: &70241200688400 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
69
|
- - ~>
|
@@ -71,10 +71,10 @@ dependencies:
|
|
71
71
|
version: '0.9'
|
72
72
|
type: :development
|
73
73
|
prerelease: false
|
74
|
-
version_requirements: *
|
74
|
+
version_requirements: *70241200688400
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
|
-
requirement: &
|
77
|
+
requirement: &70241200687940 !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
80
80
|
- - ! '>='
|
@@ -82,10 +82,10 @@ dependencies:
|
|
82
82
|
version: '2'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
|
-
version_requirements: *
|
85
|
+
version_requirements: *70241200687940
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: vcr
|
88
|
-
requirement: &
|
88
|
+
requirement: &70241200687480 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
@@ -93,7 +93,7 @@ dependencies:
|
|
93
93
|
version: '2.1'
|
94
94
|
type: :development
|
95
95
|
prerelease: false
|
96
|
-
version_requirements: *
|
96
|
+
version_requirements: *70241200687480
|
97
97
|
description: This gem wraps the Flickr API with a nice object-oriented interface.
|
98
98
|
email: janko.marohnic@gmail.com
|
99
99
|
executables: []
|
@@ -194,9 +194,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
- - ! '>='
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
|
-
segments:
|
198
|
-
- 0
|
199
|
-
hash: 3443351439038173602
|
200
197
|
requirements: []
|
201
198
|
rubyforge_project:
|
202
199
|
rubygems_version: 1.8.11
|
@@ -249,3 +246,4 @@ test_files:
|
|
249
246
|
- spec/vcr_cassettes/user/get_info.yml
|
250
247
|
- spec/vcr_cassettes/video/get_info.yml
|
251
248
|
- spec/vcr_cassettes/video/get_sizes.yml
|
249
|
+
has_rdoc:
|