Skip to content

Commit

Permalink
updated tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
just-sultanov committed Oct 24, 2019
1 parent bf15888 commit b833927
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.idea
target
*.iml
.nrepl-port
pom.xml
11 changes: 5 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ Add the following dependency in your project:
(:require [clj-deps.core :as deps]))
;; load library from git by https
(deps/add-lib 'org.apache.commons/commons-lang3 {:git/url "https://github.com/apache/commons-lang.git"
:sha "c21484b730221bc87ca26553155350292aa30f0d"})
;; => true
(deps/add-lib 'cljdoc {:git/url "https://github.com/cljdoc/cljdoc.git"
:sha "4b3fe041ee3e35c937f2877f40209b4a62036bef"})
;; load library from git by ssh
(deps/add-lib 'org.apache.commons/commons-lang3 {:git/url "git@github.com:apache/commons-lang.git"
:sha "c21484b730221bc87ca26553155350292aa30f0d"})
(deps/add-lib 'cljdoc {:git/url "git@github.com:cljdoc/cljdoc.git"
:sha "4b3fe041ee3e35c937f2877f40209b4a62036bef"})
;; => true
;; load library from maven
(deps/add-lib 'org.clojure/core.memoize {:mvn/version "0.7.1"})
(deps/add-lib 'add-lib 'org.yaml/snakeyaml {:mvn/version "1.25"})
;; => true
;; load library from your own repository
Expand Down
4 changes: 3 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{:paths ["src"]

:deps {org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/tools.deps.alpha {:mvn/version "0.8.578"}}
org.clojure/tools.deps.alpha {:mvn/version "0.8.578"}
javax.xml.bind/jaxb-api {:mvn/version "2.3.1"}
org.clojure/core.rrb-vector {:mvn/version "0.1.0"}}

:aliases {:repl {:extra-deps {nrepl {:mvn/version "0.6.0"}
com.bhauman/rebel-readline {:mvn/version "0.1.4"}}
Expand Down
14 changes: 7 additions & 7 deletions test/clj_deps/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
:sha "c21484b730221bc87ca26553155350292aa30f0d"})]
(is (true? added?))))

(testing "should be added java library from maven"
(let [added? (sut/add-lib 'org.yaml/snakeyaml {:mvn/version "1.25"})]
(is (true? added?))))

(testing "should be added clojure library from git by https"
(let [added? (sut/add-lib 'cljdoc {:git/url "https://github.com/cljdoc/cljdoc.git"
:sha "4b3fe041ee3e35c937f2877f40209b4a62036bef"})]
(is (true? added?))))

#_(testing "should be added java library from maven"
(let [added? (sut/add-lib 'com.google.code.gson/gson {:mvn/version "2.8.5"})]
(is (true? added?))))

#_(testing "should be added clojure library from maven"
(let [added? (sut/add-lib 'lambdaisland/kaocha {:mvn/version "0.0-554"})]
(is (true? added?)))))
(testing "should be added clojure library from maven"
(let [added? (sut/add-lib 'clj-fsm {:mvn/version "0.2.2"})]
(is (true? added?)))))

0 comments on commit b833927

Please sign in to comment.