ryancyq/rodiff

View on GitHub
bin/bump-version

Summary

Maintainability
Test Coverage
#!/usr/bin/env bash

VERSION=$1

if [ -z "$VERSION" ]; then
  echo "Usage: $0 <version>"
  exit 1
fi

printf "# frozen_string_literal: true\n\nmodule Rodiff\n  VERSION = \"$VERSION\"\nend\n" > ./lib/rodiff/version.rb
bundle > /dev/null

echo "$VERSION"