Skip to content

Commit

Permalink
add inline-resource; bump 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Dec 15, 2018
1 parent b497a9b commit d6c6cac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cumulo Util (WIP)
[![Clojars Project](https://img.shields.io/clojars/v/cumulo/util.svg)](https://clojars.org/cumulo/util)

```edn
[cumulo/util "0.1.2"]
[cumulo/util "0.1.3"]
```

```clojure
Expand All @@ -24,7 +24,9 @@ Cumulo Util (WIP)
(cumulo-util.file/get-backup-path!)
(cumulo-util.file/merge-local-edn! {} "a.edn" (fn [found?] (println found?)))

(cumulo-util.build/get-ip!) ; a macro
; macros
(cumulo-util.build/get-ip!)
(cumulo-util.build/inline-resource "a.text")
```

### License
Expand Down
3 changes: 3 additions & 0 deletions macros/cumulo_util/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@

(defmacro get-ip! []
(.getHostAddress (InetAddress/getLocalHost)))

(defmacro inline-resource [resource-path]
(slurp resource-path))
2 changes: 1 addition & 1 deletion meyvn.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{:pom {:group-id "cumulo",
:artifact-id "util",
:version "0.1.2",
:version "0.1.3",
:name "Util functions for Cumulo projects"}
:packaging {:jar {:enabled true
:remote-repository {:id "clojars"
Expand Down

0 comments on commit d6c6cac

Please sign in to comment.