Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

3 changed files with 5 additions and 5 deletions

View file

@ -22,14 +22,14 @@ there did not seem to be any other ways to do it.
If building from Leiningen, add to project dependencies
```clojure
[org.clojars.simon_brooke/real-name "1.0.2"]
[org.clojars.simon_brooke/real-name "1.0.1"]
```
Add the following requirement to your namespace:
```clojure
(ns your.fine.namespace
(:require [cc.journeyman.real-name.core :refer [get-real-name]]))
(:require [cc.journeyman.real-name :refer [get-real-name]]))
```
Resolve usernames to real names by invoking `(get-real-name)`, either without

View file

@ -1,4 +1,4 @@
(defproject org.clojars.simon_brooke/real-name "1.0.2"
(defproject org.clojars.simon_brooke/real-name "1.0.1"
:codox {:metadata {:doc "**TODO**: write docs"
:doc/format :markdown}
:output-path "docs"

View file

@ -33,7 +33,7 @@
"Process this `gecos` field into a map of its sub-fields. See
https://en.wikipedia.org/wiki/Gecos_field"
[gecos]
(delimited-record->map (str gecos ",?") #"," [:real-name :address :work-phone :home-phone :other]))
(delimited-record->map gecos #"," [:real-name :address :work-phone :home-phone :other]))
(defn process-passwd-line
"Process this `line` from a passwd file"
@ -168,4 +168,4 @@
([]
(get-real-name))
([username]
(get-real-name username)))
(get-real-name username)))