Skip to content

Commit c9a31c5

Browse files
authored
Use bundle exec for rake in CLAUDE.md commands (#785)
Before, some listed commands called rake directly which resulted in conflicting gem version output because rake tries to use the system RubyGems environment eg. ``` ❯ rake standard WARN: Unresolved or ambiguous specs during Gem::Specification.reset: json (~> 2.3) Available/installed versions of this gem: - 2.19.3 - 2.18.0 prism (~> 1.7) Available/installed versions of this gem: - 1.9.0 - 1.8.1 WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>' Please report a bug if this causes problems. ``` Now, we specify bundle exec for the rake commands to use the bundled versions.
1 parent 11e9e5b commit c9a31c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rails/ai-rules/CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ bundle exec rspec spec/models # Model specs only
2424
bundle exec rspec spec/requests # Request specs only
2525
bundle exec rspec spec/path/to/file_spec.rb # Run all tests in file
2626
bundle exec rspec spec/path/to/file_spec.rb:72 # Run just the test at line 72
27-
rake standard # Lint
28-
rake standard:fix # Auto-fix lint issues
27+
bundle exec rake standard # Lint
28+
bundle exec rake standard:fix # Auto-fix lint issues
2929
bin/rails db:migrate # Run migrations
3030
bin/rails suspenders:db:migrate # Migrate + annotate
3131
bin/rails suspenders:cleanup:organize_gemfile # Sort Gemfile

0 commit comments

Comments
 (0)