listen 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa1e9fe156afae71a254311f40e8ebb0ba93b423
4
- data.tar.gz: 71b97337f7b82a038b2f70eefa1a2447ca180354
3
+ metadata.gz: d489e80cf9d6b15f4a42482bba84e75d4994828e
4
+ data.tar.gz: 803c713b6ce06f2a51b5c3506324f934d4d4ed69
5
5
  SHA512:
6
- metadata.gz: ac27bbd5ff267daf077eac6b2bd9212c9ad516f9dea9029e5794e88792482f0fd19d66a6d85598bed3823908c7d6ecd42f2071d085904b24969fa6e289b50f83
7
- data.tar.gz: 23f418255b02684953ef41bfa546aa3bd9038c64981b96e65bd6a92458a4bfb798305328962502e14d9a9ec61d018fec93384f58e0b2feef92a2f29457c41079
6
+ metadata.gz: 7e72f4f7c6e77871cbc17ff66b38832df74005a087197fd68ffc5bf6561bef2894fe037417d26a7ec0ca8d504eed2cbd2d518f034c64e7c47211c97d2a5059e4
7
+ data.tar.gz: 3b1d258b109e74f8addd4e657ac09c8ec359cfe9ee60070f19193f3d3d38e948b5d4cffd863c3afcc93b304bf0c1f194dc6ec2013ef189e8fa4b0936425a618e
@@ -1,3 +1,9 @@
1
+ ## 1.1.2 - May 14, 2013
2
+
3
+ ### Bug fix
4
+
5
+ - [#115][] Fix for directory containing non-ascii chars. ([@luikore][])
6
+
1
7
  ## 1.1.1 - May 14, 2013
2
8
 
3
9
  ### Bug fix
@@ -275,6 +281,7 @@
275
281
  [#110]: https://github.com/guard/listen/issues/110
276
282
  [#112]: https://github.com/guard/listen/issues/112
277
283
  [#113]: https://github.com/guard/listen/issues/113
284
+ [#115]: https://github.com/guard/listen/issues/115
278
285
  [@Maher4Ever]: https://github.com/Maher4Ever
279
286
  [@ahoward]: https://github.com/ahoward
280
287
  [@akerbos]: https://github.com/akerbos
@@ -284,6 +291,7 @@
284
291
  [@dkubb]: https://github.com/dkubb
285
292
  [@ebroder]: https://github.com/ebroder
286
293
  [@fny]: https://github.com/fny
294
+ [@luikore]: https://github.com/luikore
287
295
  [@markiz]: https://github.com/markiz
288
296
  [@martikaljuve]: https://github.com/martikaljuve
289
297
  [@mat813]: https://github.com/mat813
@@ -190,10 +190,9 @@ module Listen
190
190
  # @return [String] the relative path
191
191
  #
192
192
  def relative_to_base(path)
193
- return nil unless path[directory]
194
-
195
193
  path = path.force_encoding("BINARY") if path.respond_to?(:force_encoding)
196
- path.sub(%r{^#{Regexp.quote(directory)}#{File::SEPARATOR}?}, '')
194
+ relative_path = Pathname.new(path).relative_path_from(Pathname.new directory).to_s
195
+ relative_path unless relative_path.start_with?('..')
197
196
  end
198
197
 
199
198
  private
@@ -1,3 +1,3 @@
1
1
  module Listen
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.1
4
+ version: 1.1.2
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-14 00:00:00.000000000 Z
12
+ date: 2013-05-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rb-fsevent