Skip to content
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

#1108 use recognize_path and values_match? to handle composable matchers in RouteToMatcher #1720

Closed
wants to merge 1 commit into from
Closed

#1108 use recognize_path and values_match? to handle composable matchers in RouteToMatcher #1720

wants to merge 1 commit into from

Conversation

jtxyz
Copy link

@jtxyz jtxyz commented Oct 7, 2016

First attempt at tackling #1108 (no tests yet)

@fables-tales
Copy link
Member

hi @jtxyz sorry I'm only just getting to this. Could you take a look at the failing tests on CI and fix them up? Then we can go ahead with review. Thanks ✨

@pirj
Copy link
Member

pirj commented Jan 8, 2020

Can you please rebase and add a test that would fail without this patch @jtxyz ?

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Please add a spec example to explain how this change affects the matcher.

@recognized_path = @scope.routes.recognize_path(
path, {
method: verb_to_path_map.keys.first,
extras: Rack::Utils::parse_nested_query(query)
Copy link
Member

Choose a reason for hiding this comment

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

Please keep . for a method call.

end

def failure_message
rescued_exception.message
if rescued_exception
rescued_exception.message
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to use safe navigation here?

@pirj
Copy link
Member

pirj commented Mar 13, 2020

Closing as stale. Feel free to reopen if you have time on your hands to wrap it up.

@pirj pirj closed this Mar 13, 2020
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.

3 participants