listen 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/listen/directory_record.rb +9 -3
- data/lib/listen/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: b77b3524696878ca9c7e797552c9830e0173408c
|
4
|
+
data.tar.gz: f8d88a5651b054f14feff8f810c2182c057c6d80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5356a5660f3dafacf6c7f7c229339835923615c237a922368302bfe8546261ba987f8b6157994549a6e629f5cdd42564e282f6dbc13a8f0c65573d19c29f9acf
|
7
|
+
data.tar.gz: 153897ff1f97a4c5bb92863f8c26d90d24071ba4300f0dd8864230898d26ca5d11c2e57e1698d5c665b2fcde1967017e8b8c6f49699d4fd76ec68f179552b2da
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.1.3 - May 21, 2013
|
2
|
+
|
3
|
+
### Bug fix
|
4
|
+
|
5
|
+
- [#117][] Fix jruby error on Pathname#relative_path_from. ([@luikore][])
|
6
|
+
|
1
7
|
## 1.1.2 - May 14, 2013
|
2
8
|
|
3
9
|
### Bug fix
|
@@ -282,6 +288,7 @@
|
|
282
288
|
[#112]: https://github.com/guard/listen/issues/112
|
283
289
|
[#113]: https://github.com/guard/listen/issues/113
|
284
290
|
[#115]: https://github.com/guard/listen/issues/115
|
291
|
+
[#117]: https://github.com/guard/listen/issues/117
|
285
292
|
[@Maher4Ever]: https://github.com/Maher4Ever
|
286
293
|
[@ahoward]: https://github.com/ahoward
|
287
294
|
[@akerbos]: https://github.com/akerbos
|
@@ -190,9 +190,15 @@ module Listen
|
|
190
190
|
# @return [String] the relative path
|
191
191
|
#
|
192
192
|
def relative_to_base(path)
|
193
|
-
path = path.
|
194
|
-
|
195
|
-
|
193
|
+
path = path.dup
|
194
|
+
regexp = "\\A#{Regexp.quote directory}(#{File::SEPARATOR}|\\z)"
|
195
|
+
if path.respond_to?(:force_encoding)
|
196
|
+
path.force_encoding("BINARY")
|
197
|
+
regexp.force_encoding("BINARY")
|
198
|
+
end
|
199
|
+
if path.sub!(Regexp.new(regexp), '')
|
200
|
+
path
|
201
|
+
end
|
196
202
|
end
|
197
203
|
|
198
204
|
private
|
data/lib/listen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rb-fsevent
|