capistrano-deploytags 1.0.6 → 1.0.7
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 +6 -3
- data/lib/capistrano/tasks/deploytags.rake +5 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ab422b31eaee13d1d7819d0254e3698b5ec6fbf
|
4
|
+
data.tar.gz: 1f0759496c0a75a362b41d3a9ddae5c82fb0c63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ae98c2ab4ca9e9aa28ecb04fdabccc80bba7eda75cdf05e62d05a0ca7096926e7ec7a308a4336afbc6e352890e46d9cbeef915617d28e75447f195e6a75f2f8
|
7
|
+
data.tar.gz: 5dc24ff9af43340470c4283716844fa469b358d1bd478deb08b426b42ff01dc9b4a40131e80539a1e9cbc3c40f6550d2416856b0b3615d7592b4d9c092f5bba2
|
data/README.md
CHANGED
@@ -8,10 +8,13 @@ but as Capistrano 3 is multistage by default (unlike Cap 2) :stage should
|
|
8
8
|
already be set, but you can override the variable if you want to change the
|
9
9
|
name of the tag.
|
10
10
|
|
11
|
-
### Requires Capistrano 3
|
11
|
+
### Requires Capistrano 3.7
|
12
12
|
|
13
|
-
As of version 1.0.
|
14
|
-
|
13
|
+
As of version 1.0.7, this plugin requires Cap 3.7.
|
14
|
+
|
15
|
+
If you need a Capistrano < 3.7 compatible version, then use `gem 'capistrano-deploytags', '1.0.6'`
|
16
|
+
|
17
|
+
If you need a Capistrano 2 compatible version, then use `gem 'capistrano-deploytags', '~> 0.9.2'`
|
15
18
|
|
16
19
|
### What It Does
|
17
20
|
|
@@ -13,7 +13,7 @@ namespace :deploy do
|
|
13
13
|
raise 'define :branch and :stage'
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
execute :git, "fetch #{fetch(:git_remote, 'origin')}"
|
17
17
|
|
18
18
|
diff_output = capture :git, "diff #{branch} --shortstat"
|
19
19
|
|
@@ -22,9 +22,9 @@ namespace :deploy do
|
|
22
22
|
raise 'Dirty git tree'
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
execute :git, "checkout #{branch}"
|
26
26
|
info "Pulling from #{branch}"
|
27
|
-
|
27
|
+
execute :git, "pull #{fetch(:git_remote, 'origin')} #{branch}"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -40,8 +40,8 @@ namespace :deploy do
|
|
40
40
|
commit_message = CapistranoDeploytags::Helper.commit_message(latest_revision, fetch(:stage))
|
41
41
|
|
42
42
|
unless fetch(:sshkit_backend) == SSHKit::Backend::Printer # unless --dry-run flag present
|
43
|
-
|
44
|
-
|
43
|
+
execute :git, "tag -a #{tag_name} -m \"#{commit_message}\" #{latest_revision}"
|
44
|
+
execute :git, "push #{fetch(:git_remote, 'origin')} #{tag_name}"
|
45
45
|
end
|
46
46
|
|
47
47
|
info "[cap-deploy-tagger] Tagged #{latest_revision} with #{tag_name}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-deploytags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Matthias
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 3.
|
20
|
+
version: 3.7.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 3.
|
27
|
+
version: 3.7.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rake
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|