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

Extend reserved name check #2886

Merged
merged 4 commits into from Apr 28, 2021
Merged

Extend reserved name check #2886

merged 4 commits into from Apr 28, 2021

Conversation

ghost
Copy link

@ghost ghost commented Apr 20, 2021

Description

Fixes rspec/rspec-rails#2478
to_s is now also viewed as a reserved name and thus may not be used.
This also extends the name check to check against strings rather than just symbols.

Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution.
Looks mostly good, a few minor tweaks, and I'm happy to merge it.
Please feel free to add a Changelog.md entry.

lib/rspec/core/memoized_helpers.rb Outdated Show resolved Hide resolved
lib/rspec/core/memoized_helpers.rb Outdated Show resolved Hide resolved
lib/rspec/core/memoized_helpers.rb Outdated Show resolved Hide resolved
lib/rspec/core/memoized_helpers.rb Outdated Show resolved Hide resolved
spec/rspec/core/memoized_helpers_spec.rb Outdated Show resolved Hide resolved
spec/rspec/core/memoized_helpers_spec.rb Outdated Show resolved Hide resolved
spec/rspec/core/memoized_helpers_spec.rb Outdated Show resolved Hide resolved
@pirj
Copy link
Member

pirj commented Apr 20, 2021

1.8.7/1.9.2 CI failures are apparently due to rubygems/rubygems#4549 rubygems/rubygems#4228

@JonRowe
Copy link
Member

JonRowe commented Apr 23, 2021

Can you rebase this? The build was updated with a ruby gems fix which means most legacy rubies should run now

@pirj
Copy link
Member

pirj commented Apr 23, 2021

Still red due to RubyGems.

@JonRowe
Copy link
Member

JonRowe commented Apr 27, 2021

Er apparently I hadn't merged those PRs that mostly fixed CI, my apologies, please rebase from latest main and try again 😹

@JonRowe JonRowe merged commit fa1b5f5 into rspec:main Apr 28, 2021
@JonRowe
Copy link
Member

JonRowe commented Apr 28, 2021

Thanks, I'm pretty confident the remaining failures are existing build issues.

JonRowe added a commit that referenced this pull request Apr 28, 2021
JonRowe added a commit that referenced this pull request Apr 28, 2021
JonRowe added a commit that referenced this pull request Apr 28, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…-reserved-memoized-helper-names

Extend reserved name check

---
This commit was imported from rspec/rspec-core@fa1b5f5.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 19, 2021
…-reserved-memoized-helper-names

Extend reserved name check

---
This commit was imported from rspec/rspec-core@6f8ee75.
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 19, 2021
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.

Bug when using to_s as a subject name
2 participants