forked from hexpm/hex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
mix hex.package diff VERSION1..VERSION2
(hexpm#698)
- Loading branch information
1 parent
92e8616
commit 41005c6
Showing
9 changed files
with
217 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,7 +135,14 @@ defmodule Hex.APITest do | |
Hex.API.Package.Owner.get("hexpm", "orange", auth) | ||
|
||
assert {:ok, {status, _, _}} = | ||
Hex.API.Package.Owner.add("hexpm", "orange", "[email protected]", "full", false, auth) | ||
Hex.API.Package.Owner.add( | ||
"hexpm", | ||
"orange", | ||
"[email protected]", | ||
"full", | ||
false, | ||
auth | ||
) | ||
|
||
assert status in 200..299 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,9 @@ defmodule Mix.Tasks.Hex.OrganizationTest do | |
in_tmp(fn -> | ||
Hex.State.put(:home, File.cwd!()) | ||
|
||
auth = Hexpm.new_user("orgkeygenuser", "[email protected]", "password", "orgkeygenuser") | ||
auth = | ||
Hexpm.new_user("orgkeygenuser", "[email protected]", "password", "orgkeygenuser") | ||
|
||
Hexpm.new_repo("orgkeygenrepo", auth) | ||
Mix.Tasks.Hex.update_keys(auth[:"$write_key"], auth[:"$read_key"]) | ||
|
||
|
@@ -141,7 +143,9 @@ defmodule Mix.Tasks.Hex.OrganizationTest do | |
in_tmp(fn -> | ||
Hex.State.put(:home, File.cwd!()) | ||
|
||
auth = Hexpm.new_user("orgkeylistuser", "[email protected]", "password", "orgkeylistuser") | ||
auth = | ||
Hexpm.new_user("orgkeylistuser", "[email protected]", "password", "orgkeylistuser") | ||
|
||
Hexpm.new_repo("orgkeylistrepo", auth) | ||
Mix.Tasks.Hex.update_keys(auth[:"$write_key"], auth[:"$read_key"]) | ||
|
||
|
@@ -161,7 +165,14 @@ defmodule Mix.Tasks.Hex.OrganizationTest do | |
in_tmp(fn -> | ||
Hex.State.put(:home, File.cwd!()) | ||
|
||
auth = Hexpm.new_user("orgkeyrevokeyuser", "[email protected]", "password", "orgkeyrevokeuser1") | ||
auth = | ||
Hexpm.new_user( | ||
"orgkeyrevokeyuser", | ||
"[email protected]", | ||
"password", | ||
"orgkeyrevokeuser1" | ||
) | ||
|
||
Hexpm.new_repo("orgkeyrevokerepo", auth) | ||
Hexpm.new_organization_key("orgkeyrevokerepo", "orgkeyrevokerepo2", auth) | ||
Mix.Tasks.Hex.update_keys(auth[:"$write_key"], auth[:"$read_key"]) | ||
|
Oops, something went wrong.