Commit e32e4255 authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'master' of github.com:CocoaPods/CocoaPods

* 'master' of github.com:CocoaPods/CocoaPods:
  Make all the examples build on 1.9.3 as well.
  Silence warnings while loading Faraday for Octokit. See #278.
  Remove stray file.
  Update RKTwitter example. ALL EXAMPLES BUILD!
parents eca25a12 4b9c210e
...@@ -5,13 +5,8 @@ gem "escape" ...@@ -5,13 +5,8 @@ gem "escape"
gem "json" gem "json"
gem "open4" gem "open4"
# We don't want octokit to pull in faraday 0.8.0, as it prints a warning about gem "faraday", ">= 0.8.1"
# the `system_timer` gem being needed, which isn't available on 1.9.x gem "octokit"
#
# Once faraday 0.8.1 is released this should be resolved:
# https://github.com/technoweenie/faraday/pull/147
gem "faraday", "0.7.6"
gem "octokit", "<= 1.0.3"
group :development do group :development do
gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git" gem "xcodeproj", :git => "git://github.com/CocoaPods/Xcodeproj.git"
......
...@@ -14,10 +14,8 @@ GEM ...@@ -14,10 +14,8 @@ GEM
colored (1.2) colored (1.2)
crack (0.3.1) crack (0.3.1)
escape (0.0.4) escape (0.0.4)
faraday (0.7.6) faraday (0.8.1)
addressable (~> 2.2)
multipart-post (~> 1.1) multipart-post (~> 1.1)
rack (~> 1.1)
faraday_middleware (0.8.7) faraday_middleware (0.8.7)
faraday (>= 0.7.4, < 0.9) faraday (>= 0.7.4, < 0.9)
hashie (1.2.0) hashie (1.2.0)
...@@ -32,9 +30,9 @@ GEM ...@@ -32,9 +30,9 @@ GEM
mocha (>= 0.9.8) mocha (>= 0.9.8)
multi_json (1.3.6) multi_json (1.3.6)
multipart-post (1.1.5) multipart-post (1.1.5)
octokit (1.0.3) octokit (1.3.0)
addressable (~> 2.2) addressable (~> 2.2)
faraday (~> 0.7) faraday (~> 0.8)
faraday_middleware (~> 0.8) faraday_middleware (~> 0.8)
hashie (~> 1.2) hashie (~> 1.2)
multi_json (~> 1.3) multi_json (~> 1.3)
...@@ -43,7 +41,6 @@ GEM ...@@ -43,7 +41,6 @@ GEM
coderay (~> 1.0.5) coderay (~> 1.0.5)
method_source (~> 0.7.1) method_source (~> 0.7.1)
slop (>= 2.4.4, < 3) slop (>= 2.4.4, < 3)
rack (1.4.1)
rake (0.9.2.2) rake (0.9.2.2)
rb-fsevent (0.9.1) rb-fsevent (0.9.1)
slop (2.4.4) slop (2.4.4)
...@@ -60,11 +57,11 @@ DEPENDENCIES ...@@ -60,11 +57,11 @@ DEPENDENCIES
bacon bacon
colored colored
escape escape
faraday (= 0.7.6) faraday (>= 0.8.1)
json json
kicker kicker
mocha-on-bacon mocha-on-bacon
octokit (<= 1.0.3) octokit
open4 open4
pry pry
rake rake
......
...@@ -28,13 +28,8 @@ Gem::Specification.new do |s| ...@@ -28,13 +28,8 @@ Gem::Specification.new do |s|
s.post_install_message = "[!] If this is your first time install of CocoaPods, or if " \ s.post_install_message = "[!] If this is your first time install of CocoaPods, or if " \
"you are upgrading, first run: $ pod setup" "you are upgrading, first run: $ pod setup"
# We don't want octokit to pull in faraday 0.8.0, as it prints a warning about s.add_runtime_dependency 'faraday', '~> 0.8.1'
# the `system_timer` gem being needed, which isn't available on 1.9.x s.add_runtime_dependency 'octokit', '~> 1.3.0'
#
# Once faraday 0.8.1 is released this should be resolved:
# https://github.com/technoweenie/faraday/pull/147
s.add_runtime_dependency 'faraday', '~> 0.7.6'
s.add_runtime_dependency 'octokit', '<= 1.0.3'
s.add_runtime_dependency 'colored', '~> 1.2' s.add_runtime_dependency 'colored', '~> 1.2'
s.add_runtime_dependency 'escape', '~> 0.0.4' s.add_runtime_dependency 'escape', '~> 0.0.4'
......
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright 2010 Two Toasters. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import "RKTUser.h" #import "RKTUser.h"
@interface RKTStatus : NSObject { @interface RKTStatus : NSObject {
NSNumber* _statusID; NSNumber* _statusID;
NSDate* _createdAt; NSDate* _createdAt;
NSString* _text; NSString* _text;
NSString* _urlString; NSString* _urlString;
NSString* _inReplyToScreenName; NSString* _inReplyToScreenName;
NSNumber* _isFavorited; NSNumber* _isFavorited;
RKTUser* _user; RKTUser* _user;
} }
/** /**
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright 2010 Two Toasters. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import "RKTStatus.h" #import "RKTStatus.h"
...@@ -15,21 +15,21 @@ ...@@ -15,21 +15,21 @@
@synthesize text = _text; @synthesize text = _text;
@synthesize urlString = _urlString; @synthesize urlString = _urlString;
@synthesize inReplyToScreenName = _inReplyToScreenName; @synthesize inReplyToScreenName = _inReplyToScreenName;
@synthesize isFavorited = _isFavorited; @synthesize isFavorited = _isFavorited;
@synthesize user = _user; @synthesize user = _user;
- (NSString*)description { - (NSString*)description {
return [NSString stringWithFormat:@"%@ (ID: %@)", self.text, self.statusID]; return [NSString stringWithFormat:@"%@ (ID: %@)", self.text, self.statusID];
} }
- (void)dealloc { - (void)dealloc {
[_statusID release]; [_statusID release];
[_createdAt release]; [_createdAt release];
[_text release]; [_text release];
[_urlString release]; [_urlString release];
[_inReplyToScreenName release]; [_inReplyToScreenName release];
[_user release]; [_user release];
[super dealloc]; [super dealloc];
} }
......
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright 2010 Two Toasters. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
@interface RKTUser : NSObject { @interface RKTUser : NSObject {
NSNumber* _userID; NSNumber* _userID;
NSString* _name; NSString* _name;
NSString* _screenName; NSString* _screenName;
} }
@property (nonatomic, retain) NSNumber* userID; @property (nonatomic, retain) NSNumber* userID;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright 2010 Two Toasters. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import "RKTUser.h" #import "RKTUser.h"
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
- (void)dealloc { - (void)dealloc {
[_userID release]; [_userID release];
[_name release]; [_name release];
[_screenName release]; [_screenName release];
[super dealloc]; [super dealloc];
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright Two Toasters 2010. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright Two Toasters 2010. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import <RestKit/RestKit.h> #import <RestKit/RestKit.h>
...@@ -19,47 +19,48 @@ ...@@ -19,47 +19,48 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
RKLogConfigureByName("RestKit/Network*", RKLogLevelTrace); RKLogConfigureByName("RestKit/Network*", RKLogLevelTrace);
RKLogConfigureByName("RestKit/ObjectMapping", RKLogLevelTrace);
// Initialize RestKit // Initialize RestKit
RKObjectManager* objectManager = [RKObjectManager objectManagerWithBaseURL:@"http://twitter.com"]; RKObjectManager* objectManager = [RKObjectManager managerWithBaseURLString:@"http://twitter.com"];
// Enable automatic network activity indicator management // Enable automatic network activity indicator management
//objectManager.client.requestQueue.showsNetworkActivityIndicatorWhenBusy = YES; objectManager.client.requestQueue.showsNetworkActivityIndicatorWhenBusy = YES;
// Setup our object mappings // Setup our object mappings
RKObjectMapping* userMapping = [RKObjectMapping mappingForClass:[RKTUser class]]; RKObjectMapping* userMapping = [RKObjectMapping mappingForClass:[RKTUser class]];
[userMapping mapKeyPath:@"id" toAttribute:@"userID"]; [userMapping mapKeyPath:@"id" toAttribute:@"userID"];
[userMapping mapKeyPath:@"screen_name" toAttribute:@"screenName"]; [userMapping mapKeyPath:@"screen_name" toAttribute:@"screenName"];
[userMapping mapAttributes:@"name", nil]; [userMapping mapAttributes:@"name", nil];
RKObjectMapping* statusMapping = [RKObjectMapping mappingForClass:[RKTStatus class]]; RKObjectMapping* statusMapping = [RKObjectMapping mappingForClass:[RKTStatus class]];
[statusMapping mapKeyPathsToAttributes:@"id", @"statusID", [statusMapping mapKeyPathsToAttributes:@"id", @"statusID",
@"created_at", @"createdAt", @"created_at", @"createdAt",
@"text", @"text", @"text", @"text",
@"url", @"urlString", @"url", @"urlString",
@"in_reply_to_screen_name", @"inReplyToScreenName", @"in_reply_to_screen_name", @"inReplyToScreenName",
@"favorited", @"isFavorited", @"favorited", @"isFavorited",
nil]; nil];
[statusMapping mapRelationship:@"user" withMapping:userMapping]; [statusMapping mapRelationship:@"user" withMapping:userMapping];
// Update date format so that we can parse Twitter dates properly // Update date format so that we can parse Twitter dates properly
// Wed Sep 29 15:31:08 +0000 2010 // Wed Sep 29 15:31:08 +0000 2010
[statusMapping.dateFormatStrings addObject:@"E MMM d HH:mm:ss Z y"]; [RKObjectMapping addDefaultDateFormatterForString:@"E MMM d HH:mm:ss Z y" inTimeZone:nil];
// Register our mappings with the provider // Uncomment these lines to use XML, comment it to use JSON
[objectManager.mappingProvider setMapping:userMapping forKeyPath:@"user"]; // objectManager.acceptMIMEType = RKMIMETypeXML;
[objectManager.mappingProvider setMapping:statusMapping forKeyPath:@"status"]; // statusMapping.rootKeyPath = @"statuses.status";
// Uncomment this to use XML, comment it to use JSON // Register our mappings with the provider using a resource path pattern
// objectManager.acceptMIMEType = RKMIMETypeXML; [objectManager.mappingProvider setObjectMapping:statusMapping forResourcePathPattern:@"/status/user_timeline/:username"];
// [objectManager.mappingProvider setMapping:statusMapping forKeyPath:@"statuses.status"];
// Create Window and View Controllers // Create Window and View Controllers
RKTwitterViewController* viewController = [[[RKTwitterViewController alloc] initWithNibName:nil bundle:nil] autorelease]; RKTwitterViewController* viewController = [[[RKTwitterViewController alloc] initWithNibName:nil bundle:nil] autorelease];
UINavigationController* controller = [[UINavigationController alloc] initWithRootViewController:viewController]; UINavigationController* controller = [[UINavigationController alloc] initWithRootViewController:viewController];
UIWindow* window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; UIWindow* window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
[window addSubview:controller.view]; [window addSubview:controller.view];
[window makeKeyAndVisible]; [window makeKeyAndVisible];
return YES; return YES;
} }
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright Two Toasters 2010. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <RestKit/RestKit.h> #import <RestKit/RestKit.h>
@interface RKTwitterViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, RKObjectLoaderDelegate> { @interface RKTwitterViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, RKObjectLoaderDelegate> {
UITableView* _tableView; UITableView* _tableView;
NSArray* _statuses; NSArray* _statuses;
} }
@end @end
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright Two Toasters 2010. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import "RKTwitterViewController.h" #import "RKTwitterViewController.h"
...@@ -16,45 +16,39 @@ ...@@ -16,45 +16,39 @@
@implementation RKTwitterViewController @implementation RKTwitterViewController
- (void)loadTimeline { - (void)loadTimeline {
// Load the object model via RestKit // Load the object model via RestKit
RKObjectManager* objectManager = [RKObjectManager sharedManager]; RKObjectManager* objectManager = [RKObjectManager sharedManager];
objectManager.client.baseURL = @"http://www.twitter.com"; objectManager.client.baseURL = [RKURL URLWithString:@"http://www.twitter.com"];
[objectManager loadObjectsAtResourcePath:@"/status/user_timeline/RestKit" delegate:self block:^(RKObjectLoader* loader) { [objectManager loadObjectsAtResourcePath:@"/status/user_timeline/RestKit" delegate:self];
// Twitter returns statuses as a naked array in JSON, so we instruct the loader
// to user the appropriate object mapping
if ([objectManager.acceptMIMEType isEqualToString:RKMIMETypeJSON]) {
loader.objectMapping = [objectManager.mappingProvider objectMappingForClass:[RKTStatus class]];
}
}];
} }
- (void)loadView { - (void)loadView {
[super loadView]; [super loadView];
// Setup View and Table View // Setup View and Table View
self.title = @"RestKit Tweets"; self.title = @"RestKit Tweets";
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent; [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackTranslucent;
self.navigationController.navigationBar.tintColor = [UIColor blackColor]; self.navigationController.navigationBar.tintColor = [UIColor blackColor];
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(loadTimeline)] autorelease]; self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(loadTimeline)] autorelease];
UIImageView* imageView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BG.png"]] autorelease]; UIImageView* imageView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BG.png"]] autorelease];
imageView.frame = CGRectOffset(imageView.frame, 0, -64); imageView.frame = CGRectOffset(imageView.frame, 0, -64);
[self.view insertSubview:imageView atIndex:0]; [self.view insertSubview:imageView atIndex:0];
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 480-64) style:UITableViewStylePlain]; _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 480-64) style:UITableViewStylePlain];
_tableView.dataSource = self; _tableView.dataSource = self;
_tableView.delegate = self; _tableView.delegate = self;
_tableView.backgroundColor = [UIColor clearColor]; _tableView.backgroundColor = [UIColor clearColor];
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone; _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
[self.view addSubview:_tableView]; [self.view addSubview:_tableView];
[self loadTimeline]; [self loadTimeline];
} }
- (void)dealloc { - (void)dealloc {
[_tableView release]; [_tableView release];
[_statuses release]; [_statuses release];
[super dealloc]; [super dealloc];
} }
...@@ -65,43 +59,43 @@ ...@@ -65,43 +59,43 @@
} }
- (void)objectLoader:(RKObjectLoader*)objectLoader didLoadObjects:(NSArray*)objects { - (void)objectLoader:(RKObjectLoader*)objectLoader didLoadObjects:(NSArray*)objects {
NSLog(@"Loaded statuses: %@", objects); NSLog(@"Loaded statuses: %@", objects);
[_statuses release]; [_statuses release];
_statuses = [objects retain]; _statuses = [objects retain];
[_tableView reloadData]; [_tableView reloadData];
} }
- (void)objectLoader:(RKObjectLoader*)objectLoader didFailWithError:(NSError*)error { - (void)objectLoader:(RKObjectLoader*)objectLoader didFailWithError:(NSError*)error {
UIAlertView* alert = [[[UIAlertView alloc] initWithTitle:@"Error" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] autorelease]; UIAlertView* alert = [[[UIAlertView alloc] initWithTitle:@"Error" message:[error localizedDescription] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] autorelease];
[alert show]; [alert show];
NSLog(@"Hit error: %@", error); NSLog(@"Hit error: %@", error);
} }
#pragma mark UITableViewDelegate methods #pragma mark UITableViewDelegate methods
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
CGSize size = [[[_statuses objectAtIndex:indexPath.row] text] sizeWithFont:[UIFont systemFontOfSize:14] constrainedToSize:CGSizeMake(300, 9000)]; CGSize size = [[[_statuses objectAtIndex:indexPath.row] text] sizeWithFont:[UIFont systemFontOfSize:14] constrainedToSize:CGSizeMake(300, 9000)];
return size.height + 10; return size.height + 10;
} }
#pragma mark UITableViewDataSource methods #pragma mark UITableViewDataSource methods
- (NSInteger)tableView:(UITableView *)table numberOfRowsInSection:(NSInteger)section { - (NSInteger)tableView:(UITableView *)table numberOfRowsInSection:(NSInteger)section {
return [_statuses count]; return [_statuses count];
} }
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString* reuseIdentifier = @"Tweet Cell"; NSString* reuseIdentifier = @"Tweet Cell";
UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier]; UITableViewCell* cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier];
if (nil == cell) { if (nil == cell) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier] autorelease]; cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:reuseIdentifier] autorelease];
cell.textLabel.font = [UIFont systemFontOfSize:14]; cell.textLabel.font = [UIFont systemFontOfSize:14];
cell.textLabel.numberOfLines = 0; cell.textLabel.numberOfLines = 0;
cell.textLabel.backgroundColor = [UIColor clearColor]; cell.textLabel.backgroundColor = [UIColor clearColor];
cell.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"listbg.png"]]; cell.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"listbg.png"]];
} }
cell.textLabel.text = [[_statuses objectAtIndex:indexPath.row] text]; cell.textLabel.text = [[_statuses objectAtIndex:indexPath.row] text];
return cell; return cell;
} }
@end @end
This diff is collapsed.
PODS: PODS:
- JSONKit (1.4) - FileMD5Hash (0.0.1)
- ISO8601DateFormatter (0.6)
- JSONKit (1.5pre)
- LibComponentLogging-Core (1.1.6) - LibComponentLogging-Core (1.1.6)
- LibComponentLogging-NSLog (1.0.4): - LibComponentLogging-NSLog (1.0.4):
- LibComponentLogging-Core (>= 1.1.6) - LibComponentLogging-Core (>= 1.1.6)
- RestKit/ObjectMapping/JSONKit (0.9.3): - NSData+Base64 (1.0.0)
- JSONKit - RestKit (0.10.0):
- RestKit (= 0.9.3) - RestKit/JSON (= 0.10.0)
- RestKit/ObjectMapping (= 0.9.3) - RestKit/JSON (0.10.0):
- RestKit/Network
DOWNLOAD_ONLY: - RestKit/ObjectMapping/CoreData
- RestKit (0.9.3) - RestKit/ObjectMapping/JSON
- RestKit/Network (0.9.3) - RestKit/UI
- RestKit/ObjectMapping (0.9.3) - RestKit/Network (0.10.0):
- FileMD5Hash
- LibComponentLogging-NSLog (>= 1.0.4)
- SOCKit
- cocoa-oauth
- RestKit/ObjectMapping/CoreData (0.10.0):
- ISO8601DateFormatter (>= 0.6)
- RestKit/Network
- RestKit/ObjectMapping/JSON (0.10.0):
- ISO8601DateFormatter (>= 0.6)
- JSONKit (>= 1.5pre)
- RestKit/Network
- RestKit/UI (0.10.0):
- UDTableView
- SOCKit (1.0)
- UDTableView (1.0.0)
- cocoa-oauth (0.0.1):
- NSData+Base64 (~> 1.0)
DEPENDENCIES: DEPENDENCIES:
- RestKit/ObjectMapping/JSONKit - RestKit
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "RKTwitter.app"
BlueprintName = "RKTwitter"
ReferencedContainer = "container:RKTwitter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "RKTwitter.app"
BlueprintName = "RKTwitter"
ReferencedContainer = "container:RKTwitter.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "RKTwitter.app"
BlueprintName = "RKTwitter"
ReferencedContainer = "container:RKTwitter.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "1D6058900D05DD3D006BFB54"
BuildableName = "RKTwitter.app"
BlueprintName = "RKTwitter"
ReferencedContainer = "container:RKTwitter.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
// RKTwitter // RKTwitter
// //
// Created by Blake Watters on 9/5/10. // Created by Blake Watters on 9/5/10.
// Copyright Two Toasters 2010. All rights reserved. // Copyright (c) 2009-2012 RestKit. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"RKTwitterAppDelegate"); int retVal = UIApplicationMain(argc, argv, nil, @"RKTwitterAppDelegate");
[pool release]; [pool release];
......
module Pod
class DependencyInstaller
def initialize(sandbox)
@sandbox = sandbox
end
def install(dependency)
end
end
end
...@@ -48,7 +48,15 @@ module Pod ...@@ -48,7 +48,15 @@ module Pod
def create def create
if repo_id_match = (@url || @name_or_url).match(/github.com\/([^\/\.]*\/[^\/\.]*)\.*/) if repo_id_match = (@url || @name_or_url).match(/github.com\/([^\/\.]*\/[^\/\.]*)\.*/)
# This is to make sure Faraday doesn't warn the user about the `system_timer` gem missing.
old_warn, $-w = $-w, nil
begin
require 'faraday'
ensure
$-w = old_warn
end
require 'octokit' require 'octokit'
repo_id = repo_id_match[1] repo_id = repo_id_match[1]
data = github_data_for_template(repo_id) data = github_data_for_template(repo_id)
data[:name] = @name_or_url if @url data[:name] = @name_or_url if @url
......
...@@ -217,7 +217,10 @@ module Pod ...@@ -217,7 +217,10 @@ module Pod
def compiler_flags def compiler_flags
if @parent if @parent
chained = @compiler_flags[active_platform].clone.unshift @parent.compiler_flags[active_platform] chained = @compiler_flags[active_platform].clone
# TODO hack to get the parent's compiler flags without it being
# converted to a String by Specification#compiler_flags.
chained.unshift @parent.instance_variable_get(:@compiler_flags)[active_platform]
else else
chained = @compiler_flags[active_platform].clone chained = @compiler_flags[active_platform].clone
chained.unshift '-fobjc-arc' if @requires_arc chained.unshift '-fobjc-arc' if @requires_arc
......
require 'yaml' require 'yaml'
# This is to make sure Faraday doesn't warn the user about the `system_timer` gem missing.
old_warn, $-w = $-w, nil
begin
require 'faraday'
ensure
$-w = old_warn
end
require 'octokit' require 'octokit'
module Pod module Pod
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment