cap-git-tags 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +69 -0
- data/cap-git-tags.gemspec +2 -2
- data/lib/cap-git-tags/tasks/git_tags.rake +1 -1
- data/lib/cap-git-tags/version.rb +1 -1
- metadata +12 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03a2fccb8c27cf0e3ce1dc5ab499ca6af3f4294f
|
|
4
|
+
data.tar.gz: cd65f94fd899a9ddc1b6c7c0819b23c8f6ececd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4cc90cc3e5b908b9159f76885a6a8170aae062c6b6a3b57b0ac326d7b965cc40fe26644f45c7c306f51744f2c5072ef046df5c3b8be5a02f0d005999b8c01a24
|
|
7
|
+
data.tar.gz: 02903ea26865b2ac9ab0bafc3044933348a8831b091fa9cc70981e79841e8aee2511d4ab567a995ab32c5ca37f1d128eb0faf98a11d7037863fba8e8a707ff33
|
data/README.md
CHANGED
|
@@ -1 +1,70 @@
|
|
|
1
1
|
# cap-git-tags
|
|
2
|
+
|
|
3
|
+
## What is it?
|
|
4
|
+
|
|
5
|
+
This is a capistrano 3 plugin for auto tagging your git deploys.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
In a gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'cap-git-tags'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
In your *Capfile*:
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'cap-git-tags'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
* * *
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### When you deploy to staging
|
|
26
|
+
|
|
27
|
+
You are prompted for a deploy note of what you have just changed, from this a staging tag is created:
|
|
28
|
+
|
|
29
|
+
# We replace all non alpha-numeric characters in your notes with a '-'
|
|
30
|
+
staging-YYYY-MM-DD-HH-mm-your-release-notes
|
|
31
|
+
|
|
32
|
+
### When you deploy to production
|
|
33
|
+
|
|
34
|
+
We lookup the latest staging tag in your git repo and go to deploy.
|
|
35
|
+
**You are prompted to confirm the deploy first**
|
|
36
|
+
|
|
37
|
+
We then create a new tag switching out the *staging* keyword for *prodution*.
|
|
38
|
+
|
|
39
|
+
### Overriding the production deploy tag/branch
|
|
40
|
+
|
|
41
|
+
If you set an environment variable **TAG** we'll use that for your production deploy e.g.
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
$ TAG=old_staging_release_tag cap production deploy
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
* * *
|
|
48
|
+
|
|
49
|
+
Copyright (c) 2014 Pete Hawkins, Adrian Dugan
|
|
50
|
+
|
|
51
|
+
MIT License
|
|
52
|
+
|
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
54
|
+
a copy of this software and associated documentation files (the
|
|
55
|
+
"Software"), to deal in the Software without restriction, including
|
|
56
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
57
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
58
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
59
|
+
the following conditions:
|
|
60
|
+
|
|
61
|
+
The above copyright notice and this permission notice shall be
|
|
62
|
+
included in all copies or substantial portions of the Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
65
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
66
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
67
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
68
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
69
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
70
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/cap-git-tags.gemspec
CHANGED
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.version = CapGitTags::VERSION
|
|
9
9
|
spec.authors = ["Pete Hawkins", "Adrian Dugan"]
|
|
10
10
|
spec.email = ["pete@phawk.co.uk", "rant@dugg.ie"]
|
|
11
|
-
spec.description = %q{
|
|
12
|
-
spec.summary = %q{Auto tags staging
|
|
11
|
+
spec.description = %q{This is a capistrano 3 plugin for auto tagging your git deploys.}
|
|
12
|
+
spec.summary = %q{Auto tags staging and production deploys for git projects}
|
|
13
13
|
spec.homepage = "https://github.com/phawk/cap-git-tags"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
data/lib/cap-git-tags/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cap-git-tags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pete Hawkins
|
|
@@ -9,38 +9,37 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-03-
|
|
12
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- -
|
|
18
|
+
- - ~>
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
20
|
version: '1.3'
|
|
21
21
|
type: :development
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- -
|
|
25
|
+
- - ~>
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: '1.3'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rake
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- -
|
|
32
|
+
- - '>='
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
34
|
version: '0'
|
|
35
35
|
type: :development
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- -
|
|
39
|
+
- - '>='
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0'
|
|
42
|
-
description:
|
|
43
|
-
a tag
|
|
42
|
+
description: This is a capistrano 3 plugin for auto tagging your git deploys.
|
|
44
43
|
email:
|
|
45
44
|
- pete@phawk.co.uk
|
|
46
45
|
- rant@dugg.ie
|
|
@@ -48,7 +47,7 @@ executables: []
|
|
|
48
47
|
extensions: []
|
|
49
48
|
extra_rdoc_files: []
|
|
50
49
|
files:
|
|
51
|
-
-
|
|
50
|
+
- .gitignore
|
|
52
51
|
- Gemfile
|
|
53
52
|
- LICENSE.txt
|
|
54
53
|
- README.md
|
|
@@ -67,19 +66,18 @@ require_paths:
|
|
|
67
66
|
- lib
|
|
68
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
68
|
requirements:
|
|
70
|
-
- -
|
|
69
|
+
- - '>='
|
|
71
70
|
- !ruby/object:Gem::Version
|
|
72
71
|
version: '0'
|
|
73
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
73
|
requirements:
|
|
75
|
-
- -
|
|
74
|
+
- - '>='
|
|
76
75
|
- !ruby/object:Gem::Version
|
|
77
76
|
version: '0'
|
|
78
77
|
requirements: []
|
|
79
78
|
rubyforge_project:
|
|
80
|
-
rubygems_version: 2.
|
|
79
|
+
rubygems_version: 2.0.3
|
|
81
80
|
signing_key:
|
|
82
81
|
specification_version: 4
|
|
83
|
-
summary: Auto tags staging
|
|
84
|
-
tag
|
|
82
|
+
summary: Auto tags staging and production deploys for git projects
|
|
85
83
|
test_files: []
|