-
Notifications
You must be signed in to change notification settings - Fork 47
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
fix: remove randexp dependency #91
Conversation
The randexp gem is used to generate a concrete value from a regular expression. It's unfortunate that there is no test to cover that, but it's used in this line https://github.com/pact-foundation/pact-support/blob/master/lib/pact/reification.rb#L17 If you can grab the relevant method from the randexp gem and copy it into the codebase, you can remove the dependency. |
Got it. Thanks, @bethesque :) I have replaced the randexp with expgen. They have I have committed the code not sure how to trigger the unit tests to validate the change. Could you please help me with that? |
I've actually found a test for it here: https://github.com/pact-foundation/pact-support/blob/master/spec/lib/pact/reification_spec.rb#L22 I don't know why it didn't fail when you removed the randexp dependency though 🤔 |
Hey @bethesque Thanks much for your patience and response on this. I have made a change to the gem which is used for Thanks :) |
Please revert this to what you had previously with the expgen gem, and just split out the I'm very happy to help you get this fix out, but I won't be accepting a PR that uses a gem that you have copied, modified and then released without even publishing the source code. That's not a responsible decision as a maintainer. |
@bethesque Sorry for the confusion here. Changed as per your suggestion and updated the PR and I have validated the unit tests and they seem to be happy as well. |
Perfect! |
Gem is released - please update. |
Thanks much @bethesque |
@bethesque Can you also please take a look at this PR pact-foundation/pact-ruby#247 where I have made a change in gemspec file of |
Testing: