-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from pmonks/dev
Release 2.0.238
- Loading branch information
Showing
12 changed files
with
246 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: deploy | |
on: | ||
push: | ||
branches: | ||
- main | ||
- release | ||
|
||
jobs: | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: docs | |
on: | ||
push: | ||
branches: | ||
- main | ||
- release | ||
|
||
jobs: | ||
docs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,21 +16,20 @@ | |
; SPDX-License-Identifier: Apache-2.0 | ||
; | ||
|
||
(def lib 'com.github.pmonks/spinner) | ||
|
||
#_{:clj-kondo/ignore [:unresolved-namespace]} | ||
(def version (format "2.0.%s" (b/git-count-revs nil))) | ||
|
||
(defn set-opts | ||
[opts] | ||
(assoc opts | ||
:lib lib | ||
:version version | ||
:lib 'com.github.pmonks/spinner | ||
:version (pbr/calculate-version 2 0) | ||
:prod-branch "release" | ||
:write-pom true | ||
:validate-pom true | ||
:pom {:description "Simple ANSI text progress indicators for command line Clojure apps." | ||
:url "https://github.com/pmonks/spinner" | ||
:licenses [:license {:name "Apache-2.0" :url "http://www.apache.org/licenses/LICENSE-2.0.html"}] | ||
:developers [:developer {:id "pmonks" :name "Peter Monks" :email "[email protected]"}] | ||
:scm {:url "https://github.com/pmonks/spinner" :connection "scm:git:git://github.com/pmonks/spinner.git" :developer-connection "scm:git:ssh://[email protected]/pmonks/spinner.git"} | ||
:issue-management {:system "github" :url "https://github.com/pmonks/spinner/issues"}})) | ||
:issue-management {:system "github" :url "https://github.com/pmonks/spinner/issues"}} | ||
:codox {:namespaces ['progress.determinate 'progress.indeterminate 'progress.util 'spinner.core] | ||
:metadata {:doc/format :markdown}})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
;;; This namespace contains 3rd party code obtained from other sources. | ||
;;; Copyright and license information is listed on a per-var basis. | ||
|
||
(ns progress.3rd-party) | ||
|
||
;; Copyright 2014 A. Webb (https://stackoverflow.com/users/1756702/a-webb) | ||
;; SPDX-License-Identifier: CC-BY-SA-3.0 | ||
(defn swap*! | ||
"Like [[clojure.core/swap!]] but returns a vector of `[old-value new-value]`. | ||
Adapted from [this StackOverflow question](https://stackoverflow.com/a/22409846)." | ||
[atom f & args] | ||
(loop [] | ||
(let [ov @atom | ||
nv (apply f ov args)] | ||
(if (compare-and-set! atom ov nv) | ||
[ov nv] | ||
(recur))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.