Skip to content

fix: Invalid args on RouteSet#to_rfc6570 #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2025
Merged

fix: Invalid args on RouteSet#to_rfc6570 #38

merged 1 commit into from
Jan 31, 2025

Conversation

jgraichen
Copy link
Owner

The two semi-public methods RouteSet#to_rfc6570 and NamedRouteCollection#to_rfc6570 were using the old, no longer working, kwargs format. Both methods are working again.

RouteSet#to_rfc6570 has been adjusted to return a hash with named routes only, since the array before isn't much useful, and it was broken.

New specs explicitly test RouteSet#to_rfc6570, and, by indirection, NamedRouteCollection#to_rfc6570.

The two semi-public methods RouteSet#to_rfc6570 and
NamedRouteCollection#to_rfc6570 were using the old, no longer working,
kwargs format. Both methods are working again.

RouteSet#to_rfc6570 has been adjusted to return a hash with named routes
only, since the array before isn't much useful, and it was broken.

New specs explicitly test RouteSet#to_rfc6570, and, by indirection,
NamedRouteCollection#to_rfc6570.
@jgraichen jgraichen self-assigned this Jan 31, 2025
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.78%. Comparing base (d3a182e) to head (a4225e0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   96.96%   98.78%   +1.81%     
==========================================
  Files           4        4              
  Lines         165      165              
==========================================
+ Hits          160      163       +3     
+ Misses          5        2       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jgraichen jgraichen merged commit 1b478cc into main Jan 31, 2025
48 checks passed
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.

1 participant