etest 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +2 -2
- data/gem.yml +4 -1
- data/lib/etest.rb +5 -2
- data/vex/gem.rake +2 -2
- data/vex/gem.rb +9 -6
- metadata +34 -8
data/.gemspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require "vex/gem"
|
2
|
+
Gem.spec File.dirname(__FILE__)
|
data/gem.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
version: "0.6.
|
1
|
+
version: "0.6.1"
|
2
2
|
description: Embedded testing
|
3
3
|
summary: Embedded testing
|
4
4
|
# url: http://github.com/pboy/etest
|
@@ -9,6 +9,9 @@ email: eno-pboy@open-lab.org
|
|
9
9
|
# - "**/.*"
|
10
10
|
dependencies:
|
11
11
|
- dlog
|
12
|
+
- minitest-rg
|
13
|
+
- minitest
|
14
|
+
|
12
15
|
# - nokogiri
|
13
16
|
# - htmlentities
|
14
17
|
# - rdiscount
|
data/lib/etest.rb
CHANGED
@@ -39,6 +39,9 @@ class MiniTest::Unit::TestCase
|
|
39
39
|
MiniTest::Unit::TestCase.inherited test_case
|
40
40
|
end
|
41
41
|
|
42
|
+
# reset the default test runner :)
|
43
|
+
MiniTest::Unit.runner.send(:initialize)
|
44
|
+
|
42
45
|
MiniTest::Unit.new.run(ARGV.dup)
|
43
46
|
ensure
|
44
47
|
@@test_suites = outside_etests
|
@@ -65,7 +68,7 @@ module Etest
|
|
65
68
|
Module.by_name "#{mod.name}::Etest"
|
66
69
|
}.compact.uniq.sort_by(&:name)
|
67
70
|
|
68
|
-
run
|
71
|
+
run(*etests)
|
69
72
|
end
|
70
73
|
|
71
74
|
def self.run(*etests)
|
@@ -76,7 +79,7 @@ module Etest
|
|
76
79
|
to_test_case etest
|
77
80
|
}
|
78
81
|
|
79
|
-
MiniTest::Unit::TestCase.run_etests
|
82
|
+
MiniTest::Unit::TestCase.run_etests(*test_cases)
|
80
83
|
end
|
81
84
|
|
82
85
|
#
|
data/vex/gem.rake
CHANGED
data/vex/gem.rb
CHANGED
@@ -34,7 +34,14 @@ module Gem
|
|
34
34
|
|
35
35
|
log attr, v
|
36
36
|
|
37
|
-
|
37
|
+
if attr == "dependencies"
|
38
|
+
v.each do |dependency|
|
39
|
+
STDERR.puts "add_dependency #{dependency.inspect}"
|
40
|
+
s.add_dependency dependency
|
41
|
+
end
|
42
|
+
else
|
43
|
+
s.send "#{attr}=", v
|
44
|
+
end
|
38
45
|
end
|
39
46
|
|
40
47
|
%w(pre_uninstall post_install).each do |hook|
|
@@ -57,11 +64,7 @@ module Gem
|
|
57
64
|
end
|
58
65
|
|
59
66
|
def dependencies
|
60
|
-
|
61
|
-
|
62
|
-
@conf["dependencies"].map do |d|
|
63
|
-
Gem::Dependency.new d, ">= 0"
|
64
|
-
end
|
67
|
+
@conf["dependencies"]
|
65
68
|
end
|
66
69
|
|
67
70
|
def head(file)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- pboy
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2011-11-19 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: dlog
|
@@ -32,6 +31,34 @@ dependencies:
|
|
32
31
|
version: "0"
|
33
32
|
type: :runtime
|
34
33
|
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: minitest-rg
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
none: false
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
hash: 3
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: minitest
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
hash: 3
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
version: "0"
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
35
62
|
description: Embedded testing
|
36
63
|
email: eno-pboy@open-lab.org
|
37
64
|
executables: []
|
@@ -60,7 +87,6 @@ files:
|
|
60
87
|
- test/test.rb
|
61
88
|
- vex/gem.rake
|
62
89
|
- vex/gem.rb
|
63
|
-
has_rdoc: true
|
64
90
|
homepage:
|
65
91
|
licenses: []
|
66
92
|
|
@@ -90,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
116
|
requirements: []
|
91
117
|
|
92
118
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.8.10
|
94
120
|
signing_key:
|
95
121
|
specification_version: 3
|
96
122
|
summary: Embedded testing
|