watchcat 0.5.1-arm64-darwin → 0.5.2-arm64-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: a4d3b8e28a0a054f4237b62371a3448f029deea4212d42c28f2fb2bf17c8eb40
4
- data.tar.gz: 2dd33fb6c8069b4595ab838792e89f4d292f4c2759ee776755747a67efb9e34a
3
+ metadata.gz: a3420cce3b02c0f7158d76c5b41d12f0777bd698684b10c9ac60ebaf071dea60
4
+ data.tar.gz: 0d6e6deb3555aad1d143cf2e75efad17cabbef0cfe102b680da214514ff9717c
5
5
  SHA512:
6
- metadata.gz: 4dfd178426a54a264aa2c63d52916440fb7eb8ee54b7d682ff640d0c2e354932dba9785eabf1d46024d80f53b3546045636ed6e62eb07ae2bfe5cfba93576999
7
- data.tar.gz: fd800e7896a7be0a0a1827e779a575a752d984ef5955616ecfebdceeed0386b8e2207a1ebb4033bd1f2d56d4ae513c85a95dbfec8a6762151a0160686a108ca1
6
+ metadata.gz: 58eacc0b006e5effff5717221222db73afce757e265aea5a3626c39e7e5b82b07c6efe59639ec2e17d37988405253f35ac6f76f18fabefdf0a2b6f8e891bc151
7
+ data.tar.gz: 1629d3e38e41726b7aa5c8247babc05fb375bd03567cd21bc826d1fe35a39e1d7c1a0ff7ac31fa399511e6892f47cd5a2b6c1f291c8cce159f6937c11b4d9670
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.2
2
+
3
+ * Support Ruby 4.0
4
+
1
5
  ## 0.5.1
2
6
 
3
7
  * Fix missing executable files
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
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.1"
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.1
4
+ version: 0.5.2
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-11 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
@@ -146,7 +146,6 @@ extra_rdoc_files: []
146
146
  files:
147
147
  - CHANGELOG.md
148
148
  - Gemfile
149
- - Gemfile.lock
150
149
  - LICENSE.txt
151
150
  - README.md
152
151
  - Rakefile
@@ -158,6 +157,7 @@ files:
158
157
  - lib/watchcat/3.2/watchcat.bundle
159
158
  - lib/watchcat/3.3/watchcat.bundle
160
159
  - lib/watchcat/3.4/watchcat.bundle
160
+ - lib/watchcat/4.0/watchcat.bundle
161
161
  - lib/watchcat/cli.rb
162
162
  - lib/watchcat/cli/action_executor.rb
163
163
  - lib/watchcat/cli/config.rb
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
184
  version: '3.1'
185
185
  - - "<"
186
186
  - !ruby/object:Gem::Version
187
- version: 3.5.dev
187
+ version: 4.1.dev
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
190
  - - ">="
data/Gemfile.lock DELETED
@@ -1,88 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- watchcat (0.5.1)
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