Skip to content

Commit

Permalink
chore: add bump up script
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Aug 26, 2023
1 parent d3f448e commit c603134
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bump.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/zsh

FROM='0.26.0'
TO='0.27.0'

for FILENAME in `find . -name 'version.rb'`; do
gsed -i -e "s/VERSION\s*=\s*'${FROM}'/VERSION = '${TO}'/" ${FILENAME}
done

for FILENAME in `find . -name '*.gemspec'`; do
gsed -i -e "s/\(spec.add_dependency\s\+'rumale\-[a-zA-Z\-_]\+'\),\s\+'~>\s*${FROM}'/\1, '~> ${TO}'/g" ${FILENAME}
done

0 comments on commit c603134

Please sign in to comment.