Skip to content

Commit

Permalink
Merge pull request #53 from c4milo/0.12.x-support
Browse files Browse the repository at this point in the history
Implements support for node 0.12.x
  • Loading branch information
c4milo committed May 5, 2015
2 parents 9e656b4 + 2705281 commit a376c3f
Show file tree
Hide file tree
Showing 9 changed files with 403 additions and 373 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vagrant
node_modules
build
.lock-*
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2010 Camilo Aguilar. All rights reserved.
# Copyright 2015 Camilo Aguilar. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
Expand Down
24 changes: 24 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$script = <<SCRIPT
sudo apt-get install -y build-essential
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
# curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -
# curl -sL https://deb.nodesource.com/setup_iojs_1.x | sudo bash -
sudo apt-get install -y nodejs
# sudo apt-get install -y iojs
sudo npm install -g node-gyp
SCRIPT

Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_check_update = false

config.vm.hostname = "inotify.local"

config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = 1024
vb.cpus = 1
end

config.vm.provision "shell", inline: $script
end
21 changes: 12 additions & 9 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
'targets': [
{
'target_name': 'inotify',
'sources': [
'src/bindings.cc',
'src/node_inotify.cc'
],
}
]
'targets': [
{
'target_name': 'inotify',
'sources': [
'src/bindings.cc',
'src/node_inotify.cc'
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
]
}
]
}
38 changes: 25 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
{ "name" : "inotify",
"version": "1.2.1",
"author": "Camilo Aguilar <camilo@cloudescape.com>",
"email": "camilo@cloudescape.com",
"keywords": ["inotify", "watch", "monitor", "watch files", "watch directories"],
"description" : "inotify bindings for v8 javascript engine",
"repository": {
"type": "git",
"url": "http://github.com/c4milo/node-inotify"
},
"engines": {"node": ">=0.8"},
"main" : "inotify"
{
"name": "inotify",
"version": "1.3.0",
"author": "Camilo Aguilar <camilo.aguilar@gmail.com>",
"email": "camilo.aguilar@gmail.com",
"keywords": [
"inotify",
"watch",
"monitor",
"watch files",
"watch directories"
],
"license": "MIT",
"description": "inotify bindings for v8 javascript engine",
"repository": {
"type": "git",
"url": "http://github.com/c4milo/node-inotify"
},
"engines": {
"node": ">=0.8"
},
"main": "inotify",
"dependencies": {
"nan": "^1.8.4"
}
}

Loading

0 comments on commit a376c3f

Please sign in to comment.