jstdutil 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Changelog +3 -0
  2. data/VERSION +1 -1
  3. data/bin/jstestdriver +6 -0
  4. data/lib/jstdutil.rb +3 -1
  5. metadata +4 -4
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.7 / 2011-05-17
2
+ * Proper exit code from jstestdriver (Vladimir Dobriakov)
3
+
1
4
  == 0.3.6 / 2011-05-07
2
5
  * Work around broken utf-8 output from jstestdriver (skip formatting)
3
6
  Thanks to Thomas Pickert
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
@@ -13,3 +13,9 @@ begin
13
13
  rescue StandardError => err
14
14
  puts err.message if $*.join(" ") =~ /(^|\s)-v(\s|$)/
15
15
  end
16
+
17
+ if defined? $exit_status
18
+ # simple passing $exit_status to exit does not work. Java returns a code of 256.
19
+ # But 256 is not recognized as an error code by Kernel.exit
20
+ exit 37 if $exit_status != 0
21
+ end
@@ -32,7 +32,9 @@ module Jstdutil
32
32
  #
33
33
  def self.run(args, jar)
34
34
  begin
35
- `java -jar #{jar} #{args}`
35
+ res = `java -jar #{jar} #{args}`
36
+ $exit_status = $?
37
+ return res
36
38
  rescue Exception => err
37
39
  end
38
40
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstdutil
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christian Johansen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-07 00:00:00 +02:00
18
+ date: 2011-05-17 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency