Permalink
Browse files

Minor refinement

  • Loading branch information...
Claudio Cicali
Claudio Cicali committed Oct 4, 2012
1 parent 5182455 commit 5ad08ef1fea56c7d28e9c5f74a925c0f30e405ee
Showing with 10 additions and 8 deletions.
  1. +1 −1 README.md
  2. +8 −6 bin/jecho
  3. +1 −1 package.json
View
@@ -73,6 +73,6 @@ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
Credits
-------
-Claudio Cicali <claudio.cicali@gmail.com>
+Claudio Cicali <claudio.cicali@gmail.com>, [@caludio](http://twitter.com/caludio) on Twitter
[wcauchois](https://github.com/wcauchois/websocket-fallback) who provided the nice wrapper for the WebSockets fallback
View
@@ -10,9 +10,8 @@ var http = require('http')
, util = require("util")
, fs = require('fs')
, path = require('path')
- , events = require('events');
-
-var WebSocketServer
+ , events = require('events')
+ , WebSocketServer
, WebSocketRequest
, Mixin
, miksagoConnection
@@ -30,8 +29,10 @@ try {
process.exit(1);
}
+var version = "0.1.6";
+
program
- .version('0.1.5')
+ .version(version)
.option('-p, --port <n>', 'Port to listen to, defaults to 6767')
.option('-x, --xhr', 'Bypass WebSocket and use only XHR with CORS')
.option('-i, --info', 'Output program informations')
@@ -168,6 +169,7 @@ function main() {
for (var x in jecho) {
asString = jecho[x].toString();
asString = asString.replace("\"%USEXHR%\"", !!program.xhr);
+ asString = asString.replace("%VERSION%", "\"" + version + "\"");
lines[i++] = " " + x + ": " + ( util.isArray(jecho[x]) ? ( "[" + asString + "]" ) : asString ) + ",";
}
lines[i++] = "};";
@@ -301,7 +303,7 @@ var jecho = {
initialized: false,
- version: "0.1",
+ version: "%VERSION%",
buffer: [],
@@ -613,7 +615,7 @@ main();
/*
- This is for when we'll forget iOS < 6
+ This is for when we'll be able to forget iOS < 6
wsServer = new websocket.server({
httpServer: httpServer,
View
@@ -1,6 +1,6 @@
{
"name": "jecho",
- "version": "0.1.5",
+ "version": "0.1.6",
"description": "JavaScript remote web debugging tool",
"author": "Claudio Cicali <claudio.cicali@gmail.com>",
"main": "jecho.js",

0 comments on commit 5ad08ef

Please sign in to comment.