grunt-bake
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -95,2 +95,8 @@ /* | ||
} | ||
}, | ||
default_absolute_path_bake: { | ||
files: { | ||
"tmp/default_absolute_path_bake.html": "test/fixtures/default_absolute_path_bake.html" | ||
} | ||
} | ||
@@ -97,0 +103,0 @@ }, |
{ | ||
"name": "grunt-bake", | ||
"description": "Bake external includes into files to create static pages with no compilation time", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"homepage": "https://github.com/MathiasPaumgarten/grunt-bake", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -310,2 +310,3 @@ # grunt-bake | ||
## Release History | ||
* 2013-05-01 v0.0.9 Fixes default basePath | ||
* 2013-04-30 v0.0.8 Support for absolute paths and basePath | ||
@@ -312,0 +313,0 @@ * 2013-04-23 v0.0.7 Support for a wider range of characters in inline arguments |
@@ -135,3 +135,3 @@ /* | ||
includePath = options.basePath + includePath; | ||
includePath = options.basePath + includePath.substr( 1 ); | ||
@@ -159,5 +159,5 @@ } else { | ||
if ( basePath.substr( -1 , 1 ) === "/" ) { | ||
if ( basePath.substr( -1 , 1 ) !== "/" && basePath.length > 0 ) { | ||
options.basePath = basePath.substr( 0, basePath.length - 1 ); | ||
options.basePath = basePath + "/"; | ||
@@ -164,0 +164,0 @@ } |
@@ -65,3 +65,13 @@ "use strict"; | ||
test.done(); | ||
}, | ||
defaultAbsolutePathBake: function( test ) { | ||
test.expect( 1 ); | ||
var actual = grunt.file.read( "tmp/default_absolute_path_bake.html" ); | ||
var expected = grunt.file.read( "test/expected/default_bake.html" ); | ||
test.equal( actual, expected, "default absolute path bake" ); | ||
test.done(); | ||
} | ||
}; |
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
19361
26
284
314