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

Add tokens.rb #150

Merged
merged 4 commits into from
Jan 16, 2020
Merged

Add tokens.rb #150

merged 4 commits into from
Jan 16, 2020

Conversation

malachy-mcconnell
Copy link
Contributor

A class file for token objects. Includes amendments to client.rb for authentication when creating new tokens.

Copy link
Member

@thommahoney thommahoney left a comment

Choose a reason for hiding this comment

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

Hi @malachy-mcconnell thanks so much for opening this Pull Request. I especially thank you for writing comprehensive tests for the Tokens behavior that you've added.

Do you think you could refactor the implementation a bit to allow for per-request overrides of the auth headers instead of adding additional global state?

lib/fastly/client.rb Outdated Show resolved Hide resolved
lib/fastly/token.rb Outdated Show resolved Hide resolved
Copy link
Member

@thommahoney thommahoney left a comment

Choose a reason for hiding this comment

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

Thanks for your persistence with this PR @malachy-mcconnell. Just a couple of changes and we'll get this merged and released for you ASAP.

lib/fastly/client.rb Outdated Show resolved Hide resolved
lib/fastly/client.rb Outdated Show resolved Hide resolved
Copy link
Member

@thommahoney thommahoney left a comment

Choose a reason for hiding this comment

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

This looks good. Anymore changes you want to make @malachy-mcconnell ?

@malachy-mcconnell
Copy link
Contributor Author

Oh, hi, Are you West Coast? I'm finished making changes. I was just waiting here to see if the tests ran green.

@thommahoney thommahoney merged commit 7c908dd into fastly:master Jan 16, 2020
@thommahoney
Copy link
Member

This is released as v2.5.0. Thank you very much for your PR and for your patience! Please let us know if you have any trouble with the release.

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