rb-fsevent 0.10.4 → 0.11.1

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
  SHA256:
3
- metadata.gz: 4d7067b389ccfb58280a41a149937655f2e0d42ccca0a554a257b1ae7ff523d4
4
- data.tar.gz: 6e1751a351912496b8c471bc9215e2e5646f3d6440d8651f0a26acadd3ff57b2
3
+ metadata.gz: 699dcebd7c8e1b99dbd7eeae0b82b8e588e211104a67a549d412630db567ef3e
4
+ data.tar.gz: cff9f4532ae72dbc2e19d7025b211dc82444f10572079f0abac227f6a8f770f3
5
5
  SHA512:
6
- metadata.gz: 40e44df1d3ef1a2e921ee3c1a00cfb575eb837d1204db82498e0bba320ac3c1c44e56181e3585f4e63a9a44e2067de26b6378e2e487efe84e0a79787433769c2
7
- data.tar.gz: c55fd093815a60d4c59db1b225c8753561fe222d59fdae45f3c1fd296e6a6583d1edeb9b5e4831cf04fd18775f1e064b2b3b67afb02dad2dfa746e342a33a8eb
6
+ metadata.gz: c21fe63b0ed15e92c8cc5cc908b4c1c9fa93a882211cd21bb5a974d349697a896b0326ed4c721bb6b267fc4de70fffe357a31c17cdf0f932fcc1c9851868a695
7
+ data.tar.gz: 126114099b0302f935453f402b0817626e5fe2f8b1acc2c7316aed7263b2077d0db2f0fa6af907a61a752e03de18bc8ada50916609341c646421e1e7a61e1467
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.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(', ')}"
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
@@ -22,6 +22,8 @@
22
22
  #define TARGET_CPU "i386"
23
23
  #elif defined(__x86_64__)
24
24
  #define TARGET_CPU "x86_64"
25
+ #elif defined(__arm64__)
26
+ #define TARGET_CPU "arm64"
25
27
  #else
26
28
  #define TARGET_CPU "unknown"
27
29
  #endif
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  class FSEvent
4
- VERSION = '0.10.4'
4
+ VERSION = '0.11.1'
5
5
  end
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.10.4
4
+ version: 0.11.1
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: 2020-04-30 00:00:00.000000000 Z
12
+ date: 2022-02-06 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.1.2
112
- signing_key:
111
+ rubygems_version: 3.2.22
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: Very simple & usable FSEvents API
115
115
  test_files: []