Skip to content

Commit

Permalink
update ember to 2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinJoyce committed Oct 18, 2017
1 parent f1b999d commit ee44fa8
Show file tree
Hide file tree
Showing 8 changed files with 2,378 additions and 969 deletions.
29 changes: 14 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
---
language: node_js
node_js:
- "6.6.0"
- "7"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
directories:
- node_modules
yarn: true

env:
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-2.5
# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-lts-2.8
- EMBER_TRY_SCENARIO=ember-lts-2.12
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
- EMBER_TRY_SCENARIO=ember-default

matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary

before_install:
- npm config set spin false
- npm install -g bower
- bower --version
- npm install phantomjs-prebuilt
- node_modules/phantomjs-prebuilt/bin/phantomjs --version

install:
- npm install
- bower install
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- yarn install --no-lockfile --non-interactive

script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
5 changes: 3 additions & 2 deletions app/instance-initializers/ember-href-to.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Em from 'ember';
import HrefTo from 'ember-href-to/href-to';

let hrefToClickHandler;
Expand All @@ -21,13 +20,15 @@ export default {
if (hrefToClickHandler !== undefined) {
document.body.removeEventListener('click', hrefToClickHandler);
}

hrefToClickHandler = function _hrefToClickHandler(e) {
let link = e.target.tagName === 'A' ? e.target : closestLink(e.target);
if (link) {
let hrefTo = new HrefTo(applicationInstance, e, link);
hrefTo.maybeHandle();
}
}
};

document.body.addEventListener('click', hrefToClickHandler);
}
}
Expand Down
7 changes: 0 additions & 7 deletions bower.json

This file was deleted.

42 changes: 38 additions & 4 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
/*jshint node:true*/
/* eslint-env node */
module.exports = {
scenarios: [
{
name: 'ember-2.5',
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': '2.5.0'
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': '2.5.0'
'ember': 'lts-2-8'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
Expand All @@ -21,6 +34,11 @@ module.exports = {
resolutions: {
'ember': 'release'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
Expand All @@ -32,6 +50,11 @@ module.exports = {
resolutions: {
'ember': 'beta'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
Expand All @@ -43,6 +66,17 @@ module.exports = {
resolutions: {
'ember': 'canary'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-default',
npm: {
devDependencies: {}
}
}
]
Expand Down
32 changes: 15 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,32 @@
"author": "Intercom",
"license": "Apache-2.0",
"devDependencies": {
"broccoli-asset-rev": "^2.4.2",
"ember-ajax": "^2.0.1",
"ember-cli": "^2.8.0",
"ember-cli-app-version": "^1.0.0",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-htmlbars": "^1.0.3",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^3.0.0",
"ember-cli": "^2.16.0",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-jshint": "^1.0.0",
"ember-cli-qunit": "^2.1.0",
"ember-cli-qunit": "^3.0.0",
"ember-cli-release": "^0.2.9",
"ember-cli-shims": "^1.1.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-test-loader": "^1.1.0",
"ember-cli-test-loader": "^2.2.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.8.0",
"ember-disable-prototype-extensions": "^1.1.0",
"ember-export-application-global": "^1.0.5",
"ember-load-initializers": "^0.5.1",
"ember-resolver": "^2.0.3",
"ember-watson": "0.8.2",
"loader.js": "^4.0.1"
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
"ember-resolver": "^4.0.0",
"ember-source": "~2.16.0",
"loader.js": "^4.6.0"
},
"keywords": [
"ember-addon"
],
"dependencies": {
"ember-cli-babel": "^5.1.6"
"ember-cli-babel": "^6"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers/start-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import config from '../../config/environment';
export default function startApp(attrs) {
let application;

let attributes = Ember.merge({}, config.APP);
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
let attributes = Ember.assign({}, config.APP);
attributes = Ember.assign(attributes, attrs); // use defaults, but you can override;

Ember.run(() => {
application = Application.create(attributes);
Expand Down
2 changes: 1 addition & 1 deletion tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{content-for "body"}}
{{content-for "test-body"}}

<script src="{{rootURL}}testem.js" integrity=""></script>
<script src="/testem.js" integrity=""></script>
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/test-support.js"></script>
<script src="{{rootURL}}assets/dummy.js"></script>
Expand Down
Loading

0 comments on commit ee44fa8

Please sign in to comment.