bake-gem 0.12.0 → 0.12.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: 7b25175c2d6cf7d1761d1e907fcd305627d7d8aeb394877b02133ebb4b04ce83
4
- data.tar.gz: dc59a56876e85654723fa2b1e600078f99f9c70b34b4e7538796788f9d34f3c9
3
+ metadata.gz: 9b58013991ce4771130e9bc0b03a0bad9928e981cdcba488e14bcb6541199ccb
4
+ data.tar.gz: 61ec5e7911011e5e888d03872197fea5eb7de373d8a311ca9709b2a5ac2b5f31
5
5
  SHA512:
6
- metadata.gz: 53bbab1dc7b1ce0ee92b176624a9a0032ffebd2a482c13477187c6e03965871f1f95c132e84aad5f0361930dc32cd3f2827df5e36cdb5a4e8f405ba8faa17198
7
- data.tar.gz: 6af3f18bee98f04af4c700c4282873eec88d927945e43176c9a24cff5dbc78eb3f88097d817e43373243c51894c41c4a41d855a949a343d827ef9ecd908fca5b
6
+ metadata.gz: 9769c00625679490e83bd66f9df10fd946880cb1ad8a5aad301db7a7d66bb19f0644026b84fcf9cd6a6666cf58abdabf77509ffc98decb389ebd7fb26af3b574
7
+ data.tar.gz: 5e60162227459bb458b62d2d16ed404427e13507c3c64efb4f40af2cf0f02ae77b07b8c8c5cb27832610646a1924dc6e6c13763fbf51952ee77a1774935cd383
checksums.yaml.gz.sig CHANGED
Binary file
@@ -32,13 +32,13 @@ Before using `bake-gem`, ensure you have:
32
32
  The most typical process for releasing a gem locally:
33
33
 
34
34
  ``` bash
35
- $ bake gem:release:version:patch gem:release
35
+ $ bake gem:release:patch
36
36
  ```
37
37
 
38
- This command will:
38
+ This single command will:
39
39
  1. **Guard against consecutive version bumps** - Prevents accidentally bumping version twice
40
40
  2. **Check repository cleanliness** - Ensures no uncommitted changes
41
- 3. **Increment the version** - Updates your version file (patch/minor/major)
41
+ 3. **Increment the patch version** - Updates your version file (e.g., 1.0.0 → 1.0.1)
42
42
  4. **Commit the version change** - Creates a commit with the version bump
43
43
  5. **Build the gem in a clean worktree** - Isolates the build process
44
44
  6. **Push to RubyGems** - Publishes your gem
@@ -46,17 +46,27 @@ This command will:
46
46
 
47
47
  ### Version Increment Options
48
48
 
49
- Choose the appropriate version increment:
49
+ Choose the appropriate version increment for a complete release:
50
50
 
51
51
  ``` bash
52
52
  # For bug fixes (1.0.0 -> 1.0.1)
53
- $ bake gem:release:version:patch gem:release
53
+ $ bake gem:release:patch
54
54
 
55
55
  # For new features (1.0.0 -> 1.1.0)
56
- $ bake gem:release:version:minor gem:release
56
+ $ bake gem:release:minor
57
57
 
58
58
  # For breaking changes (1.0.0 -> 2.0.0)
59
- $ bake gem:release:version:major gem:release
59
+ $ bake gem:release:major
60
+ ```
61
+
62
+ For more control, you can also use the traditional two-step process:
63
+
64
+ ``` bash
65
+ # Step 1: Bump version and commit
66
+ $ bake gem:release:version:patch # or minor/major
67
+
68
+ # Step 2: Build and release
69
+ $ bake gem:release
60
70
  ```
61
71
 
62
72
  ## Advanced Workflows
@@ -157,8 +167,8 @@ $ git status
157
167
  # 2. Run tests
158
168
  $ bundle exec rake test # or your test command
159
169
 
160
- # 3. Release with patch version increment
161
- $ bake gem:release:version:patch gem:release
170
+ # 3. Release with patch version increment (single command)
171
+ $ bake gem:release:patch
162
172
 
163
173
  # Output:
164
174
  # Updated version: v1.2.4
@@ -184,45 +194,3 @@ $ git checkout main
184
194
  $ git pull
185
195
  $ bake gem:release
186
196
  ```
187
-
188
- ## Troubleshooting
189
-
190
- ### Common Issues
191
-
192
- **"Repository has uncommitted changes"**
193
- ```bash
194
- $ git status # Check what's uncommitted
195
- $ git add . # Stage changes
196
- $ git commit -m "Prepare for release" # Or stash them
197
- ```
198
-
199
- **"Last commit appears to be a version bump"**
200
- ```bash
201
- # Make some changes first, or use --force if intentional
202
- $ git log -1 # Check the last commit message
203
- ```
204
-
205
- **"Multiple gemspecs found"**
206
- ```bash
207
- # Specify which gemspec to use or remove extras
208
- $ ls *.gemspec
209
- ```
210
-
211
- **"No version file found"**
212
- ```bash
213
- # Ensure your version file follows the expected pattern:
214
- # VERSION = "1.0.0"
215
- ```
216
-
217
- ### Getting Help
218
-
219
- List all available gem commands:
220
- ``` bash
221
- $ bake list | grep gem
222
- ```
223
-
224
- Get help for specific commands:
225
- ``` bash
226
- $ bake gem:release --help
227
- ```
228
- ````
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Gem
8
- VERSION = "0.12.0"
8
+ VERSION = "0.12.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file