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 Ruby 2.7 keyword args deprecation in DSL #1176
Conversation
0f7d1d9
to
1ed0a75
Compare
This change doesn't seem to fix the original issue: RSpec::Matchers.define(:be_foo) do |bar: nil|
match { expect(true).to be true }
end
it 'works' do
expect(:foo).to be_foo(bar: :qux)
end |
Oh hmph, then the original implementation can't have fixed it either. |
1ed0a75
to
94c1d76
Compare
Added additional specs and fix. |
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 Jon, but I have one question.
94c1d76
to
d25c75c
Compare
Happy with this @pirj? |
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.
No warnings! 👍 👏
Hi there 👋 , when are you planning to release a new version of the gem that includes these changes? |
As a volunteer project we don't have a timescale sorry. Soon, theres some other keyword warning removals in progress. |
@lostie It would be very helpful if you could run RSpec's |
@JonRowe a release would be appreciated, even if it doesn't resolve all issues, it resolves some of them. IMO, the time to create a release is so small compared to just about anything involving maintenance of a gem... when you have a great tests suite like |
FWIW, this resolves the only warnings I had in 2.7 🎉 I had to modify my
I'm betting 0.25$ that figuring this out took me more than it takes to make a release. |
@marcandre yes I plan to do one soon, the pattern is generally to try to batch releases together but not wait too long, after all too frequent releases are exhausting for both user and maintainer. However I haven't had any "not tired" time since this was re highlighted and I don't do releases when I'm tired because I tend to make mistakes that are then very hard to reverse in a project as widely used as RSpec. FWIW theres a bunch that goes into releasing one of the RSpec gems, checking any dependencies on the other gems, going through master and checking its been properly merged into |
Fix Ruby 2.7 keyword args deprecation in DSL
This has been released as 3.9.2, I apologise for the delay but for your, 25¢ it took a good 45 minutes to check and sort the status of the two branches, get everything built and released, so I really hope it took you less time to figure out how to use the master branches 😂 |
Thanks @JonRowe I owe you 25¢ 😆 |
Thank you @JonRowe ! |
…rspec/fix-kw-args-deprecation-in-dsl Fix Ruby 2.7 keyword args deprecation in DSL --- This commit was imported from rspec/rspec-expectations@fdbf174.
This commit was imported from rspec/rspec-expectations@bffc9e8.
Fixes #1150, replaces #1154