xultestrunner 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/bin/xultest +6 -6
- data/xulapp/application.ini +2 -2
- data/xultestrunner.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
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
|
-
|
|
5
|
-
!loc.length.zero?
|
|
6
|
-
end
|
|
4
|
+
args = ARGV.dup
|
|
7
5
|
|
|
8
|
-
|
|
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
|
-
|
|
13
|
-
exec(firefox_location, *["-app", xulapp_ini_path, *ARGV])
|
|
13
|
+
exec(runtime, *["-app", xulapp_ini_path, *args])
|
data/xulapp/application.ini
CHANGED
data/xultestrunner.gemspec
CHANGED
|
@@ -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
|
+
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-
|
|
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.
|
|
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-
|
|
12
|
+
date: 2009-10-05 00:00:00 -05:00
|
|
13
13
|
default_executable: xultest
|
|
14
14
|
dependencies: []
|
|
15
15
|
|