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

Corrected other occurrences of spelling vehicle spelling error, deprecated Space launch_vehicule #1634

Merged
merged 5 commits into from
Jul 28, 2019

Conversation

Siyanda
Copy link
Contributor

@Siyanda Siyanda commented Jun 17, 2019

  • bundle exec rubocop
  • Deprecated launch_vehicule before removing it.

extend Gem::Deprecate

def launch_vehicule
Faker::Space.launch_vehicule
Copy link
Member

@vbrazo vbrazo Jun 17, 2019

Choose a reason for hiding this comment

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

it should be Faker::Space.launch_vehicle, otherwise it will crash

Faker::Space.launch_vehicule
end

deprecate :launch_vehicule, 'Faker::Space.launch_vehicule', 2019, 06
Copy link
Member

@vbrazo vbrazo Jun 17, 2019

Choose a reason for hiding this comment

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

It should be

deprecate :launch_vehicule, 'Faker::Space.launch_vehicle', 2019, 06

end

def launch_vehicule
assert @tester.character.match(/\w+/)
Copy link
Member

@vbrazo vbrazo Jun 17, 2019

Choose a reason for hiding this comment

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

copy and 🍝

it should be @tester.launch_vehicule.match :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You got me there, It's my first time deprecating a method, so I searched for a similar commit and copy paste

@vbrazo
Copy link
Member

vbrazo commented Jun 17, 2019

In this case, you don't need to create a new file because Faker::Space doesn't have a namespace yet. We usually deprecate and move to the /deprecate folder when we are adding a new namespace or deprecating an entire faker object.

I'd suggest deprecating the method inside the same faker object. You'd end up having a launch_vehicle and launch_vehicule in Faker::Space. launch_vehicule would be deprecated and should call launch_vehicle.

@Siyanda Siyanda marked this pull request as ready for review June 23, 2019 23:26
@vbrazo vbrazo force-pushed the master branch 3 times, most recently from 69291b2 to 5cc660c Compare July 5, 2019 17:21
@vbrazo vbrazo changed the base branch from master to v2 July 28, 2019 20:41
Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

I've made a few changes, and I'll merge this PR to our v2 branch. Since this is a breaking change, it should go there.

Thanks for renaming this typo 👍

@vbrazo vbrazo merged commit d527fbe into faker-ruby:v2 Jul 28, 2019
@vbrazo vbrazo mentioned this pull request Jul 28, 2019
michebble pushed a commit to michebble/faker that referenced this pull request Feb 16, 2020
…cated Space launch_vehicule (faker-ruby#1634)

* deperecated misspelled launch_vehicule and removed test

* corrected other occurrences of spelling vehicle spelling error and added to tests

* deprecation and tests for Space.launch_vehicle

* Remove unnecessary test
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
…cated Space launch_vehicule (faker-ruby#1634)

* deperecated misspelled launch_vehicule and removed test

* corrected other occurrences of spelling vehicle spelling error and added to tests

* deprecation and tests for Space.launch_vehicle

* Remove unnecessary test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants