cuboid 0.1.6.1 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 822947a60d2dd4319ec92f1b07f55db0db6a3be6b7b184de2127aba37fbd96ce
4
- data.tar.gz: 7903661be629750c16335730d902adc5dbb42991c8e376d9d4476d0575a19383
3
+ metadata.gz: 278074cb43a3bbbe9c868f6fa73f4be09b0c61456a791c9b8e4d6976663ebcce
4
+ data.tar.gz: 0b49b4aa13bff9232c8b58a9dd828b9f71a42107279e5d3fb3b7188deb2a1c23
5
5
  SHA512:
6
- metadata.gz: 796cb111b96551e48159728df5673002545e269f853ad6d860c4331527e13f0bc63f5fcd6d3686121817d036461fc53885ad8f95d980d294f63bbcea8dc157fe
7
- data.tar.gz: 381bb1b31608d55ff5e0866819768db9974822259c2d8ad1165c69c70b624b5b3200ddadcd4fbd76227c862526177b8a3e10895b6f12be3942db41644f2b8e5c
6
+ metadata.gz: 6fbc63babfbfd8a79ecec9c9833c24405776cfbd35bb087ab9d765fbc153907e48ae183c000b7ae8a96ba9ae0152b7c3037fe5814d8c40528963279e1be9eeee
7
+ data.tar.gz: b4a8d35eadb8b454c655f325eb3b16cb6cdaf4f398f41bab88435023cece7bf842d3ad48fa5fe9c8ca73ccc6f782663cce81b0ea07e6353189d027f9ef5d9127
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.7
2
+
3
+ * `Application`
4
+ * Added `#shutdown` callback method to handle RPC server shutdowns.
5
+
1
6
  # 0.1.6.1
2
7
 
3
8
  * `OptionGroups::RPC`: Added `#url`.
@@ -67,6 +67,10 @@ class Application
67
67
  true
68
68
  end
69
69
 
70
+ def shutdown
71
+ super if defined? super
72
+ end
73
+
70
74
  private
71
75
 
72
76
  # @note Must be called before calling any audit methods.
@@ -19,7 +19,7 @@ class ApplicationWrapper
19
19
  def_delegators :@application, :suspended?, :suspending?, :suspend!, :status,
20
20
  :pause!, :running?, :status_messages, :paused?, :pausing?,
21
21
  :snapshot_path, :restore!, :resume!, :generate_report,
22
- :abort!, :aborting?, :aborted?
22
+ :abort!, :aborting?, :aborted?, :shutdown
23
23
 
24
24
  # {RPC::Server::Application} error namespace.
25
25
  #
@@ -226,6 +226,8 @@ class Instance
226
226
 
227
227
  print_status 'Shutting down...'
228
228
 
229
+ @application.shutdown
230
+
229
231
  # We're shutting down services so we need to use a concurrent way but
230
232
  # without going through the Reactor.
231
233
  Thread.new do
data/lib/version CHANGED
@@ -1 +1 @@
1
- 0.1.6.1
1
+ 0.1.7
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.1
4
+ version: 0.1.7
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-04-23 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print