Skip to content

Commit

Permalink
Fix broken darwin url, now using tar.gz. Remove unused code in test. …
Browse files Browse the repository at this point in the history
…Bump bin-check version
  • Loading branch information
andystalick committed Nov 29, 2015
1 parent a7d0311 commit 0753a22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var BinWrapper = require('bin-wrapper');
var pkg = require('../package.json');
var url = 'https://github.com/wellington/wellington/releases/download/v' + pkg.config.wtVersion + '/';
module.exports = new BinWrapper()
.src(url + 'wt_v'+ pkg.config.wtVersion +'_darwin_amd64.zip', 'darwin', 'x64')
.src(url + 'wt_v'+ pkg.config.wtVersion +'_darwin_amd64.tar.gz', 'darwin', 'x64')
.src(url + 'wt_v'+ pkg.config.wtVersion +'_linux_amd64.tar.gz', 'linux', 'x64')
.dest( path.join(__dirname, '../vendor/wellington') )
.use( 'wt')
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wellington-bin",
"version": "1.1.0",
"version": "1.1.1",
"description": "wellington wrapper that makes it seamlessly available as a local dependency",
"license": "MIT",
"repository": "wellington/wellington-bin",
Expand Down Expand Up @@ -29,11 +29,8 @@
"logalot": "^2.0.0"
},
"devDependencies": {
"bin-check": "^1.0.0",
"compare-size": "^1.0.0",
"mkdirp": "^0.5.0",
"mocha": "^2.2.4",
"rimraf": "^2.3.2"
"bin-check": "^3.0.0",
"mocha": "^2.2.4"
},
"config": {
"wtVersion": "1.0.2"
Expand Down
25 changes: 4 additions & 21 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
/*global afterEach,beforeEach,it*/
'use strict';

var assert = require('assert');
var execFile = require('child_process').execFile;
var fs = require('fs');
var path = require('path');
var binCheck = require('bin-check');
var BinBuild = require('bin-build');
var compareSize = require('compare-size');
var mkdirp = require('mkdirp');
var rimraf = require('rimraf');
var tmp = path.join(__dirname, 'tmp');

beforeEach(function () {
mkdirp.sync(tmp);
});

afterEach(function () {
rimraf.sync(tmp);
});

it('return path to binary and verify that it is working', function (cb) {
binCheck(require('../'), ['-version'], function (err, works) {
assert(!err);
it('returns path to binary and verifies that it is working', function (cb) {
binCheck(require('../'), ['--help']).then( function(works){
assert(works);
cb();
});
} )
});


0 comments on commit 0753a22

Please sign in to comment.