guard-phpcs 0.0.1 → 0.0.2
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/lib/guard/phpcs.rb +2 -2
- metadata +4 -4
data/lib/guard/phpcs.rb
CHANGED
@@ -4,7 +4,7 @@ require 'guard/guard'
|
|
4
4
|
module Guard
|
5
5
|
class PHPCS < Guard
|
6
6
|
|
7
|
-
VERSION = '0.0.
|
7
|
+
VERSION = '0.0.2'
|
8
8
|
|
9
9
|
DEFAULT_OPTIONS = {
|
10
10
|
:standard => 'Zend',
|
@@ -17,7 +17,7 @@ module Guard
|
|
17
17
|
super(watchers, @options)
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def run_on_changes(paths)
|
21
21
|
paths.each do |path|
|
22
22
|
results = `phpcs --report=full --tab-width=#{@options[:tabs]} --standard=#{@options[:standard]} #{path}`
|
23
23
|
if $?.to_i > 0 then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-phpcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Patrik Henningsson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-06-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: guard
|