cuboid 0.1.6 → 0.1.6.1

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
  SHA256:
3
- metadata.gz: 99e1706f1f0771fae638ae08cf525077625255e3cda4b3a7ff09e92c192692c4
4
- data.tar.gz: 77f486938d14f0f579ccc1d4f3f20d0265c9d3590095912c667d28494f03013b
3
+ metadata.gz: 822947a60d2dd4319ec92f1b07f55db0db6a3be6b7b184de2127aba37fbd96ce
4
+ data.tar.gz: 7903661be629750c16335730d902adc5dbb42991c8e376d9d4476d0575a19383
5
5
  SHA512:
6
- metadata.gz: 5bc2b6bcb5d51deeccb44292aebacca47ded75cafeff7085bb9c645a108a58524b6c0a89bd11f521ec58a7e40cf3565d1d4a3c8dd5e9b8fe880a2226c2575209
7
- data.tar.gz: 031e775efa26dfc56d51823e8b00687a7727a72c22c78ab76b126b8fb2b7dc94ae79ea595a23eba3b2c1a121b08237adb542d4ad1783f38d9ebe4933eb7bb2ea
6
+ metadata.gz: 796cb111b96551e48159728df5673002545e269f853ad6d860c4331527e13f0bc63f5fcd6d3686121817d036461fc53885ad8f95d980d294f63bbcea8dc157fe
7
+ data.tar.gz: 381bb1b31608d55ff5e0866819768db9974822259c2d8ad1165c69c70b624b5b3200ddadcd4fbd76227c862526177b8a3e10895b6f12be3942db41644f2b8e5c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.6.1
2
+
3
+ * `OptionGroups::RPC`: Added `#url`.
4
+
1
5
  # 0.1.5
2
6
 
3
7
  * Fixed relative path for application source path detection.
@@ -79,6 +79,10 @@ class RPC < Cuboid::OptionGroup
79
79
  server_port: 7331
80
80
  )
81
81
 
82
+ def url
83
+ "#{server_address}:#{server_port}"
84
+ end
85
+
82
86
  def to_client_options
83
87
  {
84
88
  connection_pool_size: connection_pool_size,
@@ -102,7 +102,10 @@ class Instance
102
102
  # @see #suspend
103
103
  # @see #snapshot_path
104
104
  def restore!( snapshot )
105
- @application.restore!( snapshot ).run
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
- @application.run
209
- @run_initializing = false
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}", focus: true do
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-03-14 00:00:00.000000000 Z
11
+ date: 2022-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print