You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by br...@apache.org on 2014/03/28 16:55:39 UTC
[3/4] git commit: There were some lint errors in the project.
There were some lint errors in the project.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/d744d0ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/d744d0ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/d744d0ec
Branch: refs/heads/next
Commit: d744d0ec4dffbf077ba6ac52e0a2d0d612775692
Parents: 4c4fffe
Author: Brent Lintner <br...@gmail.com>
Authored: Fri Mar 28 11:39:28 2014 -0400
Committer: Brent Lintner <br...@gmail.com>
Committed: Fri Mar 28 11:39:28 2014 -0400
----------------------------------------------------------------------
lib/server/emulate/hosted.js | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/d744d0ec/lib/server/emulate/hosted.js
----------------------------------------------------------------------
diff --git a/lib/server/emulate/hosted.js b/lib/server/emulate/hosted.js
index ec8c0b0..515262f 100644
--- a/lib/server/emulate/hosted.js
+++ b/lib/server/emulate/hosted.js
@@ -162,21 +162,21 @@ function localInjection() {
return function (req, res, next) {
if (req.query.enableripple && req.staticPlatform) {
- console.log('refreshing project (platform: ' + req.staticPlatform + ') ...');
+ console.log('refreshing project (platform: ' + req.staticPlatform + ') ...');
exec('cordova prepare ' + req.staticPlatform, function () {
- // make ripple compatible with phonegap
- // as of version 3.0 phonegap uses phonegap.js instead of cordova.js
- // but the files are identical
- if(req.query.phonegap) {
- var path = './platforms/' + req.staticPlatform + '/assets/www';
- fs.readFile(path + '/cordova.js', function(err, data) {
- if(err) throw err;
- console.log('... copying cordova.js to phonegap.js')
- fs.writeFileSync(path + '/phonegap.js', data);
- })
- }
- console.log('... done.');
- handle(req, res, next);
+ // make ripple compatible with phonegap
+ // as of version 3.0 phonegap uses phonegap.js instead of cordova.js
+ // but the files are identical
+ if(req.query.phonegap) {
+ var path = './platforms/' + req.staticPlatform + '/assets/www';
+ fs.readFile(path + '/cordova.js', function(err, data) {
+ if(err) throw err;
+ console.log('... copying cordova.js to phonegap.js');
+ fs.writeFileSync(path + '/phonegap.js', data);
+ });
+ }
+ console.log('... done.');
+ handle(req, res, next);
});
}
else {