Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Pita/etherpad-lite into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
JohnMcLear committed Jul 5, 2012
2 parents 56a5c86 + bc15ea5 commit 35bf5d1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/installDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ fi

#check node version
NODE_VERSION=$(node --version)
if [ ! $(echo $NODE_VERSION | cut -d "." -f 1-2) = "v0.6" ]; then
echo "You're running a wrong version of node, you're using $NODE_VERSION, we need v0.6.x" >&2
if [ ! $(echo $NODE_VERSION | cut -d "." -f 1-2) = "v0.8" ]; then
echo "You're running a wrong version of node, you're using $NODE_VERSION, we need v0.8.x" >&2
exit 1
fi

Expand Down
6 changes: 3 additions & 3 deletions bin/installOnWindows.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
set NODE_VERSION=0.6.5
set NODE_VERSION=0.8.1
set JQUERY_VERSION=1.7

:: change directory to etherpad-lite root
Expand All @@ -22,8 +22,8 @@ echo _
echo Copying custom templates...
set custom_dir=node_modules\ep_etherpad-lite\static\custom
FOR %%f IN (index pad timeslider) DO (
if NOT EXIST %custom_dir%\%%f.js copy %custom_dir%\js.template %custom_dir%\%%f.js
if NOT EXIST %custom_dir%\%%f.css copy %custom_dir%\css.template %custom_dir%\%%f.css
if NOT EXIST "%custom_dir%\%%f.js" copy "%custom_dir%\js.template" "%custom_dir%\%%f.js"
if NOT EXIST "%custom_dir%\%%f.css" copy "%custom_dir%\css.template" "%custom_dir%\%%f.css"
)

echo _
Expand Down
5 changes: 4 additions & 1 deletion src/node/utils/caching_middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ var path = require('path');
var zlib = require('zlib');
var util = require('util');
var settings = require('./Settings');
var semver = require('semver');

var existsSync = (semver.satisfies(process.version, '>=0.8.0')) ? fs.existsSync : path.existsSync

var CACHE_DIR = path.normalize(path.join(settings.root, 'var/'));
CACHE_DIR = path.existsSync(CACHE_DIR) ? CACHE_DIR : undefined;
CACHE_DIR = existsSync(CACHE_DIR) ? CACHE_DIR : undefined;

var responseCache = {};

Expand Down
6 changes: 3 additions & 3 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"resolve" : "0.2.1",
"socket.io" : "0.9.6",
"ueberDB" : "0.1.7",
"async" : "0.1.18",
"express" : "2.5.8",
"connect" : "1.8.7",
"async" : "0.1.x",
"express" : "2.5.x",
"connect" : "1.x",
"clean-css" : "0.3.2",
"uglify-js" : "1.2.5",
"formidable" : "1.0.9",
Expand Down

0 comments on commit 35bf5d1

Please sign in to comment.