cap-git-tags 0.2.0 → 0.2.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 +1 -1
- data/lib/capistrano/git-tags/version.rb +1 -1
- data/lib/capistrano/tasks/git_tags.rake +5 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 109fedfadcbf98cad604c441587139f495457af4
|
|
4
|
+
data.tar.gz: dd8969218029329b4659dfaec9df05b9d38487a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3085df4473df523bb6770e6f876d5232be58ed7061556156cb1834560c963bba69506c0f79f38b47d1957b52dd475f8e0e6fc27d56284c3a93274f8eaa6875c
|
|
7
|
+
data.tar.gz: 2108497fec8135d7da6704771f4c7947e7349247054ca9978282ff50e19f03a9effef6a1ef86ec5a896165f5d825f74db468b90eb07706fc577e89d65744352e
|
data/README.md
CHANGED
|
@@ -22,6 +22,9 @@ namespace :gittags do
|
|
|
22
22
|
abort "You didn't confirm the deployment"
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
info "Checking out '#{latest_staging_tag}' locally"
|
|
26
|
+
Capistrano::GitTags::Helper.git "checkout #{latest_staging_tag}"
|
|
27
|
+
|
|
25
28
|
unless ENV['TAG']
|
|
26
29
|
info "Publishing tag: #{production_tag}"
|
|
27
30
|
Capistrano::GitTags::Helper.publish_tag production_tag
|
|
@@ -34,8 +37,8 @@ namespace :gittags do
|
|
|
34
37
|
|
|
35
38
|
ask :a_description_of_what_you_are_deploying, "latest changes"
|
|
36
39
|
|
|
37
|
-
safe_tag = fetch(:a_description_of_what_you_are_deploying).downcase.gsub(/[^a-z0-9]/, "-")
|
|
38
|
-
staging_tag = "staging-#{time.
|
|
40
|
+
safe_tag = fetch(:a_description_of_what_you_are_deploying).downcase.gsub(/[^a-z0-9]/, "-").gsub(/staging/, "stage")
|
|
41
|
+
staging_tag = "staging-#{time.strftime('%Y-%m-%d-%H-%M')}-#{safe_tag}"
|
|
39
42
|
|
|
40
43
|
info "Publishing tag: #{staging_tag}"
|
|
41
44
|
Capistrano::GitTags::Helper.publish_tag staging_tag
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pete Hawkins
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
78
78
|
version: '0'
|
|
79
79
|
requirements: []
|
|
80
80
|
rubyforge_project:
|
|
81
|
-
rubygems_version: 2.
|
|
81
|
+
rubygems_version: 2.4.5
|
|
82
82
|
signing_key:
|
|
83
83
|
specification_version: 4
|
|
84
84
|
summary: Auto tags staging and production deploys for git projects
|