cuboid 0.2.7 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/cuboid.gemspec +8 -8
- data/lib/cuboid/application.rb +1 -0
- data/lib/cuboid/rest/server/instance_helpers.rb +1 -1
- data/lib/cuboid/rest/server.rb +1 -3
- data/lib/cuboid/support/database/base.rb +1 -1
- data/lib/version +1 -1
- data/spec/cuboid/option_groups/paths_spec.rb +1 -1
- data/spec/cuboid/rest/server_spec.rb +1 -1
- data/spec/cuboid/rpc/server/instance_spec.rb +1 -1
- data/spec/cuboid/support/database/scheduler_spec.rb +1 -1
- metadata +112 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 937047a9c2f36b5be70d77d7634ca4a42860a742accc6664f87d060fb1d15aef
|
4
|
+
data.tar.gz: d11836a4fcf26223cd1eab4aba9d1b0a724ff809de82c4a960d12b2ede02d492
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c196d9babd1259320d5cf3abed98ec503a0387811be02b254f4f97221cd8242c65a2d1ce328e8c59f8cd9449f8bb759ebebc1dbdaedfc32e0f54f5e934c46f
|
7
|
+
data.tar.gz: 5c507a7fc2189dbb2480d8653f5cf4fad44848d505118c442fb54cf111ff86abe0cfee5079921af3ed0515975d4b4d9468d7871fa76ccca68f82e61d1f2e3421
|
data/CHANGELOG.md
CHANGED
data/cuboid.gemspec
CHANGED
@@ -31,19 +31,19 @@ Gem::Specification.new do |s|
|
|
31
31
|
# latest one.
|
32
32
|
s.add_dependency 'bundler'
|
33
33
|
|
34
|
-
s.add_dependency 'concurrent-ruby', '1.
|
35
|
-
s.add_dependency 'concurrent-ruby-ext', '1.
|
34
|
+
s.add_dependency 'concurrent-ruby', '~> 1.2.3'
|
35
|
+
s.add_dependency 'concurrent-ruby-ext', '~> 1.2.3'
|
36
36
|
|
37
37
|
# For compressing/decompressing system state archives.
|
38
|
-
s.add_dependency 'rubyzip', '2.3.
|
38
|
+
s.add_dependency 'rubyzip', '~> 2.3.2'
|
39
39
|
|
40
|
-
s.add_dependency 'childprocess', '0.
|
40
|
+
s.add_dependency 'childprocess', '~> 5.0.0'
|
41
41
|
|
42
42
|
# RPC serialization.
|
43
|
-
s.add_dependency 'msgpack', '1.
|
43
|
+
s.add_dependency 'msgpack', '~> 1.7.2'
|
44
44
|
|
45
45
|
# Web server
|
46
|
-
s.add_dependency 'puma', '
|
46
|
+
s.add_dependency 'puma', '~> 6.4.2'
|
47
47
|
|
48
48
|
s.add_dependency 'rack', '2.2.3.1'
|
49
49
|
s.add_dependency 'rack-test'
|
@@ -55,8 +55,8 @@ Gem::Specification.new do |s|
|
|
55
55
|
# RPC client/server implementation.
|
56
56
|
s.add_dependency 'toq', '~> 0.0.1'
|
57
57
|
|
58
|
-
s.add_dependency 'vmstat', '2.3.0'
|
59
|
-
s.add_dependency 'sys-proctable', '1.
|
58
|
+
s.add_dependency 'vmstat', '~> 2.3.0'
|
59
|
+
s.add_dependency 'sys-proctable', '~> 1.3.0'
|
60
60
|
|
61
61
|
s.description = <<DESCRIPTION
|
62
62
|
An application-centric, decentralised and distributed computing solution.
|
data/lib/cuboid/application.rb
CHANGED
data/lib/cuboid/rest/server.rb
CHANGED
@@ -76,7 +76,7 @@ class Server < Sinatra::Base
|
|
76
76
|
|
77
77
|
id = params[:instance]
|
78
78
|
|
79
|
-
return if
|
79
|
+
return if exist? id
|
80
80
|
|
81
81
|
halt 404, json( "Scan not found for id: #{h id}." )
|
82
82
|
end
|
@@ -122,8 +122,6 @@ class Server < Sinatra::Base
|
|
122
122
|
set :password, options[:password]
|
123
123
|
|
124
124
|
server = Puma::Server.new( self )
|
125
|
-
server.min_threads = 0
|
126
|
-
server.max_threads = 16
|
127
125
|
|
128
126
|
ssl = false
|
129
127
|
if options[:ssl_key] && options[:ssl_certificate]
|
data/lib/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.9
|
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.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tasos Laskos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -42,86 +42,86 @@ dependencies:
|
|
42
42
|
name: concurrent-ruby
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.2.3
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.2.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: concurrent-ruby-ext
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.2.3
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.2.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubyzip
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.3.
|
75
|
+
version: 2.3.2
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.3.
|
82
|
+
version: 2.3.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: childprocess
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 5.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 5.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: msgpack
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: 1.7.2
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: 1.7.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: puma
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 6.4.2
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 6.4.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rack
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,30 +196,30 @@ dependencies:
|
|
196
196
|
name: vmstat
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: 2.3.0
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 2.3.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
210
|
name: sys-proctable
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- -
|
213
|
+
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 1.
|
215
|
+
version: 1.3.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- -
|
220
|
+
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.
|
222
|
+
version: 1.3.0
|
223
223
|
description: 'An application-centric, decentralised and distributed computing solution.
|
224
224
|
|
225
225
|
'
|
@@ -469,103 +469,103 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
469
|
- !ruby/object:Gem::Version
|
470
470
|
version: '0'
|
471
471
|
requirements: []
|
472
|
-
rubygems_version: 3.4.
|
472
|
+
rubygems_version: 3.4.22
|
473
473
|
signing_key:
|
474
474
|
specification_version: 4
|
475
475
|
summary: An application-centric, decentralised and distributed computing solution.
|
476
476
|
test_files:
|
477
|
-
- spec/
|
478
|
-
- spec/
|
479
|
-
- spec/
|
480
|
-
- spec/
|
481
|
-
- spec/
|
482
|
-
- spec/support/helpers/requires.rb
|
483
|
-
- spec/support/helpers/resets.rb
|
484
|
-
- spec/support/helpers/request_helpers.rb
|
485
|
-
- spec/support/helpers/web_server.rb
|
486
|
-
- spec/support/helpers/paths.rb
|
487
|
-
- spec/support/fixtures/services/echo.rb
|
488
|
-
- spec/support/fixtures/mock_app/test_service.rb
|
489
|
-
- spec/support/fixtures/executables/node.rb
|
490
|
-
- spec/support/fixtures/empty/placeholder
|
491
|
-
- spec/support/fixtures/mock_app.rb
|
492
|
-
- spec/support/shared/application.rb
|
493
|
-
- spec/support/shared/component/options/base.rb
|
494
|
-
- spec/support/shared/component.rb
|
495
|
-
- spec/support/shared/support/filter.rb
|
496
|
-
- spec/support/shared/support/cache.rb
|
497
|
-
- spec/support/shared/system/platforms/base.rb
|
498
|
-
- spec/support/shared/system/platforms/mixins/unix.rb
|
499
|
-
- spec/support/shared/option_group.rb
|
500
|
-
- spec/support/factories/scan_report.rb
|
501
|
-
- spec/support/factories/placeholder
|
502
|
-
- spec/support/lib/web_server_dispatcher.rb
|
503
|
-
- spec/support/lib/web_server_client.rb
|
504
|
-
- spec/support/lib/factory.rb
|
505
|
-
- spec/support/lib/web_server_manager.rb
|
506
|
-
- spec/support/logs/placeholder
|
507
|
-
- spec/support/reports/placeholder
|
508
|
-
- spec/support/pems/cacert.pem
|
509
|
-
- spec/support/pems/server/cert.pem
|
510
|
-
- spec/support/pems/server/key.pem
|
511
|
-
- spec/support/pems/client/foo-key.pem
|
512
|
-
- spec/support/pems/client/foo-cert.pem
|
513
|
-
- spec/support/pems/client/cert.pem
|
514
|
-
- spec/support/pems/client/key.pem
|
515
|
-
- spec/cuboid/ruby/array_spec.rb
|
516
|
-
- spec/cuboid/ruby/hash_spec.rb
|
517
|
-
- spec/cuboid/ruby/object_spec.rb
|
518
|
-
- spec/cuboid/snapshot_spec.rb
|
519
|
-
- spec/cuboid/rest/server_spec.rb
|
520
|
-
- spec/cuboid/data_spec.rb
|
477
|
+
- spec/cuboid/application/parts/data_spec.rb
|
478
|
+
- spec/cuboid/application/parts/report_spec.rb
|
479
|
+
- spec/cuboid/application/parts/state_spec.rb
|
480
|
+
- spec/cuboid/application/runtime_spec.rb
|
481
|
+
- spec/cuboid/application_spec.rb
|
521
482
|
- spec/cuboid/data/application_spec.rb
|
522
|
-
- spec/cuboid/
|
483
|
+
- spec/cuboid/data_spec.rb
|
484
|
+
- spec/cuboid/error_spec.rb
|
485
|
+
- spec/cuboid/option_groups/datastore_spec.rb
|
486
|
+
- spec/cuboid/option_groups/dispatcher_spec.rb
|
487
|
+
- spec/cuboid/option_groups/output_spec.rb
|
488
|
+
- spec/cuboid/option_groups/paths_spec.rb
|
489
|
+
- spec/cuboid/option_groups/report_spec.rb
|
490
|
+
- spec/cuboid/option_groups/rpc_spec.rb
|
491
|
+
- spec/cuboid/option_groups/snapshot_spec.rb
|
492
|
+
- spec/cuboid/option_groups/system.rb
|
523
493
|
- spec/cuboid/options_spec.rb
|
524
494
|
- spec/cuboid/report_spec.rb
|
525
|
-
- spec/cuboid/
|
526
|
-
- spec/cuboid/
|
527
|
-
- spec/cuboid/
|
528
|
-
- spec/cuboid/rpc/
|
495
|
+
- spec/cuboid/rest/server_spec.rb
|
496
|
+
- spec/cuboid/rpc/client/base_spec.rb
|
497
|
+
- spec/cuboid/rpc/client/dispatcher_spec.rb
|
498
|
+
- spec/cuboid/rpc/client/instance_spec.rb
|
499
|
+
- spec/cuboid/rpc/server/active_options_spec.rb
|
529
500
|
- spec/cuboid/rpc/server/agent/node_spec.rb
|
530
501
|
- spec/cuboid/rpc/server/agent/service_spec.rb
|
531
502
|
- spec/cuboid/rpc/server/agent_spec.rb
|
503
|
+
- spec/cuboid/rpc/server/base_spec.rb
|
532
504
|
- spec/cuboid/rpc/server/instance_spec.rb
|
505
|
+
- spec/cuboid/rpc/server/output_spec.rb
|
533
506
|
- spec/cuboid/rpc/server/scheduler_spec.rb
|
534
|
-
- spec/cuboid/
|
535
|
-
- spec/cuboid/
|
536
|
-
- spec/cuboid/
|
537
|
-
- spec/cuboid/
|
538
|
-
- spec/cuboid/
|
539
|
-
- spec/cuboid/
|
540
|
-
- spec/cuboid/
|
541
|
-
- spec/cuboid/
|
542
|
-
- spec/cuboid/
|
543
|
-
- spec/cuboid/application/parts/report_spec.rb
|
544
|
-
- spec/cuboid/application/runtime_spec.rb
|
545
|
-
- spec/cuboid/support/cache/random_replacement_spec.rb
|
507
|
+
- spec/cuboid/ruby/array_spec.rb
|
508
|
+
- spec/cuboid/ruby/hash_spec.rb
|
509
|
+
- spec/cuboid/ruby/object_spec.rb
|
510
|
+
- spec/cuboid/snapshot_spec.rb
|
511
|
+
- spec/cuboid/state/application_spec.rb
|
512
|
+
- spec/cuboid/state/options_spec.rb
|
513
|
+
- spec/cuboid/state_spec.rb
|
514
|
+
- spec/cuboid/support/buffer/autoflush_spec.rb
|
515
|
+
- spec/cuboid/support/buffer/base_spec.rb
|
546
516
|
- spec/cuboid/support/cache/least_cost_replacement_spec.rb
|
547
517
|
- spec/cuboid/support/cache/least_recently_pushed_spec.rb
|
548
|
-
- spec/cuboid/support/cache/preference_spec.rb
|
549
518
|
- spec/cuboid/support/cache/least_recently_used_spec.rb
|
550
|
-
- spec/cuboid/support/
|
551
|
-
- spec/cuboid/support/
|
552
|
-
- spec/cuboid/support/
|
519
|
+
- spec/cuboid/support/cache/preference_spec.rb
|
520
|
+
- spec/cuboid/support/cache/random_replacement_spec.rb
|
521
|
+
- spec/cuboid/support/crypto/rsa_aes_cbc_spec.rb
|
553
522
|
- spec/cuboid/support/database/categorized_queue_spec.rb
|
554
|
-
- spec/cuboid/support/
|
555
|
-
- spec/cuboid/support/
|
556
|
-
- spec/cuboid/support/buffer/base_spec.rb
|
523
|
+
- spec/cuboid/support/database/hash_spec.rb
|
524
|
+
- spec/cuboid/support/database/scheduler_spec.rb
|
557
525
|
- spec/cuboid/support/filter/set_spec.rb
|
558
|
-
- spec/cuboid/support/
|
559
|
-
- spec/cuboid/
|
560
|
-
- spec/cuboid/option_groups/output_spec.rb
|
561
|
-
- spec/cuboid/option_groups/snapshot_spec.rb
|
562
|
-
- spec/cuboid/option_groups/datastore_spec.rb
|
563
|
-
- spec/cuboid/option_groups/system.rb
|
564
|
-
- spec/cuboid/option_groups/report_spec.rb
|
565
|
-
- spec/cuboid/option_groups/rpc_spec.rb
|
566
|
-
- spec/cuboid/option_groups/dispatcher_spec.rb
|
567
|
-
- spec/cuboid/option_groups/paths_spec.rb
|
568
|
-
- spec/cuboid/system/platforms/osx_spec.rb
|
526
|
+
- spec/cuboid/support/glob_spec.rb
|
527
|
+
- spec/cuboid/support/mixins/observable_spec.rb
|
569
528
|
- spec/cuboid/system/platforms/linux_spec.rb
|
529
|
+
- spec/cuboid/system/platforms/osx_spec.rb
|
570
530
|
- spec/cuboid/system/platforms/windows_spec.rb
|
571
531
|
- spec/cuboid/system/slots_spec.rb
|
532
|
+
- spec/cuboid/system_spec.rb
|
533
|
+
- spec/cuboid/utilities_spec.rb
|
534
|
+
- spec/spec_helper.rb
|
535
|
+
- spec/support/factories/placeholder
|
536
|
+
- spec/support/factories/scan_report.rb
|
537
|
+
- spec/support/fixtures/empty/placeholder
|
538
|
+
- spec/support/fixtures/executables/node.rb
|
539
|
+
- spec/support/fixtures/mock_app/test_service.rb
|
540
|
+
- spec/support/fixtures/mock_app.rb
|
541
|
+
- spec/support/fixtures/services/echo.rb
|
542
|
+
- spec/support/helpers/framework.rb
|
543
|
+
- spec/support/helpers/matchers.rb
|
544
|
+
- spec/support/helpers/misc.rb
|
545
|
+
- spec/support/helpers/paths.rb
|
546
|
+
- spec/support/helpers/request_helpers.rb
|
547
|
+
- spec/support/helpers/requires.rb
|
548
|
+
- spec/support/helpers/resets.rb
|
549
|
+
- spec/support/helpers/web_server.rb
|
550
|
+
- spec/support/lib/factory.rb
|
551
|
+
- spec/support/lib/web_server_client.rb
|
552
|
+
- spec/support/lib/web_server_dispatcher.rb
|
553
|
+
- spec/support/lib/web_server_manager.rb
|
554
|
+
- spec/support/logs/placeholder
|
555
|
+
- spec/support/pems/cacert.pem
|
556
|
+
- spec/support/pems/client/cert.pem
|
557
|
+
- spec/support/pems/client/foo-cert.pem
|
558
|
+
- spec/support/pems/client/foo-key.pem
|
559
|
+
- spec/support/pems/client/key.pem
|
560
|
+
- spec/support/pems/server/cert.pem
|
561
|
+
- spec/support/pems/server/key.pem
|
562
|
+
- spec/support/reports/placeholder
|
563
|
+
- spec/support/shared/application.rb
|
564
|
+
- spec/support/shared/component/options/base.rb
|
565
|
+
- spec/support/shared/component.rb
|
566
|
+
- spec/support/shared/option_group.rb
|
567
|
+
- spec/support/shared/support/cache.rb
|
568
|
+
- spec/support/shared/support/filter.rb
|
569
|
+
- spec/support/shared/system/platforms/base.rb
|
570
|
+
- spec/support/shared/system/platforms/mixins/unix.rb
|
571
|
+
- spec/support/snapshots/placeholder
|