baza.rb 0.11.2 → 0.12.0

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: aece820f0bfcb187819d97ca24d4585f7831c6f48a1548bff802b7a504f760b5
4
- data.tar.gz: 03d8f7403e8c590224d3bbdae1ed90ed7149d6210750718fa644b0d56807796a
3
+ metadata.gz: 0dcbf3bca568fdb8fa1d73b1755967ada89fca6d3f11b397851e53b22b89c8e2
4
+ data.tar.gz: 2f26436cc1c46ffc9ba5dfb8b0daa9dcfb09f9171855d175fa0608973b4ccfcc
5
5
  SHA512:
6
- metadata.gz: 61f1d9d1008111fe1e66c07f187e0de5f63ae1b9c1d905000e8588b37c82f43fbdaf4e6220553b0c131b68e500c1a2ce7219357bd97f745de1f88700a6869ffc
7
- data.tar.gz: 05006bd92cc3e363b511237c44b5ba4b7048f5f2ab4c5e22d3bac9ee8188bb95fb6b7bc693b35ed44f94afc740b910fd96a732185a3e7a73865302d50a0b6db8
6
+ metadata.gz: 4a0cc6b7d9172902193ba0cb2127131ed60fe8a4488a153678b726effe5e58080301a7921409b3660a47ae6c98dcb03ac10dde30a37e13704cb1f0c51bd2b338
7
+ data.tar.gz: f314cdf158f4750f77390d3c7cbff25e31f753b23d0e56fceb22a13790cacbec69d1c6d867915067aa8fe75409e83d35e7b47d833c15134cd954b480435a713d
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  source 'https://rubygems.org'
@@ -8,7 +8,7 @@ gemspec
8
8
 
9
9
  gem 'base64', '~>0.3', require: false
10
10
  gem 'factbase', '~>0.16', require: false
11
- gem 'minitest', '~>5.25', require: false
11
+ gem 'minitest', '~>6.0', require: false
12
12
  gem 'minitest-reporters', '~>1.7', require: false
13
13
  gem 'online', '~>0.1', require: false
14
14
  gem 'os', '~>1.1', require: false
@@ -18,7 +18,7 @@ gem 'rack', '~>3.1', require: false
18
18
  gem 'rackup', '~>2.2', require: false
19
19
  gem 'rake', '~>13.2', require: false
20
20
  gem 'random-port', '~>0.7', require: false
21
- gem 'rdoc', '6.16.1', require: false # GPL
21
+ gem 'rdoc', '7.1.0', require: false # GPL
22
22
  gem 'rubocop', '~>1.73', require: false
23
23
  gem 'rubocop-minitest', '~>0.38', require: false
24
24
  gem 'rubocop-performance', '~>1.23', require: false
data/Gemfile.lock CHANGED
@@ -23,22 +23,22 @@ GEM
23
23
  ast (2.4.3)
24
24
  backtrace (0.4.1)
25
25
  base64 (0.3.0)
26
- bigdecimal (3.3.1)
26
+ bigdecimal (4.0.1)
27
27
  builder (3.3.0)
28
28
  crack (1.0.1)
29
29
  bigdecimal
30
30
  rexml
31
- date (3.5.0)
31
+ date (3.5.1)
32
32
  decoor (0.1.0)
33
33
  docile (1.4.1)
34
- elapsed (0.2.0)
34
+ elapsed (0.2.2)
35
35
  loog (~> 0.6)
36
36
  tago (~> 0.1)
37
37
  ellipsized (0.3.0)
38
- erb (6.0.0)
38
+ erb (6.0.1)
39
39
  ethon (0.15.0)
40
40
  ffi (>= 1.15.0)
41
- factbase (0.17.0)
41
+ factbase (0.19.3)
42
42
  backtrace (~> 0.4)
43
43
  decoor (~> 0.1)
44
44
  ellipsized (~> 0.3)
@@ -53,27 +53,29 @@ GEM
53
53
  faraday-net_http (>= 2.0, < 3.5)
54
54
  json
55
55
  logger
56
- faraday-http-cache (2.5.1)
56
+ faraday-http-cache (2.6.1)
57
57
  faraday (>= 0.8)
58
- faraday-multipart (1.1.1)
58
+ faraday-multipart (1.2.0)
59
59
  multipart-post (~> 2.0)
60
60
  faraday-net_http (3.4.2)
61
61
  net-http (~> 0.5)
62
- faraday-retry (2.3.2)
62
+ faraday-retry (2.4.0)
63
63
  faraday (~> 2.0)
64
- ffi (1.17.2-arm64-darwin)
65
- ffi (1.17.2-x64-mingw-ucrt)
66
- ffi (1.17.2-x86_64-darwin)
67
- ffi (1.17.2-x86_64-linux-gnu)
64
+ ffi (1.17.3-arm64-darwin)
65
+ ffi (1.17.3-x64-mingw-ucrt)
66
+ ffi (1.17.3-x86_64-darwin)
67
+ ffi (1.17.3-x86_64-linux-gnu)
68
68
  hashdiff (1.2.1)
69
- iri (0.11.3)
70
- json (2.16.0)
69
+ iri (0.11.7)
70
+ json (2.18.0)
71
71
  language_server-protocol (3.17.0.5)
72
72
  lint_roller (1.1.0)
73
73
  logger (1.7.0)
74
- loog (0.6.1)
74
+ loog (0.7.2)
75
+ ellipsized
75
76
  logger (~> 1.0)
76
- minitest (5.26.2)
77
+ minitest (6.0.1)
78
+ prism (~> 1.5)
77
79
  minitest-reporters (1.7.1)
78
80
  ansi
79
81
  builder
@@ -82,33 +84,35 @@ GEM
82
84
  multipart-post (2.4.1)
83
85
  mustermann (3.0.4)
84
86
  ruby2_keywords (~> 0.0.1)
85
- net-http (0.8.0)
87
+ net-http (0.9.1)
86
88
  uri (>= 0.11.1)
87
89
  nio4r (2.7.5)
88
- nokogiri (1.18.10-arm64-darwin)
90
+ nokogiri (1.19.0-arm64-darwin)
89
91
  racc (~> 1.4)
90
- nokogiri (1.18.10-x64-mingw-ucrt)
92
+ nokogiri (1.19.0-x64-mingw-ucrt)
91
93
  racc (~> 1.4)
92
- nokogiri (1.18.10-x86_64-darwin)
94
+ nokogiri (1.19.0-x86_64-darwin)
93
95
  racc (~> 1.4)
94
- nokogiri (1.18.10-x86_64-linux-gnu)
96
+ nokogiri (1.19.0-x86_64-linux-gnu)
95
97
  racc (~> 1.4)
96
- online (0.1.0)
98
+ online (0.3.0)
99
+ openssl (>= 3)
97
100
  timeout (~> 0.4)
101
+ openssl (4.0.0)
98
102
  os (1.1.4)
99
103
  others (0.1.1)
100
104
  parallel (1.27.0)
101
- parser (3.3.10.0)
105
+ parser (3.3.10.1)
102
106
  ast (~> 2.4.1)
103
107
  racc
104
- prism (1.6.0)
105
- psych (5.2.6)
108
+ prism (1.8.0)
109
+ psych (5.3.1)
106
110
  date
107
111
  stringio
108
- public_suffix (7.0.0)
109
- puma (7.1.0)
112
+ public_suffix (7.0.2)
113
+ puma (7.2.0)
110
114
  nio4r (~> 2.0)
111
- qbash (0.4.8)
115
+ qbash (0.6.0)
112
116
  backtrace (> 0)
113
117
  elapsed (> 0)
114
118
  loog (> 0)
@@ -122,20 +126,20 @@ GEM
122
126
  rack-session (2.1.1)
123
127
  base64 (>= 0.1.0)
124
128
  rack (>= 3.0.0)
125
- rackup (2.2.1)
129
+ rackup (2.3.1)
126
130
  rack (>= 3)
127
131
  rainbow (3.1.1)
128
132
  rake (13.3.1)
129
133
  random-port (0.7.6)
130
134
  tago (~> 0.0)
131
- rdoc (6.16.1)
135
+ rdoc (7.1.0)
132
136
  erb
133
137
  psych (>= 4.0.0)
134
138
  tsort
135
139
  regexp_parser (2.11.3)
136
140
  retries (0.0.5)
137
141
  rexml (3.4.4)
138
- rubocop (1.81.7)
142
+ rubocop (1.82.1)
139
143
  json (~> 2.3)
140
144
  language_server-protocol (~> 3.17.0.2)
141
145
  lint_roller (~> 1.1.0)
@@ -143,12 +147,12 @@ GEM
143
147
  parser (>= 3.3.0.2)
144
148
  rainbow (>= 2.2.2, < 4.0)
145
149
  regexp_parser (>= 2.9.3, < 3.0)
146
- rubocop-ast (>= 1.47.1, < 2.0)
150
+ rubocop-ast (>= 1.48.0, < 2.0)
147
151
  ruby-progressbar (~> 1.7)
148
152
  unicode-display_width (>= 2.4.0, < 4.0)
149
- rubocop-ast (1.48.0)
153
+ rubocop-ast (1.49.0)
150
154
  parser (>= 3.3.7.2)
151
- prism (~> 1.4)
155
+ prism (~> 1.7)
152
156
  rubocop-minitest (0.38.2)
153
157
  lint_roller (~> 1.1)
154
158
  rubocop (>= 1.75.0, < 2.0)
@@ -178,16 +182,16 @@ GEM
178
182
  rack-protection (= 4.2.1)
179
183
  rack-session (>= 2.0.0, < 3)
180
184
  tilt (~> 2.0)
181
- stringio (3.1.8)
182
- tago (0.4.0)
183
- tilt (2.6.1)
184
- timeout (0.4.4)
185
+ stringio (3.2.0)
186
+ tago (0.6.0)
187
+ tilt (2.7.0)
188
+ timeout (0.6.0)
185
189
  tsort (0.2.0)
186
190
  typhoeus (1.5.0)
187
191
  ethon (>= 0.9.0, < 0.16.0)
188
192
  unicode-display_width (3.2.0)
189
193
  unicode-emoji (~> 4.1)
190
- unicode-emoji (4.1.0)
194
+ unicode-emoji (4.2.0)
191
195
  uri (1.1.1)
192
196
  wait_for (0.1.1)
193
197
  webmock (3.26.1)
@@ -196,7 +200,7 @@ GEM
196
200
  hashdiff (>= 0.4.0, < 2.0.0)
197
201
  webrick (1.9.2)
198
202
  yaml (0.4.0)
199
- yard (0.9.37)
203
+ yard (0.9.38)
200
204
 
201
205
  PLATFORMS
202
206
  arm64-darwin-22
@@ -211,7 +215,7 @@ DEPENDENCIES
211
215
  base64 (~> 0.3)
212
216
  baza.rb!
213
217
  factbase (~> 0.16)
214
- minitest (~> 5.25)
218
+ minitest (~> 6.0)
215
219
  minitest-reporters (~> 1.7)
216
220
  online (~> 0.1)
217
221
  os (~> 1.1)
@@ -221,7 +225,7 @@ DEPENDENCIES
221
225
  rackup (~> 2.2)
222
226
  rake (~> 13.2)
223
227
  random-port (~> 0.7)
224
- rdoc (= 6.16.1)
228
+ rdoc (= 7.1.0)
225
229
  rubocop (~> 1.73)
226
230
  rubocop-minitest (~> 0.38)
227
231
  rubocop-performance (~> 1.23)
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2024-2025 Zerocracy
3
+ Copyright (c) 2024-2026 Zerocracy
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the 'Software'), to deal
data/LICENSES/MIT.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2024-2025 Zerocracy
3
+ Copyright (c) 2024-2026 Zerocracy
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the 'Software'), to deal
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  require 'os'
@@ -29,14 +29,13 @@ Rake::TestTask.new(:test) do |t|
29
29
  t.libs << 'lib' << 'test'
30
30
  t.pattern = 'test/**/test_*.rb'
31
31
  t.warning = true
32
- t.verbose = false
33
32
  t.options = ARGV.join(' ').match(/(?:^| )(-- .*)$/)
34
33
  end
35
34
 
36
35
  desc 'Run them via Ruby, one by one'
37
36
  task :picks do
38
37
  next if OS.windows?
39
- (Dir['test/**/*.rb'] + Dir['lib/**/*.rb']).each do |f|
38
+ Dir['lib/**/*.rb'].each do |f|
40
39
  qbash(
41
40
  "bundle exec ruby #{Shellwords.escape(f)} -- --offline",
42
41
  log: $stdout, env: { 'RACK_ENV' => 'picks' }
data/baza.rb.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  require 'English'
data/lib/baza-rb/fake.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  require 'factbase'
@@ -19,7 +19,7 @@ require_relative 'version'
19
19
  # assert_equal 42, baza.push('test-job', 'data', [])
20
20
  #
21
21
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
22
- # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
22
+ # Copyright:: Copyright (c) 2024-2026 Yegor Bugayenko
23
23
  # License:: MIT
24
24
  class BazaRb::Fake
25
25
  # Get GitHub login name of the logged in user.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  # Just a version.
@@ -10,8 +10,8 @@
10
10
  # other packages (thus failing the build).
11
11
  #
12
12
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
13
- # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
13
+ # Copyright:: Copyright (c) 2024-2026 Yegor Bugayenko
14
14
  # License:: MIT
15
15
  class BazaRb
16
- VERSION = '0.11.2'
16
+ VERSION = '0.12.0'
17
17
  end
data/lib/baza-rb.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # SPDX-FileCopyrightText: Copyright (c) 2024-2025 Zerocracy
3
+ # SPDX-FileCopyrightText: Copyright (c) 2024-2026 Zerocracy
4
4
  # SPDX-License-Identifier: MIT
5
5
 
6
6
  require 'base64'
@@ -29,7 +29,7 @@ require_relative 'baza-rb/version'
29
29
  # puts baza.balance # => 100.5
30
30
  #
31
31
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
32
- # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
32
+ # Copyright:: Copyright (c) 2024-2026 Yegor Bugayenko
33
33
  # License:: MIT
34
34
  class BazaRb
35
35
  # How big are the chunks we send, by default, in bytes.
@@ -311,7 +311,7 @@ class BazaRb
311
311
  id = nil
312
312
  elapsed(@loog, level: Logger::INFO) do
313
313
  ret = post(
314
- home.append('durables').append('place'),
314
+ home.append('durable-place'),
315
315
  {
316
316
  'pname' => pname,
317
317
  'jname' => pname,
@@ -411,7 +411,7 @@ class BazaRb
411
411
  raise 'The "file" may not be empty' if file.empty?
412
412
  id = nil
413
413
  elapsed(@loog, level: Logger::INFO) do
414
- ret = get(home.append('durables').append('find').add(jname: pname, pname:, file:), [200, 404])
414
+ ret = get(home.append('durable-find').add(jname: pname, pname:, file:), [200, 404])
415
415
  if ret.code == 200
416
416
  id = ret.body.to_i
417
417
  throw :"Found durable ##{id} for job \"#{pname}\" file \"#{file}\" at #{@host}"
@@ -542,10 +542,10 @@ class BazaRb
542
542
  def enter(pname, badge, why, job)
543
543
  elapsed(@loog, good: "Entered valve #{badge} to #{pname}") do
544
544
  retry_it do
545
- ret = get(home.append('valves').append('result').add(badge:), [200, 204])
545
+ ret = get(home.append('result').add(badge:), [200, 204])
546
546
  return ret.body if ret.code == 200
547
547
  r = yield
548
- uri = home.append('valves').append('add')
548
+ uri = home.append('valves')
549
549
  uri = uri.add(job:) unless job.nil?
550
550
  post(
551
551
  uri,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baza.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko