From ee60e66936332e57a5ab031412fdb842be7a19dd Mon Sep 17 00:00:00 2001 From: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:03:29 -0700 Subject: [PATCH] stripe-ruby v9 release (#1253) * wip * Pin to latest API version * Empty commit --------- Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> --- lib/stripe.rb | 1 + lib/stripe/stripe_configuration.rb | 1 + test/stripe/stripe_configuration_test.rb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/stripe.rb b/lib/stripe.rb index 243fa8585..890c4a9bc 100644 --- a/lib/stripe.rb +++ b/lib/stripe.rb @@ -15,6 +15,7 @@ require "forwardable" # Version +require "stripe/api_version" require "stripe/version" # API operations diff --git a/lib/stripe/stripe_configuration.rb b/lib/stripe/stripe_configuration.rb index 4c42f8161..f58bd7209 100644 --- a/lib/stripe/stripe_configuration.rb +++ b/lib/stripe/stripe_configuration.rb @@ -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 diff --git a/test/stripe/stripe_configuration_test.rb b/test/stripe/stripe_configuration_test.rb index 9f34293b3..fe8b8b006 100644 --- a/test/stripe/stripe_configuration_test.rb +++ b/test/stripe/stripe_configuration_test.rb @@ -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