docker 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/session.rb +4 -1
- data/lib/docker/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: 22875585676480f67e4a5a2f7d132b8b3849636e
|
4
|
+
data.tar.gz: ff1433914619dd2be968f2931a7d934911351003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44a5792ac7eedd48522d0723fb9e3100d7bcdb1e88c7aa4c2dc070c3ac3fb963311ef25e44770b8851d40d8076f987c3f3b662c918d5a2e26fe4bf35d2ce0481
|
7
|
+
data.tar.gz: 08caac7bab4d76cb59b270a81bfbe39c12202153b827afd4af1911518279dae03bd2aa36a66025cf1502caed620ca99a7edef5c76a76b1be046ee015404ea4e0
|
data/lib/docker/session.rb
CHANGED
@@ -35,6 +35,7 @@ module Docker
|
|
35
35
|
def inspect(container_s)
|
36
36
|
containers = container_s
|
37
37
|
containers = [containers] unless container_s.is_a?(Array)
|
38
|
+
return [] if containers.empty?
|
38
39
|
out = run!('inspect', containers)
|
39
40
|
result = JSON.parse(out).map { |c| Container.new(c, session:self)}
|
40
41
|
if container_s.is_a?(Array)
|
@@ -127,7 +128,9 @@ module Docker
|
|
127
128
|
expose:expose, hostname:hostname, interactive:interactive,
|
128
129
|
link:link, memory:memory, name:name, publish:publish,
|
129
130
|
publish_all:publish_all, restart:restart, rm:rm, tty:tty,
|
130
|
-
user:user, volume:volume, volumes_from:volumes_from
|
131
|
+
user:user, volume:volume, volumes_from:volumes_from
|
132
|
+
}.reject { |k, v| v.nil? || (v.respond_to?(:empty?) && v.empty?) }
|
133
|
+
|
131
134
|
|
132
135
|
# after the options come the image and command
|
133
136
|
cmd << image
|
data/lib/docker/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Spataro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backticks
|