Skip to content

Commit ba25e40

Browse files
authored
Merge pull request #143 from openmcac/ac_ember_upgrade
Upgrade to Ember 2.7.0
2 parents fd0014b + 57285c1 commit ba25e40

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

app/router.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,23 @@ Ember.Route.reopen({
4545
});
4646

4747
Router.map(function() {
48+
// Workaround: https://github.com/emberjs/ember.js/issues/13921
49+
// wildcard routes need to be at the top
50+
this.route("dashboard", function() {});
51+
this.route("bulletin/sunday", { path: "/sunday" }, function() {});
52+
this.route("not-found", { path: "*path" });
53+
// END WORKAROUND 13921
54+
4855
this.route("group", { path: ":group_slug" }, function() {
4956
this.route("index", { path: "/" }, function() {});
5057
this.route("edit", function() {});
5158

59+
this.route("bulletins", { resetNamespace: true, path: "bulletins" }, function() {
60+
this.route("new", function() {
61+
this.route("announcements");
62+
});
63+
});
64+
5265
this.route("bulletin", { resetNamespace: true, path: "bulletins/:bulletin_id" }, function() {
5366
this.route("edit");
5467
});
@@ -65,15 +78,6 @@ Router.map(function() {
6578
this.route('posts', { resetNamespace: true, path: 'posts' }, function() {
6679
this.route('new', function() {});
6780
});
68-
69-
this.route("bulletins", { resetNamespace: true, path: "bulletins" }, function() {
70-
this.route("new", function() {
71-
this.route("announcements");
72-
});
73-
});
74-
});
75-
76-
this.route("bulletin/sunday", { path: "/sunday" }, function() {
7781
});
7882

7983
this.route("login");
@@ -82,8 +86,6 @@ Router.map(function() {
8286
this.route('groups', function() {
8387
this.route('new');
8488
});
85-
this.route('dashboard', function() {});
86-
this.route("not-found", { path: "*path" });
8789

8890
this.route('settings', function() {
8991
this.route('password');

bower.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"Faker": "~3.1.0",
55
"bootstrap": "~3.3.1",
66
"bootstrap-markdown": "~2.8.0",
7-
"ember": "~2.4.1",
7+
"ember": "~2.7.0",
88
"ember-cli-shims": "0.1.0",
99
"ember-cli-test-loader": "0.2.2",
1010
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
@@ -26,7 +26,6 @@
2626
"ceibo": "~1.1.0"
2727
},
2828
"resolutions": {
29-
"ember": "~2.4.1",
30-
"FakeXMLHttpRequest": "^1.4.0"
29+
"ember": "~2.7.0"
3130
}
3231
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"broccoli-static-compiler": "^0.2.2",
2525
"ember-ajax": "2.0.0-beta.3",
2626
"ember-bootstrap-datetimepicker": "1.0.1",
27-
"ember-cli": "2.4.2",
27+
"ember-cli": "^2.7.0",
2828
"ember-cli-app-version": "^1.0.0",
2929
"ember-cli-babel": "^5.1.5",
3030
"ember-cli-dependency-checker": "^1.2.0",
@@ -52,7 +52,7 @@
5252
"ember-cli-sri": "^2.1.0",
5353
"ember-cli-uglify": "^1.2.0",
5454
"ember-concurrency": "0.5.17",
55-
"ember-data": "^2.4.0",
55+
"ember-data": "^2.7.0",
5656
"ember-deploy-redis": "0.0.2",
5757
"ember-disable-proxy-controllers": "^1.0.1",
5858
"ember-export-application-global": "^1.0.4",
@@ -63,14 +63,14 @@
6363
"ember-notify": "^4.3.1",
6464
"ember-resize": "0.0.10",
6565
"ember-resolver": "^2.0.3",
66-
"ember-simple-auth": "1.0.1",
66+
"ember-simple-auth": "^1.1.0",
6767
"ember-sinon": "0.5.0",
6868
"ember-sortable": "1.6.3",
6969
"ember-validations": "2.0.0-alpha.4",
7070
"ember-watson": "^0.5.4",
7171
"emberx-select": "2.1.0",
7272
"express": "^4.8.5",
73-
"liquid-fire": "0.23.0",
73+
"liquid-fire": "^0.24.0",
7474
"loader.js": "^4.0.0",
7575
"moment": "2.11.1",
7676
"moment-timezone": "0.5.0",

0 commit comments

Comments
 (0)