unsplash 1.4.0 → 1.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e502e452a28e94ceccf4bdcb5adc9d9bef9e630
4
- data.tar.gz: 8fe977a313d140877a63ac23fdedeeff0b839be0
3
+ metadata.gz: e70a022ee0b5488803bc7e415afdd69577a751d2
4
+ data.tar.gz: 5a8e44471bcc150845cff5140ff6a741507dd51b
5
5
  SHA512:
6
- metadata.gz: 446d3c4363e234c11d7c6758b050df3363ed33a42dd5b7cc44116550d3d34adc43a4d75178be0295f1517e9675e88bd0d127d7a17005b8f7b2919a2fa233d31d
7
- data.tar.gz: c1ae6a56978d8d4c0a7fad854522cf4dbbb944d379a1e5b4209eadec0f12d07c776dc51fa7d715cda938cb0ef1ff0c67b62b70821885fac24610eb22f66a7063
6
+ metadata.gz: ace5b797bc7e04065238e3d94723546af9a6825eb734e6b4d61f198398d837481e77fecf440e4cd010c776eb365028aabf1783e5cc2501d9138998cad851c4e9
7
+ data.tar.gz: bc3c21dd1a7b2c2b1991a74fcb620273bb9bd9dcfb2bf9c911070627e825382435a4623f7c8c9249ff42b8edf82b677c522b45f2bb745eba070e8a2bc913bf61
@@ -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
- list = JSON.parse(connection.get("/collections/#{id}/photos").body)
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
 
@@ -1,4 +1,4 @@
1
1
  module Unsplash # :nodoc:
2
2
  # :nodoc:
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
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.0
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-29 00:00:00.000000000 Z
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty