unsplash 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unsplash/photo.rb +4 -4
- 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: a76489273274f70d03a341e273346ea69b8d949c
|
4
|
+
data.tar.gz: 42012aefb32a0511320b86501191a121cd563d67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b2fb678ae333dd9f5ac29c8e33944a8133da8155baf0e589e9c07a6ba3b6670456cdc8ed8d8c5c7e9f50449bb1cdc1bee1702d1c210722c7b6742a6c01cb86
|
7
|
+
data.tar.gz: 9e24ae36807e5de855c21c8219c0d9ef3ea76ffe875fa4312f66b1b4401d67986b81a728a671019d76e62f25d2782de2365cb646068bca98366fff0717c4c296
|
data/lib/unsplash/photo.rb
CHANGED
@@ -91,14 +91,14 @@ module Unsplash # :nodoc:
|
|
91
91
|
page: page,
|
92
92
|
per_page: per_page,
|
93
93
|
orientation: orientation
|
94
|
-
}
|
94
|
+
}.select { |_k, v| v }
|
95
95
|
Unsplash::Search.search("/search/photos", self, params)
|
96
96
|
end
|
97
97
|
|
98
98
|
# Get a list of all photos.
|
99
99
|
# @param page [Integer] Which page of search results to return.
|
100
100
|
# @param per_page [Integer] The number of search results per page. (default: 10, maximum: 30)
|
101
|
-
# @param order_by [String] How to sort the photos.
|
101
|
+
# @param order_by [String] How to sort the photos. (Valid values: latest, oldest, popular; default: latest)
|
102
102
|
# @return [Array] A single page of +Unsplash::Photo+ search results.
|
103
103
|
def all(page = 1, per_page = 10, order_by = "latest")
|
104
104
|
params = {
|
@@ -112,9 +112,9 @@ module Unsplash # :nodoc:
|
|
112
112
|
# Get a single page from the list of the curated photos (front-page’s photos).
|
113
113
|
# @param page [Integer] Which page of search results to return.
|
114
114
|
# @param per_page [Integer] The number of search results per page. (default: 10, maximum: 30)
|
115
|
-
# @param order_by [String] How to sort the photos.
|
115
|
+
# @param order_by [String] How to sort the photos. (Valid values: latest, oldest, popular; default: latest)
|
116
116
|
# @return [Array] A single page of +Unsplash::Photo+ search results.
|
117
|
-
def curated(page = 1, per_page = 10, order_by = "
|
117
|
+
def curated(page = 1, per_page = 10, order_by = "latest")
|
118
118
|
params = {
|
119
119
|
page: page,
|
120
120
|
per_page: per_page,
|
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.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Klaassen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|