cap-deploy-tagger 0.1.0 → 0.2.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8bbd38b2502c8ea9356fbcd65ea17880e9eac329
4
+ data.tar.gz: 957848310a45395f1eb1ce97be2e96ef62bfe8ed
5
+ SHA512:
6
+ metadata.gz: 9b5bdefcf33e36c520a677ad8bc80ca667906797a6e5c45e9010c7deeb2fcdaa05bd9bfe24496d63d3fb8630cd3640794de7e2857c703961f92c2e287bd41e9b
7
+ data.tar.gz: 92ec29bf36b70c709c5819f3172a0db552a67812762297fd66eb90271cdc7aba907a686fbe60cddcb08c82337ff2efc5cce65dc647ca4c44d176df1f4df4fa1e
@@ -1,5 +1,5 @@
1
1
  namespace :deploy do
2
-
2
+
3
3
  desc "Tag deployed release"
4
4
  task :tag do
5
5
  run_locally do
@@ -8,13 +8,15 @@ namespace :deploy do
8
8
  else
9
9
  tag_name = "#{fetch(:deploy_tag, "deployed")}_#{fetch(:stage)}"
10
10
  latest_revision = fetch(:current_revision)
11
- strategy.git "tag -f #{tag_name} #{latest_revision}"
12
- strategy.git "push -f --tags"
11
+ unless fetch(:sshkit_backend) == SSHKit::Backend::Printer # unless --dry-run flag present
12
+ strategy.git "tag -f #{tag_name} #{latest_revision}"
13
+ strategy.git "push -f --tags"
14
+ end
13
15
  info "[cap-deploy-tagger] Tagged #{latest_revision} with #{tag_name}"
14
16
  end
15
17
  end
16
18
  end
17
-
19
+
18
20
  after :cleanup, 'deploy:tag'
19
-
21
+
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module CapDeployTagger
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-deploy-tagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andy Sykes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Automatically tag Git commits when deploying with Capistrano
@@ -50,7 +45,7 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - Gemfile
55
50
  - LICENSE.txt
56
51
  - README.md
@@ -63,32 +58,25 @@ files:
63
58
  homepage: https://github.com/forward3d/cap-deploy-tagger
64
59
  licenses:
65
60
  - MIT
61
+ metadata: {}
66
62
  post_install_message:
67
63
  rdoc_options: []
68
64
  require_paths:
69
65
  - lib
70
66
  required_ruby_version: !ruby/object:Gem::Requirement
71
- none: false
72
67
  requirements:
73
- - - ! '>='
68
+ - - ">="
74
69
  - !ruby/object:Gem::Version
75
70
  version: '0'
76
- segments:
77
- - 0
78
- hash: 22969979815138706
79
71
  required_rubygems_version: !ruby/object:Gem::Requirement
80
- none: false
81
72
  requirements:
82
- - - ! '>='
73
+ - - ">="
83
74
  - !ruby/object:Gem::Version
84
75
  version: '0'
85
- segments:
86
- - 0
87
- hash: 22969979815138706
88
76
  requirements: []
89
77
  rubyforge_project:
90
- rubygems_version: 1.8.23
78
+ rubygems_version: 2.4.6
91
79
  signing_key:
92
- specification_version: 3
80
+ specification_version: 4
93
81
  summary: Automatically tag Git commits when deploying with Capistrano
94
82
  test_files: []