Skip to content

Commit

Permalink
Release 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
pesterhazy committed Jan 14, 2017
1 parent 0241d04 commit 330db69
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ boot fmt -f src --options '{:style :community, :fn-map {":require" :force-nl-bod

## Changes

### 0.1.5

- Update to zprint 0.2.12
- Support cljs.hl extension (thanks @mariszo)

### 0.1.4

- Update to zprint 0.2.10
Expand Down
2 changes: 1 addition & 1 deletion release.edn
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{:version [0 1 4]}
{:version [0 1 5]}
23 changes: 11 additions & 12 deletions src/boot_fmt/core.clj
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
(ns boot-fmt.core
"Reformat Clojure(script) source files"
{:boot/export-tasks true}
(:require [clojure.set]
[clojure.string]
[clojure.java.shell]
[boot.core :as bc]
[boot.util :as bu]))
"Reformat Clojure(script) source files"
{:boot/export-tasks true}
(:require [clojure.set]
[clojure.string]
[clojure.java.shell]
[boot.core :as bc]
[boot.util :as bu]))

(def pod-deps '[[zprint "0.2.10"] [com.google.guava/guava "18.0"]])
(def pod-deps '[[zprint "0.2.12"] [com.google.guava/guava "18.0"]])

(defn find-files-git
[]
(let [{:keys [exit out err]} (clojure.java.shell/sh "git"
"ls-files" "-z"
"*.clj" "*.cljs" "*.cljc"
"*.cljx"
"*.cljs.hl"
"*.boot")]
"*.clj" "*.cljs"
"*.cljc" "*.cljx"
"*.cljs.hl" "*.boot")]
(when (not= exit 0) (throw (ex-info "git ls-files failed" {:err err})))
(-> out
(clojure.string/split #"\000")
Expand Down
4 changes: 2 additions & 2 deletions src/boot_fmt/core_test.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns boot-fmt.core-test
(:require [boot-fmt.core :refer :all]
[clojure.test :refer :all]))
(:require [boot-fmt.core :refer :all]
[clojure.test :refer :all]))

(deftest exercise [] (process-many ["test/files/response.clj"]) (is (= 1 1)))
12 changes: 6 additions & 6 deletions src/boot_fmt/impl.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(ns boot-fmt.impl
(:require [zprint.core :as zp]
[zprint.config :as zc]
[zprint.zprint :as zprint]
[zprint.zutil :as zutil]
[rewrite-clj.parser :as p])
(:import [com.google.common.io Files]))
(:require [zprint.core :as zp]
[zprint.config :as zc]
[zprint.zprint :as zprint]
[zprint.zutil :as zutil]
[rewrite-clj.parser :as p])
(:import [com.google.common.io Files]))

(defn zprint-whole
[wholefile file-name]
Expand Down
6 changes: 6 additions & 0 deletions util/release-new-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

cd "$PRO"

boot bump
boot release

0 comments on commit 330db69

Please sign in to comment.