Utkarsh Gupta pushed to branch master 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 - - - - - cf7aca43 by Utkarsh Gupta at 2020-08-27T17:44:50+05:30 Update upstream source from tag 'upstream/2.1.3' Update to upstream version '2.1.3' with Debian dir eb75bcefbd5c7c9f8b1859e68d2b82aabca91369 - - - - - a068be50 by Utkarsh Gupta at 2020-08-27T17:51:09+05:30 Update package wrt cme - - - - - 95db9abc by Utkarsh Gupta at 2020-08-27T17:55:14+05:30 Update d/ch for 2.1.3-1 release - - - - - 6 changed files: - debian/changelog - − debian/compat - debian/control - project.clj - src/bidi/bidi.cljc - test/bidi/bidi_test.cljc Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,14 @@ +bidi-clojure (2.1.3-1) unstable; urgency=medium + + * Team upload. + * New upstream version 2.1.3 + * Update package wrt cme + - Bump dh-compat to 13. + - Bump Standards-Version to 4.4.0. + - Update VCS fields. + + -- Utkarsh Gupta <[email protected]> Thu, 27 Aug 2020 17:44:53 +0530 + bidi-clojure (2.1.2-2) unstable; urgency=medium * Run tests properly ===================================== debian/compat deleted ===================================== @@ -1 +0,0 @@ -10 ===================================== debian/control ===================================== @@ -1,25 +1,26 @@ Source: bidi-clojure -Section: java -Priority: optional Maintainer: Debian Java Maintainers <[email protected]> Uploaders: Apollon Oikonomopoulos <[email protected]> -Build-Depends: clojure (>= 1.8), - debhelper (>= 10), +Section: java +Priority: optional +Build-Depends: clojure, + debhelper-compat (= 13), default-jdk-headless, - javahelper (>= 0.32), - libprismatic-schema-clojure (>= 1.1.3), - libring-core-clojure (>= 1.5.0), - libring-mock-clojure (>= 0.3.0), + javahelper, + libprismatic-schema-clojure, + libring-core-clojure, + libring-mock-clojure, markdown, - maven-repo-helper (>= 1.5~) -Standards-Version: 4.0.0 -Vcs-Git: https://anonscm.debian.org/git/pkg-java/bidi-clojure.git -Vcs-Browser: https://anonscm.debian.org/git/pkg-java/bidi-clojure.git + maven-repo-helper +Standards-Version: 4.5.0 +Vcs-Browser: https://salsa.debian.org/java-team/bidi-clojure +Vcs-Git: https://salsa.debian.org/java-team/bidi-clojure.git Homepage: https://github.com/juxt/bidi Package: libbidi-clojure Architecture: all -Depends: ${java:Depends}, ${misc:Depends} +Depends: ${java:Depends}, + ${misc:Depends} Recommends: ${java:Recommends} Description: bidirectional URI routing for Clojure Bi-directional URI dispatch. Like compojure, but when you want to go both ===================================== 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/-/compare/76af19bb71eeec064b9ec9dda4f5bdbb97329d45...95db9abce9e16c5a81242b9d082ad536cfe277c7 -- View it on GitLab: https://salsa.debian.org/java-team/bidi-clojure/-/compare/76af19bb71eeec064b9ec9dda4f5bdbb97329d45...95db9abce9e16c5a81242b9d082ad536cfe277c7 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

