Skip to content

Commit

Permalink
Merge pull request #4 from dutchhome/master
Browse files Browse the repository at this point in the history
Replace the implementation with ffi, thanks to dutchhome
  • Loading branch information
aredridel committed Sep 5, 2011
2 parents 8872466 + ece534c commit f0742e1
Show file tree
Hide file tree
Showing 12 changed files with 142 additions and 397 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.project
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in ruby-inotify.gemspec
gemspec
7 changes: 0 additions & 7 deletions MANIFEST

This file was deleted.

20 changes: 10 additions & 10 deletions Rakefile
@@ -1,4 +1,4 @@
# Rakefile for project management (from chris2) -*-ruby-*-
# Rakefile for project management (from chris2) -*-ruby-*-

Project = 'project-template'

Expand All @@ -13,16 +13,16 @@ task :predist => [:chmod, :changelog, :doc]

desc "Build"
task :build do
ruby "ext/extconf.rb"
system "make"
#ruby "ext/extconf.rb"
#system "make"
end

task :test => :build

desc "Run all the tests"
Rake::TestTask.new do |t|
t.libs << "tests"
t.libs << "ext"
t.libs << "lib"
t.test_files = FileList['tests/test_*.rb']
t.verbose = true
end
Expand All @@ -47,18 +47,18 @@ desc "Generate RDoc documentation"
Rake::RDocTask.new(:doc) do |rdoc|
rdoc.options << '--line-numbers --inline-source'
rdoc.rdoc_dir = "rdoc"
rdoc.rdoc_files.include("lib/**/*.rb", "lib/*.rb")
end
rdoc.rdoc_files.include("lib/**/*.rb", "lib/*.rb")
end

desc "Clean to distribution pristine"
task :distclean do
system 'make distclean'
#system 'make distclean'
end


# Helper to retrieve the "revision number" of the darcs tree.
def get_darcs_tree_version
return "" unless File.directory? "_darcs"
return "" unless File.directory? "_darcs"

changes = `darcs changes`
count = 0
Expand All @@ -67,11 +67,11 @@ def get_darcs_tree_version
changes.each("\n\n") { |change|
head, title, desc = change.split("\n", 3)

if title =~ /^ \*/
if title =~ /^ \*/
# Normal change.
count += 1
elsif title =~ /tagged (.*)/
# Tag. We look for these.
# Tag. We look for these.
tag = $1
break
else
Expand Down
6 changes: 0 additions & 6 deletions ext/extconf.rb

This file was deleted.

24 changes: 0 additions & 24 deletions ext/inotify-syscalls.h

This file was deleted.

266 changes: 0 additions & 266 deletions ext/inotify.c

This file was deleted.

0 comments on commit f0742e1

Please sign in to comment.