ace-support-test-helpers 0.14.3 → 0.14.4
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ace/test_support/test_helper.rb +29 -0
- data/lib/ace/test_support/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a629650c00f11a385af2702b706fad2a502e89d740000dfafa1fe465c0f63ffa
|
|
4
|
+
data.tar.gz: 4ffe9e7d64e66814e667431cde88f42ebfbc8ac449c3c7832f3083745ab19f46
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccf9bd44e4ba8dc9be6ea21df13afa27bd80baec31f295e61d4346cb670bd2e4905318e7c9b2fea092ca810e1b59a3f47080587efb6b25e1f4ac282e20b47701
|
|
7
|
+
data.tar.gz: e3448213c72aaacd1fa25aad4e061a9e4f22c0a0de0e8a0848da110f15af0a30e72f7f49408d419bd22413f27a3dd56d2971408aebc2ffb05979887fdd74e1ee
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
## [0.14.4] - 2026-09-02
|
|
12
|
+
|
|
13
|
+
### Technical
|
|
14
|
+
- Included in the coordinated all-package patch release preparation for ACE monorepo review.
|
|
10
15
|
## [0.14.3] - 2026-08-12
|
|
11
16
|
|
|
12
17
|
### Technical
|
|
@@ -38,6 +38,35 @@ module Ace
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
# Returns true when mode-0000/DAC permission bits are enforced against
|
|
42
|
+
# the current process. Root and processes with CAP_DAC_OVERRIDE bypass
|
|
43
|
+
# these checks, so chmod-based permission tests must be skipped there.
|
|
44
|
+
def permission_denial_enforced?
|
|
45
|
+
return false if Gem.win_platform?
|
|
46
|
+
|
|
47
|
+
Tempfile.create("ace_perm_probe") do |probe|
|
|
48
|
+
probe.write("probe")
|
|
49
|
+
probe.flush
|
|
50
|
+
begin
|
|
51
|
+
File.chmod(0o000, probe.path)
|
|
52
|
+
rescue NotImplementedError, SystemCallError
|
|
53
|
+
return false
|
|
54
|
+
end
|
|
55
|
+
begin
|
|
56
|
+
File.read(probe.path)
|
|
57
|
+
false
|
|
58
|
+
rescue SystemCallError
|
|
59
|
+
true
|
|
60
|
+
ensure
|
|
61
|
+
begin
|
|
62
|
+
File.chmod(0o600, probe.path)
|
|
63
|
+
rescue StandardError
|
|
64
|
+
nil
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
41
70
|
def create_config_file(path, content)
|
|
42
71
|
FileUtils.mkdir_p(File.dirname(path))
|
|
43
72
|
File.write(path, content)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ace-support-test-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michal Czyz
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-09-05 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: minitest
|