Sha256: efb154f5c013affe76c295d81904af7d2bc866c166fa5a8f9c0a04feb03d3a18

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

#!/bin/sh

# Checkout vendor repo
echo "Cloning Bttstrp/bootstrap-switch github repo into tmp_vendor"
git clone https://github.com/Bttstrp/bootstrap-switch.git tmp_vendor

# Copy files
echo "Copying bootstrap-switch.js"
cp tmp_vendor/dist/js/bootstrap-switch.js vendor/assets/javascripts/bootstrap-switch.js
echo "Copying bootstrap-switch.css files"
cp tmp_vendor/dist/css/bootstrap2/bootstrap-switch.css vendor/assets/stylesheets/bootstrap2-switch.scss
cp tmp_vendor/dist/css/bootstrap3/bootstrap-switch.css vendor/assets/stylesheets/bootstrap3-switch.scss

# Delete vendor repo
echo "Removing cloned vendor repo"
rm -rf tmp_vendor

echo "Finished... You'll need to commit the changes. You should consider updating the changelog and gem version number"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootstrap-switch-rails-3.3.5 update_from_vendor.sh
bootstrap-switch-rails-3.3.4 update_from_vendor.sh