Commit 2dc17f0
Add parameter validation for registry and skip_push
- Validate registry parameter accepts only: 'verdaccio', 'npm', or empty string
- Validate skip_push parameter accepts only: 'skip_push' or empty string
- Raise ArgumentError with clear message for invalid values
- Prevents silent failures from typos or incorrect usage
Examples of errors:
rake release[16.2.0,false,foo] → ArgumentError: Invalid registry value 'foo'
rake release[16.2.0,false,npm,skip] → ArgumentError: Invalid skip_push value 'skip'
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 604b823 commit 2dc17f0
1 file changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
50 | 65 | | |
51 | 66 | | |
52 | 67 | | |
| |||
0 commit comments