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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97114c734bd13059a6e519a12548273fd1205241
4
- data.tar.gz: ce57f2c5dc9ae737f9f6e2652a51472ba4ba50be
3
+ metadata.gz: d6d7d456f8e24b6978780162cf09ecb2b7fffa5a
4
+ data.tar.gz: a83c26910eeeb37f90ddec3ad4d51edd2e3137c4
5
5
  SHA512:
6
- metadata.gz: 3176f8e465df574d7aa2ec6e82998142b86c2acb35a064202fd0f2ae9f5cb0474289abedbc6d5e8eebbe1cc991d0ad2433e4a980217d75b9252d9624174c71cb
7
- data.tar.gz: b54260d0a9fa59c4b359b4e2ace1cab20cb6831e026ffe03c7ffff2b7c2b758f3a57282253656d8ba92813520ff41874a346419511e000e7fe4ef1228b6b95a6
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 (p)roject? Type in \"f\", \"h\", or \"p\": "
10
- invalid: 'Invalid option. Type in only "f", "h", or "p", imbecile!'
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 \"p\": "
10
- invalid: 'Tipo inválido. Digite apenas "f", "h", ou "p", animal!'
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)!'
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- VERSION = '0.2.1'
3
+ VERSION = '0.3.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sti_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Castro Azevedo