Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions em-dir-watcher.gemspec
Original file line number Diff line number Diff line change
@@ -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|
Expand Down Expand Up @@ -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
Expand Down