Skip to content

Instantly share code, notes, and snippets.

@FrozenCanuck
FrozenCanuck / ffi
Created November 10, 2011 19:04
[Ruby] Error trying to install ffi gem
When attempting to install ffi gem:
$ gem install ffi
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
/Users/fc/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
@FrozenCanuck
FrozenCanuck / gist:742494
Created December 15, 2010 19:43
proposed patch for Abbot's Target bundle_info method
Example Buildfile:
config :foo do |c|
c[:required] = [:bar]
c[:minify_javascript] = true
c[:use_packed_javascript] = false # Flag that we don't want javascript-packed.js
end
This should produce a bundle info in the bundle_info.js file, like so:
@FrozenCanuck
FrozenCanuck / gist:742174
Created December 15, 2010 16:14
datastore delegate proposal.js
// Would be placed into frameworks/datastore/mixins folder
SC.StoreDelegate = {
// Walk like a duck
isStoreDelegate: YES,
storeRecordWillRefresh(store, status, storeKey) { };
storeRecordDidRefresh(store, status, storeKey) { };
function findClassNames() {
if (SC._object_foundObjectClassNames) return ;
SC._object_foundObjectClassNames = true ;
var seen = [] ;
var detectedSC = false;
var searchObject = function(root, object, levels) {
levels-- ;