guard-compat 1.0.0 → 1.0.1

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: dac5757ac72c5138cbe1e418d03c0940369134f9
4
- data.tar.gz: 742bdf3df8a9dad0ff0ba6e625aa2357b0a000c8
3
+ metadata.gz: a65b7f74aeb993a61438133f439838f8a402c2a4
4
+ data.tar.gz: 5a976943c644ec4143e8dc805f0e9decb1a11314
5
5
  SHA512:
6
- metadata.gz: e25d27e907b888ee18a59d227b96ad7f5a728fcaf0370e995b8567d101171a0946e038093cc5c918198be3f8e2e16912b10cb5c79cc5e3dd876943057ceecfdc
7
- data.tar.gz: d2082d551d671421e7f30e60017f86e6f9d842263b7bbc65731109dece82d101ca5e8fbed56753f669a06be3cc313aaf714e22347a07a05ec9c6c055ed23004a
6
+ metadata.gz: ac776eedeab2683c3f4556045ba81d31150c6d93964de9d186706438ed0658360e6327c30b51803a8e53004259da9d2ad92a101ae743103153f35d1ba7ef3fc3
7
+ data.tar.gz: a8f845efa944e10b6344f079b23bcc8e13a1b020672da0ca65877ba38bb545fb584d04bc1d91ea94e1990d37623fc3a67a47c47fbb48540e5817549840de0777
data/README.md CHANGED
@@ -7,7 +7,7 @@ Currently, provides only a test helper for testing custom Guard plugins.
7
7
  In your gemspec:
8
8
 
9
9
  ```ruby
10
- s.add_dependency('guard-compat', '~> 0.3')
10
+ s.add_dependency('guard-compat', '~> 1.0')
11
11
  ```
12
12
 
13
13
  In all your plugin files (e.g. `lib/guard/myplugin.rb`):
@@ -31,7 +31,9 @@ module Guard
31
31
  fail NotImplementedError, msg
32
32
  end
33
33
 
34
- Guard::Watcher.match_files(plugin, files)
34
+ # TODO: uniq not tested
35
+ # TODO: resolve symlinks and then uniq?
36
+ Guard::Watcher.match_files(plugin, files).uniq
35
37
  end
36
38
 
37
39
  module UI
@@ -7,11 +7,13 @@ module Guard
7
7
  class Plugin
8
8
  attr_reader :options
9
9
 
10
- remove_method(:initialize)
10
+ alias_method :old_initialize, :initialize
11
11
 
12
12
  def initialize(options = {})
13
13
  @options = options
14
14
  end
15
+
16
+ remove_method(:old_initialize)
15
17
  end
16
18
 
17
19
  # Stub, but allow real Notifier to be used, because e.g. guard-minitest uses
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module Compat
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-compat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cezary Baginski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler