docpad-plugin-gist
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -33,2 +33,5 @@ # Contributing | ||
## Testing | ||
### Setup for testing | ||
@@ -35,0 +38,0 @@ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.3 | ||
var __hasProp = {}.hasOwnProperty, | ||
@@ -6,3 +6,3 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | ||
module.exports = function(BasePlugin) { | ||
var GistPlugin; | ||
var GistPlugin, _ref; | ||
return GistPlugin = (function(_super) { | ||
@@ -14,3 +14,4 @@ var getGist; | ||
function GistPlugin() { | ||
return GistPlugin.__super__.constructor.apply(this, arguments); | ||
_ref = GistPlugin.__super__.constructor.apply(this, arguments); | ||
return _ref; | ||
} | ||
@@ -29,5 +30,5 @@ | ||
gist = gists[_i]; | ||
gistScript = gist.replace(/<gist>/g, "<script src='https://gist.github.com/"); | ||
if (gistScript.indexOf('.js') !== -1) { | ||
gistScript = gistScript.replace(/<\/gist>/g, "'></script>"); | ||
gistScript = gist.replace(/<gist>/g, "<script src='https://gist.github.com/").replace(/\.js/, ''); | ||
if (gistScript.indexOf('?file=') !== -1) { | ||
gistScript = gistScript.replace(/\?file=/, '.js?file=').replace(/<\/gist>/g, "'></script>"); | ||
} else { | ||
@@ -34,0 +35,0 @@ gistScript = gistScript.replace(/<\/gist>/g, ".js'></script>"); |
{ | ||
"name": "docpad-plugin-gist", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Allows you to easily embed GitHub Gists into your DocPad documents", | ||
@@ -36,3 +36,3 @@ "homepage": "http://docpad.org/plugin/gist", | ||
"devDependencies": { | ||
"coffee-script": "~1.4.0", | ||
"coffee-script": "~1.6.2", | ||
"docpad": ">=6.37 <7" | ||
@@ -39,0 +39,0 @@ }, |
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
6564
45