Permalink
Browse files

Simplify installation. Add OS-specific dependencies to the gemspec.

  • Loading branch information...
1 parent 534c961 commit dca872a74ca363fd9a0425886f3babcd38389464 @NV committed Feb 2, 2011
Showing with 9 additions and 5 deletions.
  1. +2 −2 README.md
  2. +7 −3 em-dir-watcher.gemspec
View
@@ -35,11 +35,11 @@ Mac:
Linux:
- sudo gem install rb-inotify em-dir-watcher
+ sudo gem install em-dir-watcher
Windows:
- gem install win32-changenotify win32-event em-dir-watcher
+ gem install em-dir-watcher
Usage
View
@@ -1,6 +1,3 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
@@ -52,6 +49,13 @@ Gem::Specification.new do |s|
"examples/monitor.rb"
]
+ if RUBY_PLATFORM[/linux/]
+ s.add_dependency('rb-inotify', '>= 0.8.0')
+ elsif RUBY_PLATFORM[/ming/]
+ s.add_dependency('win32-event', '>= 0.5.0')
+ s.add_dependency('win32-changenotify', '>= 0.5.0')
+ end
+
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

0 comments on commit dca872a

Please sign in to comment.