guard-minitest 2.3.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e05d5e5ff48f8b86064e5377a2f22fbf467602be
4
- data.tar.gz: 05b6767e718e86eb23ffb44ca4e6c4f3dc0ab261
3
+ metadata.gz: 78315ae5f1cb56304281556410746c097f10890a
4
+ data.tar.gz: bb062a5152fab2df24582e05e0ca17300a720314
5
5
  SHA512:
6
- metadata.gz: 2e71ff755193ffd8d839625715f00babef2b7f73481ac00947e1ca97b496ba4876ecc396c18abe4f54395b57468ec2e161b2eb6b7d3d4f7a1bc1911becc477ea
7
- data.tar.gz: 47e010f0e0c60718ea7c6c59f1c71ccd60397276e51af8a14406e71bfc721cd019f855576b0d4f22a517f3e604680ff279a97c4039a486ee5da92efa43141052
6
+ metadata.gz: 1ab7a7bb14c2fa1c1dc48b4d3dc88bb78628b81271c9116f8edc2acb8c80a72abf9b7374eee8d5b46a323154037f9fb979d07078d88902ddc6b6d8e2b2a81370
7
+ data.tar.gz: d14dbf59431eaae7896d1de492d95aee78d76f1fbb2313d49eb2032c2a10971953ad12b23c351510b981ed84d8f94f3c56418e29efe2c5e838ec768bd4c44337
@@ -1,5 +1,4 @@
1
- require 'guard'
2
- require 'guard/plugin'
1
+ require 'guard/compat/plugin'
3
2
 
4
3
  module Guard
5
4
  class Minitest < Plugin
@@ -19,7 +18,7 @@ module Guard
19
18
  end
20
19
 
21
20
  def start
22
- UI.info "Guard::Minitest #{MinitestVersion::VERSION} is running, with Minitest::Unit #{Utils.minitest_version}!"
21
+ Compat::UI.info "Guard::Minitest #{MinitestVersion::VERSION} is running, with Minitest::Unit #{Utils.minitest_version}!"
23
22
  run_all if @options[:all_on_start]
24
23
  end
25
24
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
- class Minitest
2
+ class Minitest < Plugin
3
3
  class Inspector
4
4
 
5
5
  attr_reader :test_folders, :test_file_patterns
@@ -1,7 +1,5 @@
1
- require 'guard/notifier'
2
-
3
1
  module Guard
4
- class Minitest
2
+ class Minitest < Plugin
5
3
  class Notifier
6
4
 
7
5
  def self.guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
@@ -31,7 +29,7 @@ module Guard
31
29
  message = guard_message(test_count, assertion_count, failure_count, error_count, skip_count, duration)
32
30
  image = guard_image(failure_count + error_count, skip_count)
33
31
 
34
- ::Guard::Notifier.notify(message, title: 'Minitest results', image: image)
32
+ Compat::UI.notify(message, title: 'Minitest results', image: image)
35
33
  end
36
34
 
37
35
  end
@@ -2,7 +2,7 @@ require 'minitest'
2
2
  require 'guard/minitest/notifier'
3
3
 
4
4
  module Guard
5
- class Minitest
5
+ class Minitest < Plugin
6
6
  class Reporter < ::Minitest::StatisticsReporter
7
7
 
8
8
  def report
@@ -2,7 +2,7 @@ require 'minitest'
2
2
  require 'guard/minitest/notifier'
3
3
 
4
4
  module Guard
5
- class Minitest
5
+ class Minitest < Plugin
6
6
  class Reporter < ::Minitest::Reporter
7
7
 
8
8
  def report
@@ -1,7 +1,7 @@
1
1
  require 'guard/minitest/inspector'
2
2
 
3
3
  module Guard
4
- class Minitest
4
+ class Minitest < Plugin
5
5
  class Runner
6
6
  attr_accessor :inspector
7
7
 
@@ -35,14 +35,14 @@ module Guard
35
35
  return unless options[:all] || !paths.empty?
36
36
 
37
37
  message = "Running: #{options[:all] ? 'all tests' : paths.join(' ')}"
38
- UI.info message, reset: true
38
+ Compat::UI.info message, reset: true
39
39
 
40
40
  status = _run_command(paths, options[:all])
41
41
 
42
42
  # When using zeus or spring, the Guard::Minitest::Reporter can't be used because the minitests run in another
43
43
  # process, but we can use the exit status of the client process to distinguish between :success and :failed.
44
44
  if zeus? || spring?
45
- ::Guard::Notifier.notify(message, title: 'Minitest results', image: status ? :success : :failed)
45
+ Compat::UI.notify(message, title: 'Minitest results', image: status ? :success : :failed)
46
46
  end
47
47
 
48
48
  if @options[:all_after_pass] && status && !options[:all]
@@ -242,7 +242,7 @@ module Guard
242
242
  final_value << " #{value}" unless [TrueClass, FalseClass].include?(value.class)
243
243
  cli_options << final_value
244
244
 
245
- UI.info %{DEPRECATION WARNING: The :#{key} option is deprecated. Pass standard command line argument "--#{key}" to Minitest with the :cli option.}
245
+ Compat::UI.info %{DEPRECATION WARNING: The :#{key} option is deprecated. Pass standard command line argument "--#{key}" to Minitest with the :cli option.}
246
246
  end
247
247
  end
248
248
  end
@@ -1,7 +1,7 @@
1
1
  require 'rubygems/requirement'
2
2
 
3
3
  module Guard
4
- class Minitest
4
+ class Minitest < Plugin
5
5
  class Utils
6
6
 
7
7
  def self.minitest_version
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  class MinitestVersion
3
3
 
4
- VERSION = '2.3.2'
4
+ VERSION = '2.4.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: 2.3.2
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yann Lugrin
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-24 00:00:00.000000000 Z
12
+ date: 2015-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: guard
15
+ name: guard-compat
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.0'
20
+ version: '1.2'
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: '2.0'
27
+ version: '1.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: minitest
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.4.2
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Guard plugin for the Minitest framework