Skip to content

Commit

Permalink
Merge pull request #336 from Kashoo/issue-334-release-2.7.0
Browse files Browse the repository at this point in the history
Issue 334: Prepare release of v2.7.0
  • Loading branch information
ziemek authored Oct 1, 2018
2 parents 5afe6e9 + 38955c6 commit d46bcdc
Show file tree
Hide file tree
Showing 12 changed files with 1,217 additions and 1,306 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/). All notable changes will be documented in this file.

## [Unreleased]
## [2.7.0] - 2018-10-01
### Added
- [#331](https://github.com/Kashoo/synctos/issues/331): Support the `requireAdmin` function in test fixtures

Expand Down Expand Up @@ -217,7 +217,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). All notable c
## [1.0.0] - 2016-07-12
First public release

[Unreleased]: https://github.com/Kashoo/synctos/compare/v2.6.0...HEAD
[Unreleased]: https://github.com/Kashoo/synctos/compare/v2.7.0...HEAD
[2.7.0]: https://github.com/Kashoo/synctos/compare/v2.6.0...v2.7.0
[2.6.0]: https://github.com/Kashoo/synctos/compare/v2.5.0...v2.6.0
[2.5.0]: https://github.com/Kashoo/synctos/compare/v2.4.0...v2.5.0
[2.4.0]: https://github.com/Kashoo/synctos/compare/v2.3.0...v2.4.0
Expand Down
2 changes: 1 addition & 1 deletion lib/commander/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.17.1
2.18.0
29 changes: 15 additions & 14 deletions lib/commander/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
// executable
var f = argv[1];
// name of the subcommand, link `pm-install`
var bin = basename(f, '.js') + '-' + args[0];
var bin = basename(f, path.extname(f)) + '-' + args[0];

// In case of globally installed, get the base dir where executable
// subcommand file should be located at
Expand All @@ -539,11 +539,14 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
// prefer local `./<bin>` to bin in the $PATH
var localBin = path.join(baseDir, bin);

// whether bin file is a js script with explicit `.js` extension
// whether bin file is a js script with explicit `.js` or `.ts` extension
var isExplicitJS = false;
if (exists(localBin + '.js')) {
bin = localBin + '.js';
isExplicitJS = true;
} else if (exists(localBin + '.ts')) {
bin = localBin + '.ts';
isExplicitJS = true;
} else if (exists(localBin)) {
bin = localBin;
}
Expand Down Expand Up @@ -577,9 +580,9 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) {
proc.on('close', process.exit.bind(process));
proc.on('error', function(err) {
if (err.code === 'ENOENT') {
console.error('\n %s(1) does not exist, try --help\n', bin);
console.error('%s(1) does not exist, try --help', bin);
} else if (err.code === 'EACCES') {
console.error('\n %s(1) not executable. try chmod or run with root\n', bin);
console.error('%s(1) not executable. try chmod or run with root', bin);
}
process.exit(1);
});
Expand Down Expand Up @@ -1069,12 +1072,12 @@ Command.prototype.commandHelp = function() {
var width = this.padWidth();

return [
' Commands:',
'Commands:',
'',
commands.map(function(cmd) {
var desc = cmd[1] ? ' ' + cmd[1] : '';
return (desc ? pad(cmd[0], width) : cmd[0]) + desc;
}).join('\n').replace(/^/gm, ' '),
}).join('\n').replace(/^/gm, ' '),
''
].join('\n');
};
Expand All @@ -1090,17 +1093,17 @@ Command.prototype.helpInformation = function() {
var desc = [];
if (this._description) {
desc = [
' ' + this._description,
this._description,
''
];

var argsDescription = this._argsDescription;
if (argsDescription && this._args.length) {
var width = this.padWidth();
desc.push(' Arguments:');
desc.push('Arguments:');
desc.push('');
this._args.forEach(function(arg) {
desc.push(' ' + pad(arg.name, width) + ' ' + argsDescription[arg.name]);
desc.push(' ' + pad(arg.name, width) + ' ' + argsDescription[arg.name]);
});
desc.push('');
}
Expand All @@ -1111,8 +1114,7 @@ Command.prototype.helpInformation = function() {
cmdName = cmdName + '|' + this._alias;
}
var usage = [
'',
' Usage: ' + cmdName + ' ' + this.usage(),
'Usage: ' + cmdName + ' ' + this.usage(),
''
];

Expand All @@ -1121,17 +1123,16 @@ Command.prototype.helpInformation = function() {
if (commandHelp) cmds = [commandHelp];

var options = [
' Options:',
'Options:',
'',
'' + this.optionHelp().replace(/^/gm, ' '),
'' + this.optionHelp().replace(/^/gm, ' '),
''
];

return usage
.concat(desc)
.concat(options)
.concat(cmds)
.concat([''])
.join('\n');
};

Expand Down
2 changes: 1 addition & 1 deletion lib/indent.js/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.2
Loading

0 comments on commit d46bcdc

Please sign in to comment.