Skip to content

Commit

Permalink
fixing previous logic in case ember not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmit committed Sep 11, 2015
1 parent 5fb87ac commit f7ea55c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 3.6.3
### 3.6.3-3.6.4

* Ember version detection incorrectly reported

Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ module.exports = {

var checker = new VersionChecker(this);
var dep = checker.for('ember', 'bower');
var versionSplit = dep.version.split('.');
var modern = false;

if (versionSplit[0] === '2' || dep.satisfies('>= 1.13.0-0')) {
if (dep.version && dep.version[0] === '2' || dep.satisfies('>= 1.13.0-0')) {
modern = true;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-moment",
"version": "3.6.3",
"version": "3.6.4",
"description": "Moment.js template helpers and computed property macros for Ember",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit f7ea55c

Please sign in to comment.