flickrie 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # Flickrie changelog
2
+
3
+ ## Version 0.4.0 (Unreleased)
4
+
5
+ - covered `flickr.photos.getContactsPhotos`
6
+ - covered `flickr.photos.getContactsPublicPhotos`
7
+ - covered `flickr.photos.getContext`
8
+
9
+ ## Version 0.3.1
10
+
11
+ - fixed an error when accessing tags from photos fetched through
12
+ certain API calls
13
+
14
+ ## Version 0.3.0
15
+
16
+ - the proper error is now raised on wrong access tokens
17
+ - implemented a better way of using access tokens, using `Flickrie::Instance.new(access_token, access_secret)`
18
+ (see [this wiki](https://github.com/janko-m/flickrie/wiki/Authentication-in-web-applications) for an example)
19
+
20
+ ## Version 0.2.2
21
+
22
+ - removed `addressable` gem as dependency
data/README.md CHANGED
@@ -221,6 +221,10 @@ basis of this gem.
221
221
  "flickr.photosets.getPhotos" -> Flickrie.photos_from_set
222
222
  ```
223
223
 
224
+ ## Changelog
225
+
226
+ You can see the changelog [here]((https://github.com/janko-m/flickrie/blob/master/CHANGELOG.md).
227
+
224
228
  ## License
225
229
 
226
230
  [MIT](https://github.com/janko-m/flickrie/blob/master/LICENSE)
@@ -30,14 +30,12 @@ module Flickrie
30
30
  Media.from_user(response.body['photos'])
31
31
  end
32
32
  def public_photos_from_user(user_nsid, params = {})
33
- public_media_from_user(user_nsid, params).select do |media|
34
- media.is_a?(Photo)
35
- end
33
+ public_media_from_user(user_nsid, params).
34
+ select { |media| media.is_a?(Photo) }
36
35
  end
37
36
  def public_videos_from_user(user_nsid, params = {})
38
- public_media_from_user(user_nsid, params).select do |media|
39
- media.is_a?(Video)
40
- end
37
+ public_media_from_user(user_nsid, params).
38
+ select { |media| media.is_a?(Video) }
41
39
  end
42
40
 
43
41
  # photos
data/lib/flickrie/set.rb CHANGED
@@ -19,9 +19,9 @@ module Flickrie
19
19
 
20
20
  def owner; User.new('nsid' => @info['owner']) if @info['owner'] end
21
21
 
22
- def photos; Flickrie.photos_from_set(id) end
23
- def videos; Flickrie.videos_from_set(id) end
24
- def media; Flickrie.media_from_set(id) end
22
+ def photos(params = {}); Flickrie.photos_from_set(id, params) end
23
+ def videos(params = {}); Flickrie.videos_from_set(id, params) end
24
+ def media(params = {}); Flickrie.media_from_set(id, params) end
25
25
 
26
26
  def can_comment?; @info['can_comment'].to_i == 1 if @info['can_comment'] end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Flickrie
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
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: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday_middleware
16
- requirement: &70134907783700 !ruby/object:Gem::Requirement
16
+ requirement: &70189173611560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70134907783700
24
+ version_requirements: *70189173611560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: simple_oauth
27
- requirement: &70134907780840 !ruby/object:Gem::Requirement
27
+ requirement: &70189173466820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70134907780840
35
+ version_requirements: *70189173466820
36
36
  description: This gem is a nice wrapper for the Flickr API with an intuitive interface.
37
37
  email:
38
38
  - janko.marohnic@gmail.com
@@ -41,6 +41,7 @@ extensions: []
41
41
  extra_rdoc_files: []
42
42
  files:
43
43
  - .gitignore
44
+ - CHANGELOG.md
44
45
  - Gemfile
45
46
  - LICENSE
46
47
  - README.md