Permalink
Browse files

update dependencies

Highlight.js 8.x now has a getter for languages: `getLanguage(name)`.
The code has been updated.
  • Loading branch information...
1 parent ae0109e commit a82a5f2d9c94ee14c734119f6217bdb7abde2b95 @artisonian artisonian committed Aug 28, 2014
Showing with 9 additions and 13 deletions.
  1. +2 −2 journo.js
  2. +2 −6 journo.litcoffee
  3. +5 −5 package.json
View
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.6.3
+// Generated by CoffeeScript 1.8.0
(function() {
var Journo, catchErrors, detectDescription, detectTitle, exec, fatal, folderContents, fs, highlight, htmlPath, loadConfig, loadLayout, loadManifest, manifestPath, mapLink, marked, opener, path, postName, postPath, postUrl, renderVariables, rsync, shared, sortedPosts, spawn, updateManifest, _, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
@@ -152,7 +152,7 @@
marked.setOptions({
highlight: function(code, lang) {
- if (highlight.LANGUAGES[lang] != null) {
+ if (highlight.getLanguage(lang)) {
return highlight.highlight(lang, code, true).value;
} else {
return highlight.highlightAuto(code).value;
View
@@ -142,7 +142,7 @@ the site and **rysnc** it up to the server.
rsync 'site/', shared.config.publish
A helper function for **rsync**ing, with logging, and the ability to wait for
-the rsync to continue before proceeding. This is useful for ensuring that any
+the rsync to continue before proceeding. This is useful for ensuring that any
new photos have finished uploading (very slowly) before the update to the feed
is syndicated out.
@@ -218,7 +218,7 @@ what you're coding in.
marked.setOptions
highlight: (code, lang) ->
- if highlight.LANGUAGES[lang]?
+ if highlight.getLanguage lang
highlight.highlight(lang, code, true).value
else
highlight.highlightAuto(code).value
@@ -463,7 +463,3 @@ the site build.
fatal = (message) ->
console.error message
process.exit 1
-
-
-
-
View
@@ -5,11 +5,11 @@
"bin": {"journo": "./bin/journo"},
"main": "journo.js",
"dependencies": {
- "underscore": ">= 1.4.3",
- "marked": ">= 0.2.6",
- "mime": ">= 1.2.7",
- "highlight.js": ">= 7.3.0",
- "rss": ">= 0.0.4"
+ "underscore": "^1.7.0",
+ "marked": "^0.3.2",
+ "mime": "^1.2.11",
+ "highlight.js": "^8.2.0",
+ "rss": "^0.3.2"
},
"devDependencies": {},
"repository": "",

0 comments on commit a82a5f2

Please sign in to comment.