From bec3f4a1f33c7f28ad202ad9023842c0fdd74bf6 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 2 Jan 2026 14:50:22 -0800 Subject: [PATCH] Add guard gem --- ruby/Gemfile | 2 ++ ruby/Gemfile.lock | 41 +++++++++++++++++++++++++++++++++++++++++ ruby/Guardfile | 5 +++++ 3 files changed, 48 insertions(+) create mode 100644 ruby/Guardfile diff --git a/ruby/Gemfile b/ruby/Gemfile index b1cdd0f..1d2f6b5 100644 --- a/ruby/Gemfile +++ b/ruby/Gemfile @@ -1,5 +1,7 @@ source "https://rubygems.org" +gem "guard", "~> 2.19" +gem "guard-rake", "~> 1.0" gem "minitest", "~> 6.0" gem "parser", "~> 3.3.10" gem "rake", "~> 13.0" diff --git a/ruby/Gemfile.lock b/ruby/Gemfile.lock index 067a9b1..2dfefe6 100644 --- a/ruby/Gemfile.lock +++ b/ruby/Gemfile.lock @@ -2,20 +2,57 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.3) + coderay (1.1.3) + ffi (1.17.3-arm64-darwin) + ffi (1.17.3-x86_64-linux-gnu) + formatador (1.2.3) + reline + guard (2.19.1) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + logger (~> 1.6) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + ostruct (~> 0.6) + pry (>= 0.13.0) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-rake (1.0.0) + guard + rake io-console (0.8.2) json (2.18.0) language_server-protocol (3.17.0.5) lint_roller (1.1.0) + listen (3.9.0) + rb-fsevent (~> 0.10, >= 0.10.3) + rb-inotify (~> 0.9, >= 0.9.10) + logger (1.7.0) + lumberjack (1.4.2) + method_source (1.1.0) minitest (6.0.1) prism (~> 1.5) + nenv (0.3.0) + notiffany (0.1.3) + nenv (~> 0.1) + shellany (~> 0.0) + ostruct (0.6.3) parallel (1.27.0) parser (3.3.10.0) ast (~> 2.4.1) racc prism (1.7.0) + pry (0.16.0) + coderay (~> 1.1) + method_source (~> 1.0) + reline (>= 0.6.0) racc (1.8.1) rainbow (3.1.1) rake (13.3.1) + rb-fsevent (0.11.2) + rb-inotify (0.11.1) + ffi (~> 1.0) regexp_parser (2.11.3) reline (0.6.3) io-console (~> 0.5) @@ -38,6 +75,7 @@ GEM rubocop (>= 1.75.0, < 2.0) rubocop-ast (>= 1.47.1, < 2.0) ruby-progressbar (1.13.0) + shellany (0.0.1) standard (1.52.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) @@ -50,6 +88,7 @@ GEM standard-performance (1.9.0) lint_roller (~> 1.1) rubocop-performance (~> 1.26.0) + thor (1.4.0) unicode-display_width (3.2.0) unicode-emoji (~> 4.1) unicode-emoji (4.2.0) @@ -63,6 +102,8 @@ PLATFORMS x86_64-linux DEPENDENCIES + guard (~> 2.19) + guard-rake minitest (~> 6.0) parser (~> 3.3.10) rake (~> 13.0) diff --git a/ruby/Guardfile b/ruby/Guardfile new file mode 100644 index 0000000..97a2b31 --- /dev/null +++ b/ruby/Guardfile @@ -0,0 +1,5 @@ +guard :rake, task: "test" do + watch(%r{^test/.*_test\.rb$}) + watch(%r{^shell/.*\.rb$}) { "test" } + watch("shell.rb") { "test" } +end