cuboid 0.2.3 → 0.2.4.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: ca74705ed31ac31d5e2dc69901fe2815df25e6fbcf30337d242ca2d1059624af
4
- data.tar.gz: fc01ac528305655c7369cbe5af27fe5b2ffb8b03969c8f2b1d45df842d082c4d
3
+ metadata.gz: 79c0b3e985f2a90adb78952b569f9f32b58d5d99fe0b900415e04530ce5b7017
4
+ data.tar.gz: 7d02a4469973ad273cc65816e09f5395cf44f114a250993c6480dd953a14555d
5
5
  SHA512:
6
- metadata.gz: 618a9ac640b379063ea2710688c82345088043db0b0975467cd99ae363b3f376c08bb9d6116e0b77f2018510bda0a154e0ef53c1c2e795748cb692203da81d01
7
- data.tar.gz: 92aab5e52a4477ceaf6ce48a4689bd86fa61f27a0c2a2243b0e4f6c1d812fb736bdeeb9d82cebf89ae058e92478301d2586f7a4ca355bf7f8268ebf8dc179110
6
+ metadata.gz: fc6b0b8f9d99b926212a8806e25d02dd2ea05c448c4a436f628e1c8e9675e204ffdc322812b9329eeb70fab1c7f35b170ed19edf17cd216ceba57e75df188506
7
+ data.tar.gz: 9343edf77b6cc9eeb593f46988b2baceca523a63898dcc05c6a7ec638d6bb65fd0c0e0342f313276dc609ff0ec60b13f61baa0d73e6e0224b9083497a82f6e5b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.2.4.1
2
+
3
+ * `Application`: Added `#application=` to help with inheritance.
4
+
5
+ # 0.2.4
6
+
7
+ * Made `Server::Instance` services accessible from `Application`.
8
+
1
9
  # 0.2.3
2
10
 
3
11
  * Simplified convergence of P2P mesh network.
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # License
2
2
 
3
- Copyright (c) 2021 Tasos Laskos \<tasos.laskos@gmail.com\>.
3
+ Copyright (c) 2023 Ecsypno Single Member P.C. <http://ecsypno.com>.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -260,6 +260,10 @@ sleep 0.1 while sleepers.map(&:busy?).include?( true )
260
260
 
261
261
  _You can replace `host1` with `localhost` and run all examples on the same machine._
262
262
 
263
+ ## Users
264
+
265
+ * [QMap](https://github.com/qadron/qmap) -- A distributed network mapper/security scanner.
266
+
263
267
  ## License
264
268
 
265
269
  Please see the _LICENSE.md_ file.
@@ -214,11 +214,15 @@ class Application
214
214
  super
215
215
 
216
216
  application.prepend PrependMethods
217
- @application = application
217
+ self.application = application
218
218
  end
219
219
 
220
220
  def application
221
- @application ||= nil
221
+ @application
222
+ end
223
+
224
+ def application=( app )
225
+ @application = app
222
226
  end
223
227
 
224
228
  def method_missing( sym, *args, &block )
@@ -332,7 +332,12 @@ class Instance
332
332
  server.add_handler( 'options', @active_options )
333
333
 
334
334
  Cuboid::Application.application.instance_services.each do |name, service|
335
- server.add_handler( name.to_s, service.new )
335
+ si = service.new
336
+
337
+ Cuboid::Application.application.send :attr_reader, name
338
+ @application.application.instance_variable_set( "@#{name}".to_sym, si )
339
+
340
+ server.add_handler( name.to_s, si )
336
341
  end
337
342
  end
338
343
 
data/lib/version CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4.1
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.2.3
4
+ version: 0.2.4.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: 2023-05-21 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print