This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Compiling styles with Compass..." | |
compass compile --quiet --trace | |
git add public/stylesheets | |
echo "Packaging assets with Jammit..." | |
jammit | |
git add public/assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
app = "awesome_application" | |
mysql_version = case Rails.version.first.to_i | |
when 3 then 'mysql2' | |
when 2 then 'mysql' | |
else | |
raise 'Version not supported' | |
end | |
%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jquery_includes | |
jquery_version = "1.4.4" | |
jquery_ui_version = "1.8.9" | |
css_theme = "redmond" | |
if ::Rails.env == 'production' | |
proto = request.ssl? ? 'https://' : 'http://' | |
cdn_url = "ajax.googleapis.com/ajax/libs/jquery" | |
javascript_include_tag("#{proto}#{cdn_url}/#{jquery_version}/jquery.min.js") + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pull all git-based projects in the current directory (doesn't hurt non-git directories) | |
# for TextMate bundles: run this from [~]/Library/Application\ Support/TextMate/Bundles/ | |
for repo in *; do if [ -d "$repo" ]; then cd "$repo"; git pull origin; cd ../; fi done |
NewerOlder