jstdutil 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.7
1
+ 0.3.8
data/lib/jstdutil.rb CHANGED
@@ -32,10 +32,13 @@ module Jstdutil
32
32
  #
33
33
  def self.run(args, jar)
34
34
  begin
35
- res = `java -jar #{jar} #{args}`
35
+ res = `javad -jar #{jar} #{args}`
36
36
  $exit_status = $?
37
37
  return res
38
38
  rescue Exception => err
39
+ puts "Unable to run java command. This probably means java is not available " +
40
+ "on your path. Original error was"
41
+ puts err.message
39
42
  end
40
43
  end
41
44
  end
@@ -18,8 +18,9 @@ module Jstdutil
18
18
 
19
19
  cases = files.collect do |file|
20
20
  @args = @args.sub(/(\s*--reset)?$/, " --reset") if file !~ /_test\.js$/
21
+
21
22
  TestFile.new(file).test_cases
22
- end.flatten.join(",")
23
+ end.flatten.map { |tc| tc.index(" ").nil? ? tc : "\"#{tc}\"" }.join(",")
23
24
 
24
25
  cases == "" && "all" || cases
25
26
  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: 29
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 7
10
- version: 0.3.7
9
+ - 8
10
+ version: 0.3.8
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-17 00:00:00 +02:00
18
+ date: 2011-07-10 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency