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

Rename Stripe.configuration to Stripe.config #972

Merged
merged 1 commit into from
Apr 2, 2021

Conversation

brandur
Copy link
Contributor

@brandur brandur commented Apr 2, 2021

This is just a cosmetic change that renames Stripe.configuration to
just Stripe.config. We use the shorter "config" in most other places
including StripeClient#config, so I feel that this is overall more
consistent.

This change is backwards compatible because the new accessor came in
with #968, and that hasn't been given a formal release yet.

I've left the class name as StripeConfiguration which IMO is fine. The
class uses the expanded form of the name while vars and accessors use
the shorter config. Also, StripeConfiguration has been around a
little bit longer, so renaming it is somewhat backwards incompatible
too.

r? @richardm-stripe This one's pretty tiny. Mind taking a look?

This is just a cosmetic change that renames `Stripe.configuration` to
just `Stripe.config`. We use the shorter "config" in most other places
including `StripeClient#config`, so I feel that this is overall more
consistent.

This change is backwards compatible because the new accessor came in
with #968, and that hasn't been given a formal release yet.

I've left the class name as `StripeConfiguration` which IMO is fine. The
class uses the expanded form of the name while vars and accessors use
the shorter `config`. Also, `StripeConfiguration` has been around a
little bit longer, so renaming it is somewhat backwards incompatible
too.
@brandur-stripe brandur-stripe changed the title On config change, only clear connection managers for changed config Rename Stripe.configuration to Stripe.config Apr 2, 2021
@brandur-stripe
Copy link
Contributor

Ugh, hub reused my last run's title/message without me noticing so the original title/description of this PR was totally wrong. Fixed.

@brandur-stripe
Copy link
Contributor

TY!

@brandur-stripe brandur-stripe merged commit 16a094c into master Apr 2, 2021
@brandur-stripe brandur-stripe deleted the brandur-rename-config branch April 2, 2021 20:24
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.

None yet

3 participants