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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50b843a78c7238ade899b63778c570fabc74639a
4
- data.tar.gz: d7ef0721cdf37d1b9af1d6b33582276838ffbf42
3
+ metadata.gz: a76489273274f70d03a341e273346ea69b8d949c
4
+ data.tar.gz: 42012aefb32a0511320b86501191a121cd563d67
5
5
  SHA512:
6
- metadata.gz: af9a300311bf7c8609822a1e0147c24cec48c0d3f371bea6e8e1bec28520df4fa0d6491c7e300e9fd3b9af2147aef4397cc3d87967659ece40b4f1df6edb7c9c
7
- data.tar.gz: 20616d069b2991aa0b2df43f0f2298de60967cb25ab95eee0a83e45f54544f9340ef3797e7916aad039d70d90c7949d886bdaa667d5b3b0e161e4aa534767b7c
6
+ metadata.gz: 07b2fb678ae333dd9f5ac29c8e33944a8133da8155baf0e589e9c07a6ba3b6670456cdc8ed8d8c5c7e9f50449bb1cdc1bee1702d1c210722c7b6742a6c01cb86
7
+ data.tar.gz: 9e24ae36807e5de855c21c8219c0d9ef3ea76ffe875fa4312f66b1b4401d67986b81a728a671019d76e62f25d2782de2365cb646068bca98366fff0717c4c296
@@ -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 = "popular")
117
+ def curated(page = 1, per_page = 10, order_by = "latest")
118
118
  params = {
119
119
  page: page,
120
120
  per_page: per_page,
@@ -1,4 +1,4 @@
1
1
  module Unsplash # :nodoc:
2
2
  # :nodoc:
3
- VERSION = "1.5.4"
3
+ VERSION = "1.5.5"
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.5.4
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-06-14 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty