-
Notifications
You must be signed in to change notification settings - Fork 196
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
Rails 5 support #70
Rails 5 support #70
Conversation
5b4c1ff
to
d059633
Compare
@@ -3,10 +3,16 @@ | |||
module GrapeSwaggerRails | |||
class Options < OpenStruct | |||
def before_filter(&block) | |||
ActiveSupport::Deprecation.warn('this option is deprecated and going to be removed soon. ' \ |
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.
Should probably start with a capital T
to be consistent and have a period after instead?
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 should be the time period?
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.
I would change "soon" to "version X.Y.Z", whatever the next major one is.
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.
Not sure what will be the next major one, so changed to 0.3.0. Is it ok?
This looks good. We need an UPGRADING document like https://github.com/ruby-grape/grape/blob/master/UPGRADING.md, could you add one please? You don't have to fight rubocop, if something doesn't make sense (like a line too long), just run |
|
d1cf089
to
2ceafaa
Compare
Merged, thank you. For versioning pros, what's should we do wrt versioning for this deprecation, should it be 0.3.0 or is deprecating something ok for a minor increment? |
Also @serggl you seem to know what you're doing, want to help out with this project? Maybe cut the next release? If you're up for it tell me your rubygems email and I'll add you to project collaborators. |
@dblock according to semantic versioning (semver.org) this should be a minor version increment, so I guess this should be 0.3.0 Also yes, I think I can help a bit with this project since I use grape/swagger a lot in my day to day work. My rubygems email is sergey.glukhov@gmail.com |
Welcome @serggl. If you can bump the version as per semver and make a release following https://github.com/ruby-grape/grape-swagger-rails/blob/master/RELEASING.md that'd be great! |
Also @aschuster3 has been very active in this project, keep things publicly visible, I opened #72 for a release. |
before_filter
usages withbefore_action
GrapeSwaggerRails.options.before_filter
option