Content-Length: 403258 | pFad | https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/658

73 Make the gem compatible with Stripe Gem v.5 · Pull Request #658 · stripe-ruby-mock/stripe-ruby-mock · GitHub
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

Make the gem compatible with Stripe Gem v.5 #658

Merged

Conversation

ghost
Copy link

@ghost ghost commented Oct 21, 2019

Hey there,

this PR is a work in progress to start making the Gem compatible with version 5 of the Stripe gem. Contrary to the implementation started in #643, I am explicitly dropping compatability with all lower gems. As discussed in #646 it is planned to release a version 3 of this gem anyways that will require Stripe 5.

I hope nobody else started working on this, I looked through the branches here, but did not check all 500 forks.

TODOs

  • Update the StripeError implementation to use code as a keyword argument
    • Drive-By-Refactoring: Correctly generate http_body as this should contain the unparsed JSON body
    • Think about refactoring those errors to correctly include the object that caused the error
  • Rename all instances of all to list (Remove all alias for list methods stripe/stripe-ruby#823)
  • Change instance methods that were removed in favor of better named class methods (Remove old deprecated methods stripe/stripe-ruby#820) i.e. customer.invoice_items -> InvoiceItems.list(customer: customer.id)

Migration Guide: https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v5#removed-methods

@ghost ghost force-pushed the stripe-v5-compatability branch from b031b37 to 23fb715 Compare October 21, 2019 15:38
@ghost ghost force-pushed the stripe-v5-compatability branch from 23fb715 to 06458c0 Compare October 21, 2019 15:39
@ghost
Copy link
Author

ghost commented Oct 21, 2019

Hmm, the tests are all working locally ... Any ideas what I can do to make them work on Travis?

Copy link

@vishnun vishnun left a comment

Choose a reason for hiding this comment

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

This is all great !!! This is going to be very useful for many people who depend on this gem for stripe related testing.
I left a few minor comments/suggestions but overall it all looks good. Approving it.

lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
lib/stripe_mock/api/errors.rb Outdated Show resolved Hide resolved
@ghost
Copy link
Author

ghost commented Oct 23, 2019

Ran rubocop against the errors file to make the changes sugested by @vishnun

@ghost ghost mentioned this pull request Nov 29, 2019
@ghost
Copy link
Author

ghost commented Nov 29, 2019

This has been open for over a month now ... Any chance to do something here?

@hadees
Copy link

hadees commented Dec 5, 2019

@ioki-klaus have you tried tagging @rebelidealist or @vishnun directly? Also there seems to be a chat at https://gitter.im/rebelidealist/stripe-ruby-mock

@ghost
Copy link
Author

ghost commented Dec 5, 2019

Well I don't think the team here is not maintaining this anymore and there are other people working on this ... Also, I don't want to ping people directly. I am working with my own fork now and this is fine for me

@alexmamonchik
Copy link
Contributor

@ioki-klaus thank you very much! You made a wonderful and huge contribution! But if you want to help - don't need to wait for me for merging. There are a lot of work to be done with gem and I have my paid projects. Unfortunately, I have no enough time for support this gem. Initial owner doesn't work with ruby anymore and doesn't support this gem. Please, read this and get an access for merge/push/release.

@ghost
Copy link
Author

ghost commented Dec 18, 2019

Hey @alexmamonchik, thanks for the reply. Yeah, I can totally understand your situation and that's why I also did not want to bother you (or other maintainers, if there are some) with asking you personally to look at this PR. I know the pains of maintaining an Open Source project :)

I would like to contribute some more, with some conditions (like splitting the Stripe mock logic from the server into seperate gems, because the current implementation is very messy and hard to get up and running to test ... Requiring increasing ulimit is crazy :D). Maybe we can have a talk about he future?

I think @mnin might also be interested in contributing more ... How would you feel about setting up a chat or something?

@ghost ghost deleted the stripe-v5-compatability branch December 18, 2019 15:26
@mnin
Copy link
Contributor

mnin commented Dec 18, 2019

@ioki-klaus Thanks for your mention, yeah, I'd be interested to change more here, that's true.

@alexmamonchik thanks for your work!

I would prefer a new Slack workspace.

@ghost ghost mentioned this pull request Jan 2, 2020
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.

5 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/stripe-ruby-mock/stripe-ruby-mock/pull/658

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy