kitchen-docker-api 0.2.1 → 0.2.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.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.2.2
2
+
3
+ * Added epoch seconds to name to create uniqueness across multiple runs.
4
+ Prevents a failing run from having a name collision.
5
+
6
+ ## 0.2.1
7
+
8
+ * Discovered issue where client was trying to remove images after the
9
+ container was destroyed, triggering a docker error
10
+
1
11
  ## 0.2.0
2
12
 
3
13
  * Added support for container_name
@@ -61,7 +61,8 @@ module Kitchen
61
61
  suite = instance.suite.name
62
62
  cookbook = instance.provisioner.instance_variable_get("@config")[:kitchen_root].split('/').last
63
63
  hostname = Socket.gethostname.split('.').first
64
- [platform,cookbook,suite,hostname].join('..')
64
+ ts = Time.now().strftime("%s")
65
+ [platform,cookbook,suite,hostname,ts].join('..')
65
66
  end
66
67
 
67
68
  def default_image
@@ -217,11 +218,6 @@ module Kitchen
217
218
  container.wait
218
219
  container.delete
219
220
  end
220
-
221
- def destroy_image(state)
222
- image = docker_image(state)
223
- image.remove
224
- end
225
221
  end
226
222
  end
227
223
  end
@@ -19,6 +19,6 @@ module Kitchen
19
19
  module Driver
20
20
 
21
21
  # Version string for Docker Kitchen driver
22
- DOCKER_VERSION = "0.2.1"
22
+ DOCKER_VERSION = "0.2.2"
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-25 00:00:00.000000000 Z
13
+ date: 2014-03-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: test-kitchen