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

Moves Fog::VERSION to fog/core, Adds User-Agent header #1311

Merged
merged 3 commits into from
Nov 27, 2012

Conversation

tokengeek
Copy link
Member

This is the fix for #1310

Fog::VERSION is now in it's own file which is required from within lib/fog/core so should be available to individual providers without needing to bring in everything in lib/fog

Lazily this also includes the change to add the User-Agent header

Now available within "fog/core"

Just reverted a change where depending on Fog::VERSION for the
User-Agent made a dependency on requiring "lib/fog" which also requires
all providers and services.

That is highly undesirable from a modular perspective!
As discussed in #1026 this adds a User Agent HTTP header to help identify
the version of fog is accessing APIs.

This revised version fixes issue #1310
@geemus
Copy link
Member

geemus commented Nov 27, 2012

@tokengeek - I believe rake release depends on VERSION = X.Y.Z appearing in lib/fog. Could you double check and/or update that also?

No longer need to read in `lib/fog` to access the VERSION mostly because
we are already requiring it anyway in the Rakefile!

The #version method just repeats Fog::VERSION

`rake -T` works and changelog generates
@tokengeek
Copy link
Member Author

@geemus Fixed that. We required "lib/fog" anyway so had access to Fog::VERSION as a constant anyway!

So #version just uses that.

@geemus
Copy link
Member

geemus commented Nov 27, 2012

@tokengeek - cool, fair enough, just wanted to double check.

@tokengeek
Copy link
Member Author

@geemus Happy to merge?

@geemus
Copy link
Member

geemus commented Nov 27, 2012

@tokengeek - oh, yeah, sorry for ambiguity. Go for it, thanks!

tokengeek added a commit that referenced this pull request Nov 27, 2012
Moves Fog::VERSION to fog/core, Adds User-Agent header
@tokengeek tokengeek merged commit c81f386 into master Nov 27, 2012
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