watchcat 0.5.0-x86_64-darwin → 0.5.2-x86_64-darwin

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8b3d7d0789415dda170cd81f84073bd84275ee7a83f25b253ba148e05719f89
4
- data.tar.gz: 58315acd4e573e4eaaa35ab2475d4df02d940e21b47125693626a751a1a86e2d
3
+ metadata.gz: c2786272429f8a71a0b842e77582a718043f7a0b60cef7f2f6b92b6c3b7afb99
4
+ data.tar.gz: 7280b4caee92d441bf39de0eea7136ea2e8c09a1b818dddc9ebd103bf15cf77b
5
5
  SHA512:
6
- metadata.gz: 7db268bfad2e7b3eca49d185edcf3617fd3ff9a0c6bca2b9320514a061cf72eca6ae688feb05b4ef42822acc0069a8aaa18684835925cba07327a55c11af922a
7
- data.tar.gz: cc0654b6389626c64630bfcc2c9af505588b79551e4d2ab72e5184021aa30e54a171bcd06e816d7861ae0a725634742726fc328e3f9a768d3fc8a9e788c2223c
6
+ metadata.gz: 88f7ec4ea3b8bf96de083d417ae8ca9c05fe300e428ab48422101892bf29f04b5e3f5ac5f6d4957e3cf9a20940bf4be1ef906f913a14927c8940fe949cea10ed
7
+ data.tar.gz: f0642ac8deb5215648b6e541a41589fad23e2b5ef1d46ce94179e06666ef38e21670a45008096d1881ea6c0240128469029afe3e1f6810dc765c30be7dbb59fd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.2
2
+
3
+ * Support Ruby 4.0
4
+
5
+ ## 0.5.1
6
+
7
+ * Fix missing executable files
8
+
1
9
  ## 0.5.0
2
10
 
3
11
  * Rework the debounce feature. Now all events are debounced.
data/README.md CHANGED
@@ -163,15 +163,14 @@ Each watch entry supports the following options:
163
163
 
164
164
  When specifying commands, you can use the following variables:
165
165
 
166
- | Variable | Description | Example |
167
- |---------------|------------------------------------------|------------------------|
168
- | {{file_path}} | Full path of the changed file | `/home/user/app/file.rb` |
169
- | {{file_dir}} | Directory containing the file | `/home/user/app` |
170
- | {{file_name}} | File name with extension | `file.rb` |
171
- | {{file_base}} | File name without extension | `file` |
172
- | {{file_ext}} | File extension | `.rb` |
173
-
174
-
166
+ | Variable | Description | Example |
167
+ |----------------|------------------------------------------|--------------------------|
168
+ | {{file_path}} | Full path of the changed file | `/home/user/app/file.rb` |
169
+ | {{file_dir}} | Directory containing the file | `/home/user/app` |
170
+ | {{file_name}} | File name with extension | `file.rb` |
171
+ | {{file_base}} | File name without extension | `file` |
172
+ | {{file_ext}} | File extension | `.rb` |
173
+ | {{event_type}} | Type of event | `create` |
175
174
 
176
175
  ## Contributing
177
176
 
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -37,6 +37,7 @@ module Watchcat
37
37
  .gsub("{{file_name}}", @file_name)
38
38
  .gsub("{{file_base}}", @file_base)
39
39
  .gsub("{{file_ext}}", @file_ext)
40
+ .gsub("{{event_type}}", @event.kind.event_type)
40
41
  end
41
42
  end
42
43
  end
@@ -30,6 +30,8 @@ module Watchcat
30
30
  - path: "./src"
31
31
  recursive: true
32
32
  debounce: 300
33
+ filters:
34
+ ignore_access: true
33
35
  patterns:
34
36
  - "*.js"
35
37
  - "*.ts"
@@ -39,6 +41,8 @@ module Watchcat
39
41
 
40
42
  - path: "./docs"
41
43
  recursive: true
44
+ filters:
45
+ ignore_access: true
42
46
  patterns:
43
47
  - "*.md"
44
48
  actions:
@@ -54,8 +54,6 @@ module Watchcat
54
54
  end
55
55
 
56
56
  def handle_file_event(event, watch_config)
57
- return if event.kind.access?
58
-
59
57
  event.paths.each do |file_path|
60
58
  next unless should_process_file?(file_path, watch_config[:patterns])
61
59
 
data/lib/watchcat/kind.rb CHANGED
@@ -27,6 +27,14 @@ module Watchcat
27
27
  def any?
28
28
  !@any.nil?
29
29
  end
30
+
31
+ def event_type
32
+ return "create" if create?
33
+ return "modify" if modify?
34
+ return "remove" if remove?
35
+ return "access" if access?
36
+ "unknown"
37
+ end
30
38
  end
31
39
 
32
40
  class AccessKind
@@ -1,3 +1,3 @@
1
1
  module Watchcat
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.2"
3
3
  end
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.5.0
4
+ version: 0.5.2
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-06 00:00:00.000000000 Z
11
+ date: 2026-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: psych
@@ -139,13 +139,13 @@ dependencies:
139
139
  description:
140
140
  email:
141
141
  - yuuji.yaginuma@gmail.com
142
- executables: []
142
+ executables:
143
+ - watchcat
143
144
  extensions: []
144
145
  extra_rdoc_files: []
145
146
  files:
146
147
  - CHANGELOG.md
147
148
  - Gemfile
148
- - Gemfile.lock
149
149
  - LICENSE.txt
150
150
  - README.md
151
151
  - Rakefile
@@ -157,6 +157,7 @@ files:
157
157
  - lib/watchcat/3.2/watchcat.bundle
158
158
  - lib/watchcat/3.3/watchcat.bundle
159
159
  - lib/watchcat/3.4/watchcat.bundle
160
+ - lib/watchcat/4.0/watchcat.bundle
160
161
  - lib/watchcat/cli.rb
161
162
  - lib/watchcat/cli/action_executor.rb
162
163
  - lib/watchcat/cli/config.rb
@@ -183,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
184
  version: '3.1'
184
185
  - - "<"
185
186
  - !ruby/object:Gem::Version
186
- version: 3.5.dev
187
+ version: 4.1.dev
187
188
  required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  requirements:
189
190
  - - ">="
data/Gemfile.lock DELETED
@@ -1,88 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- watchcat (0.5.0)
5
- psych
6
- rb_sys
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- cgi (0.5.0)
12
- date (3.4.1)
13
- debug (1.11.0)
14
- irb (~> 1.10)
15
- reline (>= 0.3.8)
16
- erb (4.0.4)
17
- cgi (>= 0.3.3)
18
- ffi (1.17.1-arm64-darwin)
19
- ffi (1.17.1-x64-mingw-ucrt)
20
- ffi (1.17.1-x86_64-darwin)
21
- ffi (1.17.1-x86_64-linux-gnu)
22
- io-console (0.8.0)
23
- irb (1.15.2)
24
- pp (>= 0.6.0)
25
- rdoc (>= 4.0.0)
26
- reline (>= 0.4.2)
27
- listen (3.9.0)
28
- rb-fsevent (~> 0.10, >= 0.10.3)
29
- rb-inotify (~> 0.9, >= 0.9.10)
30
- minitest (5.25.5)
31
- minitest-fail-fast (0.1.0)
32
- minitest (~> 5)
33
- minitest-retry (0.2.5)
34
- minitest (>= 5.0)
35
- nokogiri (1.18.1-arm64-darwin)
36
- racc (~> 1.4)
37
- nokogiri (1.18.1-x64-mingw-ucrt)
38
- racc (~> 1.4)
39
- nokogiri (1.18.1-x86_64-darwin)
40
- racc (~> 1.4)
41
- nokogiri (1.18.1-x86_64-linux-gnu)
42
- racc (~> 1.4)
43
- pp (0.6.2)
44
- prettyprint
45
- prettyprint (0.2.0)
46
- psych (5.2.6)
47
- date
48
- stringio
49
- racc (1.8.1)
50
- rake (13.3.0)
51
- rake-compiler (1.3.0)
52
- rake
53
- rake-compiler-dock (1.9.1)
54
- rb-fsevent (0.11.2)
55
- rb-inotify (0.11.1)
56
- ffi (~> 1.0)
57
- rb_sys (0.9.117)
58
- rake-compiler-dock (= 1.9.1)
59
- rdoc (6.14.1)
60
- erb
61
- psych (>= 4.0.0)
62
- reline (0.6.1)
63
- io-console (~> 0.5)
64
- ruby_memcheck (3.0.1)
65
- nokogiri
66
- stringio (3.1.7)
67
-
68
- PLATFORMS
69
- arm64-darwin-22
70
- arm64-darwin-23
71
- x64-mingw-ucrt
72
- x86_64-darwin-19
73
- x86_64-darwin-20
74
- x86_64-linux
75
-
76
- DEPENDENCIES
77
- debug
78
- listen
79
- minitest
80
- minitest-fail-fast
81
- minitest-retry
82
- rake
83
- rake-compiler
84
- ruby_memcheck
85
- watchcat!
86
-
87
- BUNDLED WITH
88
- 2.6.2