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

Change Google's url to the public_url #1683

Merged
merged 1 commit into from
Jun 30, 2015

Conversation

m7moud
Copy link
Contributor

@m7moud m7moud commented Jun 19, 2015

commondatastorage is a deprecated endpoint, the current Request URIs should be used instead, and fog-google is already up to date.

I guess this could be extended to the other providers too.

bensie added a commit that referenced this pull request Jun 30, 2015
Change Google's url to the public_url
@bensie bensie merged commit 37cf31d into carrierwaveuploader:master Jun 30, 2015
@@ -353,7 +353,8 @@ def public_url
end
end
when 'Google'
"https://commondatastorage.googleapis.com/#{@uploader.fog_directory}/#{encoded_path}"
file = directory.files.get(encoded_path)
file.nil?? "" : file.public_url

Choose a reason for hiding this comment

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

what is #nil?? ?

Choose a reason for hiding this comment

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

:$ ok... space is not needed then

@webattitude
Copy link

this is quite long now, I mean asking fog for the public_url.... I've got plenty of timeouts with this now, occuring withing excon socket, so until I sort all this out I reverted to previous version of this class.

@thomasfedb
Copy link
Contributor

@webattitude If you're having issues with timeouts when requesting public_url please open a new issue.

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

4 participants