judges 0.57.2 → 0.57.3

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: 88354a97358028176ab246461d697b8a15665f9cc7f40a8027ea06e319ad2cac
4
- data.tar.gz: a14e5f0de607ae66d42c564d0acce72bad9f631173e62012ffbd1e8930dabf42
3
+ metadata.gz: b995a5bc4afe05488b0261012335596fdeb046103bc626466fe094a75aaefe0d
4
+ data.tar.gz: 76bfaa700b489cf33e0830791bb1293d1418b0c3c373d30669d41f88f5f15691
5
5
  SHA512:
6
- metadata.gz: 2f0e66bc1557e30a9e1197971c5218b8b31afa371bb5db7e180f758458e6c8efa9c6734ddf260101238a1b56b5b5acb05cf5946e5ad3205b4d201063f9a8c820
7
- data.tar.gz: '08f46b98339901d7f045e07fd9569dedc09b33ccf20060a00421f5e52b0010cac384a92e2d24375c22a0ba8626d61a6501aba46fe6758c7ec5c98dfae8655838'
6
+ metadata.gz: 6aba33eabad340cb860a8fabc49e8707fe2bb700b626585e27bde8c1927da3031b5c04fb6ec97eb5aaa1af43fccc81759e0dc38291b3a58a142ca631cf970ecc
7
+ data.tar.gz: e9e395a105fe5b7794be9c1533279bd18b53c42807dd85f2e39bbe14064ada5f80fb78040ea750fa0939c12d29d1f825934063b6fc345bccfac7be66fa7c27d2
data/Gemfile.lock CHANGED
@@ -22,13 +22,13 @@ PATH
22
22
  GEM
23
23
  remote: https://rubygems.org/
24
24
  specs:
25
- addressable (2.8.7)
26
- public_suffix (>= 2.0.2, < 7.0)
25
+ addressable (2.8.8)
26
+ public_suffix (>= 2.0.2, < 8.0)
27
27
  ansi (1.5.0)
28
28
  ast (2.4.3)
29
29
  backtrace (0.4.1)
30
30
  base64 (0.3.0)
31
- baza.rb (0.11.0)
31
+ baza.rb (0.11.1)
32
32
  backtrace (~> 0.4)
33
33
  elapsed (~> 0.2)
34
34
  faraday (~> 2.13)
@@ -70,7 +70,7 @@ GEM
70
70
  cucumber-html-formatter (21.15.1)
71
71
  cucumber-messages (> 19, < 28)
72
72
  cucumber-messages (27.2.0)
73
- cucumber-tag-expressions (8.0.0)
73
+ cucumber-tag-expressions (8.1.0)
74
74
  decoor (0.1.0)
75
75
  diff-lcs (1.6.2)
76
76
  docile (1.4.1)
@@ -81,7 +81,7 @@ GEM
81
81
  ethon (0.18.0)
82
82
  ffi (>= 1.15.0)
83
83
  logger
84
- factbase (0.16.8)
84
+ factbase (0.17.0)
85
85
  backtrace (~> 0.4)
86
86
  decoor (~> 0.1)
87
87
  ellipsized (~> 0.3)
@@ -166,7 +166,7 @@ GEM
166
166
  ast (~> 2.4.1)
167
167
  racc
168
168
  prism (1.6.0)
169
- public_suffix (6.0.2)
169
+ public_suffix (7.0.0)
170
170
  qbash (0.4.8)
171
171
  backtrace (> 0)
172
172
  elapsed (> 0)
@@ -16,9 +16,9 @@ Feature: Test
16
16
  And Exit code is zero
17
17
 
18
18
  Scenario: Factbase version can be set
19
- When I run bin/judges with "--factbase 0.16.8 --verbose test --judge guess ./fixtures"
19
+ When I run bin/judges with "--factbase 0.17.0 --verbose test --judge guess ./fixtures"
20
20
  Then Exit code is zero
21
- And Stdout contains "Factbase version to be used: '0.16.8'"
21
+ And Stdout contains "Factbase version to be used: '0.17.0'"
22
22
 
23
23
  Scenario: Simple test of no judges
24
24
  Given I run bin/judges with "test --judge absent_for_sure ./fixtures"
data/judges.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
10
10
  s.required_ruby_version = '>=3.2'
11
11
  s.name = 'judges'
12
- s.version = '0.57.2'
12
+ s.version = '0.57.3'
13
13
  s.license = 'MIT'
14
14
  s.summary = 'Command-Line Tool for a Factbase'
15
15
  s.description =
@@ -72,7 +72,7 @@ class Judges::Update
72
72
  )
73
73
  begin
74
74
  Timeout.timeout(opts['lifetime']) do
75
- loop_them(impex, judges, fb, opts, options)
75
+ loop_them(judges, fb, opts, options)
76
76
  end
77
77
  rescue Timeout::Error, Timeout::ExitException => e
78
78
  @loog.error("Terminated due to --lifetime=#{opts['lifetime']}")
@@ -85,7 +85,7 @@ class Judges::Update
85
85
 
86
86
  private
87
87
 
88
- def loop_them(impex, judges, fb, opts, options)
88
+ def loop_them(judges, fb, opts, options)
89
89
  c = 0
90
90
  churn = Factbase::Churn.new
91
91
  errors = []
@@ -112,7 +112,6 @@ class Judges::Update
112
112
  end
113
113
  delta = cycle(opts, judges, fb, options, errors, statistics)
114
114
  churn += delta
115
- impex.export(fb)
116
115
  if delta.zero?
117
116
  @loog.info("The update cycle ##{c} has made no changes to the factbase, let's stop")
118
117
  break
@@ -132,7 +131,6 @@ class Judges::Update
132
131
  statistics&.report(@loog)
133
132
  return unless %w[add append].include?(opts['summary'])
134
133
  summarize(fb, churn, errors, c)
135
- impex.export(fb)
136
134
  end
137
135
 
138
136
  # Update the summary.
@@ -44,11 +44,16 @@ class Judges::Upload
44
44
  elapsed(@loog, level: Logger::INFO) do
45
45
  id = baza.durable_find(jname, name)
46
46
  if id.nil? || id.to_s.strip.empty?
47
- Dir.mktmpdir do |tmp|
47
+ # Block form of Dir.mkdir causes error Errno::EACCESS on windows
48
+ # so we use non-block form
49
+ tmp = Dir.mktmpdir
50
+ begin
48
51
  f = File.join(tmp, name)
49
52
  File.write(f, 'placeholder')
50
53
  id = baza.durable_place(jname, f)
51
54
  @loog.info("Placed a placeholder to new durable '#{name}' in '#{jname}' (ID: #{id})")
55
+ ensure
56
+ FileUtils.rm_rf(tmp, secure: true)
52
57
  end
53
58
  end
54
59
  size = File.size(path)
data/lib/judges.rb CHANGED
@@ -8,5 +8,5 @@
8
8
  # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
9
9
  # License:: MIT
10
10
  module Judges
11
- VERSION = '0.57.2' unless const_defined?(:VERSION)
11
+ VERSION = '0.57.3' unless const_defined?(:VERSION)
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judges
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.2
4
+ version: 0.57.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko