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.
@@ -1,9 +1,10 @@
1
1
  = Guard::Minitest
2
2
 
3
- Minitest guard allows to automatically & intelligently launch tests when files are modified.
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] ||= default_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
- self.help = ['--seed', options[:seed]]
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
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Guard
3
3
  module MinitestVersion
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
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-20 00:00:00 +02:00
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: 3
29
+ hash: 23
30
30
  segments:
31
31
  - 0
32
- version: "0"
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: 11
61
+ hash: 15
60
62
  segments:
61
63
  - 1
62
64
  - 7
63
- - 0
64
- version: 1.7.0
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 Minitest
139
+ summary: Guard gem for MiniTest framework
138
140
  test_files: []
139
141