test-unit-ruby-core 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/core_assertions.rb +7 -5
- data/lib/envutil.rb +14 -15
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d05dd3f2783ff27cdc3a1b49e882c6ee9f7b725f820fdbf5fe80411bf624042f
|
4
|
+
data.tar.gz: c05744e10ee11583d7fb865af779e254a607a32a3ef06578ed2c88b68169bda0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aff77d096a0e94695e3703c00e695c7e9a34e34d084cac2e4dc5eb133e8f542f7b89d91174366d403f6fe838568f18d123ef3e8e024c0cd0d68a39287bb51cae
|
7
|
+
data.tar.gz: 8ba1b2d9f96b6f9f120afaf4265dd618e98a267bcd995881c78347d7c00fb98edd226b305de29d65c36c66b5ff878178a69e561dbaa2a9a0ec136e76727d3a86
|
data/lib/core_assertions.rb
CHANGED
@@ -781,11 +781,13 @@ eom
|
|
781
781
|
].find do |c|
|
782
782
|
if Process.const_defined?(c)
|
783
783
|
[c.to_sym, Process.const_get(c)].find do |clk|
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
784
|
+
begin
|
785
|
+
Process.clock_gettime(clk)
|
786
|
+
rescue
|
787
|
+
# Constants may be defined but not implemented, e.g., mingw.
|
788
|
+
else
|
789
|
+
PERFORMANCE_CLOCK = clk
|
790
|
+
end
|
789
791
|
end
|
790
792
|
end
|
791
793
|
end
|
data/lib/envutil.rb
CHANGED
@@ -15,23 +15,22 @@ end
|
|
15
15
|
module EnvUtil
|
16
16
|
def rubybin
|
17
17
|
if ruby = ENV["RUBY"]
|
18
|
-
|
19
|
-
|
20
|
-
ruby = "ruby"
|
21
|
-
exeext = RbConfig::CONFIG["EXEEXT"]
|
22
|
-
rubyexe = (ruby + exeext if exeext and !exeext.empty?)
|
23
|
-
3.times do
|
24
|
-
if File.exist? ruby and File.executable? ruby and !File.directory? ruby
|
25
|
-
return File.expand_path(ruby)
|
26
|
-
end
|
27
|
-
if rubyexe and File.exist? rubyexe and File.executable? rubyexe
|
28
|
-
return File.expand_path(rubyexe)
|
29
|
-
end
|
30
|
-
ruby = File.join("..", ruby)
|
31
|
-
end
|
32
|
-
if defined?(RbConfig.ruby)
|
18
|
+
ruby
|
19
|
+
elsif defined?(RbConfig.ruby)
|
33
20
|
RbConfig.ruby
|
34
21
|
else
|
22
|
+
ruby = "ruby"
|
23
|
+
exeext = RbConfig::CONFIG["EXEEXT"]
|
24
|
+
rubyexe = (ruby + exeext if exeext and !exeext.empty?)
|
25
|
+
3.times do
|
26
|
+
if File.exist? ruby and File.executable? ruby and !File.directory? ruby
|
27
|
+
return File.expand_path(ruby)
|
28
|
+
end
|
29
|
+
if rubyexe and File.exist? rubyexe and File.executable? rubyexe
|
30
|
+
return File.expand_path(rubyexe)
|
31
|
+
end
|
32
|
+
ruby = File.join("..", ruby)
|
33
|
+
end
|
35
34
|
"ruby"
|
36
35
|
end
|
37
36
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi SHIBATA
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Additional test assertions for Ruby standard libraries.
|
15
15
|
email:
|
@@ -37,7 +37,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.3'
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
43
|
- - ">="
|