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

Recognize Rack Symbols as Status Codes #468

Merged
merged 1 commit into from
Apr 19, 2017

Conversation

alex-tan
Copy link
Contributor

Addresses #466

@Tybot204
Copy link

Tybot204 commented Sep 2, 2016

👍 Would love to see this merged in. I prefer Rack codes since I think it makes your code much clearer! I usually can't remember all of the number codes and their meanings.

attr_reader :code, :description, :metadata

class UnrecognizedCode < Exception
Copy link
Member

Choose a reason for hiding this comment

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

We have all other errors at one place her https://github.com/Apipie/apipie-rails/blob/296c097f9acb951149d3a67db69b84eb216bdd7e/lib/apipie/errors.rb. Also, prefer StandardError, or in this case even Apipie::Error over Exception

@iNecas
Copy link
Member

iNecas commented Sep 4, 2016

Nice one. One comment inline, but should be good to go otherwise

@alex-tan
Copy link
Contributor Author

alex-tan commented Sep 5, 2016

@iNecas put the change into place! Thanks for reviewing.

@alex-tan
Copy link
Contributor Author

alex-tan commented Mar 1, 2017

Just an update: merged master back in and the build is green ✅

@iNecas
Copy link
Member

iNecas commented Apr 18, 2017

Could you rebase you branch, rather than merging the master into your branch: it makes it simpler to test and we prefer rebase over merge in general. This branch has conflicts at the moment.

@alex-tan alex-tan force-pushed the error-rack-status-codes branch from 488fafd to a9c9cf5 Compare April 18, 2017 15:13
@alex-tan
Copy link
Contributor Author

@iNecas done!

@iNecas iNecas merged commit e8e3bd3 into Apipie:master Apr 19, 2017
@iNecas
Copy link
Member

iNecas commented Apr 19, 2017

Thanks @alex-tan

@alex-tan
Copy link
Contributor Author

@iNecas 👍

@alex-tan alex-tan deleted the error-rack-status-codes branch April 19, 2017 18:06
@iNecas
Copy link
Member

iNecas commented Apr 26, 2017

apipie-rails 0.5.1 released, including this change

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