watchcat 0.2.0-aarch64-linux → 0.2.1-aarch64-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/watchcat/3.0/watchcat.so +0 -0
- data/lib/watchcat/3.1/watchcat.so +0 -0
- data/lib/watchcat/3.2/watchcat.so +0 -0
- data/lib/watchcat/3.3/watchcat.so +0 -0
- data/lib/watchcat/client.rb +2 -2
- data/lib/watchcat/executor.rb +3 -0
- data/lib/watchcat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b65f12811a9dce23861731a1a30e821615f48f842c61cf6f32a6aea6428bdd60
|
4
|
+
data.tar.gz: 1eaf37737eeda151d00670a2a67cc508fc72217e477496ca09b3129af78e94dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b6376081667b548d3dd345bf44e0f38e2ae5d8990fce70eb39b6409de335f0ec61bc90afc4136b20d2bd9686db3a02ec12fdcb42ec781e3e11f6fc5bdf4fe97
|
7
|
+
data.tar.gz: 2204f9f6a705e840fd0a121c496797f9e0ea16f70b80c06104337f760f38aae82188db01ae1681ea8de0e8223331d24a9eef3590d24870e5d4fc30c823a1ceb0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
watchcat (0.2.
|
4
|
+
watchcat (0.2.1)
|
5
5
|
drb
|
6
6
|
rb_sys
|
7
7
|
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
listen (3.9.0)
|
23
23
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
24
24
|
rb-inotify (~> 0.9, >= 0.9.10)
|
25
|
-
minitest (5.25.
|
25
|
+
minitest (5.25.2)
|
26
26
|
minitest-retry (0.2.3)
|
27
27
|
minitest (>= 5.0)
|
28
28
|
nokogiri (1.16.7-arm64-darwin)
|
@@ -40,7 +40,7 @@ GEM
|
|
40
40
|
rb-fsevent (0.11.2)
|
41
41
|
rb-inotify (0.11.1)
|
42
42
|
ffi (~> 1.0)
|
43
|
-
rb_sys (0.9.
|
43
|
+
rb_sys (0.9.103)
|
44
44
|
rdoc (6.7.0)
|
45
45
|
psych (>= 4.0.0)
|
46
46
|
reline (0.5.10)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/watchcat/client.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Watchcat
|
2
2
|
class Client
|
3
|
-
def initialize(uri, paths:, recursive:, force_polling:, poll_interval:, ignore_remove:, debounce:)
|
3
|
+
def initialize(uri, watcher:, paths:, recursive:, force_polling:, poll_interval:, ignore_remove:, debounce:)
|
4
4
|
DRb.start_service
|
5
|
-
@watcher =
|
5
|
+
@watcher = watcher
|
6
6
|
@server = DRbObject.new_with_uri(uri)
|
7
7
|
@paths = paths
|
8
8
|
@recursive = recursive
|
data/lib/watchcat/executor.rb
CHANGED
@@ -16,6 +16,7 @@ module Watchcat
|
|
16
16
|
@ignore_remove = ignore_remove
|
17
17
|
@debounce = debounce
|
18
18
|
@block = block
|
19
|
+
@watcher = Watchcat::Watcher.new
|
19
20
|
end
|
20
21
|
|
21
22
|
def start
|
@@ -40,6 +41,7 @@ module Watchcat
|
|
40
41
|
|
41
42
|
def stop
|
42
43
|
begin
|
44
|
+
@watcher.close
|
43
45
|
Process.kill(:KILL, @child_pid)
|
44
46
|
rescue Errno::ESRCH
|
45
47
|
# NOTE: We can ignore this error because there process is already dead.
|
@@ -52,6 +54,7 @@ module Watchcat
|
|
52
54
|
def build_client
|
53
55
|
Client.new(
|
54
56
|
@service.uri,
|
57
|
+
watcher: @watcher,
|
55
58
|
paths: @paths,
|
56
59
|
recursive: @recursive,
|
57
60
|
force_polling: @force_polling,
|
data/lib/watchcat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watchcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: aarch64-linux
|
6
6
|
authors:
|
7
7
|
- Yuji Yaginuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: drb
|