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
inside 'gems/bundler' do | |
run 'git init' | |
run 'git pull --depth 1 git://github.com/wycats/bundler.git' | |
run 'rm -rf .git .gitignore' | |
end | |
file 'script/bundle', %{ | |
#!/usr/bin/env ruby | |
path = File.expand_path(File.join(File.dirname(__FILE__), "..", "gems/bundler/lib")) | |
$LOAD_PATH.unshift path |
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
#pragma mark Data file management stuff | |
- (void)createEditableCopyOfDatabaseIfNeeded { | |
// First, test for existence. | |
BOOL success; | |
NSFileManager *fileManager = [NSFileManager defaultManager]; | |
NSError *error; | |
NSString *writableDBPath = [[GBAppDelegate documentsDirectory] stringByAppendingPathComponent:@"/database.sqlite3"]; | |
success = [fileManager fileExistsAtPath:writableDBPath]; |
NewerOlder