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

deps.edn and single segment namespace #59

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ pom.xml.asc
lpr.sh

test/new.clj
/clj-uuid.iml
/danlentz.clj-uuid.iml
/.idea
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
clj-uuid
danlentz.clj-uuid
========

> _"The intent of the UUID is to enable distributed systems to uniquely_
Expand All @@ -7,7 +7,7 @@ clj-uuid

* * * * * *

**clj-uuid** is a Clojure library for generation and utilization of
**danlentz.clj-uuid** is a Clojure library for generation and utilization of
UUIDs (Universally Unique Identifiers) as described by
[**IETF RFC-9562**](http://www.ietf.org/rfc/rfc9562.txt).

Expand All @@ -33,15 +33,15 @@ identifiers to a wider audience.
With Leiningen:


[![Clojars Project](https://img.shields.io/clojars/v/danlentz/clj-uuid.svg)](https://clojars.org/danlentz/clj-uuid)
[![Clojars Project](https://img.shields.io/clojars/v/danlentz/danlentz.clj-uuid.svg)](https://clojars.org/danlentz/danlentz.clj-uuid)


### How is it better?

The JVM version only provides an automatic generator for random (v4)
and (non-namespaced) pseudo-v3 UUID's. Where appropriate, this library
does use the internal JVM UUID implementation. The benefit with this library
is that clj-uuid provides an easy way to get fast time-based (v1, v6),
is that danlentz.clj-uuid provides an easy way to get fast time-based (v1, v6),
true namespaced (v3, v5), and high quality cryptographcically secure
time-based (v7) UUIDs.

Expand Down Expand Up @@ -84,7 +84,7 @@ to your last few undecillion or so and I'll see what I can do to help out.

### Usage

Using clj-uuid is really easy. Docstrings are provided, but sometimes
Using danlentz.clj-uuid is really easy. Docstrings are provided, but sometimes
examples help, too. The following cases demonstrate about 90% of the
functionality that you are likely to ever need.

Expand All @@ -93,7 +93,7 @@ In order to refer to the symbols in this library, it is recommended to

```clojure

(require '[clj-uuid :as uuid])
(require '[danlentz.clj-uuid.api :as uuid])
```

Or include in namespace declaration:
Expand All @@ -102,7 +102,7 @@ Or include in namespace declaration:
```clojure

(ns foo
(:require [clj-uuid :as uuid])
(:require [danlentz.clj-uuid.api :as uuid])
...
)

Expand Down Expand Up @@ -347,7 +347,7 @@ user> (get-instant y)

As you can see, it is always possible to order time encoded ids by
parsing them, but v6 and v7 UUIDs make this easier, on any platform,
even if you don't have your trusty clj-uuid library available.
even if you don't have your trusty danlentz.clj-uuid library available.


```clojure
Expand Down
6 changes: 6 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{:paths ["src"]
:deps
{org.clojure/clojure {:mvn/version "1.12.0"}
org.clj-commons/primitive-math {:mvn/version "1.0.1"}}
:aliases
{:test {:extra-paths ["test"]}}}
2 changes: 1 addition & 1 deletion doc/api/clj-uuid.bitmop.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>clj-uuid.bitmop documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">clj-uuid</span> <span class="project-version">0.2.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><a href="clj-uuid.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>clj-uuid</span></div></a></li><li class="depth-2 branch current"><a href="clj-uuid.bitmop.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>bitmop</span></div></a></li><li class="depth-2 branch"><a href="clj-uuid.clock.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>clock</span></div></a></li><li class="depth-2 branch"><a href="clj-uuid.constants.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>constants</span></div></a></li><li class="depth-2 branch"><a href="clj-uuid.node.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>node</span></div></a></li><li class="depth-2 branch"><a href="clj-uuid.random.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>random</span></div></a></li><li class="depth-2"><a href="clj-uuid.util.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>util</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="clj-uuid.bitmop.html#var-assemble-bytes"><div class="inner"><span>assemble-bytes</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-bit-count"><div class="inner"><span>bit-count</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-bytes-.3Elong"><div class="inner"><span>bytes-&gt;long</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-dpb"><div class="inner"><span>dpb</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-expt2"><div class="inner"><span>expt2</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-hex"><div class="inner"><span>hex</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ldb"><div class="inner"><span>ldb</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-long-.3Ebytes"><div class="inner"><span>long-&gt;bytes</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-mask"><div class="inner"><span>mask</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-mask-offset"><div class="inner"><span>mask-offset</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-mask-width"><div class="inner"><span>mask-width</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-octet-hex"><div class="inner"><span>octet-hex</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-pphex"><div class="inner"><span>pphex</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-sb16"><div class="inner"><span>sb16</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-sb32"><div class="inner"><span>sb32</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-sb64"><div class="inner"><span>sb64</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-sb8"><div class="inner"><span>sb8</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub16"><div class="inner"><span>ub16</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub24"><div class="inner"><span>ub24</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub32"><div class="inner"><span>ub32</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub4"><div class="inner"><span>ub4</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub48"><div class="inner"><span>ub48</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub56"><div class="inner"><span>ub56</span></div></a></li><li class="depth-1"><a href="clj-uuid.bitmop.html#var-ub8"><div class="inner"><span>ub8</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">clj-uuid.bitmop</h1><div class="doc"><pre class="plaintext"></pre></div><div class="public anchor" id="var-assemble-bytes"><h3>assemble-bytes</h3><div class="usage"><code>(assemble-bytes v)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-bit-count"><h3>bit-count</h3><div class="usage"><code>(bit-count x)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-bytes-.3Elong"><h3>bytes-&gt;long</h3><div class="usage"><code>(bytes-&gt;long arr i)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-dpb"><h3>dpb</h3><div class="usage"><code>(dpb bitmask num value)</code></div><div class="doc"><pre class="plaintext">Deposit Byte
<html><head><meta charset="UTF-8" /><title>danlentz.clj-uuid.bitmop documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">danlentz.clj-uuid</span> <span class="project-version">0.2.0-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><a href="danlentz.clj-uuid.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>danlentz.clj-uuid</span></div></a></li><li class="depth-2 branch current"><a href="danlentz.clj-uuid.bitmop.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>bitmop</span></div></a></li><li class="depth-2 branch"><a href="danlentz.clj-uuid.clock.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>clock</span></div></a></li><li class="depth-2 branch"><a href="danlentz.clj-uuid.constants.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>constants</span></div></a></li><li class="depth-2 branch"><a href="danlentz.clj-uuid.node.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>node</span></div></a></li><li class="depth-2 branch"><a href="danlentz.clj-uuid.random.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>random</span></div></a></li><li class="depth-2"><a href="danlentz.clj-uuid.util.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>util</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-assemble-bytes"><div class="inner"><span>assemble-bytes</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-bit-count"><div class="inner"><span>bit-count</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-bytes-.3Elong"><div class="inner"><span>bytes-&gt;long</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-dpb"><div class="inner"><span>dpb</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-expt2"><div class="inner"><span>expt2</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-hex"><div class="inner"><span>hex</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ldb"><div class="inner"><span>ldb</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-long-.3Ebytes"><div class="inner"><span>long-&gt;bytes</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-mask"><div class="inner"><span>mask</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-mask-offset"><div class="inner"><span>mask-offset</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-mask-width"><div class="inner"><span>mask-width</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-octet-hex"><div class="inner"><span>octet-hex</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-pphex"><div class="inner"><span>pphex</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-sb16"><div class="inner"><span>sb16</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-sb32"><div class="inner"><span>sb32</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-sb64"><div class="inner"><span>sb64</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-sb8"><div class="inner"><span>sb8</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub16"><div class="inner"><span>ub16</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub24"><div class="inner"><span>ub24</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub32"><div class="inner"><span>ub32</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub4"><div class="inner"><span>ub4</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub48"><div class="inner"><span>ub48</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub56"><div class="inner"><span>ub56</span></div></a></li><li class="depth-1"><a href="danlentz.clj-uuid.bitmop.html#var-ub8"><div class="inner"><span>ub8</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">danlentz.clj-uuid.bitmop</h1><div class="doc"><pre class="plaintext"></pre></div><div class="public anchor" id="var-assemble-bytes"><h3>assemble-bytes</h3><div class="usage"><code>(assemble-bytes v)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-bit-count"><h3>bit-count</h3><div class="usage"><code>(bit-count x)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-bytes-.3Elong"><h3>bytes-&gt;long</h3><div class="usage"><code>(bytes-&gt;long arr i)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-dpb"><h3>dpb</h3><div class="usage"><code>(dpb bitmask num value)</code></div><div class="doc"><pre class="plaintext">Deposit Byte
</pre></div></div><div class="public anchor" id="var-expt2"><h3>expt2</h3><div class="usage"><code>(expt2 pow)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-hex"><h3>hex</h3><div class="usage"><code>(hex thing)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ldb"><h3>ldb</h3><div class="usage"><code>(ldb bitmask num)</code></div><div class="doc"><pre class="plaintext">Load Byte
</pre></div></div><div class="public anchor" id="var-long-.3Ebytes"><h3>long-&gt;bytes</h3><div class="usage"><code>(long-&gt;bytes x)</code><code>(long-&gt;bytes x arr i)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-mask"><h3>mask</h3><div class="usage"><code>(mask width offset)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-mask-offset"><h3>mask-offset</h3><div class="usage"><code>(mask-offset m)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-mask-width"><h3>mask-width</h3><div class="usage"><code>(mask-width m)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-octet-hex"><h3>octet-hex</h3><div class="usage"><code>(octet-hex num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-pphex"><h3>pphex</h3><div class="usage"><code>(pphex x)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-sb16"><h3>sb16</h3><div class="usage"><code>(sb16 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-sb32"><h3>sb32</h3><div class="usage"><code>(sb32 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-sb64"><h3>sb64</h3><div class="usage"><code>(sb64 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-sb8"><h3>sb8</h3><div class="usage"><code>(sb8 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub16"><h3>ub16</h3><div class="usage"><code>(ub16 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub24"><h3>ub24</h3><div class="usage"><code>(ub24 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub32"><h3>ub32</h3><div class="usage"><code>(ub32 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub4"><h3>ub4</h3><div class="usage"><code>(ub4 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub48"><h3>ub48</h3><div class="usage"><code>(ub48 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub56"><h3>ub56</h3><div class="usage"><code>(ub56 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div><div class="public anchor" id="var-ub8"><h3>ub8</h3><div class="usage"><code>(ub8 num)</code></div><div class="doc"><pre class="plaintext"></pre></div></div></div></body></html>
Loading
Loading