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
Issue6765 proxy #6817
Issue6765 proxy #6817
Conversation
…_form don't use ENV proxy settings (#6765)
http_conn = Net::HTTP.new(uri.host, uri.port) | ||
http_conn.use_ssl = true | ||
result = http_conn.request_get(uri.path) | ||
raise "#{result.message} (#{result.code})" unless result.kind_of? Net::HTTPSuccess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use UI.crash!
instead of raise
as described here: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/UI.md
@@ -72,8 +72,12 @@ def download_android_tools | |||
begin | |||
UI.important("Downloading Crashlytics Support Library - this might take a minute...") | |||
|
|||
result = Net::HTTP.get(URI(url)) | |||
File.write(zip_path, result) | |||
uri = URI(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to mention (with a link to the ruby issue) why it is done that way in a comment. Otherwise someone might come along later, wonder why it is done this way, and change it back.
Beautiful 💯 |
Thanks for contributing to fastlane! Before you submit your pull request, please make sure to check the following boxes:
bundle exec rspec
from the subdirectory of each tool you modified. Alternatively, runrake test_all
from the root directory.bundle exec rubocop -a
to ensure the code style is validBefore submitting a pull request, we appreciate if you create an issue first to discuss the change 👍
PR for issue #6765