cuboid 0.1.6 → 0.1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cuboid/option_groups/rpc.rb +4 -0
- data/lib/cuboid/rpc/server/instance.rb +8 -3
- data/lib/cuboid/state/application.rb +0 -4
- data/lib/version +1 -1
- data/spec/cuboid/rpc/server/instance_spec.rb +1 -3
- 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: 822947a60d2dd4319ec92f1b07f55db0db6a3be6b7b184de2127aba37fbd96ce
|
4
|
+
data.tar.gz: 7903661be629750c16335730d902adc5dbb42991c8e376d9d4476d0575a19383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 796cb111b96551e48159728df5673002545e269f853ad6d860c4331527e13f0bc63f5fcd6d3686121817d036461fc53885ad8f95d980d294f63bbcea8dc157fe
|
7
|
+
data.tar.gz: 381bb1b31608d55ff5e0866819768db9974822259c2d8ad1165c69c70b624b5b3200ddadcd4fbd76227c862526177b8a3e10895b6f12be3942db41644f2b8e5c
|
data/CHANGELOG.md
CHANGED
@@ -102,7 +102,10 @@ class Instance
|
|
102
102
|
# @see #suspend
|
103
103
|
# @see #snapshot_path
|
104
104
|
def restore!( snapshot )
|
105
|
-
|
105
|
+
Thread.new do
|
106
|
+
@application.restore!( snapshot ).run
|
107
|
+
end
|
108
|
+
|
106
109
|
true
|
107
110
|
end
|
108
111
|
|
@@ -205,8 +208,10 @@ class Instance
|
|
205
208
|
|
206
209
|
@active_options.set( application: options )
|
207
210
|
|
208
|
-
|
209
|
-
|
211
|
+
Thread.new do
|
212
|
+
@application.run
|
213
|
+
@run_initializing = false
|
214
|
+
end
|
210
215
|
|
211
216
|
true
|
212
217
|
end
|
@@ -110,10 +110,6 @@ class Application
|
|
110
110
|
@status == :timed_out
|
111
111
|
end
|
112
112
|
|
113
|
-
# @param [Bool] block
|
114
|
-
# `true` if the method should block until an abortion has completed,
|
115
|
-
# `false` otherwise.
|
116
|
-
#
|
117
113
|
# @return [Bool]
|
118
114
|
# `true` if the abort request was successful, `false` if the system is
|
119
115
|
# already {#suspended?} or is {#suspending?}.
|
data/lib/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.6
|
1
|
+
0.1.6.1
|
@@ -111,8 +111,6 @@ describe 'Cuboid::RPC::Server::Instance' do
|
|
111
111
|
subject = instance_spawn
|
112
112
|
subject.restore! snapshot_path
|
113
113
|
|
114
|
-
File.delete snapshot_path
|
115
|
-
|
116
114
|
sleep 1 while subject.status != :done
|
117
115
|
|
118
116
|
expect(subject.generate_report.options).to eq(options)
|
@@ -203,7 +201,7 @@ describe 'Cuboid::RPC::Server::Instance' do
|
|
203
201
|
end
|
204
202
|
|
205
203
|
describe '#abort_and_generate_report' do
|
206
|
-
it "cleans-up and returns the report as #{Cuboid::Report}"
|
204
|
+
it "cleans-up and returns the report as #{Cuboid::Report}" do
|
207
205
|
subject.run
|
208
206
|
|
209
207
|
expect(subject.abort_and_generate_report).to be_kind_of Cuboid::Report
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuboid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6
|
4
|
+
version: 0.1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tasos Laskos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|