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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33b30a28b95616b82ce8411a70d89f633e62c3a6aa8cd8abdae23a35be7390c4
4
- data.tar.gz: 53805b38187b3f4614cb57b7251d7d12610a8bb6333e150b0a92519601ce4bb7
3
+ metadata.gz: 937047a9c2f36b5be70d77d7634ca4a42860a742accc6664f87d060fb1d15aef
4
+ data.tar.gz: d11836a4fcf26223cd1eab4aba9d1b0a724ff809de82c4a960d12b2ede02d492
5
5
  SHA512:
6
- metadata.gz: 95dc682c7a959d4dcbde434e18257e290c8cb4583f7c368cfc3fb3c99f9135e595bd0bb3d5649d15fedef0727df24a9f0b6c24a11b8a2367fa879051f8a34a8c
7
- data.tar.gz: a7884cdbbd71934faa9de21d809dd09000475dcf3c1c4b6799950b558562c229be1673319f6ab4aecc947e13bc3202bf80983adab476067743aaef6777e39151
6
+ metadata.gz: b7c196d9babd1259320d5cf3abed98ec503a0387811be02b254f4f97221cd8242c65a2d1ce328e8c59f8cd9449f8bb759ebebc1dbdaedfc32e0f54f5e934c46f
7
+ data.tar.gz: 5c507a7fc2189dbb2480d8653f5cf4fad44848d505118c442fb54cf111ff86abe0cfee5079921af3ed0515975d4b4d9468d7871fa76ccca68f82e61d1f2e3421
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 0.2.9
2
+
3
+ * Updated dependencies.
4
+
5
+ # 0.2.8
6
+
7
+ * `File.exists?` => `File.exist?`
8
+ * `Dir.exists?` => `Dir.exist?`
9
+
1
10
  # 0.2.7
2
11
 
3
12
  * `RPC::Server::Agent::Node#unplug` -- Use Raktr iterator.
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.1.8'
35
- s.add_dependency 'concurrent-ruby-ext', '1.1.8'
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.0'
38
+ s.add_dependency 'rubyzip', '~> 2.3.2'
39
39
 
40
- s.add_dependency 'childprocess', '0.8.0'
40
+ s.add_dependency 'childprocess', '~> 5.0.0'
41
41
 
42
42
  # RPC serialization.
43
- s.add_dependency 'msgpack', '1.1.0'
43
+ s.add_dependency 'msgpack', '~> 1.7.2'
44
44
 
45
45
  # Web server
46
- s.add_dependency 'puma', '5.6.2'
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.1.5'
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.
@@ -1,6 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
+ require 'json'
4
5
  require 'monitor'
5
6
  require 'bundler/setup'
6
7
 
@@ -88,7 +88,7 @@ module InstanceHelpers
88
88
  end
89
89
  end
90
90
 
91
- def exists?( id )
91
+ def exist?( id )
92
92
  instances.include? id
93
93
  end
94
94
 
@@ -76,7 +76,7 @@ class Server < Sinatra::Base
76
76
 
77
77
  id = params[:instance]
78
78
 
79
- return if exists? id
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]
@@ -41,7 +41,7 @@ class Base
41
41
  end
42
42
 
43
43
  def disk_space_for( pid )
44
- return 0 if !Dir.exists?( Options.paths.tmp_dir_for( pid ) )
44
+ return 0 if !Dir.exist?( Options.paths.tmp_dir_for( pid ) )
45
45
 
46
46
  IO.read( disk_space_file_for( pid ) ).to_i
47
47
  end
data/lib/version CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.9
@@ -20,7 +20,7 @@ describe Cuboid::OptionGroups::Paths do
20
20
 
21
21
  describe "##{method}" do
22
22
  it 'points to an existing directory' do
23
- expect(File.exists?( subject.send method )).to be_truthy
23
+ expect(File.exist?( subject.send method )).to be_truthy
24
24
  end
25
25
  end
26
26
 
@@ -959,7 +959,7 @@ describe Cuboid::Rest::Server do
959
959
 
960
960
  get url
961
961
  expect(response_data.size).to be 1
962
- expect(File.exists? response_data[@id]).to be true
962
+ expect(File.exist? response_data[@id]).to be true
963
963
  end
964
964
  end
965
965
 
@@ -49,7 +49,7 @@ describe 'Cuboid::RPC::Server::Instance' do
49
49
  sleep 1 while !subject.suspended?
50
50
  end
51
51
 
52
- expect(File.exists?( subject.snapshot_path )).to be_truthy
52
+ expect(File.exist?( subject.snapshot_path )).to be_truthy
53
53
  end
54
54
  end
55
55
 
@@ -132,7 +132,7 @@ describe Cuboid::Support::Database::Queue do
132
132
 
133
133
  expect(subject.disk.size).to eq(2)
134
134
  subject.disk.each do |path|
135
- expect(File.exists?( path )).to be_truthy
135
+ expect(File.exist?( path )).to be_truthy
136
136
  end
137
137
  end
138
138
  end
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.7
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: 2023-05-27 00:00:00.000000000 Z
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.1.8
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.1.8
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.1.8
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.1.8
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.0
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.0
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.8.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.8.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.1.0
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.1.0
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: 5.6.2
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: 5.6.2
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.1.5
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.1.5
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.13
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/spec_helper.rb
478
- - spec/support/snapshots/placeholder
479
- - spec/support/helpers/misc.rb
480
- - spec/support/helpers/framework.rb
481
- - spec/support/helpers/matchers.rb
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/state_spec.rb
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/state/options_spec.rb
526
- - spec/cuboid/state/application_spec.rb
527
- - spec/cuboid/application_spec.rb
528
- - spec/cuboid/rpc/server/output_spec.rb
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/rpc/server/active_options_spec.rb
535
- - spec/cuboid/rpc/server/base_spec.rb
536
- - spec/cuboid/rpc/client/instance_spec.rb
537
- - spec/cuboid/rpc/client/dispatcher_spec.rb
538
- - spec/cuboid/rpc/client/base_spec.rb
539
- - spec/cuboid/error_spec.rb
540
- - spec/cuboid/utilities_spec.rb
541
- - spec/cuboid/application/parts/data_spec.rb
542
- - spec/cuboid/application/parts/state_spec.rb
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/glob_spec.rb
551
- - spec/cuboid/support/database/scheduler_spec.rb
552
- - spec/cuboid/support/database/hash_spec.rb
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/mixins/observable_spec.rb
555
- - spec/cuboid/support/buffer/autoflush_spec.rb
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/crypto/rsa_aes_cbc_spec.rb
559
- - spec/cuboid/system_spec.rb
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