Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added node-gyp build system, and version bumped #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ Via npm:
Via git:

git clone http://github.com/bnoguchi/node-hash-ring.git

#### node < 0.8.0
cd node-hash-ring/src
node-waf configure build

#### node >= 0.8.0
cd node-hash-ring
node-gyp configure build

### Example

```javascript
Expand Down
12 changes: 12 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"targets": [
{
"target_name": "hash_ring",
"sources": [
'src/md5.cc',
'src/hash_ring.cc',
'src/module.cc'
]
}
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "hash_ring",
"version" : "0.2.1",
"version" : "0.2.2",
"description" : "Consistent hashing C++ Add-on for node.js",
"keywords": [ "node", "hash ring", "consistent hashing", "sharding", "distributed" ],
"author": "Brian Noguchi <[email protected]>",
Expand Down