xultestrunner 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,13 +5,12 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "xultestrunner"
8
- gem.executables = "xultest"
9
8
  gem.summary = %Q{XUL based test runner for running your JS unit tests.}
10
9
  gem.description = %Q{XUL based test runner for running your JS unit tests.}
11
10
  gem.email = "contact@gironda.org"
12
11
  gem.homepage = "http://github.com/gabrielg/xultestrunner"
13
12
  gem.authors = ["Gabriel Gironda"]
14
- gem.add_dependency "xpcomcore-rubygem", ">=0.5.3"
13
+ gem.add_dependency "xpcomcore-rubygem", ">=0.6.3"
15
14
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
15
  end
17
16
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -0,0 +1,20 @@
1
+ require 'rake'
2
+
3
+ module XULTestRunner
4
+ class TestTask
5
+ # TODO - allow for multiple 'test libs' options and once xultestrunner
6
+ # is better, allow for test patterns
7
+ attr_accessor :test_lib, :test_dir
8
+
9
+ def initialize(task_name = "test")
10
+ desc("Runs XULTestRunner based tests")
11
+ yield(self)
12
+ task(task_name) { self.invoke }
13
+ end
14
+
15
+ def invoke
16
+ system("xpcomcore", "launch", "xultestrunner", "--", "-testDir", test_dir, "-testLibs", test_lib)
17
+ end
18
+
19
+ end # TestTask
20
+ end # XULTestRunner
@@ -1,7 +1,7 @@
1
1
  [App]
2
2
  Name=XULTestRunner
3
- Version=0.4.0
4
- BuildID=7724d840-1a29-4939-a796-ad00546a110e
3
+ Version=0.5.0
4
+ BuildID=c13a5d64-de4d-4ae0-a236-e108fefe1afa
5
5
  ID=XULTestRunner@conflagrationjs.org
6
6
  Vendor=Conflagration JS
7
7
 
@@ -7,7 +7,7 @@
7
7
  <key>CFBundleExecutable</key>
8
8
  <string>stub_runner</string>
9
9
  <key>CFBundleGetInfoString</key>
10
- <string>XULTestRunner 0.4.0 © 2009 Conflagration JS</string>
10
+ <string>XULTestRunner 0.5.0 © 2009 Conflagration JS</string>
11
11
  <key>CFBundleIconFile</key>
12
12
  <string>xultestrunner</string>
13
13
  <key>CFBundleIdentifier</key>
@@ -19,11 +19,11 @@
19
19
  <key>CFBundlePackageType</key>
20
20
  <string>APPL</string>
21
21
  <key>CFBundleShortVersionString</key>
22
- <string>0.4.0</string>
22
+ <string>0.5.0</string>
23
23
  <key>CFBundleSignature</key>
24
24
  <string>XPCC</string>
25
25
  <key>CFBundleVersion</key>
26
- <string>0.4.0</string>
26
+ <string>0.5.0</string>
27
27
  <key>CGDisableCoalescedUpdates</key>
28
28
  <true/>
29
29
  <key>NSAppleScriptEnabled</key>
@@ -5,15 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xultestrunner}
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
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-18}
13
- s.default_executable = %q{xultest}
12
+ s.date = %q{2009-10-20}
14
13
  s.description = %q{XUL based test runner for running your JS unit tests.}
15
14
  s.email = %q{contact@gironda.org}
16
- s.executables = ["xultest"]
17
15
  s.extra_rdoc_files = [
18
16
  "LICENSE",
19
17
  "README.rdoc"
@@ -25,8 +23,7 @@ Gem::Specification.new do |s|
25
23
  "README.rdoc",
26
24
  "Rakefile",
27
25
  "VERSION",
28
- "bin/xultest",
29
- "lib/xultestrunner.rb",
26
+ "lib/xultestrunner/tasks/test_task.rb",
30
27
  "test/test_helper.rb",
31
28
  "test/xultestrunner_test.rb",
32
29
  "xpcomcore/app/application.ini",
@@ -58,11 +55,11 @@ Gem::Specification.new do |s|
58
55
  s.specification_version = 3
59
56
 
60
57
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
61
- s.add_runtime_dependency(%q<xpcomcore-rubygem>, [">= 0.5.3"])
58
+ s.add_runtime_dependency(%q<xpcomcore-rubygem>, [">= 0.6.3"])
62
59
  else
63
- s.add_dependency(%q<xpcomcore-rubygem>, [">= 0.5.3"])
60
+ s.add_dependency(%q<xpcomcore-rubygem>, [">= 0.6.3"])
64
61
  end
65
62
  else
66
- s.add_dependency(%q<xpcomcore-rubygem>, [">= 0.5.3"])
63
+ s.add_dependency(%q<xpcomcore-rubygem>, [">= 0.6.3"])
67
64
  end
68
65
  end
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Gironda
@@ -9,8 +9,8 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-18 00:00:00 -05:00
13
- default_executable: xultest
12
+ date: 2009-10-20 00:00:00 -05:00
13
+ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: xpcomcore-rubygem
@@ -20,12 +20,12 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.5.3
23
+ version: 0.6.3
24
24
  version:
25
25
  description: XUL based test runner for running your JS unit tests.
26
26
  email: contact@gironda.org
27
- executables:
28
- - xultest
27
+ executables: []
28
+
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
@@ -38,8 +38,7 @@ files:
38
38
  - README.rdoc
39
39
  - Rakefile
40
40
  - VERSION
41
- - bin/xultest
42
- - lib/xultestrunner.rb
41
+ - lib/xultestrunner/tasks/test_task.rb
43
42
  - test/test_helper.rb
44
43
  - test/xultestrunner_test.rb
45
44
  - xpcomcore/app/application.ini
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env ruby
2
- exec("xpcomcore", "launch", "xultestrunner", *ARGV)
@@ -1 +0,0 @@
1
- warn('This is a stub file generated by xpcomcore-rubygem. There may in fact be no Ruby code to speak of in this gem.')