permit_params 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 6e0261ffbdf435bd7abca5dd4f6fba035c695568e8eb731f5bd0422697114431
4
- data.tar.gz: 011cbef5ce2019c59e48a33e3d8e4f6e0fd03e8ae8b713ad63e088cb69d29cc2
3
+ metadata.gz: 27e85c70761db7c6e3f0b503ca6c499971417a92bee4b1b1bc151893bea7547e
4
+ data.tar.gz: 3f9a850710352c6b9176a91a5f37f0dff1b77fd4a25658c71deb5d8bf7ceff3d
5
5
  SHA512:
6
- metadata.gz: 8fceb998fc9889aff5fc65bc7245d043daac8d0d627b84c8e7a236e805f36bd0f766ab4aa7548dd96f015d368cd7da0c23a8c9c9b3a4e921b851da932f47461a
7
- data.tar.gz: 6c2eacdaacb3746178ca59fea8b3121b47882fcced29e4218cea46f6e537ceac94a12887666f44dcda9188ce888189e6da32dd4a13a7dfc33d3b3e4a63a2e9eb
6
+ metadata.gz: 6c7fc8d749a3a92c491a98b1c41c862d8609457d7c04e75a2d31f80bdbe7e9226b20b21d23a04d9bd9be9a90ca0ee3c3acb47c37d21eeb8376d5444afa283a5e
7
+ data.tar.gz: 694263ca76b16a84bec18ad1e93095f07135c778d230a37cc9efc6af38dc878f85f9626fd38b947c552624c373841b8a07c5034572bdd9ad9296667dca358801
data/README.md CHANGED
@@ -178,6 +178,56 @@ bundle install
178
178
  bundle exec rspec
179
179
  ```
180
180
 
181
+ ### Bump de versão
182
+
183
+ O bump usa a gem [`gem-release`](https://github.com/svenfuchs/gem-release):
184
+
185
+ ```bash
186
+ gem bump --version patch # 0.1.0 -> 0.1.1
187
+ gem bump --version minor # 0.1.0 -> 0.2.0
188
+ gem bump --version major # 0.1.0 -> 1.0.0
189
+ ```
190
+
191
+ Por padrão o bump reescreve `lib/permit_params/version.rb`, faz **commit** da
192
+ mudança e **não** faz push nem tag.
193
+
194
+ O comando `gem bump --version patch --tag --push` faz tudo em sequência:
195
+ bump, commit (só do `version.rb`), push do commit, cria a tag anotada
196
+ `v<versão>` (a partir da versão do `version.rb`) e faz push das tags. Como a
197
+ tag `v*` é enviada, **isso dispara a release**.
198
+
199
+ > ⚠️ A árvore do git precisa estar **limpa** antes de rodar o bump (ele aborta
200
+ > com "Uncommitted changes found"). Como o bump só faz `git add` do
201
+ > `version.rb`, o `CHANGELOG.md` precisa já estar commitado — por isso, escreva
202
+ > a seção da nova versão e commite antes.
203
+
204
+ Para saber a próxima versão sem alterar nada:
205
+
206
+ ```bash
207
+ gem bump --pretend --no-commit | awk '{ print $4 }' # -> 0.1.1
208
+ ```
209
+
210
+ Fluxo recomendado (o `CHANGELOG.md` precisa estar commitado antes do bump):
211
+
212
+ ```bash
213
+ # 1) escreva a seção da nova versão no CHANGELOG.md e commite tudo
214
+ git add .
215
+ git commit -m "Prepare 0.1.1"
216
+
217
+ # 2) bump + tag + push (dispara a release) usando a versão explícita
218
+ gem bump --version 0.1.1 --tag --push
219
+ ```
220
+
221
+ Alternativa com mais controle (separa o push do código da release):
222
+
223
+ ```bash
224
+ gem bump --version patch --no-commit # só edita o version.rb
225
+ git add lib/permit_params/version.rb CHANGELOG.md
226
+ git commit -m "Prepare 0.1.1"
227
+ git push origin main # sem release
228
+ gem tag --push # cria v0.1.1 e empurra -> dispara a release
229
+ ```
230
+
181
231
  ## Licença
182
232
 
183
233
  MIT.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PermitParams
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: permit_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lasnor