docker-api 1.34.0 → 1.34.1

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: 9b1247193395e3bff8d8813de77e6b2ec7462b5a
4
- data.tar.gz: d2eab94c0fc86823c3c2367bc2ac7fdcf9c439d1
3
+ metadata.gz: f4316523d43ba5a3e24f42f5eae2efab140f472f
4
+ data.tar.gz: 74b8a64ced780ee23a735ae916c6b141ed9cf07b
5
5
  SHA512:
6
- metadata.gz: da393c71a9de916af0748b925eb6643d4a716701de07fbcb27349cbf5d6dad1a19757a503b6d94168bc7e7839641b8a23a3d6d2784b12fc1a1b1a0a670b6e51d
7
- data.tar.gz: 593f911817f00d6c8ea3da3176549dad5a487c047c2608ddfe05297187c0db3876a88944ff7773cf364b3e39e9f1b4b67044031cf0b6447d44229a17b3e929a8
6
+ metadata.gz: 24713b6480cb4e1a7c948b86a898181e83f6be5719959925d873f09b4b4c4672b47aa0e1eb8f987ba962be8c23c56e55ebfa8943cd716e65be64704fe5233df9
7
+ data.tar.gz: 9051f10166d00078703559fb92624ceb1cba960b2b41c6939e791616057dc6105e10f7e3656e13fad2ad37ba166d5d3b0d79c652187fbc80e5ec3710c6f8fef1
data/README.md CHANGED
@@ -413,7 +413,7 @@ container.read_file("/test")
413
413
 
414
414
  # Export a Container. Since an export is typically at least 300M, chunks of the
415
415
  # export are yielded instead of just returning the whole thing.
416
- File.open('export.tar', 'w') do |f|
416
+ File.open('export.tar', 'w') do |file|
417
417
  container.export { |chunk| file.write(chunk) }
418
418
  end
419
419
  # => nil
@@ -622,10 +622,6 @@ image 'repo:new_tag' => 'repo:tag' do
622
622
  end
623
623
  ```
624
624
 
625
- ## Known issues
626
-
627
- * If the docker daemon is always responding to your requests with a 400 Bad Request when using UNIX sockets, verify you're running Excon version 0.46.0 or greater. [Link](https://github.com/swipely/docker-api/issues/381)
628
-
629
625
  ## Not supported (yet)
630
626
 
631
627
  * Generating a tarball of images and metadata for a repository specified by a name: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.14/#get-a-tarball-containing-all-images-and-tags-in-a-repository
@@ -241,8 +241,9 @@ module Docker::Util
241
241
 
242
242
  def build_config_header(credentials)
243
243
  if credentials.is_a?(String)
244
- credentials = JSON.parse(credentials, symbolize_names: true)
244
+ credentials = MultiJson.load(credentials, symbolize_keys: true)
245
245
  end
246
+
246
247
  header = MultiJson.dump(
247
248
  credentials[:serveraddress].to_s => {
248
249
  'username' => credentials[:username].to_s,
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.34.0'
3
+ VERSION = '1.34.1'
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.34.0
4
+ version: 1.34.1
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-11-05 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -195,9 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  requirements: []
197
197
  rubyforge_project:
198
- rubygems_version: 2.4.6
198
+ rubygems_version: 2.5.1
199
199
  signing_key:
200
200
  specification_version: 4
201
201
  summary: A simple REST client for the Docker Remote API
202
202
  test_files: []
203
- has_rdoc: