docker 0.3.1 → 0.3.2

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: 41a18cd99670f903bc99f7277cb27afdf00025c0
4
- data.tar.gz: 6d4313cd3012dd54a76eff1b5e6cd67f93ccc829
3
+ metadata.gz: 22875585676480f67e4a5a2f7d132b8b3849636e
4
+ data.tar.gz: ff1433914619dd2be968f2931a7d934911351003
5
5
  SHA512:
6
- metadata.gz: c3bfbdb9b4f2846910d5e3315b71fef671ead204a15e28871a01a1617c7bdabf3811e0444bb32466f2947b9948ad4de4d82f7bba8deea390ad95cdbb460011f9
7
- data.tar.gz: caa31e851fa10c4d2b6b913087d1350861266fe0aacbb5b705ba2826ebc2f5e3f3c487bae8e0a9701186657888494ba554231c842d9d88225aebc23386b25a2a
6
+ metadata.gz: 44a5792ac7eedd48522d0723fb9e3100d7bcdb1e88c7aa4c2dc070c3ac3fb963311ef25e44770b8851d40d8076f987c3f3b662c918d5a2e26fe4bf35d2ce0481
7
+ data.tar.gz: 08caac7bab4d76cb59b270a81bfbe39c12202153b827afd4af1911518279dae03bd2aa36a66025cf1502caed620ca99a7edef5c76a76b1be046ee015404ea4e0
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Docker
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
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.1
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: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backticks