unsplash 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unsplash/collection.rb +7 -2
- data/lib/unsplash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70a022ee0b5488803bc7e415afdd69577a751d2
|
4
|
+
data.tar.gz: 5a8e44471bcc150845cff5140ff6a741507dd51b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace5b797bc7e04065238e3d94723546af9a6825eb734e6b4d61f198398d837481e77fecf440e4cd010c776eb365028aabf1783e5cc2501d9138998cad851c4e9
|
7
|
+
data.tar.gz: bc3c21dd1a7b2c2b1991a74fcb620273bb9bd9dcfb2bf9c911070627e825382435a4623f7c8c9249ff42b8edf82b677c522b45f2bb745eba070e8a2bc913bf61
|
data/lib/unsplash/collection.rb
CHANGED
@@ -97,8 +97,13 @@ module Unsplash # :nodoc:
|
|
97
97
|
|
98
98
|
# Get a list of the photos contained in this collection.
|
99
99
|
# @return [Array] The list of +Unsplash::Photo+s in the collection.
|
100
|
-
def photos
|
101
|
-
|
100
|
+
def photos(page = 1, per_page = 10)
|
101
|
+
params = {
|
102
|
+
page: page,
|
103
|
+
per_page: per_page
|
104
|
+
}
|
105
|
+
|
106
|
+
list = JSON.parse(connection.get("/collections/#{id}/photos", params).body)
|
102
107
|
list.map { |photo| Unsplash::Photo.new photo }
|
103
108
|
end
|
104
109
|
|
data/lib/unsplash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unsplash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Klaassen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|