docman 0.0.15 → 0.0.16
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 +5 -3
- data/lib/docman/cli.rb +8 -3
- data/lib/docman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a8e8ab8ea33da04a99253e913fa7c525f6894b
|
4
|
+
data.tar.gz: 24d389f37957c2dcb57a1f0c427dd6b13e9a5490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf122265863bbb5756c8d165f172c3674813cb3668c146c6a1984c95cf7f9cbd927ed972bcda4039d187f8fdb7815e0d9cd9f06518973ffc4552be4e8a4eda51
|
7
|
+
data.tar.gz: d9f7cb95ab1acb5240e57e1c5ba73136e2142f44bb10c71fcc00e393bc70c8656cdb8570c425f8b9313c3a919eb673f9f495f1b1eea4061977246e18ee42a4c1
|
data/bin/bump-version.sh
CHANGED
@@ -57,7 +57,7 @@ else
|
|
57
57
|
echo "" >> CHANGES
|
58
58
|
git add VERSION CHANGES
|
59
59
|
git commit -m "Added VERSION and CHANGES files, Version bump to 0.1.0"
|
60
|
-
git tag -a -m "Tagging version 0.1.0" "0.1.0"
|
60
|
+
git tag -a -m "[skip trigger] Tagging version 0.1.0" "0.1.0"
|
61
61
|
git push origin --tags
|
62
62
|
git push
|
63
63
|
fi
|
@@ -70,12 +70,14 @@ if [ -n "$1" ]; then
|
|
70
70
|
if [ $? == 0 ]; then
|
71
71
|
git checkout ${BRANCH}
|
72
72
|
else
|
73
|
-
git checkout
|
73
|
+
git checkout --orphan ${BRANCH}
|
74
|
+
git rm --cached -r .
|
75
|
+
git clean -f -d
|
74
76
|
fi
|
75
77
|
echo "type: tag" > info.yaml
|
76
78
|
echo "version: $TAG" >> info.yaml
|
77
79
|
git add -A
|
78
|
-
git commit -m "Changed tag to: $TAG" & git push origin ${BRANCH}
|
80
|
+
git commit -m "[skip trigger] Changed tag to: $TAG" & git push origin ${BRANCH}
|
79
81
|
git checkout -
|
80
82
|
echo ${TAG}
|
81
83
|
fi
|
data/lib/docman/cli.rb
CHANGED
@@ -51,9 +51,14 @@ module Docman
|
|
51
51
|
desc 'deploy NAME', 'init to NAME'
|
52
52
|
method_option :force, :aliases => '-f', :desc => 'Force full deploy'
|
53
53
|
def deploy(deploy_target, name, type, version)
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
if version.start_with?('state_')
|
55
|
+
state = version.partition('_').last
|
56
|
+
build(deploy_target, state)
|
57
|
+
else
|
58
|
+
config_dir?
|
59
|
+
Application.instance.deploy(deploy_target, name, type, version, options)
|
60
|
+
say('Complete!', :green)
|
61
|
+
end
|
57
62
|
end
|
58
63
|
|
59
64
|
desc 'state NAME', 'init to NAME'
|
data/lib/docman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Tolstikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|