File tree Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Expand file tree Collapse file tree 4 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ A Clojure HTTP library similar to [clj-http](http://github.com/dakrone/clj-http)
11
11
` clj-http-lite ` is available as a Maven artifact from [ Clojars] ( https://clojars.org/org.martinklepsch/clj-http-lite ) :
12
12
13
13
``` clojure
14
- [org.clj-commons/clj-http-lite " 0.4.372 " ]
14
+ [org.clj-commons/clj-http-lite " 0.4.373 " ]
15
15
```
16
16
17
17
## Differences from clj-http
Original file line number Diff line number Diff line change 15
15
(do
16
16
(let [v (r/version! )
17
17
; ; commit count + 1 for README update
18
- cc (inc (Integer/parseInt (r/commit -count! )))
18
+ cc (inc (Integer/parseInt (t/git -count-revs )))
19
19
rt (r/release-tag (r/commit-count-version v cc))]
20
20
(t/replace-version " README.md" v cc)
21
21
(t/replace-version " project.clj" v cc)
Original file line number Diff line number Diff line change 1
1
(ns tasks
2
- (:require [clojure.string :as str]))
2
+ (:require [babashka.tasks :refer [shell]]
3
+ [clojure.string :as str]))
3
4
4
5
(defn replace-version [file version cc]
6
+ (prn version cc)
5
7
(spit file
6
8
(str/replace (slurp file)
7
9
(re-pattern (format " (%s)\\ .(\\ d+)" version))
8
10
(fn [[_ version _]]
9
11
(str version " ." cc)))))
12
+
13
+ (defn git-count-revs []
14
+ (-> (shell {:out :string } " git rev-list HEAD --count" )
15
+ :out
16
+ str/trim))
Original file line number Diff line number Diff line change 1
- (defproject org.clj-commons /clj-http-lite " 0.4.372 "
1
+ (defproject org.clj-commons /clj-http-lite " 0.4.373 "
2
2
:description " A Clojure HTTP library similar to clj-http, but more lightweight."
3
3
:url " https://github.com/martinklepsch/clj-http-lite/"
4
4
:license {:name " MIT"
You can’t perform that action at this time.
0 commit comments