This file contains hidden or 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
| // Last commit: 73ad70c (2013-02-23 22:52:20 -0800) | |
| (function() { | |
| window.DS = Ember.Namespace.create({ | |
| // this one goes to 11 | |
| CURRENT_API_REVISION: 11 | |
| }); | |
| })(); |
This file contains hidden or 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
| Ember.TextField.extend | |
| typeaheadPath: 'name' | |
| didInsertElement: -> | |
| @$().typeahead | |
| source: @source | |
| matcher: @matcher | |
| sorter: @sorter | |
| highlighter: @highlighter | |
| updater: @updater |
This file contains hidden or 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
| // 1975aa3 (2013-02-03 23:11:50 -0800) | |
| // Version: v1.0.0-pre.2-609-g1975aa3 | |
| // Last commit: 1975aa3 (2013-02-03 23:11:50 -0800) | |
| (function() { | |
| /*global __fail__*/ | |
| /** | |
| Ember Debug |
This file contains hidden or 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
| I'll try to summarize succinctly. In the old router we had /messges/:folder | |
| where folder is passed into a find query in connectOutlets. Folder is a simple | |
| string like: sent/received/read etc. We struggled to get this to work in the | |
| new router. | |
| We setup one route as /messages/:folder. We implementing the model hook to take | |
| the folder and pass it to Email.find(folder: params.folder). This worked. In | |
| our hbs we used {{linkTo emails "inbox"}}. This only worked in some cases. | |
| Let me explain why. The model hook is only called when deserialize is called. |
This file contains hidden or 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
| // 9cd035f (2013-01-28 09:56:49 -0800) | |
| // Version: v1.0.0-pre.2-538-g9cd035f | |
| // Last commit: 9cd035f (2013-01-28 09:56:49 -0800) | |
| (function() { | |
| /*global __fail__*/ | |
| /** | |
| Ember Debug |
This file contains hidden or 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
| Radium.Adapter = DS.FixtureAdapter.extend | |
| init: -> | |
| @map = Ember.Map.create() | |
| simulateRemoteResponse: false | |
| fixturesForType: (type) -> | |
| if @map.get type | |
| @map.get type | |
| else |
This file contains hidden or 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
| TestTodo = DS.Model.extend | |
| primaryKey: 'id' | |
| task: DS.attr('string') | |
| TestProfile = DS.Model.extend | |
| primaryKey: 'id' | |
| text: DS.attr('string') | |
| TestAuthor = DS.Model.extend | |
| primaryKey: 'id' |
This file contains hidden or 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 :build do | |
| vendor_path = File.expand_path "../vendor/", __FILE__ | |
| vendor_js_path = File.expand_path "../vendor/javascripts", __FILE__ | |
| desc "Build ember and copy into vendor/javascripts" | |
| task :ember do | |
| if File.directory? "#{vendor_path}/ember.js" | |
| sh "cd #{vendor_path}/ember.js && BUNDLE_GEMFILE=#{vendor_path}/ember.js/Gemfile rake dist" | |
| sh %Q{cd #{vendor_path}/ember.js && echo "// $(git log -n 1 --format='%h (%ci)')" > #{vendor_js_path}/ember.js} | |
| sh %Q{cat #{vendor_path}/ember.js/dist/ember.prod.js >> #{vendor_js_path}/ember.js} |
This file contains hidden or 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
| adam at mba in ~ rvm install jruby --trace | |
| jruby --trace | |
| rvm 1.17.0 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
| /Users/adam/.rvm/scripts/cli:685 __rvm_parse_args:638 while case case[[ -n 4.3.11 ]] | |
| /Users/adam/.rvm/scripts/cli:720 __rvm_parse_args:673 while if[[ -z install ]] | |
| /Users/adam/.rvm/scripts/cli:723 __rvm_parse_args:676 while if[[ error == install || 0 -eq 1 || -n '' ]] | |
| /Users/adam/.rvm/scripts/cli:63 __rvm_parse_args:16 while[[ -n '' ]] | |
| /Users/adam/.rvm/scripts/cli:728 __rvm_parse_args:681 : rvm_ruby_args:0:: |
This file contains hidden or 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
| ➜ functions rvm install jruby --trace | |
| jruby --trace | |
| rvm 1.17.0 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
| /Users/adam/.rvm/scripts/cli:685 __rvm_parse_args:638 while case case[[ -n 4.3.11 ]] | |
| /Users/adam/.rvm/scripts/cli:720 __rvm_parse_args:673 while if[[ -z install ]] | |
| /Users/adam/.rvm/scripts/cli:723 __rvm_parse_args:676 while if[[ error == install || 0 -eq 1 || -n '' ]] | |
| /Users/adam/.rvm/scripts/cli:63 __rvm_parse_args:16 while[[ -n '' ]] | |
| /Users/adam/.rvm/scripts/cli:728 __rvm_parse_args:681 : rvm_ruby_args:0:: |