Skip to content

Conversation

@patrick204nqh
Copy link
Contributor

@patrick204nqh patrick204nqh commented Nov 27, 2025

Summary

Run RuboCop and fix lint offenses across the repo; no intentional behavior/API changes.

Changes

  • auto-corrected offenses and small manual style fixes (spacing, unused vars, frozen_string_literal, naming).
  • Fix Ruby 4.0 compatibility: Add missing bundled gems to Gemfile

Reference

Test Results

  • All 1282 tests passing with Ruby 4.0-dev (via asdf)

else
other.major == major && other.minor == Dispatcher::Route::MATCH_ALL_STR
end
[Dispatcher::Route::MATCH_ALL_STR, MATCHES_ALL, type].include?(other.type) || other.major == major && other.minor == Dispatcher::Route::MATCH_ALL_STR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is a bit long, can you please add a new line after the ||?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks for your suggest

Add pstore gem for Ruby 4.0 compatibility

Add logger and ostruct gems for Ruby 4.0 compatibility
@patrick204nqh patrick204nqh force-pushed the patrick/fix-rubocop-lint branch from d33ccb7 to ff96766 Compare November 27, 2025 08:14
gem 'pstore'
gem 'logger'
gem 'ostruct'
end
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to Gemfile instead of gemspec since these are optional features (tracing) and dev concerns (testing), not core to webmachine - no need to bloat the dependency tree for all users.

@orien orien merged commit 699136b into webmachine:master Nov 27, 2025
7 checks passed
@patrick204nqh patrick204nqh deleted the patrick/fix-rubocop-lint branch November 27, 2025 08:25
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