Skip to content

Commit

Permalink
Update "ember-cli" to v2.10.0 (mainmatter#33)
Browse files Browse the repository at this point in the history
* Update "ember-suave" to v4.0.1

* Update "ember-cli" to v2.6.3

* Update "ember-cli-mocha" to v0.13.1

* Update "ember-cli" to v2.9.1

* Update "ember-cli" to v2.10.0
  • Loading branch information
Turbo87 authored and marcoow committed Jan 3, 2017
1 parent b972e53 commit e065b9c
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 82 deletions.
14 changes: 0 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,8 @@ insert_final_newline = true
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false
indent_style = space
indent_size = 2

[*.css]
indent_style = space
indent_size = 2

[*.html]
indent_style = space
indent_size = 2

[*.{diff,md}]
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
Expand All @@ -14,6 +14,6 @@
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
npm-debug.log*
testem.log
.DS_Store
3 changes: 2 additions & 1 deletion .jscsrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"preset": "ember-suave"
"preset": "ember-suave",
"disallowDirectPropertyAccess": false
}
2 changes: 1 addition & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"strict": false,
"white": false,
"eqnull": true,
"esnext": true,
"esversion": 6,
"unused": true
}
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ addons:

cache:
directories:
- node_modules
- $HOME/.npm
- $HOME/.cache # includes bowers cache

env:
- EMBER_TRY_SCENARIO=default
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-1.13
- EMBER_TRY_SCENARIO=ember-lts-2.4
- EMBER_TRY_SCENARIO=ember-lts-2.8
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
Expand All @@ -33,16 +36,17 @@ matrix:
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "npm config set spin false"
- "npm install -g npm@^2"
- npm config set spin false
- npm install -g bower

install:
- npm install -g bower
- npm install
- bower install

script:
- ember try $EMBER_TRY_SCENARIO test && npm run nodetest
# 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

notifications:
email: false
Expand Down
8 changes: 2 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"name": "ember-cookies",
"dependencies": {
"ember": "~2.4.3",
"ember-cli-shims": "0.1.1",
"ember-cli-test-loader": "0.2.2",
"mocha": "~2.2.4",
"chai": "~2.3.0",
"ember-mocha-adapter": "~0.3.1"
"ember": "~2.10.0",
"ember-cli-shims": "0.1.3"
}
}
26 changes: 21 additions & 5 deletions config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,35 @@
module.exports = {
scenarios: [
{
name: 'default',
name: 'ember-1.13',
bower: {
dependencies: { }
dependencies: {
'ember': '~1.13.0'
},
resolutions: {
'ember': '~1.13.0'
}
}
},
{
name: 'ember-1.13',
name: 'ember-lts-2.4',
bower: {
dependencies: {
'ember': '~1.13.0'
'ember': 'components/ember#lts-2-4'
},
resolutions: {
'ember': '~1.13.0'
'ember': 'lts-2-4'
}
}
},
{
name: 'ember-lts-2.8',
bower: {
dependencies: {
'ember': 'components/ember#lts-2-8'
},
resolutions: {
'ember': 'lts-2-8'
}
}
},
Expand Down
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,61 @@
"name": "ember-cookies",
"version": "0.0.11",
"description": "Cookies abstraction for Ember.js that works both in the browser as well as with Fastboot on the server.",
"keywords": [
"ember-addon"
],
"license": "MIT",
"author": "",
"directories": {
"doc": "doc",
"test": "tests"
},
"repository": "https://github.com/simplabs/ember-cookies",
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:testall",
"test": "ember try:each",
"nodetest": "node node-tests/runner.js"
},
"repository": "https://github.com/simplabs/ember-cookies",
"engines": {
"node": ">= 0.10.0"
"dependencies": {
"ember-cli-babel": "^5.1.7",
"ember-getowner-polyfill": "~1.1.1"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.4.2",
"broccoli-asset-rev": "^2.4.5",
"chai": "^3.5.0",
"chalk": "^1.1.1",
"ember-ajax": "0.7.1",
"ember-cli": "2.4.3",
"ember-ajax": "^2.4.1",
"ember-cli": "2.10.0",
"ember-cli-addon-tests": "^0.3.0",
"ember-cli-app-version": "^1.0.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-app-version": "^2.0.0",
"ember-cli-chai": "^0.3.2",
"ember-cli-dependency-checker": "^1.3.0",
"ember-cli-fastboot": "1.0.0-beta.7",
"ember-cli-htmlbars": "^1.0.3",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-mocha": "0.10.1",
"ember-cli-release": "0.2.8",
"ember-cli-htmlbars": "^1.0.10",
"ember-cli-htmlbars-inline-precompile": "^0.3.3",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-jshint": "^2.0.1",
"ember-cli-mocha": "^0.13.1",
"ember-cli-release": "^0.2.9",
"ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "~2.4.0",
"ember-data": "^2.10.0",
"ember-disable-prototype-extensions": "^1.1.0",
"ember-export-application-global": "^1.0.5",
"ember-load-initializers": "^0.5.1",
"ember-mocha": "0.8.11",
"ember-resolver": "^2.0.3",
"ember-sinon": "0.5.0",
"ember-suave": "2.0.1",
"ember-try": "^0.2.2",
"ember-suave": "^4.0.1",
"glob": "^7.0.3",
"loader.js": "^4.0.1",
"loader.js": "^4.0.10",
"mocha": "^2.4.5",
"request": "^2.69.0",
"rsvp": "^3.2.1",
"symlink-or-copy": "^1.0.1"
},
"keywords": [
"ember-addon"
],
"dependencies": {
"ember-cli-babel": "^5.1.6",
"ember-getowner-polyfill": "~1.1.1"
"engines": {
"node": ">= 0.12.0"
},
"ember-addon": {
"configPath": "tests/dummy/config"
Expand Down
2 changes: 1 addition & 1 deletion tests/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
"strict": false,
"white": false,
"eqnull": true,
"esnext": true,
"esversion": 6,
"unused": true
}
8 changes: 4 additions & 4 deletions tests/dummy/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

{{content-for "head"}}

<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/dummy.css">
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link rel="stylesheet" href="{{rootURL}}assets/dummy.css">

{{content-for "head-footer"}}
</head>
<body>
{{content-for "body"}}

<script src="assets/vendor.js"></script>
<script src="assets/dummy.js"></script>
<script src="{{rootURL}}assets/vendor.js"></script>
<script src="{{rootURL}}assets/dummy.js"></script>

{{content-for "body-footer"}}
</body>
Expand Down
3 changes: 2 additions & 1 deletion tests/dummy/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import Ember from 'ember';
import config from './config/environment';

const Router = Ember.Router.extend({
location: config.locationType
location: config.locationType,
rootURL: config.rootURL
});

Router.map(function() {
Expand Down
7 changes: 5 additions & 2 deletions tests/dummy/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
rootURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
Date: false
}
},

Expand All @@ -33,7 +37,6 @@ module.exports = function(environment) {

if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';

// keep test console output quieter
Expand Down
18 changes: 9 additions & 9 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
{{content-for "head"}}
{{content-for "test-head"}}

<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/dummy.css">
<link rel="stylesheet" href="assets/test-support.css">
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link rel="stylesheet" href="{{rootURL}}assets/dummy.css">
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">

{{content-for "head-footer"}}
{{content-for "test-head-footer"}}
Expand All @@ -21,12 +21,12 @@
{{content-for "body"}}
{{content-for "test-body"}}

<script src="testem.js" integrity=""></script>
<script src="assets/vendor.js"></script>
<script src="assets/test-support.js"></script>
<script src="assets/dummy.js"></script>
<script src="assets/tests.js"></script>
<script src="assets/test-loader.js"></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>
<script src="{{rootURL}}assets/tests.js"></script>
<script src="{{rootURL}}assets/test-loader.js"></script>

{{content-for "body-footer"}}
{{content-for "test-body-footer"}}
Expand Down
8 changes: 5 additions & 3 deletions tests/unit/services/cookies-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* jshint expr:true */
import { expect } from 'chai';
import { describeModule, it } from 'ember-mocha';
import { describe, beforeEach, afterEach } from 'mocha';
import { describe, it, beforeEach, afterEach } from 'mocha';
import { setupTest } from 'ember-mocha';
import Ember from 'ember';

const { Object: EmberOject, computed } = Ember;
Expand All @@ -13,7 +13,9 @@ function randomString() {
return Math.random().toString(36).substring(2);
}

describeModule('service:cookies', 'CookiesService', {}, function() {
describe('CookiesService', function() {
setupTest('service:cookies');

function itValidatesWriteOptions() {
it('throws when the signed option is set', function() {
expect(() => {
Expand Down

0 comments on commit e065b9c

Please sign in to comment.