Skip to content

Commit ce9fb75

Browse files
committed
update gemspec in bump script
1 parent eeda87a commit ce9fb75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ bundle exec rspec
193193

194194
## Development
195195

196-
Currently to bump version update config.json, fastcomments.gemspec, lib/fastcomments.rb
197-
198196
To update the generated client from the OpenAPI spec:
199197

200198
```bash

bump.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ echo "Bumping version to $NEW_VERSION..."
1616
jq ".gemVersion = \"$NEW_VERSION\"" config.json > config.json.tmp && mv config.json.tmp config.json
1717
echo "✓ Updated config.json gemVersion to $NEW_VERSION"
1818

19+
# Update fastcomments.gemspec
20+
sed -i "s/spec\.version[[:space:]]*=.*/spec.version = \"$NEW_VERSION\"/" fastcomments.gemspec
21+
echo "✓ Updated fastcomments.gemspec version to $NEW_VERSION"
22+
1923
# Update lib/fastcomments.rb
2024
sed -i "s/VERSION = '[^']*'/VERSION = '$NEW_VERSION'/" lib/fastcomments.rb
2125
echo "✓ Updated lib/fastcomments.rb VERSION to $NEW_VERSION"

0 commit comments

Comments
 (0)