-
Notifications
You must be signed in to change notification settings - Fork 0
Update call to entitlements to avoid deprecated duration #1
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
Conversation
| Gemspec/DevelopmentDependencies: | ||
| EnforcedStyle: gemspec No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are dev dependencies declared in the gemspec. Instead of changing the structure of the gem I modified the enforced style
| protected | ||
|
|
||
| def perform(method:, path:, key:, headers: {}, body: nil, &block) | ||
| def perform(method:, path:, key:, headers: {}, body: nil, &block) # rubocop:disable Metrics/AbcSize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI was failing, I disabled this rule here instead of changing the entire library
| end | ||
|
|
||
| def get_or_create(&block) # rubocop:disable Naming/AccessorMethodName | ||
| def get_or_create(&block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rubocop -a did this 🤷
| def grant_promotional(duration:, start_time_ms: nil, &block) | ||
| def grant_promotional(start_time_ms: nil, end_time_ms: nil, &block) | ||
| body = { | ||
| duration: duration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I preferred to remove the duration to avoid any usage. This entailed creating a commit in this repo instead of merging the commit from the fork parent
| def list(platform, &block) | ||
| response = perform(method: :get, path: path.to_s, headers: { 'x-platform': platform.to_s }, key: :public, &block) | ||
| response = | ||
| perform(method: :get, path: path.to_s, headers: { 'x-platform': platform.to_s }, key: :public, &block) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rubocop
|
@erickc-el I think we could also just drop tarpoon if it becomes a chore |
The duration param is now deprecated in Stripe API v1, instead we will be using end_time_ms
I decided to create the commit myself instead of keeping up to date with the fork because: