Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
feat(core): add Ruby group to TEST_PATTERN_GROUPS
thejesh233a61e7792cb8
diff --git a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.tsindex 244b04f8..2773f1fc 100644--- a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts+++ b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts@@ -264,12 +264,22 @@ describe("generateStarterIgnoreFile", () => {expect(content).toContain("# **/*_bench.rs");});+ it("includes Ruby RSpec + Minitest file patterns", () => {+ const content = generateStarterIgnoreFile(testDir);+ expect(content).toContain("# Ruby");+ // RSpec — dominant in Rails-adjacent projects (discourse, homebrew).+ expect(content).toContain("# **/*_spec.rb");+ // Minitest — Rails core default (rails/rails, activerecord).+ expect(content).toContain("# **/*_test.rb");+ expect(content).toContain("# **/test_*.rb");+ });+it("groups patterns under the JS / TS sub-header", () => {const content = generateStarterIgnoreFile(testDir);expect(content).toContain("# JS / TS");});- it("emits language groups in stable order: JS, C#, Java, Go, C++, Python, Rust", () => {+ it("emits language groups in stable order: JS, C#, Java, Go, C++, Python, Rust, Ruby", () => {const content = generateStarterIgnoreFile(testDir);const jsIdx = content.indexOf("# JS / TS");const csIdx = content.indexOf("# C# / .NET");@@ -278,6 +288,7 @@ describe("generateStarterIgnoreFile", () => {const cppIdx = content.indexOf("# C++");const pyIdx = content.indexOf("# Python");const rustIdx = content.indexOf("# Rust");+ const rubyIdx = content.indexOf("# Ruby");expect(jsIdx).toBeGreaterThan(-1);expect(csIdx).toBeGreaterThan(jsIdx);expect(javaIdx).toBeGreaterThan(csIdx);@@ -285,6 +296,7 @@ describe("generateStarterIgnoreFile", () => {expect(cppIdx).toBeGreaterThan(goIdx);expect(pyIdx).toBeGreaterThan(cppIdx);expect(rustIdx).toBeGreaterThan(pyIdx);+ expect(rubyIdx).toBeGreaterThan(rustIdx);});it("keeps all suggestions commented even with no detected dirs and no .gitignore", () => {diff --git a/understand-anything-plugin/packages/core/src/ignore-generator.ts b/understand-anything-plugin/packages/core/src/ignore-generator.tsindex 5e500c80..d307ca75 100644--- a/understand-anything-plugin/packages/core/src/ignore-generator.ts+++ b/understand-anything-plugin/packages/core/src/ignore-generator.ts@@ -134,6 +134,20 @@ const TEST_PATTERN_GROUPS: Array<{ label: string; patterns: string[] }> = ["**/*_bench.rs",],},+ {+ // Ruby ecosystems split between two test frameworks with distinct+ // file-naming conventions: RSpec (`*_spec.rb` under spec/) and+ // Minitest (`*_test.rb` or `test_*.rb` under test/). The dir rules+ // catch each convention's top-level home, but individual files+ // sometimes leak elsewhere (lib/**/*_spec.rb in gem repos, engine+ // test files under app/**/*_test.rb in Rails engines).+ label: "Ruby",+ patterns: [+ "**/*_spec.rb",+ "**/*_test.rb",+ "**/test_*.rb",+ ],+ },];/**