Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

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.

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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