From 628ed07cb304efddcbd468a07c2f442e122244f6 Mon Sep 17 00:00:00 2001 From: waleed samy Date: Sun, 20 Dec 2015 17:23:34 +0200 Subject: [PATCH] add .travis.yml --- .travis.yml | 11 +++++++++++ Readme.md | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..701cbad --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +language: node_js +node_js: + - "0.10" + - "0.12" + - "4.0" +services: + - redis-server +install: +- npm install +script: +- make test \ No newline at end of file diff --git a/Readme.md b/Readme.md index 29124d5..80437a3 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,8 @@ Rate limiter for Node.js backed by Redis. +[![Build Status](https://travis-ci.org/tj/node-ratelimiter.svg)](https://travis-ci.org/tj/node-ratelimiter) + ## Release Notes [v2.1.1](https://github.com/tj/node-ratelimiter/tree/v2.1.1) - [#13](/../../pull/13) by [@kwizzn](https://github.com/kwizzn) - Fixes out-of-sync TTLs after running decr() @@ -49,7 +51,7 @@ limit.get(function(err, limit){ ## Result Object - `total` - `max` value - - `remaining` - number of calls left in current `duration` without decreasing current `get` + - `remaining` - number of calls left in current `duration` without decreasing current `get` - `reset` - time in milliseconds until the end of current `duration` ## Options