guard-minitest 1.3.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc79a218b7a8c958ec5a7de511cfc2f37eefc70a
4
- data.tar.gz: d60df1ced530cfcb37958d3adf34eff368817cc4
3
+ metadata.gz: 8308aeddb063ce0a12c9d7aa4b7990de887948d9
4
+ data.tar.gz: a00dfa00127aaf7b544357223ee1a927c3ce3e1d
5
5
  SHA512:
6
- metadata.gz: e31bc293558b112c4a104d8688e5b9e6eb6ca3f796039cc6a59b15e990a4ec596450424b1c978b7b0f36e5f75612987d249e5cf550211cd2fc4a360837611257
7
- data.tar.gz: 7fe6acf36fa12fb7a9be880527e5230c93939c005b67f991147bf1b620969af43453b4251f50ab7980c7c51ab4333d29055265184bd077e947d62555397fc78a
6
+ metadata.gz: 95c459ca998633f44f327f1ff54e7767fcc1554028b87477b09a560b146dfc06ec4860e4c0060a9bbd9fe2be872884ae485ed512b7c4a8a88336835387b7ed8f
7
+ data.tar.gz: d4598891b85838908be7a885e4ccc6a42a57b887a35614d578b3891e5c6a3c5aff38ceb685e482ab54d28dd0f86063a40e177c10f69df07fa538f3044a741cbf
data/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
  Guard::Minitest allows to automatically & intelligently launch tests with the
5
5
  [minitest framework](https://github.com/seattlerb/minitest) when files are modified.
6
6
 
7
- * Compatible with minitest >= 2.1 (optimal support for 5.x).
8
- * Tested against Ruby 1.8.7, 1.9.3, 2.0.0, JRuby (1.8 mode & 1.9 mode) & Rubinius (1.8 mode & 1.9 mode).
7
+ * Compatible with minitest >= 3.0 (optimal support for 5.x).
8
+ * Tested against Ruby 1.9.3, 2.0.0, JRuby and Rubinius (1.9 mode).
9
9
 
10
10
  ## Install
11
11
 
@@ -91,16 +91,16 @@ end
91
91
  ### List of available options
92
92
 
93
93
  ```ruby
94
- :all_on_start => false # run all tests in group on startup, default: true
95
- :cli => '--test' # pass arbitrary Minitest CLI arguments, default: ''
96
- :test_folders => ['tests'] # specify an array of paths that contain test files, default: %w[test spec]
97
- :include => ['lib'] # specify an array of include paths to the command that runs the tests
98
- :test_file_patterns => true # specify an array of patterns that test files must match in order to be run, default: %w[*_test.rb test_*.rb *_spec.rb]
99
- :spring => true # enable spring support, default: false
100
- :zeus => true # enable zeus support; default: false
101
- :drb => true # enable DRb support, default: false
102
- :bundler => false # don't use "bundle exec" to run the minitest command, default: true
103
- :rubygems => true # require rubygems when run the minitest command (only if bundler is disabled), default: false
94
+ all_on_start: false # run all tests in group on startup, default: true
95
+ cli: '--test' # pass arbitrary Minitest CLI arguments, default: ''
96
+ test_folders: ['tests'] # specify an array of paths that contain test files, default: %w[test spec]
97
+ include: ['lib'] # specify an array of include paths to the command that runs the tests
98
+ test_file_patterns: %w[test_*.rb] # specify an array of patterns that test files must match in order to be run, default: %w[*_test.rb test_*.rb *_spec.rb]
99
+ spring: true # enable spring support, default: false
100
+ zeus: true # enable zeus support; default: false
101
+ drb: true # enable DRb support, default: false
102
+ bundler: false # don't use "bundle exec" to run the minitest command, default: true
103
+ rubygems: true # require rubygems when run the minitest command (only if bundler is disabled), default: false
104
104
  ```
105
105
 
106
106
  ### Options usage examples
@@ -108,7 +108,7 @@ end
108
108
  You can change the default location of test files using the `:test_folders` option and pattern of test files using the `:test_file_patterns` option:
109
109
 
110
110
  ```ruby
111
- guard :minitest, :test_folders => 'test/unit', :test_file_patterns => '*_test.rb' do
111
+ guard :minitest, test_folders: 'test/unit', test_file_patterns: '*_test.rb' do
112
112
  # ...
113
113
  end
114
114
  ```
@@ -116,7 +116,7 @@ end
116
116
  You can pass any of the standard MiniTest CLI options using the `:cli` option:
117
117
 
118
118
  ```ruby
119
- guard :minitest, :cli => '--seed 123456 --verbose' do
119
+ guard :minitest, cli: '--seed 123456 --verbose' do
120
120
  # ...
121
121
  end
122
122
  ```
@@ -124,7 +124,7 @@ end
124
124
  [Spring](https://github.com/jonleighton/spring) is supported (Ruby 1.9.X / Rails 3.2+ only), but you must enable it:
125
125
 
126
126
  ```ruby
127
- guard :minitest, :spring => true do
127
+ guard :minitest, spring: true do
128
128
  # ...
129
129
  end
130
130
  ```
@@ -143,7 +143,7 @@ called ``test/test_helper.rb`` it will match ``test_*.rb``. In this case you can
143
143
  either change the test_file_patterns or rename the test helper.
144
144
 
145
145
  ```ruby
146
- guard :minitest, :zeus => true do
146
+ guard :minitest, zeus: true do
147
147
  # ...
148
148
  end
149
149
  ```
@@ -151,7 +151,7 @@ end
151
151
  [Spork / spork-testunit](https://github.com/sporkrb/spork-testunit) is supported, but you must enable it:
152
152
 
153
153
  ```ruby
154
- guard :minitest, :drb => true do
154
+ guard :minitest, drb: true do
155
155
  # ...
156
156
  end
157
157
  ```
@@ -181,4 +181,4 @@ For questions please join us in our [Google group](http://groups.google.com/grou
181
181
 
182
182
  ## Contributors
183
183
 
184
- [https://github.com/guard/guard-minitest/contributors](https://github.com/guard/guard-minitest/contributors)
184
+ [https://github.com/guard/guard-minitest/graphs/contributors](https://github.com/guard/guard-minitest/graphs/contributors)
@@ -1,18 +1,18 @@
1
1
  # encoding: utf-8
2
2
  require 'guard'
3
- require 'guard/guard'
3
+ require 'guard/plugin'
4
4
 
5
5
  module Guard
6
- class Minitest < Guard
6
+ class Minitest < Plugin
7
7
 
8
8
  require 'guard/minitest/inspector'
9
9
  require 'guard/minitest/runner'
10
10
  require 'guard/minitest/version'
11
11
 
12
- def initialize(watchers = [], options = {})
12
+ def initialize(options = {})
13
13
  super
14
14
  @options = {
15
- :all_on_start => true
15
+ all_on_start: true
16
16
  }.merge(options)
17
17
 
18
18
  @runner = Runner.new(@options)
@@ -34,7 +34,7 @@ module Guard
34
34
 
35
35
  def run_all
36
36
  paths = @inspector.clean_all
37
- @runner.run(paths, :message => 'Running all tests')
37
+ @runner.run(paths, message: 'Running all tests')
38
38
  end
39
39
 
40
40
  def run_on_changes(paths = [])
@@ -32,7 +32,7 @@ module Guard
32
32
  message = guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
33
33
  image = guard_image(failure_count + error_count, skip_count)
34
34
 
35
- ::Guard::Notifier.notify(message, :title => 'Minitest results', :image => image)
35
+ ::Guard::Notifier.notify(message, title: 'Minitest results', image: image)
36
36
  end
37
37
 
38
38
  end
@@ -11,15 +11,15 @@ module Guard
11
11
 
12
12
  def initialize(options = {})
13
13
  @options = {
14
- :bundler => File.exist?("#{Dir.pwd}/Gemfile"),
15
- :rubygems => false,
16
- :drb => false,
17
- :zeus => false,
18
- :spring => false,
19
- :include => [],
20
- :test_folders => %w[test spec],
21
- :test_file_patterns => %w[*_test.rb test_*.rb *_spec.rb],
22
- :cli => nil
14
+ bundler: File.exist?("#{Dir.pwd}/Gemfile"),
15
+ rubygems: false,
16
+ drb: false,
17
+ zeus: false,
18
+ spring: false,
19
+ include: [],
20
+ test_folders: %w[test spec],
21
+ test_file_patterns: %w[*_test.rb test_*.rb *_spec.rb],
22
+ cli: nil
23
23
  }.merge(options)
24
24
 
25
25
  parse_deprecated_options
@@ -31,7 +31,7 @@ module Guard
31
31
 
32
32
  def run(paths, options = {})
33
33
  message = options[:message] || "Running: #{paths.join(' ')}"
34
- UI.info message, :reset => true
34
+ UI.info message, reset: true
35
35
 
36
36
  status = if bundler?
37
37
  system(minitest_command(paths))
@@ -44,7 +44,7 @@ module Guard
44
44
  # When using zeus or spring, the Guard::Minitest::Reporter can't be used because the minitests run in another
45
45
  # process, but we can use the exit status of the client process to distinguish between :success and :failed.
46
46
  if zeus? || spring?
47
- ::Guard::Notifier.notify(message, :title => 'Minitest results', :image => status ? :success : :failed)
47
+ ::Guard::Notifier.notify(message, title: 'Minitest results', image: status ? :success : :failed)
48
48
  end
49
49
 
50
50
  status
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '1.3.1'
4
+ VERSION = '2.0.0'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Lugrin
@@ -9,36 +9,36 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-23 00:00:00.000000000 Z
12
+ date: 2013-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '1.8'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '1.8'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: minitest
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '>='
33
33
  - !ruby/object:Gem::Version
34
- version: '2.1'
34
+ version: '3.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '>='
40
40
  - !ruby/object:Gem::Version
41
- version: '2.1'
41
+ version: '3.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ files:
74
74
  - CHANGELOG.md
75
75
  - LICENSE
76
76
  - README.md
77
- homepage: https://github.com/guard/guard-minitest
77
+ homepage: https://rubygems.org/gems/guard-minitest
78
78
  licenses:
79
79
  - MIT
80
80
  metadata: {}
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '>='
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 1.9.2
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - '>='
@@ -97,5 +97,5 @@ rubyforge_project:
97
97
  rubygems_version: 2.0.7
98
98
  signing_key:
99
99
  specification_version: 4
100
- summary: Guard gem for the Minitest framework
100
+ summary: Guard plugin for the Minitest framework
101
101
  test_files: []