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

Remove MacRubbySample for now.

parent 24dd1e81
......@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0):
- JSONKit
- FormatterKit (0.7.0)
- JSONKit (1.4)
- JSONKit (1.5pre)
DEPENDENCIES:
- AFNetworking (~> 0.7.0)
......
......@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0):
- JSONKit
- FormatterKit (0.7.0)
- JSONKit (1.4)
- JSONKit (1.5pre)
DEPENDENCIES:
- AFNetworking (~> 0.7.0)
......
<?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
dependency 'RestKit/ObjectMapping/JSONKit'
dependency 'RestKit'
PODS:
- AFNetworking (0.9.1)
- AFNetworking (1.0RC1)
DEPENDENCIES:
- 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