Skip to content

Commit

Permalink
change namespace structure to have no core
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBaranosky committed Mar 3, 2013
1 parent d26a371 commit 2c62192
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Works with Mac out of the box, and with Linux using Meld or xterm diff.

# Usage:

To include as a project dependency using Leiningen: `[gui-diff "0.4.0"]`
To include as a project dependency using Leiningen: `[gui-diff "0.5.0"]`

##Travis CI Status

Expand All @@ -15,24 +15,24 @@ To include as a project dependency using Leiningen: `[gui-diff "0.4.0"]`
##Examples

```clj
(require '[gui.diff :refer :all])

;; popup a visual diff of any two data structures
(gd/gui-diff {:a 10 :b 20 :c 30} {:a 10 :c 98 :d 34})
(gui-diff {:a 10 :b 20 :c 30} {:a 10 :c 98 :d 34})
```

```clj
;; wrap any code that sends failure information to clojure.test's *test-out*
;; using `with-gui-diff`

(gd/with-gui-diff (my-custom-test-runner))
(with-gui-diff (my-custom-test-runner))
```

```clj
(require '[gui-diff.core :as gd])

;; use gui-diff's clojure.test wrappers that will popup a visual diff
;; failure report if any test fails
(gd/run-tests++ 'mylibrary.core-test)
(gd/run-all-tests++ #".*integration.*")
(run-tests++ 'mylibrary.core-test)
(run-all-tests++ #".*integration.*")
```

## Override the diff tool
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject gui-diff "0.4.0"
(defproject gui-diff "0.5.0"
:min-lein-version "2.0.0"
:description "Visual diffing of Clojure data structures"
:dependencies [[org.clojure/clojure "1.4.0"]
Expand Down
4 changes: 2 additions & 2 deletions src/gui_diff/core.clj → src/gui/diff.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns gui-diff.core
(ns gui.diff
(:require [clojure.java.shell :as sh]
[clojure.pprint :as pp]
[clojure.string :as str]
[clojure.test :as ct]
[gui-diff.internal.parser :as parser]
[gui.internal.parser :as parser]
[ordered.map :as om]
[ordered.set :as os])
(:import java.io.File))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns gui-diff.internal.parser
(ns gui.internal.parser
(:require [net.cgrand.sjacket.parser :as parser]))


Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(ns gui-diff.test.core-test
(:use gui-diff.core
(ns gui.test.diff_test
(:use gui.diff
clojure.test)
(:require [gui-diff.core :as gd]
(:require [gui.diff :as gd]
[ordered.map :as om]
[ordered.set :as os]))


(deftest test-all-public-var-have-doc-strings
(is (empty? (->> (ns-publics 'gui-diff.core)
(is (empty? (->> (ns-publics 'gui.diff)
vals
(remove (comp :doc meta))))))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns gui-diff.test.parser-test
(ns gui.test.parser-test
(:use clojure.test
gui-diff.internal.parser
gui-diff.core))
gui.internal.parser
gui.diff))


(deftest test-parser
Expand Down

0 comments on commit 2c62192

Please sign in to comment.