post_upgrade() {
  set -e
  cd /usr/share/urlcrazy
  rm -f Gemfile.lock
  /usr/bin/bundle config build.nokogiri --use-system-libraries
  /usr/bin/bundle config set --local path 'vendor/bundle'
  bundle install
  /usr/bin/bundle update
  rm -f Gemfile.lock
}

post_install() {
  post_upgrade
}
