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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/context/getting-started.md +19 -51
- data/lib/bake/gem/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b58013991ce4771130e9bc0b03a0bad9928e981cdcba488e14bcb6541199ccb
|
4
|
+
data.tar.gz: 61ec5e7911011e5e888d03872197fea5eb7de373d8a311ca9709b2a5ac2b5f31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9769c00625679490e83bd66f9df10fd946880cb1ad8a5aad301db7a7d66bb19f0644026b84fcf9cd6a6666cf58abdabf77509ffc98decb389ebd7fb26af3b574
|
7
|
+
data.tar.gz: 5e60162227459bb458b62d2d16ed404427e13507c3c64efb4f40af2cf0f02ae77b07b8c8c5cb27832610646a1924dc6e6c13763fbf51952ee77a1774935cd383
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/context/getting-started.md
CHANGED
@@ -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:
|
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 (
|
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:
|
53
|
+
$ bake gem:release:patch
|
54
54
|
|
55
55
|
# For new features (1.0.0 -> 1.1.0)
|
56
|
-
$ bake gem:release:
|
56
|
+
$ bake gem:release:minor
|
57
57
|
|
58
58
|
# For breaking changes (1.0.0 -> 2.0.0)
|
59
|
-
$ bake 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:
|
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
|
-
````
|
data/lib/bake/gem/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|