Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Updated deps. Added coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma committed Mar 10, 2014
1 parent 9ea3980 commit ef4f9a9
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build
components
dist/vendor
node_modules
coverage
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ language: node_js
node_js:
- "0.10"
- "0.8"
after_script:
- npm run coveralls
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
LICENSE_COMMENT="/*! spread-args 0.1.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */"
LICENSE_COMMENT="/*! spread-args 0.1.2 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */"

test: lint dist
cover: lint
@./node_modules/.bin/istanbul cover -x "**/spec/**" \
./node_modules/mocha/bin/_mocha --report lcov spec/ -- -R spec

coveralls:
@./node_modules/.bin/istanbul cover -x "**/spec/**" \
./node_modules/mocha/bin/_mocha --report lcovonly spec/ -- -R spec && \
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
@rm -rf ./coverage

test: lint
@./node_modules/.bin/mocha \
--growl \
--reporter spec \
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

**spread-args** is a JavaScript function for converting a function accepting multiple arguments into a function accepting a single array of arguments.

[![stability 5 - locked](http://b.repl.ca/v1/stability-5_--_locked-blue.png)](http://nodejs.org/api/documentation.html#documentation_stability_index) [![license - Unlicense](http://b.repl.ca/v1/license-Unlicense-lightgrey.png)](http://unlicense.org/) [![Flattr this](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=pluma&url=https://github.com/pluma/spread-args)

[![browser support](https://ci.testling.com/pluma/spread-args.png)](https://ci.testling.com/pluma/spread-args)

[![Build Status](https://travis-ci.org/pluma/spread-args.png?branch=master)](https://travis-ci.org/pluma/spread-args) [![NPM version](https://badge.fury.io/js/spread-args.png)](http://badge.fury.io/js/spread-args) [![Dependencies](https://david-dm.org/pluma/spread-args.png)](https://david-dm.org/pluma/spread-args)
[![Build Status](https://travis-ci.org/pluma/spread-args.png?branch=master)](https://travis-ci.org/pluma/spread-args) [![Coverage Status](https://coveralls.io/repos/pluma/spread-args/badge.png?branch=master)](https://coveralls.io/r/pluma/spread-args?branch=master) [![Dependencies](https://david-dm.org/pluma/spread-args.png?theme=shields.io)](https://david-dm.org/pluma/spread-args)

[![NPM status](https://nodei.co/npm/spread-args.png?compact=true)](https://npmjs.org/package/spread-args)

# Why?

Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"arguments",
"array"
],
"version": "0.1.1",
"version": "0.1.2",
"dependencies": {},
"devDependencies": {},
"scripts": ["dist/spread-args.js"],
Expand Down
2 changes: 1 addition & 1 deletion dist/spread-args.amd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! spread-args 0.1.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! spread-args 0.1.2 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
define(function(require, exports, module) {
module.exports = spread;

Expand Down
2 changes: 1 addition & 1 deletion dist/spread-args.amd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spread-args.globals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! spread-args 0.1.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! spread-args 0.1.2 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
(function(root){var require=function(key){return root[key];},module={};
module.exports = spread;

Expand Down
4 changes: 2 additions & 2 deletions dist/spread-args.globals.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/spread-args.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! spread-args 0.1.1 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
/*! spread-args 0.1.2 Original author Alan Plum <me@pluma.io>. Released into the Public Domain under the UNLICENSE. @preserve */
module.exports = spread;

function spread(fn) {
Expand Down
2 changes: 1 addition & 1 deletion dist/spread-args.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spread-args",
"version": "0.1.1",
"version": "0.1.2",
"author": "Alan Plum <me@pluma.io>",
"description": "Makes functions that expect multiple arguments accept a single array instead.",
"licenses": {
Expand All @@ -19,14 +19,17 @@
],
"dependencies": {},
"devDependencies": {
"mocha": "~1.16",
"expect.js": "~0.2",
"mocha": "~1.17",
"expect.js": "~0.3",
"uglify-js": "~2.4",
"jshint": "~2.4"
"jshint": "~2.4",
"istanbul": "~0.2",
"coveralls": "~2.8"
},
"main": "./dist/spread-args.js",
"scripts": {
"test": "make test"
"test": "make test",
"coveralls": "make coveralls"
},
"engines": {
"node": ">=0.6"
Expand Down

0 comments on commit ef4f9a9

Please sign in to comment.