spork-testunit 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/bin/testdrb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # These fix 1.8.7 test/unit results where a DRbUnknown is returned because the testdrb client doesn't have the classes
4
4
  # in its local namespace. (See issue #2)
5
- unless RUBY_VERSION =~ /^1\.9/
5
+ unless defined? MiniTest
6
6
  # MiniTest is Ruby 1.9, and the classes below only exist in the pre 1.9 test/unit
7
7
  require 'test/unit/testresult'
8
8
  require 'test/unit/failure'
@@ -8,12 +8,21 @@ class Spork::TestFramework::TestUnit < Spork::TestFramework
8
8
  MiniTest::Unit.output = stdout
9
9
 
10
10
  # MiniTest's test/unit does not support -I
11
- argv.reject!{|item|
12
- if item =~ /-I(.*)/
13
- $LOAD_PATH << $1
14
- true
11
+ # Extract it and remove from arguments that are passed to testrb.
12
+ argv.each_with_index do |arg, idx|
13
+ if arg =~ /-I(.*)/
14
+ if $1 == ''
15
+ # Path is next argument.
16
+ include_path = argv[idx + 1]
17
+ argv[idx + 1] = nil # Will be squashed when compact called.
18
+ else
19
+ include_path = $1
20
+ end
21
+ $LOAD_PATH << include_path
22
+ argv[idx] = nil
15
23
  end
16
- }
24
+ end
25
+ argv.compact!
17
26
 
18
27
  # copied from ruby-1.9.2-p136/bin/testrb:
19
28
  require 'test/unit'
metadata CHANGED
@@ -1,85 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spork-testunit
3
- version: !ruby/object:Gem::Version
4
- hash: 21
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- version: 0.0.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Tim Harper
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2009-09-12 00:00:00 -06:00
19
- default_executable: testdrb
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2009-09-12 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: spork
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70183892964200 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 0
32
- - 6
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.6.0
35
22
  type: :runtime
36
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70183892964200
37
25
  description: Test Unit runner for spork
38
- email:
26
+ email:
39
27
  - timcharper+spork@gmail.com
40
- executables:
28
+ executables:
41
29
  - testdrb
42
30
  extensions: []
43
-
44
- extra_rdoc_files:
31
+ extra_rdoc_files:
45
32
  - README.textile
46
- files:
33
+ files:
47
34
  - bin/testdrb
48
35
  - lib/spork/test_framework/test_unit.rb
49
36
  - README.textile
50
- has_rdoc: true
51
37
  homepage: http://github.com/timcharper/spork-testunit
52
38
  licenses: []
53
-
54
39
  post_install_message:
55
- rdoc_options:
40
+ rdoc_options:
56
41
  - --charset=UTF-8
57
- require_paths:
42
+ require_paths:
58
43
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
60
45
  none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
68
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
51
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
77
56
  requirements: []
78
-
79
57
  rubyforge_project: spork-testunit
80
- rubygems_version: 1.5.0
58
+ rubygems_version: 1.8.7
81
59
  signing_key:
82
60
  specification_version: 3
83
61
  summary: spork-testunit
84
62
  test_files: []
85
-