Skip to content

Commit

Permalink
Node v0.10.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
kuebk committed May 7, 2013
1 parent 8962202 commit 72c1051
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 35 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
base64.node
build
rgba-terminal.dat
1 change: 0 additions & 1 deletion .npmignore
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,3 @@
base64.node base64.node
build build
rgba-terminal.dat rgba-terminal.dat
.lock-wscript
2 changes: 1 addition & 1 deletion base64.cc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ extern "C" void init (Handle<Object> target)
target->Set(String::New("encode"), FunctionTemplate::New(base64_encode_binding)->GetFunction()); target->Set(String::New("encode"), FunctionTemplate::New(base64_encode_binding)->GetFunction());
target->Set(String::New("decode"), FunctionTemplate::New(base64_decode_binding)->GetFunction()); target->Set(String::New("decode"), FunctionTemplate::New(base64_decode_binding)->GetFunction());
} }

NODE_MODULE(base64, init)
29 changes: 29 additions & 0 deletions binding.gyp
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"targets": [
{
"target_name": "base64",
"sources": [
"base64.cc"
]
},
{
"target_name": "after_build",
"type": "none",
"dependencies": [
"base64"
],
"actions": [
{
"action_name": "symlink",
"inputs": [
"<@(PRODUCT_DIR)/base64.node"
],
"outputs": [
"<(module_root_dir)/base64.node"
],
"action": ["ln", "-s", "<@(PRODUCT_DIR)/base64.node", "<(module_root_dir)/base64.node"]
}
]
}
]
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
{ {
"name": "base64", "name": "base64",
"version": "2.0.6", "version": "2.1.0",
"main": "base64", "main": "base64",
"description": "A C++ module for node-js that does base64 encoding and decoding.", "description": "A C++ module for node-js that does base64 encoding and decoding.",
"keywords": [ "keywords": [
Expand All @@ -15,7 +15,10 @@
"email": "peteris.krumins@gmail.com", "email": "peteris.krumins@gmail.com",
"web": "http://www.catonmat.net", "web": "http://www.catonmat.net",
"twitter": "pkrumins" "twitter": "pkrumins"
}, },
"contributors": [
"Jakub Lekstan <kuebzky@gmail.com>"
],
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
Expand All @@ -25,10 +28,7 @@
"tests": "tests" "tests": "tests"
}, },
"engines": { "engines": {
"node": ">=0.3.0" "node": ">=0.8.0"
},
"scripts": {
"install": "node-waf configure build install"
} }
} }


27 changes: 0 additions & 27 deletions wscript

This file was deleted.

0 comments on commit 72c1051

Please sign in to comment.