ember-cli-version-checker
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -53,2 +53,6 @@ 'use strict'; | ||
if (this._version === undefined && this._fallbackJsonPath) { | ||
this._version = getVersionFromJSONFile(this._fallbackJsonPath); | ||
} | ||
return this._version; | ||
@@ -92,2 +96,3 @@ } | ||
this._jsonPath = path.join(this._parent._addon.project.bowerDirectory, this.name, '.bower.json'); | ||
this._fallbackJsonPath = path.join(this._parent._addon.project.bowerDirectory, this.name, 'bower.json'); | ||
this._type = 'bower'; | ||
@@ -94,0 +99,0 @@ } |
{ | ||
"name": "ember-cli-version-checker", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Determine if your addon is being used by a minimum version of Ember CLI.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,8 +18,8 @@ var assert = require('assert'); | ||
beforeEach(function() { | ||
addon = new FakeAddonAtVersion('0.1.15-addon-discovery-752a419d85', { | ||
addon = new FakeAddonAtVersion('0.1.15-addon-discovery-752a419d85', { | ||
bowerDirectory: 'tests/fixtures/bower-1', | ||
nodeModulesPath: 'tests/fixtures/npm-1' | ||
}); | ||
checker = new versionChecker(addon); | ||
}); | ||
checker = new versionChecker(addon); | ||
}); | ||
@@ -34,2 +34,10 @@ | ||
it('can return a fallback bower version for non-tagged releases', function() { | ||
addon.project.bowerDirectory = 'tests/fixtures/bower-2'; | ||
var thing = checker.for('ember', 'bower'); | ||
assert.equal(thing.version, '1.13.2'); | ||
}); | ||
it('can return a npm version', function() { | ||
@@ -36,0 +44,0 @@ var thing = checker.for('ember', 'npm'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15931
10
339