wo 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wo/hook/zsh.rb +5 -1
- data/lib/wo/version.rb +1 -1
- data/spec/wo/hook/zsh_spec.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b1dc42e07aecc3adbc1b33a5c0aeecb69b0297b
|
4
|
+
data.tar.gz: 9424a151e903f617387caa6fd163339d568394b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab03a5d2e48a600a54dd3028286dcdb785fe4584488a0dd788e5fe84af31023541cd21ea857f0a60dc14b75a29571cfac5b0e9337e7d680bf64ba84242fbea7
|
7
|
+
data.tar.gz: eb689a8e435efd19fb15eff19a6a0c919795e5c8d08a49130e496ff604eed26d524e9e88a017f6444a4a8cddccde84341464b498e418e49670197268d7cf9869
|
data/lib/wo/hook/zsh.rb
CHANGED
@@ -7,7 +7,11 @@ _wo_hook() {
|
|
7
7
|
repo_path=`git rev-parse --show-toplevel 2>&1`
|
8
8
|
|
9
9
|
if [[ "$?" == 0 ]] ; then
|
10
|
-
|
10
|
+
if [[ ${WO_FILE_PATH} != "" ]] ; then
|
11
|
+
wo_file=`cat ${WO_FILE_PATH}/.wo 2>&1`
|
12
|
+
else
|
13
|
+
wo_file=`cat ${repo_path}/.wo 2>&1`
|
14
|
+
fi
|
11
15
|
|
12
16
|
if [[ "$?" == 0 ]] ; then
|
13
17
|
repo=`basename ${repo_path}`
|
data/lib/wo/version.rb
CHANGED
data/spec/wo/hook/zsh_spec.rb
CHANGED
@@ -10,7 +10,11 @@ _wo_hook() {
|
|
10
10
|
repo_path=`git rev-parse --show-toplevel 2>&1`
|
11
11
|
|
12
12
|
if [[ "$?" == 0 ]] ; then
|
13
|
-
|
13
|
+
if [[ ${WO_FILE_PATH} != "" ]] ; then
|
14
|
+
wo_file=`cat ${WO_FILE_PATH}/.wo 2>&1`
|
15
|
+
else
|
16
|
+
wo_file=`cat ${repo_path}/.wo 2>&1`
|
17
|
+
fi
|
14
18
|
|
15
19
|
if [[ "$?" == 0 ]] ; then
|
16
20
|
repo=`basename ${repo_path}`
|