guard-phpcs 0.0.5 → 0.0.6

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.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +2 -2
  3. data/lib/guard/phpcs.rb +3 -3
  4. metadata +11 -14
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7aa1417e077d7cf1765b0d6c95590092fb8dc374
4
+ data.tar.gz: 0f69255eb29748629d010ac577894ac0b8e7d6fa
5
+ SHA512:
6
+ metadata.gz: 67630f79f86eaf827652b95bbbfb27aa439ece6d8495da36c6acf61c3fc36cc8f3983e7ffdd53608765415f8c538a1deedd1d0b4cca76c62c8dd2d4ba964655d
7
+ data.tar.gz: 9cca24919ba2bea85e806f918c9a3af1a6eea5507d1db9525c53fba38dcaa5de29dd7d9d657e88664bd2d46f13a84a31ea327ec019e49dad3be2baa97411471e
data/README.md CHANGED
@@ -22,7 +22,7 @@ And then add a basic setup to your Guardfile:
22
22
 
23
23
  * `:executable # default => "phpcs"`
24
24
 
25
- Specify alternative path to the jshint command.
25
+ Specify alternative path to the phpcs command.
26
26
 
27
27
  * `:standard # default => "Zend"`
28
28
 
@@ -36,4 +36,4 @@ The number of spaces each tab represents.
36
36
 
37
37
  guard 'phpcs', :standard => 'path/to/MyStandard' do
38
38
  watch(%r{.*\.php$})
39
- end
39
+ end
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.5'
7
+ VERSION = '0.0.6'
8
8
 
9
9
  DEFAULT_OPTIONS = {
10
10
  :standard => 'Zend',
@@ -18,7 +18,7 @@ module Guard
18
18
  super(watchers, @options)
19
19
  end
20
20
 
21
- def run_on_changes(paths)
21
+ def run_on_modifications(paths)
22
22
  paths.each do |path|
23
23
  results = `#{@options[:executable]} --report=full#{@tabs}--standard=#{@options[:standard]} #{path}`
24
24
  if $?.to_i > 0 then
@@ -28,4 +28,4 @@ module Guard
28
28
  end
29
29
  end
30
30
  end
31
- end
31
+ end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-phpcs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Patrik Henningsson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-04 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: guard
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.8.8
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.8.8
30
27
  description: Guard::PHPCS automatically runs PHP Code Sniffer when watched files are
@@ -35,7 +32,7 @@ executables: []
35
32
  extensions: []
36
33
  extra_rdoc_files: []
37
34
  files:
38
- - .gitignore
35
+ - ".gitignore"
39
36
  - Gemfile
40
37
  - LICENSE
41
38
  - README.md
@@ -45,26 +42,26 @@ files:
45
42
  - lib/guard/phpcs/templates/Guardfile
46
43
  homepage: http://github.com/pahen/guard-phpcs
47
44
  licenses: []
45
+ metadata: {}
48
46
  post_install_message:
49
47
  rdoc_options: []
50
48
  require_paths:
51
49
  - lib
52
50
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
51
  requirements:
55
- - - ! '>='
52
+ - - ">="
56
53
  - !ruby/object:Gem::Version
57
54
  version: '0'
58
55
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
56
  requirements:
61
- - - ! '>='
57
+ - - ">="
62
58
  - !ruby/object:Gem::Version
63
59
  version: '0'
64
60
  requirements: []
65
61
  rubyforge_project: guard-phpcs
66
- rubygems_version: 1.8.24
62
+ rubygems_version: 2.2.2
67
63
  signing_key:
68
- specification_version: 3
64
+ specification_version: 4
69
65
  summary: Guard gem for running PHPCS
70
66
  test_files: []
67
+ has_rdoc: