rb-fsevent 0.10.2 → 0.10.3

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: 61d076a09964b861d80f4724752654bd1e03d7b1
4
- data.tar.gz: 549a175bc931f6e247d09e87bc4a0e805a8715b8
3
+ metadata.gz: 75179745011638e7c72f22fd0176a2d7d1e05dac
4
+ data.tar.gz: d41968eb7b74fc36e874c3d19e8b8b684d5cfc66
5
5
  SHA512:
6
- metadata.gz: e124acb15e091aae6d754e00dde77dde57a267c3c209cab827735f527abce5800d4b16066adaeacdbadc4fa8311b1622bda29bf300de8a1a4c3c4d1033e7f1d4
7
- data.tar.gz: d27912bb5ea1822547af03aeabb819a6aabf39b1cae25289e0132ac768d68d7751f1895ccd97bdbf9026c2c1fe787d8d0612708a725fcef6c9882fa4a91e1082
6
+ metadata.gz: cc6d47ae4861f428d889a2ee76b9d2baa8e80ecc5a5fcb032804d8552899f091352b15ba722ea7cf88174471bfc93f765a1f1a92b90c16dab92f102b2867fe8b
7
+ data.tar.gz: 99feafaa005aebf50d9907d5ddddd2518062d9db6d8a61e9890023be661ce8c9a68ffbaa1a2a4babe23604b004dfc11495d856d6f3dcf28a0291a2a9b14f92ca
data/README.md CHANGED
@@ -5,17 +5,18 @@
5
5
 
6
6
  Very simple & usable Mac OSX FSEvents API
7
7
 
8
- * RubyCocoa not required!
9
8
  * Signals are working (really)
10
9
  * Tested on MRI 2.4.1, RBX 3.72, JRuby 1.7.26 and 9.1.8.0
11
10
  * Tested on 10.8
12
11
 
13
12
  ## HFS+ filename corruption bug
14
13
 
15
- There is a _very_ long-standing (since 2011) OSX bug where sometimes the filename metadata for HFS+ filesystems will get corrupted, resulting in some APIs returning one case for a file, and other APIs returning another. This corruption is not currently fixed by their tools, though Apple has been made aware of the issue and are working on it (as of may 2015). The result is that sometimes, _for no visible reason to the user_, fsevents would simply not work. As of rb-fsevent 0.9.5 this issue is properly detected and an insanely hacky (but effective) workaround is used that replaces the system `realpath()` with a custom implementation that should always return the same value as the kernel reporting (thus fixing fsevents).
14
+ There is a _very_ long-standing (since 2011) OSX bug where sometimes the filename metadata for HFS+ filesystems will get corrupted, resulting in some APIs returning one case for a file, and other APIs returning another. The result is that sometimes, _for no visible reason to the user_, fsevents would simply not work. As of rb-fsevent 0.9.5 this issue is properly detected and an insanely hacky (but effective) workaround is used that replaces the system `realpath()` with a custom implementation that should almost always return the same value as the kernel reporting (thus fixing fsevents). The major flaw in the workaround is that it may return the wrong path for hard links.
16
15
 
17
16
  Please note that this doesn't repair the underlying issue on disk. Other apps and libraries using fsevents will continue to break with no warning. There may be other issues unrelated to fsevents.
18
17
 
18
+ __This bug is resolved in MacOS 10.12 and all users are strongly encouraged to upgrade.__
19
+
19
20
  ## Install
20
21
 
21
22
  gem install rb-fsevent
@@ -52,7 +52,7 @@ class FSEvent
52
52
  found_length = false
53
53
 
54
54
  while reading_length
55
- byte = @pipe.read(1)
55
+ byte = @pipe.read_nonblock(1)
56
56
  if "#{byte}" =~ /\d/
57
57
  length << byte
58
58
  found_length = true
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  class FSEvent
4
- VERSION = '0.10.2'
4
+ VERSION = '0.10.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-fsevent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.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: 2017-07-01 00:00:00.000000000 Z
12
+ date: 2018-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.11
126
+ rubygems_version: 2.6.13
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Very simple & usable FSEvents API