Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions bin/newver
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ if [ $# -eq 0 ]; then
fi
NEWVER="$1"

previous_channel() {
cat <<EOM | ruby
version = "${NEWVER}".match(/(\d+).(\d+).(\d+)/)
minor = version[2].to_i - 1
puts "channel/rubocop-#{version[1]}-#{minor}"
EOM
}

git checkout Gemfile*
git fetch origin
git checkout $(previous_channel)
git checkout -b "newver/${NEWVER}"

ed Gemfile <<-EDITS
/gem "parser",/c
gem "parser"
.
/gem "rubocop",/c
gem "rubocop", "${NEWVER}", require: false
.
Expand Down