docker-api 1.33.1 → 1.33.2

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: 4f2153bd93ec648db56caaeb9a8ada00429e98c8
4
- data.tar.gz: 91c4a6e57f4cc4210159c89036873c7efab34a42
3
+ metadata.gz: c7f6210b17acce594077095ab5b4a79d159c306d
4
+ data.tar.gz: 976dfd70143edcac266a86b683e6d912febef0f7
5
5
  SHA512:
6
- metadata.gz: d9448d1557db51e7327e18aafb69649093fd83d79f18b1e661ea5f04c33fdf0e804f7a1f034cd7e72bfe9fb741866c275eb7e1bb2ac43b275c711dae8fb0de8d
7
- data.tar.gz: 54f487380c6c2136ca463de9efeddb610e0cb35a0487b618c598de4942f6c35274a05457c4939eef1170aa07785b34ab7a10d5cc7ad455b2b90ddaca10aa9104
6
+ metadata.gz: b34dc7548ae9c5f2deb3bc9015362ba9ba7494c24642e9592b1885b5cee35b1e61b3aa4f3ee49a5d4654f6bd760e42c87280df9f57d4c6c7bafa986bbe0ca9ec
7
+ data.tar.gz: be341758585b6b54698c856932f299fbd9c04a497d2eeac27e8f4ae738678c8d790956848b0d440ac0ac79efde392ab22734917b4e21fd691799d6ffd92f997e
data/README.md CHANGED
@@ -94,6 +94,21 @@ Docker.options = {
94
94
  }
95
95
  ```
96
96
 
97
+ If you want to load the cert files from a variable, e.g. you want to load them from ENV as needed on Heroku:
98
+
99
+ ```
100
+ cert_store = OpenSSL::X509::Store.new
101
+ certificate = OpenSSL::X509::Certificate.new ENV["DOCKER_CA"]
102
+ cert_store.add_cert certificate
103
+
104
+ Docker.options = {
105
+ client_cert_data: ENV["DOCKER_CERT"],
106
+ client_key_data: ENV["DOCKER_KEY"],
107
+ ssl_cert_store: cert_store,
108
+ scheme: 'https'
109
+ }
110
+ ```
111
+
97
112
  If you need to disable SSL verification, set the DOCKER_SSL_VERIFY variable to 'false'.
98
113
 
99
114
  ## Global calls
@@ -134,6 +134,8 @@ module Docker
134
134
  def validate_version!
135
135
  Docker.info
136
136
  true
137
+ rescue Docker::Error::TimeoutError
138
+ raise
137
139
  rescue Docker::Error::DockerError
138
140
  raise Docker::Error::VersionError, "Expected API Version: #{API_VERSION}"
139
141
  end
@@ -1,6 +1,6 @@
1
1
  module Docker
2
2
  # The version of the docker-api gem.
3
- VERSION = '1.33.1'
3
+ VERSION = '1.33.2'
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.1
4
+ version: 1.33.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-19 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon