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

Make name optional #83

Merged
merged 4 commits into from
Mar 9, 2021
Merged

Conversation

ineu
Copy link
Contributor

@ineu ineu commented Mar 9, 2021

This fixes a regression introduced in 2.2.0. The name argument must not be mandatory, as it breaks the existing code which is not expected from the minor version.

Copy link
Contributor

@JoeSouthan JoeSouthan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ineu, thanks for fixing this up and adding some spec! 🎉

Just one minor change in the readme but this is generally good to go 👍

@@ -55,7 +55,7 @@ Get started with business by creating an instance of the calendar class, that ac
```ruby
calendar = Business::Calendar.new(
working_days: %w( mon tue wed thu fri ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it might be good to add the name arg here as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@JoeSouthan JoeSouthan merged commit 2b96640 into gocardless:master Mar 9, 2021
@JoeSouthan
Copy link
Contributor

Thanks for this, this will be released shortly

@ineu ineu deleted the make-name-optional branch March 10, 2021 21:11
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.

2 participants