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

Target Ruby 2.3 #1311

Merged
merged 5 commits into from
Jul 12, 2018
Merged

Target Ruby 2.3 #1311

merged 5 commits into from
Jul 12, 2018

Conversation

tagliala
Copy link
Contributor

(I know that "unsopported" doesn't mean "don't work")

Since support for Ruby 2.1 and 2.2 were dropped and there is a 2.0 milestone, this PR contains a proposal to set the minimum required Ruby version to 2.3

I've removed the lib/extensions folder, because the minimum required version of Ruby already support the class methods defined there

I've updated RuboCop and fixed all the new issues

Ruby 2.3 added support for frozen string literals and RuboCop demands # frozen_string_literal: true on top of each ruby file, I've fixed the fakers that didn't work with frozen string literals.

@vbrazo vbrazo added the Chores label Jul 12, 2018
@stympy stympy merged commit ad3856b into faker-ruby:master Jul 12, 2018
@stympy
Copy link
Contributor

stympy commented Jul 12, 2018

Awesome, thanks!

@vbrazo vbrazo mentioned this pull request Jul 17, 2018
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
* Set required Ruby version to 2.3

* Remove useless extensions -- the minimum required version of Ruby supports `Array.sample` and
`Symbol.downcase`

* Update RuboCop to 0.58.1

* Fix RuboCop offences

* Add Frozen String Literals support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants