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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d138ff74ad5837f8460e69faec2e19fcf97ee0a5
4
- data.tar.gz: ef1848962b219e8780fde2f4ffdc4e3a283ea539
3
+ metadata.gz: 31a8e8ab8ea33da04a99253e913fa7c525f6894b
4
+ data.tar.gz: 24d389f37957c2dcb57a1f0c427dd6b13e9a5490
5
5
  SHA512:
6
- metadata.gz: 0fd814d827b2a89666f19bf9b9cc320482f214fdecf205d22678de82258744378f335159881b22e40e9b0b1f3a63fb3a01d5720c153c15ddc92118c18c772058
7
- data.tar.gz: d62645d7718be612acff746ea478bf2af4715a350cf94c1c12f89441a2f49c5af7567a6a4f88ed4740761172a49c9f37e2740bb297b5935f02a3264a80a864b3
6
+ metadata.gz: bf122265863bbb5756c8d165f172c3674813cb3668c146c6a1984c95cf7f9cbd927ed972bcda4039d187f8fdb7815e0d9cd9f06518973ffc4552be4e8a4eda51
7
+ data.tar.gz: d9f7cb95ab1acb5240e57e1c5ba73136e2142f44bb10c71fcc00e393bc70c8656cdb8570c425f8b9313c3a919eb673f9f495f1b1eea4061977246e18ee42a4c1
@@ -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 -b ${BRANCH}
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
@@ -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
- config_dir?
55
- Application.instance.deploy(deploy_target, name, type, version, options)
56
- say('Complete!', :green)
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'
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
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.15
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-20 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler