test-unit-ruby-core 1.0.10 → 1.0.12
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/lib/core_assertions.rb +5 -0
- 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: 0b51defeffab8a8111b63992bba7cbfc691dd8c81e76bf6138420f474843ff90
|
|
4
|
+
data.tar.gz: 0f496d18c7a8c60d193b6cb9cb0f417370175deed875438de07f8768d44ead5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf2c70e298e5ea94ee95bb0982e9e2f4ecae515995e98be08c72568e55576e0c0e1654593c414544030b632d087de80b47c7892e964c9e0f636d24447369a7b5
|
|
7
|
+
data.tar.gz: 13897b2f3a02a3628945c07f51894358ecacd6e33ed892a38cb2fbbed7ed9aadd7d1b2dbfafa8a36bbf2ff85aa72b1e6f29601b09d798c0246c9fce0bee92e61
|
data/lib/core_assertions.rb
CHANGED
|
@@ -328,6 +328,8 @@ eom
|
|
|
328
328
|
args = args.dup
|
|
329
329
|
args.insert((Hash === args.first ? 1 : 0), "-w", "--disable=gems", *$:.map {|l| "-I#{l}"})
|
|
330
330
|
args << "--debug" if RUBY_ENGINE == 'jruby' # warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
|
|
331
|
+
# power_assert 3 requires ruby 3.1 or later
|
|
332
|
+
args << "-W:no-experimental" if RUBY_VERSION < "3.1."
|
|
331
333
|
stdout, stderr, status = EnvUtil.invoke_ruby(args, src, capture_stdout, true, **opt)
|
|
332
334
|
ensure
|
|
333
335
|
if res_c
|
|
@@ -835,6 +837,9 @@ eom
|
|
|
835
837
|
rescue
|
|
836
838
|
# Constants may be defined but not implemented, e.g., mingw.
|
|
837
839
|
else
|
|
840
|
+
unless Process.clock_getres(clk) < 1.0e-03
|
|
841
|
+
next # needs msec precision
|
|
842
|
+
end
|
|
838
843
|
PERFORMANCE_CLOCK = clk
|
|
839
844
|
end
|
|
840
845
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: test-unit-ruby-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hiroshi SHIBATA
|
|
8
8
|
- Nobu Nakada
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-unit
|