guard-compat 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/guard/compat/plugin.rb +3 -1
- data/lib/guard/compat/test/helper.rb +3 -1
- data/lib/guard/compat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a65b7f74aeb993a61438133f439838f8a402c2a4
|
4
|
+
data.tar.gz: 5a976943c644ec4143e8dc805f0e9decb1a11314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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`):
|
data/lib/guard/compat/plugin.rb
CHANGED
@@ -7,11 +7,13 @@ module Guard
|
|
7
7
|
class Plugin
|
8
8
|
attr_reader :options
|
9
9
|
|
10
|
-
|
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
|
data/lib/guard/compat/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|