From 0f5b1dc1979391391a0a395f5a33341aed5daa62 Mon Sep 17 00:00:00 2001 From: Gautier de Montmollin Date: Mon, 23 Sep 2024 20:14:59 +0200 Subject: [PATCH] ulid 20240921.0.0 (#1228) New stuff: - UUID 8-4-4-4-12 output like "01920161-d64d-5a3e-589e-c45df155547b" - Conversion from text representations to a 128-bit number --- index/ul/ulid/ulid-20240921.0.0.toml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 index/ul/ulid/ulid-20240921.0.0.toml diff --git a/index/ul/ulid/ulid-20240921.0.0.toml b/index/ul/ulid/ulid-20240921.0.0.toml new file mode 100644 index 00000000..3811d042 --- /dev/null +++ b/index/ul/ulid/ulid-20240921.0.0.toml @@ -0,0 +1,35 @@ +name = "ulid" +description = "Universally Unique Lexicographically Sortable Identifier" +long-description = ''' +image + +In a nutshell, a ULID code (Universally Unique Lexicographically Sortable Identifier) is +a combination of a 48-bit time stamp (most significant part, with a millisecond accuracy), +and a 80-bit random number (least significant part), totalling 128 bits, that is 16 bytes (octets). + +The ULID code generation is sort of UUID (Universally Unique Identifier) system, also know as GUID (Globally Unique Identifier). +The characteristic of ULID numbers is that they can be compared and sorted by their timestamps. + +The package ULID provides a `Generate` function using the method described above, plus a `Generate_Monotonic` function that enables the production of a monotonically increasing sequence of ULID numbers within the same millisecond. + +The preferred (canonical) representation of a ULID is a certain version of the Base32 encoding (example of output: 01J80P3NJDN0Y5YX7D05421X0G). +The ULID package also provides a function `Encode_as_8_4_4_4_12` that outputs a text representation in the usual UUID 8-4-4-4-12 format (like: 01920161-d64d-5a3e-589e-c45df155547b). +Both formats are also recognized by the `Decode` function. +''' +version = "20240921.0.0" + +authors = ["Gautier de Montmollin"] +maintainers = ["gdemont@hotmail.com"] +maintainers-logins = ["zertovitch"] +licenses = "MIT" +website = "https://github.com/zertovitch/ulid" +tags = ["ulid", "uuid", "guid", "identifier", "timestamp"] +project-files = ["ulid.gpr"] +executables = ["ulid_test"] + +[[depends-on]] +gnat = "(>=11 & <2000) | >=2021" + +[origin] +url = "https://sourceforge.net/projects/ulid-ada/files/ulid-2024-09-21.zip" +hashes = ["sha512:b7822a403e879c6363551e2f13e6f44a9f78253ab1ec33138070213bca2fc0177c793968566d125845806acc6971ffff5408daafa454eb195a054534e1308dd3"]