Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioc committed Aug 25, 2014
1 parent f81321f commit e36c4e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jingo
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var program = require('commander'),

global.Git = require('./lib/gitmech');

program.version('1.0.0')
program.version('1.0.1')
.option('-c, --config <path>', 'Specify the config file')
.option('-#, --hash-string <string>', 'Create an hash for a string')
.option('-l, --local', 'Listen on localhost only')
Expand Down
6 changes: 5 additions & 1 deletion lib/gitmech.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ var gitMech = {
return;
}

version = version[2].split(".").slice(0, -1).join(".");
version = version[2];

if (version.split('.').length == 4) {
version = version.split(".").slice(0, -1).join(".");
}

if (!semver.valid(version)) {
callback("Unrecognized git semver (" + version + ")");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jingo",
"version": "1.0.0",
"version": "1.0.1",
"description": "A nodejs based wiki engine (sort of Gollum port)",
"author": "Claudio Cicali <[email protected]>",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion test/spec/configSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ describe ("Config", function() {
expect(def.server.hostname).to.equal('localhost');
expect(def.server.port).to.equal(6067);
expect(def.server.localOnly).to.be.false;
expect(def.server.baseUrl).to.equal("http://localhost:6067");

expect(def.authorization.anonRead).to.be.true;
expect(def.authorization.validMatches).to.equal('.+');
Expand Down

0 comments on commit e36c4e0

Please sign in to comment.