guard-test 2.0.5 → 2.0.6

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: da5c724dcf01d1b47ac003f87b264fec93fc46ae
4
- data.tar.gz: 50221012a73e26596447f417ecbca38309b698f1
3
+ metadata.gz: 9ee6274ab427ac89be87d7e4ac1c032c49fb8d6f
4
+ data.tar.gz: da63a94de78940c70867ab64c8ff96bc85978989
5
5
  SHA512:
6
- metadata.gz: 4b995fbbdf438776950270fb07821e10cf41489304a1f5953051772454d556b2822cd9ce95a49060ebe7650fbe6735e6b92be2f3902394622387c55c60e0abdf
7
- data.tar.gz: e83411bc74faee607e4be3f79761577c7757c3c913e46c03a42092ab23d44036a7cdb276c61a6cebc9ceb1013d8662c4f2885cb6e34678f40c412bc75b7d722e
6
+ metadata.gz: 65bd7b166b2a373fed1cf6f007317ecbc121d791d89382f565927d168474300b9c630ddd6b240138205a2b2cdf3c28b471152aaebd6f7ed3faecd226967f3d97
7
+ data.tar.gz: 72d16dd4772206a5da9eb63f944d2f8975500a419fc0b30253a0e407350fa61ca0a959f11e72da7ed3eec773354939226099e81da6f0457802378ef29e044ad6
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012 Rémy Coutable
1
+ Copyright (c) 2010-2015 Rémy Coutable
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Guard::Test
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/guard-test.png)](http://badge.fury.io/rb/guard-test) [![Build Status](https://travis-ci.org/guard/guard-test.png?branch=master)](https://travis-ci.org/guard/guard-test) [![Dependency Status](https://gemnasium.com/guard/guard-test.png)](https://gemnasium.com/guard/guard-test) [![Code Climate](https://codeclimate.com/github/guard/guard-test.png)](https://codeclimate.com/github/guard/guard-test) [![Coverage Status](https://coveralls.io/repos/guard/guard-test/badge.png?branch=master)](https://coveralls.io/r/guard/guard-test)
3
+ [![Gem Version](https://img.shields.io/gem/v/guard-test.svg?style=flat)](https://rubygems.org/gems/guard-test) [![Build Status](https://travis-ci.org/guard/guard-test.svg?branch=master)](https://travis-ci.org/guard/guard-test) [![Dependency Status](https://gemnasium.com/guard/guard-test.svg)](https://gemnasium.com/guard/guard-test) [![Code Climate](https://codeclimate.com/github/guard/guard-test/badges/gpa.svg)](https://codeclimate.com/github/guard/guard-test) [![Test Coverage](https://codeclimate.com/github/guard/guard-test/badges/coverage.svg)](https://codeclimate.com/github/guard/guard-test)
4
4
 
5
5
  Guard::Test allows to automatically & intelligently launch tests when files are modified or created.
6
6
 
7
7
  * Compatible with Test::Unit 2.
8
- * Tested against Ruby 1.9.3, 2.0.0, Rubinius & JRuby (1.9 mode only).
8
+ * Tested against Ruby 1.9.3, 2.0.0, 2.1.0, 2.2.0, Rubinius & JRuby (1.9 mode only).
9
9
 
10
10
  ## Install
11
11
 
data/lib/guard/test.rb CHANGED
@@ -1,5 +1,4 @@
1
- require 'guard'
2
- require 'guard/plugin'
1
+ require 'guard/compat/plugin'
3
2
  require 'guard/test/version'
4
3
  require 'test/unit/version'
5
4
 
@@ -24,7 +23,7 @@ module Guard
24
23
  end
25
24
 
26
25
  def start
27
- ::Guard::UI.info("Guard::Test #{TestVersion::VERSION} is running, " +
26
+ Compat::UI.info("Guard::Test #{TestVersion::VERSION} is running, " +
28
27
  "with Test::Unit #{::Test::Unit::VERSION}!", reset: true)
29
28
  run_all if @options[:all_on_start]
30
29
  end
@@ -1,5 +1,7 @@
1
+ require 'guard/compat/plugin'
2
+
1
3
  module Guard
2
- class Test
4
+ class Test < Plugin
3
5
  module Inspector
4
6
 
5
7
  class << self
@@ -1,7 +1,4 @@
1
- require 'rubygems'
2
- require 'guard'
3
- require 'guard/plugin'
4
- require 'guard/notifier'
1
+ require 'guard/compat/plugin'
5
2
 
6
3
  module Guard
7
4
  class Test < Plugin
@@ -9,7 +6,7 @@ module Guard
9
6
 
10
7
  class << self
11
8
  def notify(result, elapsed_time)
12
- ::Guard::Notifier.notify(
9
+ Compat::UI.notify(
13
10
  summary(result) + "\n\n" + duration(elapsed_time),
14
11
  title: "Test::Unit results",
15
12
  image: result.passed? ? :success : :failed
@@ -1,5 +1,7 @@
1
+ require 'guard/compat/plugin'
2
+
1
3
  module Guard
2
- class Test
4
+ class Test < Plugin
3
5
  class Runner
4
6
 
5
7
  attr_reader :options
@@ -20,7 +22,7 @@ module Guard
20
22
  def run(paths, opts = {})
21
23
  return true if paths.empty?
22
24
 
23
- ::Guard::UI.info(opts[:message] || "Running: #{paths.join(' ')}", reset: true)
25
+ Compat::UI.info(opts[:message] || "Running: #{paths.join(' ')}", reset: true)
24
26
 
25
27
  system(test_unit_command(paths))
26
28
  end
@@ -43,7 +45,7 @@ module Guard
43
45
  require 'spork-testunit'
44
46
  rescue LoadError
45
47
  end
46
- ::Guard::UI.info('Using testdrb to run the tests') if @drb
48
+ Compat::UI.info('Using testdrb to run the tests') if @drb
47
49
  end
48
50
  @drb
49
51
  end
@@ -51,7 +53,7 @@ module Guard
51
53
  def zeus?
52
54
  if @zeus.nil?
53
55
  @zeus = options[:zeus]
54
- ::Guard::UI.info('Using zeus to run the tests') if @zeus
56
+ Compat::UI.info('Using zeus to run the tests') if @zeus
55
57
  end
56
58
  @zeus
57
59
  end
@@ -59,7 +61,7 @@ module Guard
59
61
  def spring?
60
62
  if @spring.nil?
61
63
  @spring = options[:spring]
62
- ::Guard::UI.info('Using spring to run the tests') if @spring
64
+ Compat::UI.info('Using spring to run the tests') if @spring
63
65
  end
64
66
  @spring
65
67
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module TestVersion
3
- VERSION = '2.0.5'
3
+ VERSION = '2.0.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,71 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Coutable
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: guard
14
+ name: test-unit
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: test-unit
28
+ name: guard-compat
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.2'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.2'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
45
+ - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: '0'
47
+ version: '1.6'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - ">="
52
+ - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: '0'
54
+ version: '1.6'
69
55
  description: Guard::Test automatically run your tests on file modification.
70
56
  email: remy@rymai.me
71
57
  executables: []