Install dependencies and run tests
rake
Dependencies, tests, archive in Release configuration and upload to TestFlight
rake testflight
protocol ArrayRepresentable { | |
typealias ArrayType | |
func toArray() -> ArrayType[] | |
} | |
extension Range : ArrayRepresentable { | |
func toArray() -> T[] { | |
return T[](self) | |
} |
# gsr = Git Search Replace | |
gsr() { | |
search_string=$1 | |
replace_string=$2 | |
if [ -z $search_string ] || [ -z $replace_string ] | |
then | |
echo "-- Git Search & Replace (gsr)" | |
echo "-- usage: gsr search_string replace_string" | |
else | |
git grep -l $search_string | xargs sed -i '' "s/$search_string/$replace_string/g" |
require 'yaml' | |
require 'uri' | |
require 'tempfile' | |
require 'tmpdir' | |
SDK_DIR = "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk" | |
TESTFLIGHT_URL = 'http://testflightapp.com/api/builds.json' | |
PROJECT_DIR = File.dirname __FILE__ | |
RUBIOS_DIR = File.join(PROJECT_DIR, 'rubios') |