Skip to content

Commit

Permalink
remove state mixin
Browse files Browse the repository at this point in the history
The state mixin is now in its own module.
Some cleanup, Makefile to simply run tests and change folder structure.
  • Loading branch information
gillesruppert committed Jun 11, 2012
1 parent db40751 commit dfbee79
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 227 deletions.
1 change: 1 addition & 0 deletions .jshintrc
@@ -1,5 +1,6 @@
{
"node": true,
"strict": false,
"asi": true,
"expr": true,
"devel": false,
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
@@ -1,6 +1,6 @@
(The MIT License)

Copyright (c) 2009-2011 TJ Holowaychuk <tj@vision-media.ca>
Copyright (c) 2012 Gilles Ruppert <gilles@madeofbytes.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand All @@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 5 additions & 0 deletions Makefile
@@ -0,0 +1,5 @@
all:tests

tests:
@./node_modules/mocha/bin/mocha

24 changes: 18 additions & 6 deletions README.mkd
Expand Up @@ -2,12 +2,24 @@ mutil - made of bytes node.js utility functions and objects
===========================================================
just a simple collection of different helper functions ready to use with node.js

To run the tests, you need the following dependencies:
install
-------
you can install mutil with

npm install mutil

- mocha
- should
- sinon
tests
-----
To run the tests, you need to run `npm install` in the root of the module.

For available methods, just run `mocha` inside the root of the module. You will see all available methods and objects together with the spec
Either run `make` or `npm test` to run the tests and see the spec.

This module will change as my needs change
This module will change as my needs change and might incorporate other modules
in the future.

Release notes:
0.2.0 - remove mutil.state
- fix wrong attribution in the License
- add Makefile and instructions on how to run tests

0.1.0 - initial release
File renamed without changes.
1 change: 0 additions & 1 deletion mutil.js → lib/mutil.js
Expand Up @@ -37,7 +37,6 @@ function size(obj) {

exports.capitalise = capitalise
exports.isUrl = isUrl
exports.state = require('./state')
exports.type = type
exports.toArray = toArray
exports.size = size
Expand Down
10 changes: 5 additions & 5 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "mutil",
"description": "utility functions and mixins for node.js",
"version": "0.1.0",
"description": "utility functions for node.js, including: interpolate, toArray, size, type, capitalise, isUrl, toString, slice",
"version": "0.2.0",
"author": {
"name": "Gilles Ruppert",
"email": "gilles@madeofbytes.com"
Expand All @@ -24,10 +24,10 @@
},
"keywords": [
"utilities",
"stateful",
"mixin"
"interpolate",
"size"
],
"main": "./mutil.js",
"main": "./lib/mutil.js",
"engines": {
"node": ">= 0.6.0 < 0.7.0"
},
Expand Down
49 changes: 0 additions & 49 deletions state.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/interpolate-test.js
@@ -1,4 +1,4 @@
var interpolate = require('../interpolate')
var interpolate = require('../lib/interpolate')
var should = require('should')
var sinon = require('sinon')

Expand Down
2 changes: 1 addition & 1 deletion test/mutil-test.js
@@ -1,4 +1,4 @@
var util = require('../mutil')
var util = require('../lib/mutil')
var should = require('should')
var sinon = require('sinon')

Expand Down
162 changes: 0 additions & 162 deletions test/state-test.js

This file was deleted.

0 comments on commit dfbee79

Please sign in to comment.