docman 0.0.33 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60f35da305d3762ad05a4d33cb81e6752d50fdf7
4
- data.tar.gz: 7a822f7232773f00a3b49999aa9b1b04aa3c6cc8
3
+ metadata.gz: f2b080aff66df5eccb379c6ccf73ada89fe378a3
4
+ data.tar.gz: a4d67c2db4969a88ae8343895c4a9e34407a9892
5
5
  SHA512:
6
- metadata.gz: 9d78656781c71bb6a4647f2d557143e606ef927d9f7ae262933a2111a1a30354b652be41de75d1bf82ea5631e28d949b7a391f2081b57874aa0c8c47dc1ced3c
7
- data.tar.gz: 1434e1dc3ebcf169365bec5132d6c763a55afda1c23c20d2d9b282e2969e3c386702e3e6aa1b5a9c416181796c13861300715a543caae9e82a670e597b8c9807
6
+ metadata.gz: 1c8181bd41b813b3ef8d1e41afee185bb0a89fb9762157cb509680939e381aa958b4c8d6faea97f9a423c95b7245074d888a7901fd18b28ae7a25e78cfb7abd4
7
+ data.tar.gz: 8d55e93d720d616b477a5573fbacddd2e5b3ba076ccbf2a869d8a3a5a0a6c9e26e586ce9cf15b9e986d56ad5c1588adc93e1205f9fa6f1cd6e0408fa56e9f1f4
@@ -12,7 +12,8 @@
12
12
  # pull a list of changes from git history, prepend this to
13
13
  # a file called CHANGES (under the title of the new version
14
14
  # number) and create a GIT tag.
15
-
15
+ set -vx
16
+
16
17
  if [ -f VERSION ]; then
17
18
  BASE_STRING=`cat VERSION`
18
19
  BASE_LIST=(`echo $BASE_STRING | tr '.' ' '`)
@@ -40,7 +41,7 @@ if [ -f VERSION ]; then
40
41
  git add CHANGES VERSION
41
42
  git commit -m "[skip] Version bump to $INPUT_STRING"
42
43
  git tag -a -m "[skip] Tagging version $INPUT_STRING" "$INPUT_STRING"
43
- git push origin --tags
44
+ git push origin ${INPUT_STRING}
44
45
  git push
45
46
  else
46
47
  echo "Could not find a VERSION file"
@@ -81,7 +82,11 @@ if [ -n "$1" ]; then
81
82
  echo "type: tag" > info.yaml
82
83
  echo "version: $TAG" >> info.yaml
83
84
  git add -A
84
- git commit -m "Changed tag to: $TAG" & git push -u origin ${BRANCH}
85
+ if [ -n "$2" ] && [ "$2" == "skip" ]; then
86
+ git commit -m "[skip] Changed tag to: $TAG" & git push -u origin ${BRANCH}
87
+ else
88
+ git commit -m "Changed tag to: $TAG" & git push -u origin ${BRANCH}
89
+ fi
85
90
  git checkout master
86
91
  echo ${TAG}
87
92
  fi
@@ -64,12 +64,14 @@ module Docman
64
64
 
65
65
  desc 'bump', 'Bump version'
66
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
67
+ #option :skip
68
+ def bump(state = nil, skip = nil)
69
+ # if state
70
+ # Exec.do "#{Application::bin}/bump-version.sh #{state}"
71
+ # else
72
+ # Exec.do "#{Application::bin}/bump-version.sh"
73
+ # end
74
+ Exec.do "#{Application::bin}/bump-version.sh #{state} #{skip}"
73
75
  say('Complete!', :green)
74
76
  end
75
77
 
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
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.33
4
+ version: 0.0.34
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-08-26 00:00:00.000000000 Z
11
+ date: 2014-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler