[Git][java-team/bidi-clojure][upstream] New upstream version 2.1.3
Utkarsh Gupta
gitlab at salsa.debian.org
Thu Aug 27 13:29:09 BST 2020
Utkarsh Gupta pushed to branch upstream at Debian Java Maintainers / bidi-clojure
Commits:
eb7e1348 by Utkarsh Gupta at 2020-08-27T17:44:48+05:30
New upstream version 2.1.3
- - - - -
3 changed files:
- project.clj
- src/bidi/bidi.cljc
- test/bidi/bidi_test.cljc
Changes:
=====================================
project.clj
=====================================
@@ -1,6 +1,6 @@
;; Copyright © 2014, JUXT LTD.
-(defproject bidi "2.1.2"
+(defproject bidi "2.1.3"
:description "Bidirectional URI routing"
:url "https://github.com/juxt/bidi"
@@ -19,7 +19,7 @@
:profiles {:dev {:exclusions [[org.clojure/tools.reader]]
:resource-paths ["test-resources"]
- :global-vars {*warn-on-reflection* true}
+ ;;:global-vars {*warn-on-reflection* true}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.293"]
[org.clojure/tools.reader "1.0.0-beta4"]
=====================================
src/bidi/bidi.cljc
=====================================
@@ -186,9 +186,8 @@ actually a valid UUID (this is handled by the route matching logic)."
(defn just-path
[path]
- (let [uri-string (str "file:///" path)]
- ;; Raw path means encoded chars are kept.
- (subs #?(:clj (.getRawPath (java.net.URI. uri-string))
+ (let [uri-string (str "http://bidi.bidi/" path)]
+ (subs #?(:clj (.getPath (java.net.URL. uri-string))
:cljs (.getPath (goog.Uri. uri-string)))
1)))
=====================================
test/bidi/bidi_test.cljc
=====================================
@@ -326,3 +326,6 @@
(is (= {:handler :b} (match-route myroutes "/b")))
(is (nil? (match-route myroutes "/a")))
(is (nil? (match-route myroutes "/:b")))))
+
+(deftest invalid-uri-test
+ (is (= (match-route ["/blog/foo" 'foo] "<><>") nil)))
View it on GitLab: https://salsa.debian.org/java-team/bidi-clojure/-/commit/eb7e1348406ef8eb00e344eaac5fdf69c6989cdc
--
View it on GitLab: https://salsa.debian.org/java-team/bidi-clojure/-/commit/eb7e1348406ef8eb00e344eaac5fdf69c6989cdc
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20200827/478befc9/attachment.html>
More information about the pkg-java-commits
mailing list