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 the Ruby Gherkin parser. Rely on Go binary/protobuf #427

Merged
merged 11 commits into from
Jul 11, 2018

Conversation

mxygem
Copy link
Member

@mxygem mxygem commented Jul 4, 2018

Summary

Make way for Go! Getting rid of the ruby parser with @aslakhellesoy's help! (Thanks!)

Details

Delete all the things! Okay, not, ALL the things, but we've wiped out some code. I've set up the magic file for handle OS/Architecture detection and will eventually open to appropriate go executable.

Motivation and Context

Unify gherkin handling under one set of code rather than many involved language specific implementations

How Has This Been Tested?

Make ✅

TODO

  • Package prebuilt go binaries for various platforms
  • Detect platform and extract the right binary
  • Set up build process

@mxygem
Copy link
Member Author

mxygem commented Jul 4, 2018

@aslakhellesoy I've got the os/arch stuff handled, need to work out the executable stuff.

You mentioned earlier about removing the s3 download backup so I haven't worked on that. Do you want that built for ruby, too?

@mxygem mxygem self-assigned this Jul 7, 2018
@mxygem mxygem removed the wip label Jul 8, 2018
@mxygem mxygem requested a review from aslakhellesoy July 8, 2018 01:35
Copy link
Contributor

@aslakhellesoy aslakhellesoy left a comment

Choose a reason for hiding this comment

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

Great work! @mattwynne and I made some minor changes. Please go ahead and merge.

@@ -2,7 +2,3 @@
../../.templates/github/ .github/
../../.templates/ruby/.travis.yml .travis.yml
../testdata/ testdata/
../download-gherkin-go scripts/download-gherkin-go
Copy link
Contributor

Choose a reason for hiding this comment

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

Put this back in, so it gets updated if we make changes to ../download-gherkin-go

Copy link
Member Author

Choose a reason for hiding this comment

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

Done!

Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't look done, so I added this back on master.

Copy link
Member Author

Choose a reason for hiding this comment

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

@aslakhellesoy Yeah, I had done it locally but hadn't pushed yet. Held off in favor of letting @enkessler have at it if he wanted, but for some reason my comment indicating that didn't make it? Womp. Thanks though!

@@ -6,13 +6,11 @@ module Messages
describe SubprocessCucumberMessages do
Copy link
Contributor

@aslakhellesoy aslakhellesoy Jul 9, 2018

Choose a reason for hiding this comment

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

Can you rename this class to Gherkin to bring it in line with the Java implementation? It makes for a nicer API.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hey, @enkessler, if you want this, you've got it. Let me know otherwise and I'll grab it. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, @enkessler we're thinking about naming it differently so belay last for now. Sorry!

Copy link
Contributor

Choose a reason for hiding this comment

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

Since I've merged this to master now, let's just do this on master. First come first serve!

Copy link
Member Author

Choose a reason for hiding this comment

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

TODO:

Let’s move `Gherkin::Messages::SubprocessCucumberMessages` to `Gherkin::Gherkin`
and `Gherkin::Messages::ProtobufCucumberMessages` to`Gherkin::ProtobufCucumberMessages`. 
We don’t need the `Messages` module in the middle.

Copy link
Member Author

Choose a reason for hiding this comment

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

@enkessler said he'll take a shot at it tonight.

@aslakhellesoy aslakhellesoy merged commit ebc01c9 into master Jul 11, 2018
@aslakhellesoy aslakhellesoy deleted the gherkin-ruby-delete-native-parser branch July 12, 2018 21:11
@lock
Copy link

lock bot commented Jul 12, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants