Permalink
Browse files

Small refactor

  • Loading branch information...
3rd-Eden committed May 3, 2012
1 parent 8cd8ed6 commit c6f3b9634ea4cb8c12dc8a10a4b321ff0f16ff04
Showing with 330 additions and 222 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 .travis.yml
  3. +6 −1 CHANGELOG
  4. +14 −2 Makefile
  5. +2 −2 README.md
  6. +163 −113 lib/hashring.js
  7. +40 −33 package.json
  8. +100 −71 tests/hashring.test.js
View
@@ -0,0 +1 @@
+node_modules
View
@@ -0,0 +1,4 @@
+language: node_js
+node_js:
+ - 0.4
+ - 0.6
View
@@ -1,3 +1,7 @@
+May 03, 2012
+- Updated test suites
+- Fixed zero arguments bug
+
May 05, 2011
- Added the missing `removeServer` method.
@@ -8,4 +12,5 @@ April 22, 2011
April 21, 2011
-- Fixed some issues related to the cache addition as the cache needs to be cleared when new servers are added and replaced.
+- Fixed some issues related to the cache addition as the cache needs to be
+ cleared when new servers are added and replaced.
View
@@ -1,7 +1,19 @@
+ALL_TESTS = $(shell find tests/ -name '*.test.js')
+REPORTER = spec
+UI = exports
+
+run-tests:
+ @./node_modules/.bin/mocha \
+ --require should \
+ --reporter $(REPORTER) \
+ --ui $(UI) \
+ --growl \
+ $(TESTS)
+
doc:
dox --title "node-hashring" lib/* > doc/index.html
test:
- expresso -I lib $(TESTFLAGS) tests/*.test.js
+ @$(MAKE) TESTS="$(ALL_TESTS)" run-tests
-.PHONY: test doc
+.PHONY: test doc
View
@@ -1,4 +1,4 @@
-## hashring
+## hashring [![BuildStatus](https://secure.travis-ci.org/3rd-Eden/node-hashring.png)](http://travis-ci.org/3rd-Eden/node-hashring)
Hash ring provides consistent hashing based on the `libketema` library.
@@ -84,4 +84,4 @@ Remove a server from the generated hash ring.
ring.removeServer('192.168.0.102:11212');
```
-For a more extensive documentation: http://3rd-eden.github.com/node-hashring/
+For a more extensive documentation: http://3rd-eden.github.com/node-hashring/
Oops, something went wrong.

0 comments on commit c6f3b96

Please sign in to comment.