Skip to content

Conversation

Copy link

Copilot AI commented Feb 3, 2026

The standard-rails upgrade from 1.4.0 to 1.6.0 introduced stricter Rails/Pluck enforcement, flagging 39 violations where .map { |element| element[key] } should be replaced with .pluck(key).

Changes

  • Applied all 39 Rails/Pluck fixes across 8 test spec files using standardrb auto-correction
  • Leverages ActiveSupport's Enumerable extension that adds .pluck() to all Arrays in Rails

Before:

datatable.as_json[:data].map { |d| d[:id] }
fake_topics.map { |topic| topic["question"] }

After:

datatable.as_json[:data].pluck(:id)
fake_topics.pluck("question")

All changes are semantically equivalent - ActiveSupport extends Enumerable with .pluck(), which extracts values from collections of hashes the same way as the map pattern but follows Rails idioms.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits February 3, 2026 23:01
The previous revert was incorrect. ActiveSupport extends Enumerable
with .pluck(), so all Arrays in Rails have this method. All 39
standardrb auto-fixes were valid improvements.

Co-authored-by: compwron <[email protected]>
- Restore correct Ruby version (3.3.8) in Gemfile
- Apply all 39 Rails/Pluck fixes (ActiveSupport adds .pluck() to Enumerable)
- Remove unnecessary .standard_todo.yml entries
- All linting issues from standard-rails 1.6.0 upgrade now resolved

Co-authored-by: compwron <[email protected]>
Copy link
Author

Copilot AI commented Feb 3, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Update standard-rails dependency from 1.4.0 to 1.6.0 Fix Rails/Pluck linting violations from standard-rails 1.6.0 Feb 3, 2026
Copilot AI requested a review from compwron February 3, 2026 23:17
@dependabot dependabot bot deleted the branch dependabot/bundler/standard-rails-1.6.0 February 4, 2026 01:12
@dependabot dependabot bot closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants