tryouts 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c9881b556aa0492a4e0cba92343efa2c9761664a9507ac3d123fee8143301b8
4
- data.tar.gz: 245f405149281445c9bb902695919f6fbd4c5ec461303f16c7078ed6ddcbe111
3
+ metadata.gz: eb6e297c2fe5c80dfc2f056d0df5e2742c72ee14e26566283746410d8d3eed5b
4
+ data.tar.gz: de4ff46738db509b6a511e57a8cd4713510c9a38bec5d4fa7f61383585f0e554
5
5
  SHA512:
6
- metadata.gz: ced6968dc159ab82ffcc8902b9835977bfdac9fbf1f8290ce20c216a09fb07fe7731235ac464827094cdebb422048ae963cf396fcb604c37d8945d73d148a619
7
- data.tar.gz: b57ed46b023c084209153176fcbb05c4ec710cf1da0a77e61db1ac14e50b87f4bd1c5d35c73e2b9a950d855415e4728d5f229138bb6d8d51edab1bb3df8961f3
6
+ metadata.gz: dd90be3bd46856d40055cf36e7cf41820b2692c06f117645daf1614ce8910dc4e7f28ada9731e1cf00674208f1c99f6fccd1f03b4b304ea03f29628fe51700ea
7
+ data.tar.gz: d8214885cbc47e502c65f4a46383774ee881869aa88164ac475f559914110a2905448db7b8a4afb461d491e70d3f57be56be09924083619a4127dccc504ae63d
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :MAJOR: 2
3
3
  :MINOR: 3
4
- :PATCH: 1
4
+ :PATCH: 2
@@ -30,6 +30,9 @@ class Tryouts
30
30
  @run = true
31
31
  clean
32
32
  !failed?
33
+ rescue StandardError => e
34
+ @failed = 1
35
+ $stderr.puts e.message, e.backtrace.join($/), $/
33
36
  end
34
37
 
35
38
  def failed?
@@ -33,7 +33,6 @@ class Tryouts
33
33
  end
34
34
  $stdout = STDOUT # restore stdout
35
35
 
36
-
37
36
  expectations.each_with_index do |exp, idx|
38
37
  if exp.nil?
39
38
  @outlines << ' [skipped]'
@@ -51,9 +50,11 @@ class Tryouts
51
50
  Tryouts.debug # extra newline
52
51
  failed?
53
52
 
54
- rescue Exception => e
55
- Tryouts.debug e.message, e.backtrace.join($/), $/
53
+ rescue StandardException => e
54
+ Tryouts.debug "[testcaste.run] #{e.message}", e.backtrace.join($/), $/
56
55
  $stdout = STDOUT # restore stdout
56
+ # Continue raising the exception
57
+ raise e
57
58
  end
58
59
 
59
60
  def run?
data/lib/tryouts.rb CHANGED
@@ -226,7 +226,7 @@ class Tryouts
226
226
  end
227
227
 
228
228
  def err *msgs
229
- msg.each do |line|
229
+ msgs.each do |line|
230
230
  $stderr.puts Console.color :red, line
231
231
  end
232
232
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tryouts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sysinfo
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.10'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.10'
13
27
  description: A simple test framework for Ruby code that uses introspection to allow
14
28
  defining checks in comments.
15
29
  email: gems@solutious.com