mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Merge pull request #1746 from ether/develop
Bring in latest fixes. No flow included, too much headache.
This commit is contained in:
commit
bf467594d9
3 changed files with 11 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "0.8"
|
- "0.10"
|
||||||
install:
|
install:
|
||||||
- "bin/installDeps.sh"
|
- "bin/installDeps.sh"
|
||||||
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
|
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
|
||||||
|
@ -11,12 +11,13 @@ script:
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: "OxZ2s724S96xu02746LUN+4lBckAe1BOICJjfA4jnFPNpiNU6XoMH52f+LgG\nZzAwu6xMTv+NsaLGp6Avm3cx4GZ+jIiHe4NB9XOgYPa0r0TBIi3ueWYPDyVv\nCniS/4qX68DoFNV4lh7zMBXn0IIPxT4Wppm3desBpjWDP/SdoRs="
|
- secure: "OxZ2s724S96xu02746LUN+4lBckAe1BOICJjfA4jnFPNpiNU6XoMH52f+LgG\nZzAwu6xMTv+NsaLGp6Avm3cx4GZ+jIiHe4NB9XOgYPa0r0TBIi3ueWYPDyVv\nCniS/4qX68DoFNV4lh7zMBXn0IIPxT4Wppm3desBpjWDP/SdoRs="
|
||||||
- SAUCE_USER=pita
|
- SAUCE_USER=etherpad
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk6
|
- oraclejdk6
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
- petermartischka@googlemail.com
|
- petermartischka@googlemail.com
|
||||||
|
- contact@etherpad.org
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
- "irc.freenode.org#etherpad-lite-dev"
|
- "irc.freenode.org#etherpad-lite-dev"
|
||||||
|
|
|
@ -127,19 +127,21 @@ else
|
||||||
doConvertTask = function(task, callback)
|
doConvertTask = function(task, callback)
|
||||||
{
|
{
|
||||||
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");
|
abiword.stdin.write("convert " + task.srcFile + " " + task.destFile + " " + task.type + "\n");
|
||||||
|
|
||||||
//create a callback that calls the task callback and the caller callback
|
//create a callback that calls the task callback and the caller callback
|
||||||
stdoutCallback = function (err)
|
stdoutCallback = function (err)
|
||||||
{
|
{
|
||||||
callback();
|
callback();
|
||||||
console.log("queue continue");
|
console.log("queue continue");
|
||||||
task.callback(err);
|
try{
|
||||||
|
task.callback(err);
|
||||||
|
}catch(e){
|
||||||
|
console.error("Abiword File failed to convert", e);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
//Queue with the converts we have to do
|
//Queue with the converts we have to do
|
||||||
var queue = async.queue(doConvertTask, 1);
|
var queue = async.queue(doConvertTask, 1);
|
||||||
|
|
||||||
exports.convertFile = function(srcFile, destFile, type, callback)
|
exports.convertFile = function(srcFile, destFile, type, callback)
|
||||||
{
|
{
|
||||||
queue.push({"srcFile": srcFile, "destFile": destFile, "type": type, "callback": callback});
|
queue.push({"srcFile": srcFile, "destFile": destFile, "type": type, "callback": callback});
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
"resolve" : "0.2.x",
|
"resolve" : "0.2.x",
|
||||||
"socket.io" : "0.9.x",
|
"socket.io" : "0.9.x",
|
||||||
"ueberDB" : "0.2.x",
|
"ueberDB" : "0.2.x",
|
||||||
|
"express" : "3.1.x",
|
||||||
"async" : "0.1.x",
|
"async" : "0.1.x",
|
||||||
"express" : "3.1.0",
|
"connect" : "2.7.x",
|
||||||
"connect" : "2.4.x",
|
|
||||||
"clean-css" : "0.3.2",
|
"clean-css" : "0.3.2",
|
||||||
"uglify-js" : "1.2.5",
|
"uglify-js" : "1.2.5",
|
||||||
"formidable" : "1.0.9",
|
"formidable" : "1.0.9",
|
||||||
|
|
Loading…
Reference in a new issue