From a24fb3486917a1d0e34b26a2a7cc37b2e855a392 Mon Sep 17 00:00:00 2001 From: Bryan Paxton Date: Tue, 30 Jul 2019 07:16:37 -0500 Subject: Update vendored in hex_core to version 0.5.1 version 0.5.1 is a maintenance release of hex_core specifically for rebar3 which contains a configuration update. Prior to v0.5.1 if no repo_organization key was set this could result in a function clause error. The behavior is to now set repo_organization to undefined in this case. --- src/r3_hex_api.erl | 2 +- src/r3_hex_api_key.erl | 2 +- src/r3_hex_api_package.erl | 2 +- src/r3_hex_api_package_owner.erl | 2 +- src/r3_hex_api_release.erl | 2 +- src/r3_hex_api_user.erl | 2 +- src/r3_hex_core.erl | 2 +- src/r3_hex_core.hrl | 4 ++-- src/r3_hex_erl_tar.erl | 2 +- src/r3_hex_erl_tar.hrl | 2 +- src/r3_hex_filename.erl | 2 +- src/r3_hex_http.erl | 2 +- src/r3_hex_http_httpc.erl | 2 +- src/r3_hex_pb_names.erl | 2 +- src/r3_hex_pb_package.erl | 2 +- src/r3_hex_pb_signed.erl | 2 +- src/r3_hex_pb_versions.erl | 2 +- src/r3_hex_registry.erl | 2 +- src/r3_hex_repo.erl | 6 ++++-- src/r3_hex_tarball.erl | 2 +- src/r3_safe_erl_term.xrl | 2 +- 21 files changed, 25 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/r3_hex_api.erl b/src/r3_hex_api.erl index 09d9bcf..e6466f2 100644 --- a/src/r3_hex_api.erl +++ b/src/r3_hex_api.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% @hidden diff --git a/src/r3_hex_api_key.erl b/src/r3_hex_api_key.erl index 68c0b13..ff4e62b 100644 --- a/src/r3_hex_api_key.erl +++ b/src/r3_hex_api_key.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_api_key). -export([ diff --git a/src/r3_hex_api_package.erl b/src/r3_hex_api_package.erl index 903adc0..0a45035 100644 --- a/src/r3_hex_api_package.erl +++ b/src/r3_hex_api_package.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_api_package). -export([get/2, search/3]). diff --git a/src/r3_hex_api_package_owner.erl b/src/r3_hex_api_package_owner.erl index 3a83b43..f74364e 100644 --- a/src/r3_hex_api_package_owner.erl +++ b/src/r3_hex_api_package_owner.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_api_package_owner). -export([ diff --git a/src/r3_hex_api_release.erl b/src/r3_hex_api_release.erl index 4acda0e..0be62b7 100644 --- a/src/r3_hex_api_release.erl +++ b/src/r3_hex_api_release.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_api_release). -export([ diff --git a/src/r3_hex_api_user.erl b/src/r3_hex_api_user.erl index 67d32ce..97d225f 100644 --- a/src/r3_hex_api_user.erl +++ b/src/r3_hex_api_user.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_api_user). -export([ diff --git a/src/r3_hex_core.erl b/src/r3_hex_core.erl index 84eabe6..8489ac3 100644 --- a/src/r3_hex_core.erl +++ b/src/r3_hex_core.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% @doc %% hex_core entrypoint module. diff --git a/src/r3_hex_core.hrl b/src/r3_hex_core.hrl index 31c2bf9..7d19c84 100644 --- a/src/r3_hex_core.hrl +++ b/src/r3_hex_core.hrl @@ -1,3 +1,3 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually --define(HEX_CORE_VERSION, "0.5.0"). +-define(HEX_CORE_VERSION, "0.5.1"). diff --git a/src/r3_hex_erl_tar.erl b/src/r3_hex_erl_tar.erl index a698e43..2cc36c6 100644 --- a/src/r3_hex_erl_tar.erl +++ b/src/r3_hex_erl_tar.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% @private %% Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.erl diff --git a/src/r3_hex_erl_tar.hrl b/src/r3_hex_erl_tar.hrl index 4834b2d..489ce81 100644 --- a/src/r3_hex_erl_tar.hrl +++ b/src/r3_hex_erl_tar.hrl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually % Copied from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/erl_tar.hrl diff --git a/src/r3_hex_filename.erl b/src/r3_hex_filename.erl index f04c72f..da2c0cd 100644 --- a/src/r3_hex_filename.erl +++ b/src/r3_hex_filename.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually % @private % Excerpt from https://github.com/erlang/otp/blob/OTP-20.0.1/lib/stdlib/src/filename.erl#L761-L788 diff --git a/src/r3_hex_http.erl b/src/r3_hex_http.erl index b4794b5..f1b7a3f 100644 --- a/src/r3_hex_http.erl +++ b/src/r3_hex_http.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_http). -export([request/5]). diff --git a/src/r3_hex_http_httpc.erl b/src/r3_hex_http_httpc.erl index 0be9d16..6de822a 100644 --- a/src/r3_hex_http_httpc.erl +++ b/src/r3_hex_http_httpc.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% @hidden diff --git a/src/r3_hex_pb_names.erl b/src/r3_hex_pb_names.erl index 455092c..8cfe973 100644 --- a/src/r3_hex_pb_names.erl +++ b/src/r3_hex_pb_names.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% -*- coding: utf-8 -*- %% Automatically generated, do not edit diff --git a/src/r3_hex_pb_package.erl b/src/r3_hex_pb_package.erl index 131a5da..7da1b8e 100644 --- a/src/r3_hex_pb_package.erl +++ b/src/r3_hex_pb_package.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% -*- coding: utf-8 -*- %% Automatically generated, do not edit diff --git a/src/r3_hex_pb_signed.erl b/src/r3_hex_pb_signed.erl index e8b188a..9e2e791 100644 --- a/src/r3_hex_pb_signed.erl +++ b/src/r3_hex_pb_signed.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% -*- coding: utf-8 -*- %% Automatically generated, do not edit diff --git a/src/r3_hex_pb_versions.erl b/src/r3_hex_pb_versions.erl index 66407dd..b3c310f 100644 --- a/src/r3_hex_pb_versions.erl +++ b/src/r3_hex_pb_versions.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %% -*- coding: utf-8 -*- %% Automatically generated, do not edit diff --git a/src/r3_hex_registry.erl b/src/r3_hex_registry.erl index 86f9176..43b7134 100644 --- a/src/r3_hex_registry.erl +++ b/src/r3_hex_registry.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_registry). -export([ diff --git a/src/r3_hex_repo.erl b/src/r3_hex_repo.erl index dd8264f..0075e7f 100644 --- a/src/r3_hex_repo.erl +++ b/src/r3_hex_repo.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_repo). -export([ @@ -161,7 +161,9 @@ tarball_url(Config, Name, Version) -> build_url(#{repo_url := URI, repo_organization := Org}, Path) when is_binary(Org) -> <>; build_url(#{repo_url := URI, repo_organization := undefined}, Path) -> - <>. + <>; +build_url(Config, Path) -> + build_url(Config#{repo_organization => undefined}, Path). tarball_filename(Name, Version) -> <>. diff --git a/src/r3_hex_tarball.erl b/src/r3_hex_tarball.erl index dd2c77a..fb8c798 100644 --- a/src/r3_hex_tarball.erl +++ b/src/r3_hex_tarball.erl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually -module(r3_hex_tarball). -export([create/2, create_docs/1, unpack/2, format_checksum/1, format_error/1]). diff --git a/src/r3_safe_erl_term.xrl b/src/r3_safe_erl_term.xrl index 742aa6b..6ac1dae 100644 --- a/src/r3_safe_erl_term.xrl +++ b/src/r3_safe_erl_term.xrl @@ -1,4 +1,4 @@ -%% Vendored from hex_core v0.5.0, do not edit manually +%% Vendored from hex_core v0.5.1, do not edit manually %%% Author : Robert Virding %%% Purpose : Token definitions for Erlang. -- cgit v1.1