guard-minitest 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -2
- data/lib/guard/minitest/runner.rb +2 -6
- data/lib/guard/minitest/runners/default_runner.rb +6 -1
- data/lib/guard/minitest/version.rb +1 -1
- metadata +13 -11
data/README.rdoc
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
= Guard::Minitest
|
2
2
|
|
3
|
-
Minitest guard allows to automatically & intelligently launch tests
|
3
|
+
Minitest guard allows to automatically & intelligently launch tests with
|
4
|
+
{minitest framework}[http://http://github.com/seattlerb/minitest] when files are modified.
|
4
5
|
|
5
6
|
- Compatible with MiniTest 1.7.x
|
6
|
-
- Tested on Ruby 1.8.7 & 1.9.2.
|
7
|
+
- Tested on Ruby 1.8.6, 1.8.7 & 1.9.2.
|
7
8
|
|
8
9
|
== Install
|
9
10
|
|
@@ -6,7 +6,7 @@ module Guard
|
|
6
6
|
attr_reader :seed
|
7
7
|
|
8
8
|
def set_seed(options = {})
|
9
|
-
@seed = options[:seed]
|
9
|
+
@seed = options[:seed]
|
10
10
|
end
|
11
11
|
|
12
12
|
def set_verbose(options = {})
|
@@ -36,7 +36,7 @@ module Guard
|
|
36
36
|
cmd_parts << "-r #{File.expand_path('../runners/default_runner.rb', __FILE__)}"
|
37
37
|
cmd_parts << '-e \'MiniTest::Unit.autorun\''
|
38
38
|
cmd_parts << '--'
|
39
|
-
cmd_parts << "--seed #{seed}"
|
39
|
+
cmd_parts << "--seed #{seed}" unless seed.nil?
|
40
40
|
cmd_parts << '--verbose' if verbose?
|
41
41
|
cmd_parts.join(' ')
|
42
42
|
end
|
@@ -45,10 +45,6 @@ module Guard
|
|
45
45
|
@bundler ||= File.exist?("#{Dir.pwd}/Gemfile")
|
46
46
|
end
|
47
47
|
|
48
|
-
def default_seed
|
49
|
-
srand
|
50
|
-
srand % 0xFFFF
|
51
|
-
end
|
52
48
|
end
|
53
49
|
end
|
54
50
|
end
|
@@ -12,7 +12,12 @@ module MiniTest
|
|
12
12
|
def run(args = [])
|
13
13
|
self.options = process_args(args)
|
14
14
|
|
15
|
-
|
15
|
+
unless options[:seed] then
|
16
|
+
srand
|
17
|
+
options[:seed] = srand % 0xFFFF
|
18
|
+
end
|
19
|
+
|
20
|
+
self.help = ['--seed', options[:seed].to_s]
|
16
21
|
self.help << ['--verbose'] if options[:verbose]
|
17
22
|
self.help = self.help.join(' ')
|
18
23
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yann Lugrin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-22 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,10 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 23
|
30
30
|
segments:
|
31
31
|
- 0
|
32
|
-
|
32
|
+
- 2
|
33
|
+
- 0
|
34
|
+
version: 0.2.0
|
33
35
|
type: :runtime
|
34
36
|
version_requirements: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
@@ -56,12 +58,12 @@ dependencies:
|
|
56
58
|
requirements:
|
57
59
|
- - ~>
|
58
60
|
- !ruby/object:Gem::Version
|
59
|
-
hash:
|
61
|
+
hash: 15
|
60
62
|
segments:
|
61
63
|
- 1
|
62
64
|
- 7
|
63
|
-
-
|
64
|
-
version: 1.7.
|
65
|
+
- 2
|
66
|
+
version: 1.7.2
|
65
67
|
type: :development
|
66
68
|
version_requirements: *id003
|
67
69
|
- !ruby/object:Gem::Dependency
|
@@ -80,7 +82,7 @@ dependencies:
|
|
80
82
|
version: 0.9.8
|
81
83
|
type: :development
|
82
84
|
version_requirements: *id004
|
83
|
-
description: Guard::Minitest automatically run your tests (much like autotest)
|
85
|
+
description: Guard::Minitest automatically run your tests with MiniTest framework (much like autotest)
|
84
86
|
email:
|
85
87
|
- yann.lugrin@sans-savoir.net
|
86
88
|
executables: []
|
@@ -134,6 +136,6 @@ rubyforge_project: guard-minitest
|
|
134
136
|
rubygems_version: 1.3.7
|
135
137
|
signing_key:
|
136
138
|
specification_version: 3
|
137
|
-
summary: Guard gem for
|
139
|
+
summary: Guard gem for MiniTest framework
|
138
140
|
test_files: []
|
139
141
|
|