docker-api 1.33.5 → 1.33.6

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: feaf132a5bd3b3aa9bd58bd2f0741135cedc676f
4
- data.tar.gz: 4298604d6b131a80e6d2be772c7730b474a415d2
3
+ metadata.gz: 5531d0312fee71792d5f38dcd31a12b6852d2245
4
+ data.tar.gz: c077536fb349e32d0631ec9865a7e47cb8e54a18
5
5
  SHA512:
6
- metadata.gz: b5959dd544f98292d00b4c81ecc18292f1f152a12840109b56bdbb948bba7c1ad9755120822c8edd1ae680f9699bdc7946c8fd09e59749982c419bff71433e81
7
- data.tar.gz: 82e462599091c8234f832ad5fa7d7739b7826161a05784862e756d2a512686f7466e199c2a2c6888c60ff0dde17aea55b5478475d41b646e482f8a90e231a02a
6
+ metadata.gz: 0faf8023e582dd678958e593f0d83fb406e687a0e6ecbe570b4e2d9abc932ce79009935a84cffd4ba1b1c45b09943e67c206492d0ec873297a6c05c54a533c1a
7
+ data.tar.gz: 919a70b572b5568c9d60990beb99a96624d259687c7686fd0093418871d35d738fa7bf572166c0ba5c80e3858ca22e4a2144a36de433157de5e589ad3d74f93c
@@ -206,8 +206,14 @@ class Docker::Image
206
206
 
207
207
  # Given a query like `{ :term => 'sshd' }`, queries the Docker Registry for
208
208
  # a corresponding Image.
209
- def search(query = {}, connection = Docker.connection)
210
- body = connection.get('/images/search', query)
209
+ def search(query = {}, connection = Docker.connection, creds = nil)
210
+ credentials = creds.nil? ? Docker.creds : creds.to_json
211
+ headers = credentials && Docker::Util.build_auth_header(credentials) || {}
212
+ body = connection.get(
213
+ '/images/search',
214
+ query,
215
+ :headers => headers,
216
+ )
211
217
  hashes = Docker::Util.parse_json(body) || []
212
218
  hashes.map { |hash| new(connection, 'id' => hash['name']) }
213
219
  end
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.33.5'
3
+ VERSION = '1.33.6'
4
4
 
5
5
  # The version of the compatible Docker remote API.
6
6
  API_VERSION = '1.16'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.33.5
4
+ version: 1.33.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon