Skip to content

Commit 23e59e5

Browse files
committed
Bump version in README
1 parent d91485f commit 23e59e5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A Clojure HTTP library similar to [clj-http](http://github.com/dakrone/clj-http)
1111
`clj-http-lite` is available as a Maven artifact from [Clojars](https://clojars.org/org.martinklepsch/clj-http-lite):
1212

1313
```clojure
14-
[org.clj-commons/clj-http-lite "0.4.372"]
14+
[org.clj-commons/clj-http-lite "0.4.373"]
1515
```
1616

1717
## Differences from clj-http

bb.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
(do
1616
(let [v (r/version!)
1717
;; commit count + 1 for README update
18-
cc (inc (Integer/parseInt (r/commit-count!)))
18+
cc (inc (Integer/parseInt (t/git-count-revs)))
1919
rt (r/release-tag (r/commit-count-version v cc))]
2020
(t/replace-version "README.md" v cc)
2121
(t/replace-version "project.clj" v cc)

bb/tasks.clj

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
(ns tasks
2-
(:require [clojure.string :as str]))
2+
(:require [babashka.tasks :refer [shell]]
3+
[clojure.string :as str]))
34

45
(defn replace-version [file version cc]
6+
(prn version cc)
57
(spit file
68
(str/replace (slurp file)
79
(re-pattern (format "(%s)\\.(\\d+)" version))
810
(fn [[_ version _]]
911
(str version "." cc)))))
12+
13+
(defn git-count-revs []
14+
(-> (shell {:out :string} "git rev-list HEAD --count")
15+
:out
16+
str/trim))

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject org.clj-commons/clj-http-lite "0.4.372"
1+
(defproject org.clj-commons/clj-http-lite "0.4.373"
22
:description "A Clojure HTTP library similar to clj-http, but more lightweight."
33
:url "https://github.com/martinklepsch/clj-http-lite/"
44
:license {:name "MIT"

0 commit comments

Comments
 (0)