Compare commits
No commits in common. "master" and "v1.0.1" have entirely different histories.
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue