Skip to content

Commit a1df6e9

Browse files
prepare 0.4.3 release
- fix problem when there is no whitespace before the ns prefix in the ns body - adds build.sh for convenience
1 parent bd75bf5 commit a1df6e9

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It is an inlining tool which inlines your project's dependencies at packaging ti
1414

1515
## Usage
1616

17-
Put `[thomasa/mranderson "0.4.2"]` into the `:plugins` vector of your project.clj.
17+
Put `[thomasa/mranderson "0.4.3"]` into the `:plugins` vector of your project.clj.
1818

1919
Additionally you also need to mark some of the dependencies in your dependencies vector in the project's `project.clj` with `^:source-dep` meta tag. For example:
2020

build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# runs source-deps and tests and then provided lein target with mranderson
4+
5+
function check_result {
6+
if [ $? -ne 0 ]; then
7+
echo "FAILED"
8+
exit 1
9+
fi
10+
}
11+
12+
lein do clean, source-deps :skip-javaclass-repackage true
13+
check_result
14+
lein with-profile plugin.mranderson/config "$@"

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject thomasa/mranderson "0.4.2"
1+
(defproject thomasa/mranderson "0.4.3"
22
:description "Leiningen plugin to download and use some dependencies as source."
33
:url "https://github.com/benedekfazekas/mranderson"
44
:license {:name "Eclipse Public License"

src/leiningen/source_deps.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
(defn- update-file [file prefixes prefix]
7272
(let [old (slurp file)
7373
new (-> (str/replace old (re-pattern (str "(\\[\\s*)" prefix "(\\s+\\[?)")) (str "$1" (prefixes prefix) "$2"))
74-
(str/replace (re-pattern (str "(\\s+)" prefix "([\\s\\.])")) (str "$1" (prefixes prefix) "$2")))]
74+
(str/replace (re-pattern (str "(\\s+\\(?)" prefix "([\\s\\.])")) (str "$1" (prefixes prefix) "$2")))]
7575
(when-not (= old new)
7676
(spit file new))))
7777

0 commit comments

Comments
 (0)