docman 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/bump-version.sh +9 -7
- data/lib/docman/cli.rb +11 -0
- data/lib/docman/version.rb +1 -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: 7c762f3f7a21b4b70bf6b92aa860570fed400928
|
4
|
+
data.tar.gz: 10a9f6b2ab53eed23dbc43fc5a1d17323431f5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fab9ec4b7c9e3b0cda8e388c9477c48c7863a4794fd3451f428d26ee50bcb5aa372aeb702db2c192cc90d391f1debdd31c3420ae9d5cd97538af57158a5df872
|
7
|
+
data.tar.gz: acc9b543de85946d7098d212d09fead6629d954f30c59c109ba94ece25400dae22db4904ed8435180953fa49be1e455082e32189abedf116026e957ba5cc97b7
|
data/bin/bump-version.sh
CHANGED
@@ -20,8 +20,9 @@ if [ -f VERSION ]; then
|
|
20
20
|
V_MINOR=${BASE_LIST[1]}
|
21
21
|
V_PATCH=${BASE_LIST[2]}
|
22
22
|
echo "Current version : $BASE_STRING"
|
23
|
-
V_MINOR=$((V_MINOR + 1))
|
24
|
-
V_PATCH
|
23
|
+
#V_MINOR=$((V_MINOR + 1))
|
24
|
+
V_PATCH=$((V_PATCH + 1))
|
25
|
+
#V_PATCH=0
|
25
26
|
SUGGESTED_VERSION="$V_MAJOR.$V_MINOR.$V_PATCH"
|
26
27
|
read -p "Enter a version number [$SUGGESTED_VERSION]: " INPUT_STRING
|
27
28
|
if [ "$INPUT_STRING" = "" ]; then
|
@@ -37,7 +38,7 @@ if [ -f VERSION ]; then
|
|
37
38
|
cat CHANGES >> tmpfile
|
38
39
|
mv tmpfile CHANGES
|
39
40
|
git add CHANGES VERSION
|
40
|
-
git commit -m "Version bump to $INPUT_STRING"
|
41
|
+
git commit -m "[skip] Version bump to $INPUT_STRING"
|
41
42
|
git tag -a -m "Tagging version $INPUT_STRING" "$INPUT_STRING"
|
42
43
|
git push origin --tags
|
43
44
|
git push
|
@@ -56,8 +57,8 @@ else
|
|
56
57
|
echo "" >> CHANGES
|
57
58
|
echo "" >> CHANGES
|
58
59
|
git add VERSION CHANGES
|
59
|
-
git commit -m "Added VERSION and CHANGES files, Version bump to 0.1.0"
|
60
|
-
git tag -a -m "
|
60
|
+
git commit -m "[skip] Added VERSION and CHANGES files, Version bump to 0.1.0"
|
61
|
+
git tag -a -m "Tagging version 0.1.0" "0.1.0"
|
61
62
|
git push origin --tags
|
62
63
|
git push
|
63
64
|
fi
|
@@ -69,6 +70,7 @@ if [ -n "$1" ]; then
|
|
69
70
|
git show-ref --verify --quiet "refs/heads/${BRANCH}"
|
70
71
|
if [ $? == 0 ]; then
|
71
72
|
git checkout ${BRANCH}
|
73
|
+
git pull
|
72
74
|
else
|
73
75
|
git checkout --orphan ${BRANCH}
|
74
76
|
git rm --cached -r .
|
@@ -77,7 +79,7 @@ if [ -n "$1" ]; then
|
|
77
79
|
echo "type: tag" > info.yaml
|
78
80
|
echo "version: $TAG" >> info.yaml
|
79
81
|
git add -A
|
80
|
-
git commit -m "
|
81
|
-
|
82
|
+
git commit -m "Changed tag to: $TAG" & git push -u origin ${BRANCH}
|
83
|
+
git checkout master
|
82
84
|
echo ${TAG}
|
83
85
|
fi
|
data/lib/docman/cli.rb
CHANGED
@@ -62,6 +62,17 @@ module Docman
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
desc 'bump', 'Bump version'
|
66
|
+
#option :state
|
67
|
+
def bump(state = nil)
|
68
|
+
if state
|
69
|
+
Exec.do "#{Application::bin}/bump-version.sh #{state}"
|
70
|
+
else
|
71
|
+
Exec.do "#{Application::bin}/bump-version.sh"
|
72
|
+
end
|
73
|
+
say('Complete!', :green)
|
74
|
+
end
|
75
|
+
|
65
76
|
no_commands {
|
66
77
|
def config_dir?
|
67
78
|
raise 'ERROR: No config directory in docroot' unless File.directory?('config')
|
data/lib/docman/version.rb
CHANGED