This file contains 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
# Boxcar Deployment Notifications for Ruby on Rails | |
# In your config/deploy.rb: | |
task :production do | |
# You will have other / more stuff here. You want to add this though: | |
set :deploy_notifications, %W[[email protected] [email protected]] | |
end |
This file contains 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/bash | |
# Include commit rev script by @bsneed | |
# | |
buildPlist="${PRODUCT_NAME}-Info.plist" | |
buildCommit=$(/usr/local/git/bin/git --work-tree="${PROJECT_DIR}" show --abbrev-commit | grep "^commit") | |
/usr/libexec/PlistBuddy -c "Add :CFBundleCommit string $buildCommit" $buildPlist | |
if [ $? != 0 ] | |
then | |
/usr/libexec/PlistBuddy -c "Set :CFBundleCommit $buildCommit" $buildPlist | |
fi |
This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'tweetstream' | |
require 'boxcar_api' | |
SETTINGS = { | |
:key => 'xyz', # Provider Key | |
:secret => 'xyz', # Provider Secret | |
:tweeter => 'macrumorslive' # Whom we'll be following on Twitter | |
:tweeter_id => 1581511, # The tweeter's user id (check their RSS feed) |