rb-fsevent 0.10.4 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/bin/fsevent_watch +0 -0
- data/ext/fsevent_watch/defines.h +2 -0
- data/ext/rakefile.rb +5 -0
- data/lib/otnetstring.rb +1 -1
- data/lib/rb-fsevent/fsevent.rb +3 -3
- data/lib/rb-fsevent/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c8c92376eeb34be708f73c6a29aebfef7d2fce8919e428c493208d1c3066461
|
4
|
+
data.tar.gz: 71166ebf59e98ff0326168c2ab3ba7fe7860320b5cba223756a6d62bdc94b786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '033913db01e9cc9c414e19f1322e5b8a715e0d3a98dce60e0872144e5120073ad57d35156052115759595271ae31f2df03484749215b4a8945b297fb3bc5ea6b'
|
7
|
+
data.tar.gz: da1b949464a8e0ca33a88c85688aa052569a1e70d885285a6ec646abc9dee5a9923ded1878431936a9f7bf430461c237328ebd726ac3b6c35e28ad5d21e1e125
|
data/README.md
CHANGED
@@ -138,11 +138,11 @@ fsevent.run
|
|
138
138
|
require 'rb-fsevent'
|
139
139
|
fsevent = FSEvent.new
|
140
140
|
fsevent.watch Dir.pwd do |paths, event_meta|
|
141
|
-
event_meta
|
142
|
-
puts "event ID: #{event
|
143
|
-
puts "path: #{event
|
144
|
-
puts "c flags: #{event
|
145
|
-
puts "named flags: #{event
|
141
|
+
event_meta['events'].each do |event|
|
142
|
+
puts "event ID: #{event['id']}"
|
143
|
+
puts "path: #{event['path']}"
|
144
|
+
puts "c flags: #{event['cflags']}"
|
145
|
+
puts "named flags: #{event['flags'].join(', ')}"
|
146
146
|
# named flags will include strings such as `ItemInodeMetaMod` or `OwnEvent`
|
147
147
|
end
|
148
148
|
end
|
data/bin/fsevent_watch
CHANGED
Binary file
|
data/ext/fsevent_watch/defines.h
CHANGED
data/ext/rakefile.rb
CHANGED
@@ -99,6 +99,11 @@ task :x86 do
|
|
99
99
|
$ARCHFLAGS = '-arch i386'
|
100
100
|
end
|
101
101
|
|
102
|
+
desc 'set build arch to arm64'
|
103
|
+
task :arm64 do
|
104
|
+
$ARCHFLAGS = '-arch arm64'
|
105
|
+
end
|
106
|
+
|
102
107
|
task :setup_env => [:set_build_type, :sw_vers, :get_sdk_info]
|
103
108
|
|
104
109
|
directory $obj_dir.to_s
|
data/lib/otnetstring.rb
CHANGED
@@ -28,7 +28,7 @@ module OTNetstring
|
|
28
28
|
def parse(io, encoding = 'internal', fallback_encoding = nil)
|
29
29
|
fallback_encoding = io.encoding if io.respond_to? :encoding
|
30
30
|
io = StringIO.new(io) if io.respond_to? :to_str
|
31
|
-
length, byte =
|
31
|
+
length, byte = String.new, nil
|
32
32
|
|
33
33
|
while byte.nil? || byte =~ /\d/
|
34
34
|
length << byte if byte
|
data/lib/rb-fsevent/fsevent.rb
CHANGED
@@ -44,8 +44,8 @@ class FSEvent
|
|
44
44
|
while @running && IO::select([@pipe], nil, nil, nil)
|
45
45
|
# managing the IO ourselves allows us to be careful and never pass an
|
46
46
|
# incomplete message to OTNetstring.parse()
|
47
|
-
message =
|
48
|
-
length =
|
47
|
+
message = String.new
|
48
|
+
length = String.new
|
49
49
|
byte = nil
|
50
50
|
|
51
51
|
reading_length = true
|
@@ -89,7 +89,7 @@ class FSEvent
|
|
89
89
|
Process.kill('KILL', @pipe.pid) if process_running?(@pipe.pid)
|
90
90
|
@pipe.close
|
91
91
|
end
|
92
|
-
rescue IOError
|
92
|
+
rescue IOError, Errno::EBADF
|
93
93
|
ensure
|
94
94
|
@running = false
|
95
95
|
end
|
data/lib/rb-fsevent/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-fsevent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
- Travis Tilley
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -93,7 +93,7 @@ licenses:
|
|
93
93
|
- MIT
|
94
94
|
metadata:
|
95
95
|
source_code_uri: https://github.com/thibaudgg/rb-fsevent
|
96
|
-
post_install_message:
|
96
|
+
post_install_message:
|
97
97
|
rdoc_options: []
|
98
98
|
require_paths:
|
99
99
|
- lib
|
@@ -108,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
112
|
-
signing_key:
|
111
|
+
rubygems_version: 3.3.10
|
112
|
+
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Very simple & usable FSEvents API
|
115
115
|
test_files: []
|