Run of fresh-releases for clj-stacktrace-clojure

Merge these changes:

Summary

Merged new upstream version: 0.2.8 (was: 0.2.7).

Diff

Branch: main

diff --git a/README.md b/README.md
index 1d47447..24fef5b 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ basis. Just add the following to `~/.lein/profiles.clj`:
                                             'print-cause-trace)
                            new (ns-resolve (doto 'clj-stacktrace.repl require)
                                            'pst)]
-                       (alter-var-root orig (constantly @new)))]}}
+                       (alter-var-root orig (constantly (deref new))))]}}
 ```
 
 The `:injections` clause replaces the built-in stack trace printing
diff --git a/debian/changelog b/debian/changelog
index 56b0dbf..8e9e989 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,12 @@
-clj-stacktrace-clojure (0.2.7-2) UNRELEASED; urgency=normal
+clj-stacktrace-clojure (0.2.8-1) UNRELEASED; urgency=normal
 
   [ Louis-Philippe Véronneau ]
   * d/control: New email for the Clojure Team.
 
- -- Louis-Philippe Véronneau <pollo@debian.org>  Sat, 08 Jan 2022 18:32:53 -0500
+  [ Debian Janitor ]
+  * New upstream release.
+
+ -- Louis-Philippe Véronneau <pollo@debian.org>  Mon, 14 Mar 2022 16:41:32 -0000
 
 clj-stacktrace-clojure (0.2.7-1) unstable; urgency=medium
 
diff --git a/project.clj b/project.clj
index ab0480a..fbe28bd 100644
--- a/project.clj
+++ b/project.clj
@@ -1,4 +1,4 @@
-(defproject clj-stacktrace "0.2.7"
+(defproject clj-stacktrace "0.2.8"
   :description "More readable stacktraces in Clojure programs."
   :url "https://github.com/mmcgrana/clj-stacktrace"
   :license {:name "MIT" :url "http://opensource.org/licenses/MIT"}
diff --git a/src/clj_stacktrace/repl.clj b/src/clj_stacktrace/repl.clj
index 4c71bc8..8757521 100644
--- a/src/clj_stacktrace/repl.clj
+++ b/src/clj_stacktrace/repl.clj
@@ -109,9 +109,12 @@
       this-source-width)))
 
 (defn pst-on [on color? e]
-  "Prints to the given Writer on a pretty stack trace for the given exception e,
+  "Prints to the given Writer on a pretty stack trace for e which can be an exception
+  or already parsed exception (clj-stacktrace.core/parse-exception).
   ANSI colored if color? is true."
-  (let [exec         (parse-exception e)
+  (let [exec (if (instance? Throwable e)
+               (parse-exception e)
+               e)
         source-width (find-source-width exec)]
     (pst-class-on on color? (:class exec))
     (pst-message-on on color? (:message exec))
@@ -120,7 +123,7 @@
       (pst-cause-on on color? cause source-width))))
 
 (defn pst
-  "Print to *out* a pretty stack trace for an exception, by default *e."
+  "Print to *out* a pretty stack trace for a (parsed) exception, by default *e."
   [& [e]]
   (pst-on *out* false (or e *e)))
 

Branch: pristine-tar

diff --git a/clj-stacktrace-clojure_0.2.8.orig.tar.gz.delta b/clj-stacktrace-clojure_0.2.8.orig.tar.gz.delta
new file mode 100644
index 0000000..e89dd72
Binary files /dev/null and b/clj-stacktrace-clojure_0.2.8.orig.tar.gz.delta differ
diff --git a/clj-stacktrace-clojure_0.2.8.orig.tar.gz.id b/clj-stacktrace-clojure_0.2.8.orig.tar.gz.id
new file mode 100644
index 0000000..26a28e8
--- /dev/null
+++ b/clj-stacktrace-clojure_0.2.8.orig.tar.gz.id
@@ -0,0 +1 @@
+e430aa85f7c943dab6a3c7bc2a83369fef127504

Branch: upstream

Tag: upstream/0.2.8
diff --git a/README.md b/README.md
index 1d47447..24fef5b 100644
--- a/README.md
+++ b/README.md
@@ -57,7 +57,7 @@ basis. Just add the following to `~/.lein/profiles.clj`:
                                             'print-cause-trace)
                            new (ns-resolve (doto 'clj-stacktrace.repl require)
                                            'pst)]
-                       (alter-var-root orig (constantly @new)))]}}
+                       (alter-var-root orig (constantly (deref new))))]}}
 ```
 
 The `:injections` clause replaces the built-in stack trace printing
diff --git a/project.clj b/project.clj
index ab0480a..fbe28bd 100644
--- a/project.clj
+++ b/project.clj
@@ -1,4 +1,4 @@
-(defproject clj-stacktrace "0.2.7"
+(defproject clj-stacktrace "0.2.8"
   :description "More readable stacktraces in Clojure programs."
   :url "https://github.com/mmcgrana/clj-stacktrace"
   :license {:name "MIT" :url "http://opensource.org/licenses/MIT"}
diff --git a/src/clj_stacktrace/repl.clj b/src/clj_stacktrace/repl.clj
index 4c71bc8..8757521 100644
--- a/src/clj_stacktrace/repl.clj
+++ b/src/clj_stacktrace/repl.clj
@@ -109,9 +109,12 @@
       this-source-width)))
 
 (defn pst-on [on color? e]
-  "Prints to the given Writer on a pretty stack trace for the given exception e,
+  "Prints to the given Writer on a pretty stack trace for e which can be an exception
+  or already parsed exception (clj-stacktrace.core/parse-exception).
   ANSI colored if color? is true."
-  (let [exec         (parse-exception e)
+  (let [exec (if (instance? Throwable e)
+               (parse-exception e)
+               e)
         source-width (find-source-width exec)]
     (pst-class-on on color? (:class exec))
     (pst-message-on on color? (:message exec))
@@ -120,7 +123,7 @@
       (pst-cause-on on color? cause source-width))))
 
 (defn pst
-  "Print to *out* a pretty stack trace for an exception, by default *e."
+  "Print to *out* a pretty stack trace for a (parsed) exception, by default *e."
   [& [e]]
   (pst-on *out* false (or e *e)))
 

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far.not currently attempting to back off
  • ☒ merge proposals for the package maintainer are currently being rate-limited (open: 1383, max open: 300)
  • ☑ change set 5f351287-8728-48b7-a6d5-b5eee7503087 is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases libclj-stacktrace-clojure

Lintian Result

Full worker log Full build log