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 usage in module singleton class #185
Fix usage in module singleton class #185
Conversation
3e6ce7c
to
81c6dc1
Compare
Codecov Report
@@ Coverage Diff @@
## main #185 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 169 173 +4
=========================================
+ Hits 169 173 +4
Continue to review full report at Codecov.
|
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.
Thank you so much for the PR, it looks really polished! We left a few questions. It looks like RuboCop failed if you wouldn't mind fixing the linting errors. And let us know if you'd like help digging into the JRuby rspec failures.
Updated but can't rerun CI |
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.
Thanks for the next round, a few more comments. It looks like this is failing Rubocop still, to run rubocop locally before submitting the next round, you can run bundle exec rubocop
.
Also - do you know why this is failing JRuby specs?
494c981
to
449aac5
Compare
Here is a short code snippet manually created to reproduce the JRuby issue: require "memo_wise"
# Same outcome for `module TestModule1`, using `Module.new` to be the same as spec
TestModule1 = Module.new do
prepend MemoWise
self.module_eval <<~END_OF_METHOD, __FILE__, __LINE__ + 1
def no_args
@no_args_counter = no_args_counter + 1
"no_args"
end
memo_wise :no_args
END_OF_METHOD
end Update 1: However if I run Test Code to be run in
|
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.
LGTM
Thanks so much @PikachuEXE. Quick question: Do we need test coverage that ensures that two different |
Thanks for the detailed JRuby investigation, @PikachuEXE! @jemmaissroff and I continued your investigation and ended up reporting jruby/jruby#6758 as a result. In the meantime I think it's okay to merge this once @ms-ati's question is addressed (we can resolve the git conflicts on our end). |
449aac5
to
d3e23ad
Compare
Test case for 2 classes extending 1 module with memoized method(s) added |
d3e23ad
to
8ae4727
Compare
Will this be merged before JRuby fix jruby/jruby#6758 ? |
Are there paths forward that we can merge this before jruby/jruby#6758 is fixed, but not have all of our builds fail from now on? |
Just updated those "failing on JRuby only" test cases to be skipped on JRuby. |
I've fixed two Rubocop issues and some mis-named let variables -- in my view this is ready to merge! Yay! @jemmaissroff are we clear to merge? Currently Github thinks you need to re-review? |
Yes! Looks good to me, sorry I didn't mean to be a blocker. Merging now! |
Hope this get released soon so that I can finally start switching to this gem. |
MemoWise v1.1.0 is now released! |
Before merging:
README.md
and update this PRCHANGELOG.md
, add an entry following Keep a Changelog guidelines with semantic versioningThis would fix something like this: