Skip to content

Commit

Permalink
Merge pull request #1242 from stripe/richardm-version-pinning
Browse files Browse the repository at this point in the history
[Next major] Set the latest API version as the default
  • Loading branch information
richardm-stripe authored Aug 15, 2023
2 parents 19c0e1f + cf2235f commit 3d0367a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/stripe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
require "forwardable"

# Version
require "stripe/api_version"
require "stripe/version"

# API operations
Expand Down
1 change: 1 addition & 0 deletions lib/stripe/stripe_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def reverse_duplicate_merge(hash)
end

def initialize
@api_version = ApiVersion::CURRENT
@ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
@enable_telemetry = true
@verify_ssl_certs = true
Expand Down
2 changes: 1 addition & 1 deletion test/stripe/stripe_configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class StripeConfigurationTest < Test::Unit::TestCase
assert_equal "https://api.stripe.com", config.api_base
assert_equal "https://connect.stripe.com", config.connect_base
assert_equal "https://files.stripe.com", config.uploads_base
assert_equal nil, config.api_version
assert !config.api_version.nil?
end

should "allow for overrides when a block is passed" do
Expand Down

0 comments on commit 3d0367a

Please sign in to comment.