Skip to content

Commit

Permalink
Merge branch 'release/v1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ominestre committed May 5, 2017
2 parents eb4201d + cf62c42 commit 543d582
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ node_js:

after_script:
- npm test
- npm run coverage

sudo: false
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# rummerf

[![NPM](https://nodei.co/npm/@ominestre/rummerf.png)](https://nodei.co/npm/@ominestre/rummerf/)

[![Build Status](https://travis-ci.org/ominestre/rummerf.svg?branch=master)](https://travis-ci.org/ominestre/rummerf)
[![Coverage Status](https://coveralls.io/repos/github/ominestre/rummerf/badge.svg?branch=master)](https://coveralls.io/github/ominestre/rummerf)

Rummerf is an "rm -rf" deletion tool with set scoping. When you initialize rummerf it either uses a path you provide or your Current Working Directory to limit the scope of deletions. For example if my CWD is /path/foo/bar and I attempt to delete a file within /path/foo it will throw an exception.

Expand Down
File renamed without changes.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@ominestre/rummerf",
"version": "1.0.0",
"version": "1.1.0",
"description": "Rummerf is a module for performing recursive directory deletions limited to the scope of your project to prevent tragedies",
"main": "rummerf.js",
"main": "lib/rummerf.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"coverage": "bash ./scripts/coverage.sh"
},
"bugs": {
"url": "https://github.com/ominestre/rummerf/issues"
Expand All @@ -19,6 +20,7 @@
"coveralls": "^2.13.1",
"eslint": "^3.19.0",
"fs-extra": "^3.0.0",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^3.3.0",
"mocha-lcov-reporter": "^1.3.0"
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash

./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
2 changes: 0 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const path = require('path');

before(function(done){
this.timeout(30000);
process.stdout.write('Preping test sandbox for scoping tests...\n');
require('child_process').execSync('npm install', {cwd: path.resolve(__dirname, './data/sandbox/')});
process.stdout.write('Test environment ready\n\n\n');

// securing protected file for testing
// fs.chmodSync(path.resolve(__dirname, './data/protected.js'), 444);
Expand Down

0 comments on commit 543d582

Please sign in to comment.