flickr-objects 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4f95d067768c10e04a1fb7203b1f3cd56e8bffd
4
- data.tar.gz: 3ff31499a4b3488adbbbc7637bf60102dc935c0f
3
+ metadata.gz: 292814097019f1dfeb11d038bfc4576c65372af2
4
+ data.tar.gz: d52dca2ae8d7aec86234e614c230bbf71e252cde
5
5
  SHA512:
6
- metadata.gz: 5bec77a91adb2e1dce4af3d7b824af6ca9ad3a3497407966aff7142545f7573285a4cabcddd8642ffa529d4bfc31b0a44a6e4e1da4f050dcac12c4a559c09b70
7
- data.tar.gz: 0fad102f3f9318886421298b64cb2fff2a0f0c77047e1d407a3c8875c693d8c5e023f09f7ba1cecfd21b7892168ed4f26f1f234ccf700e9514450432b3840951
6
+ metadata.gz: e555f24f5d7e68d1ffaa7d095021d423779ecd6d92e5c7e4064ebbc50ce15f5fb474202b9e5af42ed86eea989ef3d0bca12bbad2735bf33ce4c00a290d35798c
7
+ data.tar.gz: 3c5134e1c5fbef51724abf372507c5f25249926e8df75f7273c8540bad16d52c8b6e3758352954a321fd13157883af4751412e68e496a5adb4b6fefc6f269f7a
@@ -10,7 +10,7 @@ module Flickr
10
10
  #
11
11
  def all(params = {})
12
12
  response = get "photos.licenses.getInfo", params
13
- new_list(:License, response["licenses"].delete("license"))
13
+ new_list(:License, response["licenses"]["license"])
14
14
  end
15
15
 
16
16
  end
@@ -52,7 +52,7 @@ module Flickr
52
52
  #
53
53
  def get_photos(person_id, params = {})
54
54
  response = get "people.getPhotos", params.merge(user_id: person_id)
55
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
55
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
56
56
  end
57
57
 
58
58
  ##
@@ -65,7 +65,7 @@ module Flickr
65
65
  #
66
66
  def get_photos_of(person_id, params = {})
67
67
  response = get "people.getPhotosOf", params.merge(user_id: person_id)
68
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
68
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
69
69
  end
70
70
 
71
71
  ##
@@ -78,7 +78,7 @@ module Flickr
78
78
  #
79
79
  def get_public_photos(person_id, params = {})
80
80
  response = get "people.getPublicPhotos", params.merge(user_id: person_id)
81
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
81
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
82
82
  end
83
83
 
84
84
  ##
@@ -91,7 +91,7 @@ module Flickr
91
91
  #
92
92
  def get_public_photos_from_contacts(person_id, params = {})
93
93
  response = get "photos.getContactsPublicPhotos", params.merge(user_id: person_id)
94
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
94
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
95
95
  end
96
96
 
97
97
  ##
@@ -102,7 +102,7 @@ module Flickr
102
102
  #
103
103
  def get_sets(person_id, params = {})
104
104
  response = get "photosets.getList", params.merge(user_id: person_id)
105
- new_list(:Set, response["photosets"].delete("photoset"), response["photosets"])
105
+ new_list(:Set, response["photosets"]["photoset"], response["photosets"])
106
106
  end
107
107
 
108
108
  end
@@ -12,7 +12,7 @@ module Flickr
12
12
  #
13
13
  def search(params = {})
14
14
  response = get "photos.search", params
15
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
15
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
16
16
  end
17
17
 
18
18
  ##
@@ -24,7 +24,7 @@ module Flickr
24
24
  #
25
25
  def get_from_contacts(params = {})
26
26
  response = get "photos.getContactsPhotos", params
27
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
27
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
28
28
  end
29
29
 
30
30
  ##
@@ -36,7 +36,7 @@ module Flickr
36
36
  #
37
37
  def get_not_in_set(params = {})
38
38
  response = get "photos.getNotInSet", params
39
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
39
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
40
40
  end
41
41
 
42
42
  ##
@@ -48,7 +48,7 @@ module Flickr
48
48
  #
49
49
  def get_recent(params = {})
50
50
  response = get "photos.getRecent", params
51
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
51
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
52
52
  end
53
53
 
54
54
  ##
@@ -60,7 +60,7 @@ module Flickr
60
60
  #
61
61
  def get_interesting(params = {})
62
62
  response = get "interestingness.getList", params
63
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
63
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
64
64
  end
65
65
 
66
66
  ##
@@ -72,7 +72,7 @@ module Flickr
72
72
  #
73
73
  def get_untagged(params = {})
74
74
  response = get "photos.getUntagged", params
75
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
75
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
76
76
  end
77
77
 
78
78
  ##
@@ -84,7 +84,7 @@ module Flickr
84
84
  #
85
85
  def get_with_geo_data(params = {})
86
86
  response = get "photos.getWithGeoData", params
87
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
87
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
88
88
  end
89
89
 
90
90
  ##
@@ -96,7 +96,7 @@ module Flickr
96
96
  #
97
97
  def get_without_geo_data(params = {})
98
98
  response = get "photos.getWithoutGeoData", params
99
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
99
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
100
100
  end
101
101
 
102
102
  ##
@@ -108,7 +108,7 @@ module Flickr
108
108
  #
109
109
  def get_recently_updated(params = {})
110
110
  response = get "photos.recentlyUpdated", params
111
- new_list(:Photo, response["photos"].delete("photo"), response["photos"])
111
+ new_list(:Photo, response["photos"]["photo"], response["photos"])
112
112
  end
113
113
 
114
114
  ##
@@ -148,7 +148,7 @@ module Flickr
148
148
  #
149
149
  def get_favorites(photo_id, params = {})
150
150
  response = get "photos.getFavorites", params.merge(photo_id: photo_id)
151
- new_list(:Person, response["photo"].delete("person"), response["photo"])
151
+ new_list(:Person, response["photo"]["person"], response["photo"])
152
152
  end
153
153
 
154
154
  ##
@@ -62,7 +62,7 @@ module Flickr
62
62
  #
63
63
  def get_photos(set_id, params = {})
64
64
  response = get "photosets.getPhotos", params.merge(photoset_id: set_id)
65
- new_list(:Photo, response["photoset"].delete("photo").map { |h| h.merge("owner" => response["photoset"]["owner"]) }, response["photoset"])
65
+ new_list(:Photo, response["photoset"]["photo"].map { |h| h.merge("owner" => response["photoset"]["owner"]) }, response["photoset"])
66
66
  end
67
67
 
68
68
  ##
@@ -12,7 +12,7 @@ module Flickr
12
12
  #
13
13
  def check(ticket_ids, params = {})
14
14
  response = get "photos.upload.checkTickets", params.merge(tickets: ticket_ids)
15
- new_list(:UploadTicket, response["uploader"].delete("ticket"), response["uploader"])
15
+ new_list(:UploadTicket, response["uploader"]["ticket"], response["uploader"])
16
16
  end
17
17
 
18
18
  end
@@ -1,5 +1,5 @@
1
1
  module Flickr
2
2
 
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickr-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  version: '0'
261
261
  requirements: []
262
262
  rubyforge_project:
263
- rubygems_version: 2.4.5
263
+ rubygems_version: 2.5.1
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: This gem is an object-oriented wrapper for the Flickr API.