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

Negating HEX_UNSAFE_REGISTRY value #285 #287

Merged
merged 3 commits into from
Sep 7, 2016
Merged

Conversation

sashman
Copy link
Contributor

@sashman sashman commented Sep 5, 2016

Adding Kernel.not negation as per request

@@ -42,7 +42,7 @@ defmodule Hex.State do
https_proxy: load_config(config, ["https_proxy", "HTTPS_PROXY"], :https_proxy),
offline?: load_config(config, ["HEX_OFFLINE"], :offline) |> to_boolean |> default(false),
check_cert?: load_config(config, ["HEX_UNSAFE_HTTPS"], :unsafe_https) |> to_boolean |> default(false) |> Kernel.not,
check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(true),
check_registry?: load_config(config, ["HEX_UNSAFE_REGISTRY"], :unsafe_registry) |> to_boolean |> default(true) |> Kernel.not,
Copy link
Member

Choose a reason for hiding this comment

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

The tests seem to be failing. Since we are negating we also need to change the default.

@ericmj ericmj merged commit 967c412 into hexpm:master Sep 7, 2016
@ericmj
Copy link
Member

ericmj commented Sep 7, 2016

Thank you!

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