Skip to content

Conversation

@david-ruiz-cko
Copy link
Contributor

@david-ruiz-cko david-ruiz-cko commented Dec 11, 2025

This pull request introduces several important updates to the SDK, focusing on raising the minimum supported Ruby version, updating dependencies, improving development tooling, and making minor code cleanups. The changes ensure better compatibility with modern Ruby versions, add automated code quality checks, and clarify project requirements and setup.

Ruby version and dependency updates:

  • Raised the minimum required Ruby version to 2.7.0 in checkout_sdk.gemspec and updated the .ruby-version file to 3.1.0. Ruby 2.6 is no longer supported. [1] [2]
  • Updated the Ruby versions tested in GitHub Actions workflows to 2.7, 3.1, and 3.3, removing 2.6 and adding 3.3. [1] [2]
  • Updated development and runtime dependencies in checkout_sdk.gemspec to use newer versions of rubocop, overcommit, and the faraday suite.
  • Changed the default Ruby version for release builds in the workflow to 3.1.

Development tooling and documentation:

  • Added overcommit as a development dependency and included a new .overcommit.yml configuration file to enable RuboCop checks as pre-commit hooks. [1] [2]
  • Updated the README.md with new requirements, tested Ruby versions, and detailed instructions for setting up and using Overcommit for Git hooks. [1] [2]

Codebase improvements and minor cleanups:

  • Standardized superclass constructor calls to use parentheses for consistency in several client and model classes. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Updated Rakefile to use single quotes for require statements for style consistency.
  • Modified API client methods to explicitly pass params: nil for consistency.
  • Added payments_setups attribute and initialization in CheckoutApi. [1] [2] [3]

@david-ruiz-cko david-ruiz-cko requested a review from a team December 11, 2025 16:09
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/new-endpoint-payment-setups branch from 4a75b91 to d880d87 Compare January 21, 2026 11:45
- Add .ruby-version (3.1.0) for rbenv/rvm
- Add .overcommit.yml for pre-commit hooks (validates lib/ only)
- Update .gitignore to exclude compiled gem artifacts (*.gem)
- Update required Ruby version: >= 2.6.0 -> >= 2.7.0 (breaking change)
- Update RuboCop: ~> 1.36 -> ~> 1.82
- Update Faraday: ~> 1.10 -> >= 2.0, < 3.0
- Update faraday-follow_redirects: ~> 0.3.0 -> ~> 0.5.0
- Update faraday-multipart: ~> 1.0 -> ~> 1.2
- Update overcommit: ~> 0.60 -> ~> 0.60
- Document Ruby 2.7+ requirement in README
- Update build-master.yml: Ruby [2.6, 3.1] -> [2.7, 3.1, 3.3]
- Update build-pull-request.yml: Ruby [2.6, 3.1] -> [2.7, 3.1, 3.3]
- Update build-release.yml: Ruby 2.6 -> 3.1
- Gemfile: add trailing newline
- Rakefile: use single quotes for strings
Auto-correct 132 instances of super without parentheses when passing
arguments. Changed from 'super SomeClass::CONSTANT' to
'super(SomeClass::CONSTANT)' for better code clarity.
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/new-endpoint-payment-setups branch from d880d87 to 4d447c1 Compare January 22, 2026 10:38
- Use explicit keyword argument splat (**opts) to avoid Ruby 2.7 hash-to-kwargs ambiguity
- Add overcommit to Gemfile for consistent development environment
- Change ENV[] to ENV.fetch() for better error handling
Explicitly pass params: nil to invoke() in invoke_post, invoke_put, and
invoke_patch to prevent Ruby 2.7 from interpreting hash arguments as
keyword arguments.

This resolves ArgumentError: unknown keywords when passing hashes to
update_payment_setup and other methods that use invoke_put.

- Add params: nil to all HTTP method wrappers (post, put, patch)
- Simplify payment setups tests to match PHP SDK pattern
- Use ENV.fetch() for better error handling
- Update helper to use explicit keyword argument splat
@sonarqubecloud
Copy link

@armando-rodriguez-cko armando-rodriguez-cko changed the title Feature/new endpoint payment setups feat: add payment setups support Jan 22, 2026
@armando-rodriguez-cko armando-rodriguez-cko merged commit c60f388 into master Jan 23, 2026
6 of 8 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/new-endpoint-payment-setups branch January 23, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants