I hereby claim:
- I am balinterdi on github.
- I am balint (https://keybase.io/balint) on keybase.
- I have a public key whose fingerprint is 0C1B 0498 F427 03DB 1960 C034 66CC 2C76 BF64 5B44
To claim this, I am signing this object:
$ git clone https://github.com/balinterdi/broccoli-asset-rewrite.git | |
$ git checkout fix-broken-composite-paths-on-win remotes/origin/fix-broken-composite-paths-on-win | |
$ npm i | |
$ npm test |
I hereby claim:
To claim this, I am signing this object:
var proxyPath = '/api'; | |
module.exports = function(app) { | |
// For options, see: | |
// https://github.com/nodejitsu/node-http-proxy | |
var proxy = require('http-proxy').createProxyServer({}); | |
var path = require('path'); | |
app.use(proxyPath, function(req, res, next){ | |
// Do not include root path in proxied request |
function wait(value, timeout) { | |
return new Ember.RSVP.Promise(function(resolve, _) { | |
window.setTimeout(function() { | |
Ember.run(function() { | |
resolve(value); | |
}); | |
}, timeout); | |
}); | |
} |
Ember.Application.initializer({ | |
name: "i18n", // <- this | |
initialize: function(container, application) { | |
container.register('i18n:main', i18n); | |
} | |
}); | |
Ember.Application.initializer({ | |
name: "injectI18n", |
var stuntAnalytics; | |
moduleFor('controller:song', 'Unit - Song controller', { | |
needs: [ | |
'controller:song' | |
], | |
setup: function() { | |
stuntAnalytics = MockAnalytics.create(); // create with a mock library, like sinon; | |
this.container.register('service:analytics', stuntAnalytics); | |
this.container.inject('controller', 'analytics', 'service:analytics'); |
var App = Ember.Application.extend({ | |
(...) | |
reset: function() { | |
this.__container__.lookup('store:main').clearCache(); | |
this._super(); | |
}, | |
(...) | |
willDestroy: function() { | |
this.__container__.lookup('store:main').clearCache(); | |
this._super(); |
App = Ember.Application.create(); | |
App.User = Ember.Object.extend({ | |
name: '' | |
}); | |
var cory = App.User.create({ name: "Cory Filibuster" }); | |
App.Badge = Ember.Object.extend({ | |
name: '', |