Commit 356216d5 authored by Eloy Duran's avatar Eloy Duran

Remove MacRubbySample for now.

parent 24dd1e81
...@@ -2,7 +2,7 @@ PODS: ...@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0): - AFNetworking (0.7.0):
- JSONKit - JSONKit
- FormatterKit (0.7.0) - FormatterKit (0.7.0)
- JSONKit (1.4) - JSONKit (1.5pre)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 0.7.0) - AFNetworking (~> 0.7.0)
......
...@@ -2,7 +2,7 @@ PODS: ...@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0): - AFNetworking (0.7.0):
- JSONKit - JSONKit
- FormatterKit (0.7.0) - FormatterKit (0.7.0)
- JSONKit (1.4) - JSONKit (1.5pre)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 0.7.0) - AFNetworking (~> 0.7.0)
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
5165756D144AFA12002A4EFA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5165756C144AFA12002A4EFA /* Cocoa.framework */; };
5165756F144AFA12002A4EFA /* MacRuby.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5165756E144AFA12002A4EFA /* MacRuby.framework */; };
51657578144AFA12002A4EFA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 51657576144AFA12002A4EFA /* InfoPlist.strings */; };
5165757A144AFA12002A4EFA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 51657579144AFA12002A4EFA /* main.m */; };
5165757F144AFA12002A4EFA /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5165757D144AFA12002A4EFA /* MainMenu.xib */; };
51657582144AFA12002A4EFA /* rb_main.rb in Resources */ = {isa = PBXBuildFile; fileRef = 51657581144AFA12002A4EFA /* rb_main.rb */; };
51657584144AFA12002A4EFA /* AppDelegate.rb in Resources */ = {isa = PBXBuildFile; fileRef = 51657583144AFA12002A4EFA /* AppDelegate.rb */; };
51657598144B2608002A4EFA /* Pods.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 51657597144B2608002A4EFA /* Pods.xcconfig */; };
5165759B144B265B002A4EFA /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5165759A144B265B002A4EFA /* libPods.a */; };
516575F1144B498E002A4EFA /* Pods.bridgesupport in Resources */ = {isa = PBXBuildFile; fileRef = 516575F0144B498E002A4EFA /* Pods.bridgesupport */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
1D088A498E1E4E6A93B7BED4 /* libPods-debug.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-debug.a"; sourceTree = BUILT_PRODUCTS_DIR; };
51657568144AFA12002A4EFA /* MacRubySample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacRubySample.app; sourceTree = BUILT_PRODUCTS_DIR; };
5165756C144AFA12002A4EFA /* Cocoa.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
5165756E144AFA12002A4EFA /* MacRuby.framework */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = wrapper.framework; name = MacRuby.framework; path = Library/Frameworks/MacRuby.framework; sourceTree = DEVELOPER_DIR; };
51657575144AFA12002A4EFA /* MacRubySample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "MacRubySample-Info.plist"; sourceTree = "<group>"; };
51657577144AFA12002A4EFA /* en */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
51657579144AFA12002A4EFA /* main.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
5165757B144AFA12002A4EFA /* MacRubySample-Prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "MacRubySample-Prefix.pch"; sourceTree = "<group>"; };
5165757E144AFA12002A4EFA /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
51657581144AFA12002A4EFA /* rb_main.rb */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.ruby; path = rb_main.rb; sourceTree = "<group>"; };
51657583144AFA12002A4EFA /* AppDelegate.rb */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.ruby; path = AppDelegate.rb; sourceTree = "<group>"; };
51657597144B2608002A4EFA /* Pods.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = "<group>"; };
5165759A144B265B002A4EFA /* libPods.a */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = archive.ar; name = libPods.a; path = Pods/build/Release/libPods.a; sourceTree = "<group>"; };
516575F0144B498E002A4EFA /* Pods.bridgesupport */ = {isa = PBXFileReference; fileEncoding = 4; includeInIndex = 1; lastKnownFileType = text.xml; name = Pods.bridgesupport; path = Pods/Pods.bridgesupport; sourceTree = SOURCE_ROOT; };
B067261347BD4EF3A1CC914B /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
51657565144AFA12002A4EFA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
5165759B144B265B002A4EFA /* libPods.a in Frameworks */,
5165756D144AFA12002A4EFA /* Cocoa.framework in Frameworks */,
5165756F144AFA12002A4EFA /* MacRuby.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
5165755D144AFA11002A4EFA = {
isa = PBXGroup;
children = (
5165759A144B265B002A4EFA /* libPods.a */,
51657597144B2608002A4EFA /* Pods.xcconfig */,
51657573144AFA12002A4EFA /* MacRubySample */,
5165756B144AFA12002A4EFA /* Frameworks */,
51657569144AFA12002A4EFA /* Products */,
);
sourceTree = "<group>";
};
51657569144AFA12002A4EFA /* Products */ = {
isa = PBXGroup;
children = (
51657568144AFA12002A4EFA /* MacRubySample.app */,
);
name = Products;
sourceTree = "<group>";
};
5165756B144AFA12002A4EFA /* Frameworks */ = {
isa = PBXGroup;
children = (
5165756C144AFA12002A4EFA /* Cocoa.framework */,
5165756E144AFA12002A4EFA /* MacRuby.framework */,
1D088A498E1E4E6A93B7BED4 /* libPods-debug.a */,
B067261347BD4EF3A1CC914B /* libPods.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
51657573144AFA12002A4EFA /* MacRubySample */ = {
isa = PBXGroup;
children = (
51657583144AFA12002A4EFA /* AppDelegate.rb */,
5165757C144AFA12002A4EFA /* Resources */,
51657580144AFA12002A4EFA /* Other Sources */,
51657574144AFA12002A4EFA /* Supporting Files */,
);
path = MacRubySample;
sourceTree = "<group>";
};
51657574144AFA12002A4EFA /* Supporting Files */ = {
isa = PBXGroup;
children = (
51657575144AFA12002A4EFA /* MacRubySample-Info.plist */,
51657576144AFA12002A4EFA /* InfoPlist.strings */,
51657579144AFA12002A4EFA /* main.m */,
5165757B144AFA12002A4EFA /* MacRubySample-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
5165757C144AFA12002A4EFA /* Resources */ = {
isa = PBXGroup;
children = (
516575F0144B498E002A4EFA /* Pods.bridgesupport */,
5165757D144AFA12002A4EFA /* MainMenu.xib */,
);
name = Resources;
sourceTree = "<group>";
};
51657580144AFA12002A4EFA /* Other Sources */ = {
isa = PBXGroup;
children = (
51657581144AFA12002A4EFA /* rb_main.rb */,
);
name = "Other Sources";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
51657567144AFA12002A4EFA /* MacRubySample */ = {
isa = PBXNativeTarget;
buildConfigurationList = 51657587144AFA12002A4EFA /* Build configuration list for PBXNativeTarget "MacRubySample" */;
buildPhases = (
51657564144AFA12002A4EFA /* Sources */,
51657565144AFA12002A4EFA /* Frameworks */,
51657566144AFA12002A4EFA /* Resources */,
51F33E491450BB7D00C19A4B /* ShellScript */,
CB7130C27CA248848BDDB33E /* Copy Pods Resources */,
);
buildRules = (
);
dependencies = (
);
name = MacRubySample;
productName = MacRubySample;
productReference = 51657568144AFA12002A4EFA /* MacRubySample.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
5165755F144AFA11002A4EFA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0420;
};
buildConfigurationList = 51657562144AFA11002A4EFA /* Build configuration list for PBXProject "MacRubySample" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 5165755D144AFA11002A4EFA;
productRefGroup = 51657569144AFA12002A4EFA /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
51657567144AFA12002A4EFA /* MacRubySample */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
51657566144AFA12002A4EFA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
51657578144AFA12002A4EFA /* InfoPlist.strings in Resources */,
5165757F144AFA12002A4EFA /* MainMenu.xib in Resources */,
51657582144AFA12002A4EFA /* rb_main.rb in Resources */,
51657584144AFA12002A4EFA /* AppDelegate.rb in Resources */,
51657598144B2608002A4EFA /* Pods.xcconfig in Resources */,
516575F1144B498E002A4EFA /* Pods.bridgesupport in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
51F33E491450BB7D00C19A4B /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "${SRCROOT}/Pods/Pods-resources.sh";
showEnvVarsInLog = 0;
};
CB7130C27CA248848BDDB33E /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
51657564144AFA12002A4EFA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5165757A144AFA12002A4EFA /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
51657576144AFA12002A4EFA /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
51657577144AFA12002A4EFA /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
5165757D144AFA12002A4EFA /* MainMenu.xib */ = {
isa = PBXVariantGroup;
children = (
5165757E144AFA12002A4EFA /* en */,
);
name = MainMenu.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
51657585144AFA12002A4EFA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
51657586144AFA12002A4EFA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
SDKROOT = macosx;
};
name = Release;
};
51657588144AFA12002A4EFA /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 51657597144B2608002A4EFA /* Pods.xcconfig */;
buildSettings = {
ARCHS = x86_64;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
);
GCC_ENABLE_OBJC_GC = required;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MacRubySample/MacRubySample-Prefix.pch";
INFOPLIST_FILE = "MacRubySample/MacRubySample-Info.plist";
PODS_ROOT = "${SRCROOT}/Pods";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
51657589144AFA12002A4EFA /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 51657597144B2608002A4EFA /* Pods.xcconfig */;
buildSettings = {
ARCHS = x86_64;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
);
GCC_ENABLE_OBJC_GC = required;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MacRubySample/MacRubySample-Prefix.pch";
INFOPLIST_FILE = "MacRubySample/MacRubySample-Info.plist";
PODS_ROOT = "${SRCROOT}/Pods";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
51657562144AFA11002A4EFA /* Build configuration list for PBXProject "MacRubySample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
51657585144AFA12002A4EFA /* Debug */,
51657586144AFA12002A4EFA /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
51657587144AFA12002A4EFA /* Build configuration list for PBXNativeTarget "MacRubySample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
51657588144AFA12002A4EFA /* Debug */,
51657589144AFA12002A4EFA /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 5165755F144AFA11002A4EFA /* Project object */;
}
<?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 = "51657567144AFA12002A4EFA"
BuildableName = "MacRubySample.app"
BlueprintName = "MacRubySample"
ReferencedContainer = "container:MacRubySample.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 = "51657567144AFA12002A4EFA"
BuildableName = "MacRubySample.app"
BlueprintName = "MacRubySample"
ReferencedContainer = "container:MacRubySample.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 = "51657567144AFA12002A4EFA"
BuildableName = "MacRubySample.app"
BlueprintName = "MacRubySample"
ReferencedContainer = "container:MacRubySample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "51657567144AFA12002A4EFA"
BuildableName = "MacRubySample.app"
BlueprintName = "MacRubySample"
ReferencedContainer = "container:MacRubySample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version='1.0' encoding='UTF-8'?><Workspace version='1.0'><FileRef location='group:Pods/Pods.xcodeproj'/><FileRef location='group:MacRubySample.xcodeproj'/></Workspace>
\ No newline at end of file
# Load the BridgeSupport metadata generated by CocoaPods from all dependencies.
load_bridge_support_file NSBundle.mainBundle.pathForResource("Pods", ofType:"bridgesupport")
class AppDelegate
URL = "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=%s"
attr_accessor :window, :tableView, :reloadButton, :handleTextField
def awakeFromNib
@tweets = []
@handleTextField.stringValue = "alloy"
end
def applicationDidFinishLaunching(notification)
refreshData(nil)
end
def refreshData(sender)
url = NSURL.URLWithString(URL % @handleTextField.stringValue.strip)
@handleTextField.enabled = @reloadButton.enabled = false
@request = ASIHTTPRequest.requestWithURL(url)
@request.completionBlock = lambda do
puts "Request completed!"
@tweets = @request.responseString.JSONValue
@tableView.reloadData
@handleTextField.enabled = @reloadButton.enabled = true
end
@request.failedBlock = lambda do
puts "Request failed :("
puts @request.error.localizedDescription
@handleTextField.enabled = @reloadButton.enabled = true
end
@request.startAsynchronous
end
def numberOfRowsInTableView(tableView)
@tweets.size
end
def tableView(tableView, objectValueForTableColumn:column, row:row)
if tweet = @tweets[row]
tweet['text']
end
end
end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
//
// Prefix header for all source files of the 'MacRubySample' target in the 'MacRubySample' project
//
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif
This source diff could not be displayed because it is too large. You can view the blob instead.
//
// main.m
// MacRubySample
//
// Created by Eloy Duran on 16-10-11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <MacRuby/MacRuby.h>
int main(int argc, char *argv[])
{
return macruby_main("rb_main.rb", argc, argv);
}
#
# rb_main.rb
# MacRubySample
#
# Created by Eloy Duran on 16-10-11.
# Copyright (c) 2011 __MyCompanyName__. All rights reserved.
#
# Loading the Cocoa framework. If you need to load more frameworks, you can
# do that here too.
framework 'Cocoa'
# Loading all the Ruby project files.
main = File.basename(__FILE__, File.extname(__FILE__))
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
if path != main
require(path)
end
end
# Starting the Cocoa main loop.
NSApplicationMain(0, nil)
platform :osx
generate_bridge_support!
dependency 'ASIHTTPRequest'
dependency 'SBJson'
# Enable garbage collection support, which MacRuby requires.
post_install do |installer|
installer.project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_ENABLE_OBJC_GC'] = 'supported'
end
end
end
PODS:
- ASIHTTPRequest (1.8.1)
- SBJson (3.0.4)
DEPENDENCIES:
- ASIHTTPRequest
- SBJson
This example uses MacRuby which needs Garbage Collection support. Since CocoaPods
does not yet have a way to make a project build with GC support, you will have to
do this manually in the generated Pods.xcodeproj project.
You can find it in the build settings of the target app.
platform :ios platform :ios
dependency 'RestKit/ObjectMapping/JSONKit' dependency 'RestKit'
PODS: PODS:
- AFNetworking (0.9.1) - AFNetworking (1.0RC1)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking - AFNetworking
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