guard-phpcs 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/guard-phpcs.gemspec +3 -3
- data/lib/guard/phpcs.rb +4 -5
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 476e3c1a2d30e79be473a586c950b5d30781882d
|
4
|
+
data.tar.gz: 26cfa7dcf4c81b42d3fb68e9ccd2d4423ca7aaef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bf1cbf5ffeaf0bd9f80ba91a23dbf8e0dcb263254f2ca836a4feac21d1b4052cb39820d3ee90d15ad8893829adf18fbbb3dd1cb2b48699f0a306d0946f3699
|
7
|
+
data.tar.gz: 7fb01848bfe44f22f547f0e952f0140b345dbcb39e240a2d2a500bc0926ab10e07905b0285e90e2c9bff38450d828b3b5607c933dab643e23117e9094a081b38
|
data/guard-phpcs.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = Guard::PHPCS::VERSION
|
8
8
|
s.authors = ["Patrik Henningsson"]
|
9
9
|
s.email = ["patrik.henningsson@gmail.com"]
|
10
|
-
s.homepage = "http://github.com/
|
10
|
+
s.homepage = "http://github.com/EricHogue/guard-phpcs"
|
11
11
|
s.summary = "Guard gem for running PHPCS"
|
12
12
|
s.description = "Guard::PHPCS automatically runs PHP Code Sniffer when watched files are modified."
|
13
13
|
|
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency 'guard', '
|
22
|
-
end
|
21
|
+
s.add_dependency 'guard', '~> 2.0'
|
22
|
+
end
|
data/lib/guard/phpcs.rb
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
require 'guard'
|
2
|
-
require 'guard/guard'
|
3
2
|
|
4
3
|
module Guard
|
5
|
-
class PHPCS < Guard
|
4
|
+
class PHPCS < ::Guard::Plugin
|
6
5
|
|
7
|
-
VERSION = '0.0.
|
6
|
+
VERSION = '0.0.7'
|
8
7
|
|
9
8
|
DEFAULT_OPTIONS = {
|
10
9
|
:standard => 'Zend',
|
11
10
|
:executable => 'phpcs',
|
12
11
|
}
|
13
12
|
|
14
|
-
def initialize(
|
13
|
+
def initialize(options = {})
|
15
14
|
defaults = DEFAULT_OPTIONS.clone
|
16
15
|
@options = defaults.merge(options)
|
17
16
|
@tabs = @options[:tabs]? " --tab-width=#{@options[:tabs]} " : ' '
|
18
|
-
super(
|
17
|
+
super(@options)
|
19
18
|
end
|
20
19
|
|
21
20
|
def run_on_modifications(paths)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-phpcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrik Henningsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '2.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: 0
|
26
|
+
version: '2.0'
|
27
27
|
description: Guard::PHPCS automatically runs PHP Code Sniffer when watched files are
|
28
28
|
modified.
|
29
29
|
email:
|
@@ -40,7 +40,7 @@ files:
|
|
40
40
|
- guard-phpcs.gemspec
|
41
41
|
- lib/guard/phpcs.rb
|
42
42
|
- lib/guard/phpcs/templates/Guardfile
|
43
|
-
homepage: http://github.com/
|
43
|
+
homepage: http://github.com/EricHogue/guard-phpcs
|
44
44
|
licenses: []
|
45
45
|
metadata: {}
|
46
46
|
post_install_message:
|