Skip to content

Commit

Permalink
cleans up ns declarations
Browse files Browse the repository at this point in the history
removes def-in-def
  • Loading branch information
Benedek Fazekas committed Jan 5, 2015
1 parent 6d2aa54 commit 7235a4f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 21 deletions.
Binary file modified bin/gargamel.jar
Binary file not shown.
14 changes: 7 additions & 7 deletions src/gargamel/bower.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns gargamel.bower
(:require [clojure.java.shell :as sh]
[cheshire.core :as json]
[clojure.java.io :as io]
[clojure.data :as data]
[leiningen.gargamel :as grg]
[clojure.string :as s]
[gargamel.git :as git]))
(:require [cheshire.core :as json]
[clojure
[data :as data]
[string :as s]]
[clojure.java.shell :as sh]
[gargamel.git :as git]
[leiningen.gargamel :as grg]))

(defn- config [project-dir & {:keys [rev] :or {rev "HEAD"}}]
(json/parse-string (:out (sh/sh "git" "show" (str rev ":bower.json" )
Expand Down
8 changes: 4 additions & 4 deletions src/gargamel/core.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(ns gargamel.core
(:gen-class)
(:require [leiningen.gargamel :as grg]
[leiningen.gargamel-lr :as grg-lr]
(:require [clojure.tools.cli :as cli]
[gargamel.bower :as bower]
[clojure.tools.cli :as cli]
[clojure.string :as str]))
[leiningen
[gargamel :as grg]
[gargamel-lr :as grg-lr]]))

(def gargamel-quotes
["Son of a smurf!"
Expand Down
4 changes: 2 additions & 2 deletions src/gargamel/git.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns gargamel.git
(:require [gargamel.util :as util]
[clojure.java.shell :as sh]))
(:require [clojure.java.shell :as sh]
[gargamel.util :as util]))

(defn changelog [from to dir]
(:out (sh/sh "git" "log" "--date=short" "--format=%h%;%cN;%d;%ad;%s;%b;" (format "%s..%s" from to) :dir dir)))
Expand Down
10 changes: 4 additions & 6 deletions src/leiningen/gargamel.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(ns leiningen.gargamel
(:require [clojure.java.shell :as sh]
[clojure.string :as str]
[stencil.core :as st]
[gargamel.git :as git])
(:import [java.io File]))
(:require [clojure.string :as str]
[gargamel.git :as git]
[stencil.core :as st])
(:import java.io.File))

(def ^:dynamic proj-name nil)

Expand Down Expand Up @@ -35,7 +34,6 @@
(defn changelog [from to project]
{:pre [from]}
(let [raw-changelog (git/changelog from to (:dir project))]
(def myrawcl raw-changelog)
(->> (str/split raw-changelog #";")
(partition 6)
(map #(zipmap [:hash :commiter :refs :date :subject :body] %))
Expand Down
4 changes: 2 additions & 2 deletions src/leiningen/gargamel_lr.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns leiningen.gargamel-lr
(:require [clojure.java.shell :as sh]
[leiningen.gargamel :as gr]
[clojure.string :as str]))
[clojure.string :as str]
[leiningen.gargamel :as gr]))

(def ^:private default-release-tag-pattern
"release-\\d+-\\d+_\\d+")
Expand Down

0 comments on commit 7235a4f

Please sign in to comment.