docpad-plugin-cleanurls
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -21,3 +21,3 @@ // Generated by CoffeeScript 1.3.3 | ||
docpad = this.docpad; | ||
database = docpad.getDatabase(); | ||
database = docpad.getCollection('html'); | ||
docpad.log('debug', 'Applying clean urls'); | ||
@@ -24,0 +24,0 @@ database.on('add change', function(document) { |
@@ -24,7 +24,9 @@ // Generated by CoffeeScript 1.3.3 | ||
return this.suite('cleanurls', function(suite, test) { | ||
var baseUrl, outExpectedPath; | ||
var baseUrl, filePath, fileUrl, outExpectedPath; | ||
baseUrl = "http://localhost:" + tester.docpad.config.port; | ||
outExpectedPath = tester.config.outExpectedPath; | ||
fileUrl = "" + baseUrl + "/welcome"; | ||
filePath = "" + outExpectedPath + "/welcome.html"; | ||
return test('server should serve URLs without an extension', function(done) { | ||
return request("" + baseUrl + "/welcome.html", function(err, response, actual) { | ||
return request(fileUrl, function(err, response, actual) { | ||
var actualStr; | ||
@@ -35,3 +37,3 @@ if (err) { | ||
actualStr = actual.toString(); | ||
return fsUtil.readFile("" + outExpectedPath + "/welcome.html", function(err, expected) { | ||
return fsUtil.readFile(filePath, function(err, expected) { | ||
var expectedStr; | ||
@@ -42,3 +44,3 @@ if (err) { | ||
expectedStr = expected.toString(); | ||
expect(actualStr, expectedStr); | ||
expect(actualStr).to.equal(expectedStr); | ||
return done(); | ||
@@ -45,0 +47,0 @@ }); |
{ | ||
"name": "docpad-plugin-cleanurls", | ||
"version": "2.0.2", | ||
"description": "Adds support for Clean Urls to DocPad", | ||
"version": "2.1.0", | ||
"description": "Adds support for clean urls to DocPad", | ||
"homepage": "https://github.com/bevry/docpad-extras", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"node": ">=0.4.0", | ||
"docpad": "6.x" | ||
"docpad": ">=6.1.1 <7.0.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "dependencies": {}, |
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
4574
83