From 505a05f19d66856fe6c8c54f574f89d5702a2737 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sat, 8 Jul 2017 15:35:17 +0100 Subject: [PATCH] Rename monad to maybe. Add rename package instructions to readme. --- README.md | 27 +++++++++++++++++++++++++++ packages.json | 4 ++++ 2 files changed, 31 insertions(+) diff --git a/README.md b/README.md index dc1a0b1..fda9691 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,30 @@ Your packages may be removed if the url stops working. It goes without saying that your pull request will not be accepted unless you fill out all of the above required fields correctly, the package that ``url`` points to must also contain a .nimble file, or else it will be rejected. + +## Renaming packages + +To rename a package you will need to add a new entry for your package. Simply +perform the following steps: + +* Duplicate your package's current entry. +* Remove every field in one of the entries apart from the `name` field. +* Add an `alias` field to that entry. +* Change the name in the other package entry. + +For example: + +``` +... + { + "name": "myoldname", + "alias": "mynewname" + }, + { + "name": "mynewname", + "url": "...", + "method": "git", + ... + }, +... +``` \ No newline at end of file diff --git a/packages.json b/packages.json index a5159f7..4f65c2b 100644 --- a/packages.json +++ b/packages.json @@ -1591,6 +1591,10 @@ "license": "OpenSSL License and SSLeay License", "web": "https://github.com/cowboy-coders/nim-openssl-evp" }, + { + "name": "monad", + "alias": "maybe" + }, { "name": "maybe", "url": "https://github.com/superfunc/maybe",