Skip to content

Commit d9962c1

Browse files
committed
Fix Deprecation Warning, fix build error
1 parent 7f72dcc commit d9962c1

File tree

5 files changed

+22
-45
lines changed

5 files changed

+22
-45
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ before_install:
1919
install:
2020
- npm install
2121
- bower install
22-
- npm install -g ember
22+
- npm install -g ember-cli
2323

2424
script:
2525
- npm test
2626

2727
before_deploy:
28-
- ember build --environment=production
28+
- ember build --env production
2929

3030
deploy:
3131
provider: pages

app/routes/issues.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import Ember from 'ember';
22

33
export default Ember.Route.extend({
4-
model(params) {
5-
return this.issueOnly(this.store.query('issue', params, { include: 'repository' }));
4+
model() {
5+
// Query params is available on parant route
6+
const query = this.modelFor('application');
7+
return this.issueOnly(this.store.query('issue',
8+
query,
9+
{ include: 'repository' }));
610
},
711
issueOnly(model) {
812
return model.then((issues) => {

config/environment.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ module.exports = function(environment) {
4444
}
4545

4646
if (environment === 'production') {
47-
47+
ENV.locationType = 'hash';
48+
ENV.rootURL = ENV.rootURL + ENV.modulePrefix;
4849
}
4950

5051
return ENV;

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,8 @@
5050
"engines": {
5151
"node": ">= 4"
5252
},
53-
"private": true
53+
"private": true,
54+
"dependencies": {
55+
"minimatch": "^3.0.3"
56+
}
5457
}

yarn.lock

Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ amdefine@>=0.0.4:
9393
version "1.0.1"
9494
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
9595

96-
"angular-material-source@github:angular/material#v1.0.9":
96+
angular-material-source@angular/material#v1.0.9:
9797
version "1.0.9"
9898
resolved "https://codeload.github.com/angular/material/tar.gz/66b36ca3d6de0ee632ef359438fc93fa21e7356a"
9999

@@ -245,10 +245,6 @@ ast-types@0.8.12:
245245
version "0.8.12"
246246
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.12.tgz#a0d90e4351bb887716c83fd637ebf818af4adfcc"
247247

248-
ast-types@0.8.15:
249-
version "0.8.15"
250-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.8.15.tgz#8eef0827f04dff0ec8857ba925abe3fea6194e52"
251-
252248
ast-types@0.9.6:
253249
version "0.9.6"
254250
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9"
@@ -1875,15 +1871,7 @@ concat-map@0.0.1:
18751871
version "0.0.1"
18761872
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
18771873

1878-
concat-stream@^1.4.6, concat-stream@^1.4.7, concat-stream@^1.5.2:
1879-
version "1.6.0"
1880-
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
1881-
dependencies:
1882-
inherits "^2.0.3"
1883-
readable-stream "^2.2.2"
1884-
typedarray "^0.0.6"
1885-
1886-
concat-stream@~1.5.0, concat-stream@~1.5.1:
1874+
concat-stream@^1.4.6, concat-stream@^1.4.7, concat-stream@^1.5.2, concat-stream@~1.5.0, concat-stream@~1.5.1:
18871875
version "1.5.2"
18881876
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.5.2.tgz#708978624d856af41a5a741defdd261da752c266"
18891877
dependencies:
@@ -2312,12 +2300,6 @@ ember-browserify@^1.1.13:
23122300
through2 "^2.0.0"
23132301
walk-sync "^0.2.7"
23142302

2315-
ember-ci@^0.1.3:
2316-
version "0.1.3"
2317-
resolved "https://registry.yarnpkg.com/ember-ci/-/ember-ci-0.1.3.tgz#92b07cd8aea8330721362154e057d1cfb691ce96"
2318-
dependencies:
2319-
ember-cli-babel "^5.1.6"
2320-
23212303
ember-cli-app-version@^2.0.0:
23222304
version "2.0.2"
23232305
resolved "https://registry.yarnpkg.com/ember-cli-app-version/-/ember-cli-app-version-2.0.2.tgz#aaeede608e92fae6c2e11f63d28a373c1cc3f070"
@@ -3925,7 +3907,7 @@ inflight@^1.0.4:
39253907
once "^1.3.0"
39263908
wrappy "1"
39273909

3928-
inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1:
3910+
inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.1:
39293911
version "2.0.3"
39303912
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
39313913

@@ -4795,7 +4777,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1:
47954777
version "1.0.1"
47964778
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
47974779

4798-
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@~3.0.2:
4780+
"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.3, minimatch@~3.0.2:
47994781
version "3.0.3"
48004782
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774"
48014783
dependencies:
@@ -4807,18 +4789,14 @@ minimatch@^2.0.3:
48074789
dependencies:
48084790
brace-expansion "^1.0.0"
48094791

4810-
minimist@0.0.8:
4792+
minimist@0.0.8, minimist@~0.0.1:
48114793
version "0.0.8"
48124794
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
48134795

48144796
minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
48154797
version "1.2.0"
48164798
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
48174799

4818-
minimist@~0.0.1:
4819-
version "0.0.10"
4820-
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
4821-
48224800
mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0:
48234801
version "0.5.1"
48244802
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
@@ -5494,7 +5472,7 @@ read-pkg@^1.0.0:
54945472
normalize-package-data "^2.3.2"
54955473
path-type "^1.0.0"
54965474

5497-
readable-stream@^2, "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.4, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.2.6:
5475+
readable-stream@^2, "readable-stream@^2.0.0 || ^1.1.13", readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.1.4, readable-stream@^2.1.5, readable-stream@^2.2.6:
54985476
version "2.2.9"
54995477
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.9.tgz#cf78ec6f4a6d1eb43d26488cac97f042e74b7fc8"
55005478
dependencies:
@@ -5543,7 +5521,7 @@ readline2@^1.0.1:
55435521
is-fullwidth-code-point "^1.0.0"
55445522
mute-stream "0.0.5"
55455523

5546-
recast@0.10.33:
5524+
recast@0.10.33, recast@^0.10.10:
55475525
version "0.10.33"
55485526
resolved "https://registry.yarnpkg.com/recast/-/recast-0.10.33.tgz#942808f7aa016f1fa7142c461d7e5704aaa8d697"
55495527
dependencies:
@@ -5552,15 +5530,6 @@ recast@0.10.33:
55525530
private "~0.1.5"
55535531
source-map "~0.5.0"
55545532

5555-
recast@^0.10.10:
5556-
version "0.10.43"
5557-
resolved "https://registry.yarnpkg.com/recast/-/recast-0.10.43.tgz#b95d50f6d60761a5f6252e15d80678168491ce7f"
5558-
dependencies:
5559-
ast-types "0.8.15"
5560-
esprima-fb "~15001.1001.0-dev-harmony-fb"
5561-
private "~0.1.5"
5562-
source-map "~0.5.0"
5563-
55645533
recast@^0.11.17, recast@^0.11.3:
55655534
version "0.11.23"
55665535
resolved "https://registry.yarnpkg.com/recast/-/recast-0.11.23.tgz#451fd3004ab1e4df9b4e4b66376b2a21912462d3"
@@ -6469,7 +6438,7 @@ type-is@~1.6.14:
64696438
media-typer "0.3.0"
64706439
mime-types "~2.1.15"
64716440

6472-
typedarray@^0.0.6, typedarray@~0.0.5:
6441+
typedarray@~0.0.5:
64736442
version "0.0.6"
64746443
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
64756444

0 commit comments

Comments
 (0)