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
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 |
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
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: |
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
// Would be placed into frameworks/datastore/mixins folder | |
SC.StoreDelegate = { | |
// Walk like a duck | |
isStoreDelegate: YES, | |
storeRecordWillRefresh(store, status, storeKey) { }; | |
storeRecordDidRefresh(store, status, storeKey) { }; |
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
function findClassNames() { | |
if (SC._object_foundObjectClassNames) return ; | |
SC._object_foundObjectClassNames = true ; | |
var seen = [] ; | |
var detectedSC = false; | |
var searchObject = function(root, object, levels) { | |
levels-- ; |