guard-phpunit 0.1.2 → 0.1.3

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.
data/README.md CHANGED
@@ -1,23 +1,28 @@
1
1
  Guard::PHPUnit [![Build Status](https://secure.travis-ci.org/Maher4Ever/guard-phpunit.png)](http://travis-ci.org/Maher4Ever/guard-phpunit) [![Dependency Status](https://gemnasium.com/Maher4Ever/guard-phpunit.png?branch=master)](https://gemnasium.com/Maher4Ever/guard-phpunit)
2
2
  ==============
3
3
 
4
- PHPUnit guard allows to automatically & intelligently launch tests when files
5
- are modified.
4
+ Guard-phpunit allows you to automatically run [PHPUnit][6] tests when sources
5
+ are modified. It helps with integrating test-driven development (TDD) into
6
+ your development process: Just launch guard-phpunit before you start working
7
+ and it will notify you about the status of your tests!
6
8
 
7
- Tested on MRI Ruby (1.8.7, 1.9.2, 1.9.3), REE and Rubinius.
9
+ *Note*: Although guard-phpunit should work with any [PHP][7] version [PHPUnit][6] supports,
10
+ it has only been tested on [PHP][7] 5.3.8 and 5.4.4.
8
11
 
9
12
  Install
10
13
  -------
11
14
 
12
- Please be sure to have [Ruby][1] running on your machine.
13
- The latest versions of Ruby come with a packages-manger called Gem. Gem can be used to
14
- install various packages, including PHPUnit guard.
15
+ Please be sure to have [PHP][7], [PHPUnit][6] and [Ruby][1] installed on your machine before
16
+ you proceed with the installation.
15
17
 
16
- Before you continue, also make sure you have the [Guard][2] gem installed
18
+ The latest versions of [Ruby][1] come with a packages-manager called `gem`. `gem` can be used to
19
+ install various packages, including guard-phpunit.
17
20
 
18
- To install the PHPUnit gem, run the following command in the terminal:
21
+ To install guard-phpunit, run the following command in the terminal:
19
22
 
20
- gem install guard-phpunit
23
+ ```shell
24
+ $ gem install guard-phpunit
25
+ ```
21
26
 
22
27
  Usage
23
28
  -----
@@ -27,11 +32,11 @@ Please read the [Guard usage documentation][3].
27
32
  Guardfile
28
33
  ---------
29
34
 
30
- Guard::PHPUnit can be used with any kind of PHP projects that uses PHPUnit as
35
+ Guard-phpunit can be used with any kind of [PHP][7] projects that uses PHPUnit as
31
36
  its testing framwork. Please read the [Guard documentation][3] for more information
32
37
  about the Guardfile DSL.
33
38
 
34
- By default, Guard::PHPUnit will use the current working directory (pwd) to
39
+ By default, guard-phpunit will use the current working directory (pwd) to
35
40
  search for tests and run them on start (if you enabled the `:all_on_start` option).
36
41
 
37
42
  ### Example PHP project
@@ -94,7 +99,8 @@ Author
94
99
  [Maher Sallam](https://github.com/Maher4Ever)
95
100
 
96
101
  [1]:http://ruby-lang.org
97
- [2]:https://github.com/guard/guard
98
102
  [3]:https://github.com/guard/guard#readme
99
103
  [4]:http://www.phpunit.de/manual/current/en/
100
104
  [5]:https://github.com/sebastianbergmann/php-object-freezer/
105
+ [6]:http://www.phpunit.de
106
+ [7]:http://php.net
@@ -68,7 +68,7 @@ module Guard
68
68
  # @param [Array<String>] paths to the changed tests
69
69
  # @raise (see #start)
70
70
  #
71
- def run_on_change(paths)
71
+ def run_on_changes(paths)
72
72
  paths = Inspector.clean(paths + @failed_paths)
73
73
  success = Runner.run(paths, options)
74
74
 
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  # Guard::PHPUnitVersion is used in the gem specification.
3
3
  module PHPUnitVersion
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-phpunit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,74 +9,104 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-26 00:00:00.000000000 Z
12
+ date: 2012-06-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &11693900 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: '1.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *11693900
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '1.1'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: bundler
27
- requirement: &11693360 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
- - - ~>
35
+ - - ! '>='
31
36
  - !ruby/object:Gem::Version
32
- version: 1.0.21
37
+ version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *11693360
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rspec
38
- requirement: &11692740 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
- - - ~>
51
+ - - ! '>='
42
52
  - !ruby/object:Gem::Version
43
- version: 2.8.0
53
+ version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *11692740
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: guard-rspec
49
- requirement: &11691660 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
- - - ~>
67
+ - - ! '>='
53
68
  - !ruby/object:Gem::Version
54
- version: 0.6.0
69
+ version: '0'
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *11691660
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: yard
60
- requirement: &11690920 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
- - - ~>
83
+ - - ! '>='
64
84
  - !ruby/object:Gem::Version
65
- version: 0.7.4
85
+ version: '0'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *11690920
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: redcarpet
71
- requirement: &11690080 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
- - - ~>
99
+ - - ! '>='
75
100
  - !ruby/object:Gem::Version
76
- version: 2.1.0
101
+ version: '0'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *11690080
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  description: Guard::PHPUnit automatically run your unit-tests written with the PHPUnit
81
111
  testing framework.
82
112
  email:
@@ -107,6 +137,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
137
  - - ! '>='
108
138
  - !ruby/object:Gem::Version
109
139
  version: '0'
140
+ segments:
141
+ - 0
142
+ hash: -843194673
110
143
  required_rubygems_version: !ruby/object:Gem::Requirement
111
144
  none: false
112
145
  requirements:
@@ -115,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
148
  version: 1.3.6
116
149
  requirements: []
117
150
  rubyforge_project: guard-phpunit
118
- rubygems_version: 1.8.11
151
+ rubygems_version: 1.8.24
119
152
  signing_key:
120
153
  specification_version: 3
121
154
  summary: Guard gem for PHPUnit