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
require "rubygems" | |
require "mocha/standalone" | |
require "mocha/object" | |
include Mocha::API | |
mocha_setup | |
NSURLRequest.stubs(:alloc).returns(nil) | |
NSURLRequest.alloc # returns nil! |
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
namespace :xcode do | |
namespace :build do | |
desc %{Builds the Release configuration} | |
task :release do | |
sh "xcodebuild -configuration Release" | |
end | |
desc %{Builds the Debug configuration} |
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
# Tell MacRuby where to find our framework. Use BUILT_PRODUCTS_DIR if set, otherwise look for a build/ or ../build/ | |
# directory | |
ENV['DYLD_FRAMEWORK_PATH'] = | |
[ENV['BUILT_PRODUCTS_DIR'], "#{File.dirname(__FILE__)}/build/Debug", "#{File.dirname(__FILE__)}/../build/Debug"].detect do |path| | |
!path.nil? && File.exist?(path) | |
end | |
# Include the Bacon libraries | |
require "rubygems" | |
require "bacon" |
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
module Kernel | |
def new(object) | |
if object.is_a?(Class) | |
object.new | |
else | |
object | |
end | |
end | |
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
.story .label { | |
font-weight: normal; | |
text-transform: uppercase; | |
} | |
.story .story_name { | |
display: block; | |
} | |
a.std.label { |