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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c9c34b9376c8b534f13f6fdc91c69cd3b25eefa
4
- data.tar.gz: d3208625957567aad8c0ca73e524ead389bc344f
3
+ metadata.gz: 109fedfadcbf98cad604c441587139f495457af4
4
+ data.tar.gz: dd8969218029329b4659dfaec9df05b9d38487a5
5
5
  SHA512:
6
- metadata.gz: f99ea2c948a99221f1bdf94ddad5a16905aa90dc61d0d4d2ad5626b6d979814e9306f24b383d5554639641e94dc386285b806a4613f2b051bb70e8ac217c5345
7
- data.tar.gz: ebbc57b5ca1ba7e0af60bfe9d81b3027faed432ccde6e5d52f4d11a02eb32e969e1558ab3da5b79d1b2e04a142cee5054af95ba3aca42a8616386ef515b92030
6
+ metadata.gz: e3085df4473df523bb6770e6f876d5232be58ed7061556156cb1834560c963bba69506c0f79f38b47d1957b52dd475f8e0e6fc27d56284c3a93274f8eaa6875c
7
+ data.tar.gz: 2108497fec8135d7da6704771f4c7947e7349247054ca9978282ff50e19f03a9effef6a1ef86ec5a896165f5d825f74db468b90eb07706fc577e89d65744352e
data/README.md CHANGED
@@ -9,7 +9,7 @@ This is a capistrano 3 plugin for auto tagging your git deploys.
9
9
  In a gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'cap-git-tags'
12
+ gem 'cap-git-tags', require: false
13
13
  ```
14
14
 
15
15
  In your *Capfile*:
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module GitTags
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -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.year}-#{time.month}-#{time.day}-#{time.hour}-#{time.min}-#{safe_tag}"
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.0
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: 2014-11-12 00:00:00.000000000 Z
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.2.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