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
TwoTap = Ember.Mixin.create | |
# returns either a two tap url or the product url if it's form an unsupported | |
# vendor | |
getTwoTapUrl: (product, tracking)-> | |
return (product.get('affiliateUrl') || product.get('url')) unless tracking.get('twoTapEnabled') | |
uniqueToken = "#{product.get('id')}-#{tracking.get('id')}" | |
url = ENV.services.twotap.baseUrl |
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
import icAjax from 'ic-ajax'; | |
// ... | |
authenticate: function() { | |
var request = icAjax(this.get('createSessionUrl'), { | |
method: 'POST', | |
dataType: 'json', | |
data: JSON.stringify(data), | |
contentType: 'application/json' | |
}); | |
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
describe('Validations', function() { | |
before(function() { | |
this.alert = stub(window, 'alert'); | |
}); | |
after(function() { | |
this.alert.restore(); | |
}); | |
it('validates password', function() { |
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
EmberApp.prototype.testFiles = memoize(function() { | |
this.legacyTestFilesToAppend.unshift('vendor/qunit-notifications/index.js'); | |
this.legacyTestFilesToAppend.unshift('vendor/qunit/qunit/qunit.js'); | |
this.vendorTestStaticStyles.unshift('vendor/qunit/qunit/qunit.css'); | |
//this.legacyTestFilesToAppend = this.legacyTestFilesToAppend.map(function(file){ | |
//return file.replace(/^vendor\//, ''); | |
//}); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> | |
<key>CFBundleDisplayName</key> | |
<string>${PRODUCT_NAME}</string> | |
<key>CFBundleExecutable</key> | |
<string>${EXECUTABLE_NAME}</string> |
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
/* globals describe, before, after, it, lazy */ | |
import Ember from 'ember'; | |
import startApp from './start-app'; | |
export default function(name, callback) { | |
return describe(name, function() { | |
before(function() { | |
this.app = startApp(); | |
}); |
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
import DS from 'ember-data'; | |
import Ember from 'ember'; | |
var attr = DS.attr; | |
var belongsTo = DS.belongsTo; | |
export default DS.Model.extend({ | |
url: attr(), | |
image: attr(), | |
caption: attr(), |