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

Remove support for Ruby v1.8 #536

Merged
merged 1 commit into from
Aug 21, 2022
Merged

Conversation

floehopper
Copy link
Member

@floehopper floehopper commented Aug 21, 2022

Extended maintenance of Ruby v1.8.7 ended on 31 Jul 2014 and Mocha
support for Ruby v1.8 has been deprecated since v1.10
.

Recent work in #534 has run into problems with files containing keyword
arguments not being parsable by Ruby v1.8 and so I think the time has
come to drop support.

Extended maintenance of Ruby v1.8.7 ended on 31 Jul 2014 [1] and Mocha
support for Ruby v1.8 has been deprecated since v1.10 [2].

Recent work in #534 has run into problems with files containing keyword
arguments not being parsable by Ruby v1.8 and so I think the time has
come to drop support.

Note that I had to change a couple of hard-coded line numbers in unit
tests to match up with the changed source code in
lib/mocha/stubbed_method.rb.

[1]: https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/
[2]: c5f8496
@floehopper floehopper marked this pull request as ready for review August 21, 2022 09:34
@floehopper floehopper merged commit ddb5d67 into main Aug 21, 2022
@floehopper floehopper deleted the remove-support-for-ruby-v1.8 branch August 21, 2022 09:36
floehopper pushed a commit that referenced this pull request Aug 31, 2022
Reflection-related methods returning arrays of method names, e.g.
Object#public_methods, Module#public_instance_methods, etc, seem to have
changed from returning arrays of strings in Ruby v1.8 to returning
arrays of symbols in Ruby v1.9. See also
9705028.

Since we dropped support for Ruby v1.8 in #536, we can safely remove the
call to to_sym from Assertions#assert_method_visibility.
@nitishr nitishr mentioned this pull request Sep 2, 2022
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.

1 participant