#!/bin/sh

exec 2>&1
set -ex

cd $ADTTMP

rails new foo
cd foo

cat >> app/assets/javascripts/application.js <<EOF
# =require markdown-it-html5-embed
EOF

cat >> Gemfile <<EOF
gem 'markdown-it-html5-embed'
EOF

bundle install --local
bundle exec rake assets:precompile
