xultestrunner 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
data/bin/xultest CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'pathname'
3
3
 
4
- firefox_location = [`which firefox-bin`.chomp, `which firefox`.chomp].detect do |loc|
5
- !loc.length.zero?
6
- end
4
+ args = ARGV.dup
7
5
 
8
- raise "Could not find `firefox-bin` or `firefox` in your path. Please rectify this and try again." unless firefox_location
6
+ gecko_runtime_search = (ENV['USE_XULRUNNER'] || args.delete("-xulrunner")) ? %w[xulrunner-bin xulrunner] : %w[firefox-bin firefox]
7
+ runtime = gecko_runtime_search.detect { |runtime_cmd| !`which #{runtime_cmd}`.strip.length.zero? }
8
+
9
+ raise("Could not find '#{gecko_runtime_search.join(", ")}' in your path. Please rectify this and try again.") unless runtime
9
10
 
10
11
  xulapp_ini_path = (Pathname(__FILE__).parent.parent + "xulapp/application.ini").expand_path
11
12
 
12
- puts("")
13
- exec(firefox_location, *["-app", xulapp_ini_path, *ARGV])
13
+ exec(runtime, *["-app", xulapp_ini_path, *args])
@@ -1,7 +1,7 @@
1
1
  [App]
2
2
  Name=XULTestRunner
3
- Version=0.2.8
4
- BuildID=c3a91f64-3063-4bc5-b4ef-4ebf2cc114bf
3
+ Version=0.2.9
4
+ BuildID=ab315f3a-ed6d-4ddd-a830-d1ea30cdf1e4
5
5
  ID=XULTestRunner@conflagrationjs.org
6
6
  Vendor=Conflagration JS
7
7
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xultestrunner}
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gabriel Gironda"]
12
- s.date = %q{2009-10-03}
12
+ s.date = %q{2009-10-05}
13
13
  s.default_executable = %q{xultest}
14
14
  s.description = %q{XUL based test runner for running your JS unit tests.}
15
15
  s.email = %q{contact@gironda.org}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xultestrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Gironda
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-03 00:00:00 -05:00
12
+ date: 2009-10-05 00:00:00 -05:00
13
13
  default_executable: xultest
14
14
  dependencies: []
15
15