-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix compatibility with AS Concern #26
Conversation
956ee26
to
354041e
Compare
@AlexWayfer what do you think? It's pretty common to use both AS::Concern and Memery in the same module, so I think that we should better drop that auto-include feature. |
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've done changes to this branch with saving compatibility of previous abilities (without reverting). Wait for a PR, please.
@@ -32,16 +27,14 @@ def memoized?(method_name) | |||
return false unless defined?(@_memery_module) | |||
|
|||
@_memery_module.method_defined?(method_name) || | |||
@_memery_module.private_method_defined?(method_name) |
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.
It seems like extra (non-related) change.
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.
Yep, but I'm usually OK with some minimal cosmetic changes :)
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.
OK, but let's add the RuboCop to the CI of this repository and check if it's OK.
Can we switch from Travis CI? I have no permissions to do this, and I suggest Cirrus CI or Circle CI (a config of the first one will be shorten).
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.
There actually is rubocop in the CI. It gets called in the bundle exec rake
command.
And btw what's the problem with Travis?
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.
There actually is rubocop in the CI. It gets called in the bundle exec rake command.
Oh, OK, then it's strange that both approaches (with indentation and without) are acceptable.
And btw what's the problem with Travis?
I had many issues with environment, but if it satisfies you — never mind. Also, it uses the deprecated method of integration with GitHub, as I know.
Also: …
Done. You can merge #27 into this branch and then merge this PR if everything is OK. |
Don't revert #23
Fixes the following exception when using Memery in a
ActiveSupport::Concern
module: