capistrano-gitflow 1.5.6 → 1.5.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/lib/capistrano/gitflow/helpers/helper.rb +1 -1
- data/lib/capistrano/gitflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f14379f6a21af80834aa11905d04dfe083270360
|
|
4
|
+
data.tar.gz: 7e4dd444e6b0f07d8224229c47e5000333a07465
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abe68048b8930a7cbeb58d9415c2a4aa5b7088f95c3e209ecc59f4e179b3557388747df973a33104d8c5b0fa65dee22f3e1e0cc47de3fdb99d8a8d660b13e771
|
|
7
|
+
data.tar.gz: 34401457a001b7153f6e5c60063620de42c3ccc358753dc94afbfb2e7498b6341133a7fbc1c6a6245cf05bcb44e1d79fcea20ab2a40a32565ab57f01ff2d71de
|
|
@@ -219,7 +219,7 @@ module CapistranoGitFlow
|
|
|
219
219
|
def gitflow_cleanup_tags
|
|
220
220
|
return if fetch(:gitflow_keep_tags).nil?
|
|
221
221
|
tags = `git log --tags --pretty="format:%at %D" | grep 'tag:' |sort -n | awk '{$1=""; print $0}' | tr "," "\n"| sed 's/tag:*//' | sed -e 's/^[ \t]*//'`
|
|
222
|
-
tags = tags.split.reject{|tag| tag.
|
|
222
|
+
tags = tags.split.reject{|tag| tag.nil? || tag.empty? }
|
|
223
223
|
tags = tags.select { |tag| tag =~ /^(staging|production){1}-[0-9]{4}-[0-9]{2}-[0-9]{2}\-([0-9]*)/ }
|
|
224
224
|
if tags.count >= fetch(:gitflow_keep_tags)
|
|
225
225
|
puts "Keeping #{fetch(:gitflow_keep_tags)} Tags from total #{tags.count}"
|