guard-phpmd 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/guard/phpmd.rb +2 -3
  2. metadata +4 -4
data/lib/guard/phpmd.rb CHANGED
@@ -4,7 +4,7 @@ require 'guard/guard'
4
4
  module Guard
5
5
  class PHPMD < Guard
6
6
 
7
- VERSION = '0.0.1'
7
+ VERSION = '0.0.2'
8
8
 
9
9
  DEFAULT_OPTIONS = {
10
10
  :path => '.',
@@ -17,11 +17,10 @@ module Guard
17
17
  super(watchers, @options)
18
18
  end
19
19
 
20
- def run_on_change(paths)
20
+ def run_on_changes(paths)
21
21
  @options[:rules] = File.expand_path @options[:rules]
22
22
  paths.each do |path|
23
23
  path = File.expand_path path
24
- print path
25
24
  Dir.chdir(@options[:path]) do
26
25
  results = `phpmd #{path} text #{@options[:rules]}`
27
26
  if $?.to_i > 0 then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-phpmd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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-02-20 00:00:00 Z
18
+ date: 2012-06-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: guard