specinfra 2.95.1 → 2.95.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 +4 -4
- data/lib/specinfra/backend/docker.rb +7 -1
- data/lib/specinfra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f33d12ddae3af1768135bf6fa49bd5a8b42be987c5385ee8e324e683c3c4a974
|
|
4
|
+
data.tar.gz: 5f8cc9127f678486137e900994a65b1fac500cd9c74b24bcf7dc1aa73b240929
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93eafbcf79c9df51426f156744b42ace9e691d7adc651e3f10f17990bf4f2f535ab674a3af67b8f5d43e05d9d9e6f26d0340040eb71d8e7c48815fc1e5daa6f1
|
|
7
|
+
data.tar.gz: 021baaa6be8f35a16c80d5d3fa0ff575fab18a7649d2de59f0d67654af72f5ec606562c4398bedd4123cceda79e624bfb514f93daeb221f7da7da9abc5c5c260
|
|
@@ -17,7 +17,6 @@ module Specinfra
|
|
|
17
17
|
@base_image = get_or_pull_image(image)
|
|
18
18
|
|
|
19
19
|
create_and_start_container
|
|
20
|
-
ObjectSpace.define_finalizer(self, self.class.__send__(:finalizer_for, @container))
|
|
21
20
|
elsif container = get_config(:docker_container)
|
|
22
21
|
@container = ::Docker::Container.get(container)
|
|
23
22
|
else
|
|
@@ -93,6 +92,8 @@ module Specinfra
|
|
|
93
92
|
while @container.json['State'].key?('Health') && @container.json['State']['Health']['Status'] == "starting" do
|
|
94
93
|
sleep 0.5
|
|
95
94
|
end
|
|
95
|
+
|
|
96
|
+
define_finalizer
|
|
96
97
|
end
|
|
97
98
|
|
|
98
99
|
def cleanup_container
|
|
@@ -103,6 +104,11 @@ module Specinfra
|
|
|
103
104
|
@images.last || @base_image
|
|
104
105
|
end
|
|
105
106
|
|
|
107
|
+
def define_finalizer
|
|
108
|
+
ObjectSpace.undefine_finalizer(self)
|
|
109
|
+
ObjectSpace.define_finalizer(self, self.class.__send__(:finalizer_for, @container))
|
|
110
|
+
end
|
|
111
|
+
|
|
106
112
|
def docker_run!(cmd, opts={})
|
|
107
113
|
opts.merge!(get_config(:docker_container_exec_options) || {})
|
|
108
114
|
stdout, stderr, status = @container.exec(cmd.shellsplit, opts)
|
data/lib/specinfra/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: specinfra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.95.
|
|
4
|
+
version: 2.95.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gosuke Miyashita
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|