Skip to content

Commit a376c3f

Browse files
committed
Merge pull request #53 from c4milo/0.12.x-support
Implements support for node 0.12.x
2 parents 9e656b4 + 2705281 commit a376c3f

File tree

9 files changed

+403
-373
lines changed

9 files changed

+403
-373
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vagrant
12
node_modules
23
build
34
.lock-*

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2010 Camilo Aguilar. All rights reserved.
1+
# Copyright 2015 Camilo Aguilar. All rights reserved.
22
Permission is hereby granted, free of charge, to any person obtaining a copy
33
of this software and associated documentation files (the "Software"), to
44
deal in the Software without restriction, including without limitation the

Vagrantfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
$script = <<SCRIPT
2+
sudo apt-get install -y build-essential
3+
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
4+
# curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
5+
# curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo bash -
6+
sudo apt-get install -y nodejs
7+
# sudo apt-get install -y iojs
8+
sudo npm install -g node-gyp
9+
SCRIPT
10+
11+
Vagrant.configure("2") do |config|
12+
config.vm.box = "ubuntu/trusty64"
13+
config.vm.box_check_update = false
14+
15+
config.vm.hostname = "inotify.local"
16+
17+
config.vm.provider "virtualbox" do |vb|
18+
vb.gui = false
19+
vb.memory = 1024
20+
vb.cpus = 1
21+
end
22+
23+
config.vm.provision "shell", inline: $script
24+
end

binding.gyp

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
2-
'targets': [
3-
{
4-
'target_name': 'inotify',
5-
'sources': [
6-
'src/bindings.cc',
7-
'src/node_inotify.cc'
8-
],
9-
}
10-
]
2+
'targets': [
3+
{
4+
'target_name': 'inotify',
5+
'sources': [
6+
'src/bindings.cc',
7+
'src/node_inotify.cc'
8+
],
9+
"include_dirs" : [
10+
"<!(node -e \"require('nan')\")"
11+
]
12+
}
13+
]
1114
}

package.json

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
1-
{ "name" : "inotify",
2-
"version": "1.2.1",
3-
"author": "Camilo Aguilar <camilo@cloudescape.com>",
4-
"email": "camilo@cloudescape.com",
5-
"keywords": ["inotify", "watch", "monitor", "watch files", "watch directories"],
6-
"description" : "inotify bindings for v8 javascript engine",
7-
"repository": {
8-
"type": "git",
9-
"url": "http://github.com/c4milo/node-inotify"
10-
},
11-
"engines": {"node": ">=0.8"},
12-
"main" : "inotify"
1+
{
2+
"name": "inotify",
3+
"version": "1.3.0",
4+
"author": "Camilo Aguilar <camilo.aguilar@gmail.com>",
5+
"email": "camilo.aguilar@gmail.com",
6+
"keywords": [
7+
"inotify",
8+
"watch",
9+
"monitor",
10+
"watch files",
11+
"watch directories"
12+
],
13+
"license": "MIT",
14+
"description": "inotify bindings for v8 javascript engine",
15+
"repository": {
16+
"type": "git",
17+
"url": "http://github.com/c4milo/node-inotify"
18+
},
19+
"engines": {
20+
"node": ">=0.8"
21+
},
22+
"main": "inotify",
23+
"dependencies": {
24+
"nan": "^1.8.4"
25+
}
1326
}
14-

0 commit comments

Comments
 (0)