-
Notifications
You must be signed in to change notification settings - Fork 509
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
Replace with new router (discussion) #1800
Conversation
…up-exceptions Bubble up router exceptions
- the `params` variable is converted into a HashWithIndifferentAccess object - fixes #1405 Conflicts: padrino-core/lib/padrino-core/application/routing.rb
Conflicts: padrino-core/lib/padrino-core/mounter.rb
Change Mustermann::Rails to Mustermann::Sinatra.
Conflicts: padrino-core/lib/padrino-core/application/routing.rb padrino-core/lib/padrino-core/support_lite.rb padrino-core/test/test_routing.rb
Conflicts: Gemfile padrino-core/lib/padrino-core/application/routing.rb padrino-core/padrino-core.gemspec padrino-core/test/test_routing.rb
Conflicts: padrino-core/lib/padrino-core/application/routing.rb
Conflicts: padrino-core/lib/padrino-core/application/routing.rb
Conflicts: padrino-core/lib/padrino-core/application/routing.rb
Conflicts: padrino-core/lib/padrino-core/application/routing.rb padrino-core/lib/padrino-core/ext/http_router.rb padrino-core/lib/padrino-core/loader.rb padrino-core/test/test_application.rb
@@ -29,7 +29,11 @@ Gem::Specification.new do |s| | |||
else | |||
s.add_dependency("sinatra", "~> 1.4.2") | |||
end | |||
s.add_dependency("http_router", "~> 0.11.0") | |||
if RUBY_VERSION < '2.0.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition won't work in gemspec. It's evaluated on the developer's box, not on user's one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about giving a warning on install about this or just appending it to the Gemfile
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, thanks. If I understand things correctly, we should use mustermann19 because the official mustermann doesn't support for rubinius and jruby yet.
Great, I've misunderstood. Thanks! |
refactor and change style of path_router
…framework into replace-with-new-router
But this function doesn't respect the Sinatra behavior If you want to use this, you must add RegexpLookAlike#to_s, RegexpLookAlike#names and MatchData#names
Should we just merge it to master and bump the version to |
Yes. We can merge this branch if there is no problem. |
👍
|
Oh, such a nice number, #1800!