guard-phpcs 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7aa1417e077d7cf1765b0d6c95590092fb8dc374
4
- data.tar.gz: 0f69255eb29748629d010ac577894ac0b8e7d6fa
3
+ metadata.gz: 476e3c1a2d30e79be473a586c950b5d30781882d
4
+ data.tar.gz: 26cfa7dcf4c81b42d3fb68e9ccd2d4423ca7aaef
5
5
  SHA512:
6
- metadata.gz: 67630f79f86eaf827652b95bbbfb27aa439ece6d8495da36c6acf61c3fc36cc8f3983e7ffdd53608765415f8c538a1deedd1d0b4cca76c62c8dd2d4ba964655d
7
- data.tar.gz: 9cca24919ba2bea85e806f918c9a3af1a6eea5507d1db9525c53fba38dcaa5de29dd7d9d657e88664bd2d46f13a84a31ea327ec019e49dad3be2baa97411471e
6
+ metadata.gz: a7bf1cbf5ffeaf0bd9f80ba91a23dbf8e0dcb263254f2ca836a4feac21d1b4052cb39820d3ee90d15ad8893829adf18fbbb3dd1cb2b48699f0a306d0946f3699
7
+ data.tar.gz: 7fb01848bfe44f22f547f0e952f0140b345dbcb39e240a2d2a500bc0926ab10e07905b0285e90e2c9bff38450d828b3b5607c933dab643e23117e9094a081b38
@@ -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/pahen/guard-phpcs"
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', '>= 0.8.8'
22
- end
21
+ s.add_dependency 'guard', '~> 2.0'
22
+ end
@@ -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'
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(watchers = [], options = {})
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(watchers, @options)
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.6
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-04-21 00:00:00.000000000 Z
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.8.8
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.8.8
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/pahen/guard-phpcs
43
+ homepage: http://github.com/EricHogue/guard-phpcs
44
44
  licenses: []
45
45
  metadata: {}
46
46
  post_install_message: