sti_deploy 0.2.1 → 0.3.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 +4 -4
- data/lang/en.yml +2 -2
- data/lang/pt-BR.yml +2 -2
- data/lib/sti_deploy/deploy.rb +1 -1
- data/lib/sti_deploy/version.rb +9 -0
- data/lib/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: d6d7d456f8e24b6978780162cf09ecb2b7fffa5a
|
4
|
+
data.tar.gz: a83c26910eeeb37f90ddec3ad4d51edd2e3137c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6bd3a6ac8a6eff40063027a1241eba77fbcfe200d13cfa759966f073771c6d2736645b29da93241af839332ca7aeeb2d9bb1378b5e2d6ede0b65dbcd5b43fab
|
7
|
+
data.tar.gz: 159cbe388f9a9f4937b29121e27d623823d46f5815d81ef9a6e25c2fd4032cbb670350e0c003def8a2ebc4bc29436ac8099500ec91c32822f4f6307a6958f2a3
|
data/lang/en.yml
CHANGED
@@ -6,8 +6,8 @@ en:
|
|
6
6
|
detected: "Version number detected: %{version}"
|
7
7
|
increment: "\nThe version number will be bumped from \"%{old}\" to \"%{new}\"."
|
8
8
|
deploy_type:
|
9
|
-
prompt: "\nIs the deploy for hot(f)ix, staging(h), or (
|
10
|
-
invalid: 'Invalid option. Type in only "f", "h", or "
|
9
|
+
prompt: "\nIs the deploy for hot(f)ix, staging(h), (p)roject, or (r)elease? Type in \"f\", \"h\", \"p\", or \"r\": "
|
10
|
+
invalid: 'Invalid option. Type in only "f", "h", "p", or "r", imbecile!'
|
11
11
|
release_message:
|
12
12
|
prompt: "\nInform a summary of the changes made, in order to create a Git tag:\n> "
|
13
13
|
invalid: 'Please write a proper summary (min of 10 chars)!'
|
data/lang/pt-BR.yml
CHANGED
@@ -6,8 +6,8 @@ pt-BR:
|
|
6
6
|
detected: "Número de versão detectado: %{version}"
|
7
7
|
increment: "\nA versão será incrementada de \"%{old}\" para \"%{new}\"."
|
8
8
|
deploy_type:
|
9
|
-
prompt: "\nO deploy é para hot(f)ix, (h)omologação, or (p)rojeto? Digite \"f\", \"h\", ou \"
|
10
|
-
invalid: 'Tipo inválido. Digite apenas "f", "h", ou "
|
9
|
+
prompt: "\nO deploy é para hot(f)ix, (h)omologação, or (p)rojeto? Digite \"f\", \"h\", \"p\", ou \"r\": "
|
10
|
+
invalid: 'Tipo inválido. Digite apenas "f", "h", "p", ou "r", animal!'
|
11
11
|
release_message:
|
12
12
|
prompt: "\nEscreva um resumo das alterações feitas, para criar a tag no Git:\n> "
|
13
13
|
invalid: 'Escreva uma mensagem decente (min 10 chars)!'
|
data/lib/sti_deploy/deploy.rb
CHANGED
@@ -25,7 +25,7 @@ module StiDeploy
|
|
25
25
|
def read_type
|
26
26
|
Messages.print('deploy_type.prompt')
|
27
27
|
type = gets.chomp
|
28
|
-
return @type = DeployType.new(type) if %w[f F h H p P].include? type
|
28
|
+
return @type = DeployType.new(type) if %w[f F h H p P r R].include? type
|
29
29
|
Messages.puts('deploy_type.invalid')
|
30
30
|
read_type
|
31
31
|
end
|
data/lib/sti_deploy/version.rb
CHANGED
@@ -86,5 +86,14 @@ module StiDeploy
|
|
86
86
|
self.hotfix = 0
|
87
87
|
self.pre += 1
|
88
88
|
end
|
89
|
+
|
90
|
+
# Bump (r)release
|
91
|
+
def bump_r
|
92
|
+
# Se ainda não estiver em PRE nem RC, da bump no minor
|
93
|
+
self.minor += 1 if pre.zero? && rc.zero?
|
94
|
+
self.hotfix = 0
|
95
|
+
self.pre = 0
|
96
|
+
self.rc = 0
|
97
|
+
end
|
89
98
|
end
|
90
99
|
end
|
data/lib/version.rb
CHANGED