about summary refs log tree commit homepage
path: root/lib/sleepy_penguin.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-02 03:59:07 +0000
committerEric Wong <e@80x24.org>2017-01-04 21:17:30 +0000
commitd7bcfb1aed85dbd2ec96ba37e0c66f47b38300d6 (patch)
treec5a3f007480cc9263a0ffcf333af97b30c140798 /lib/sleepy_penguin.rb
parent15230756d31d404881fea1edbbe4bd7378066163 (diff)
downloadsleepy_penguin-d7bcfb1aed85dbd2ec96ba37e0c66f47b38300d6.tar.gz
Since we're breaking away from the old io_splice gem,
we have liberty to change the API when moving to a new
namespace.  This might allow us to simplify the common
case args and reduce the amount of C code we maintain.
Diffstat (limited to 'lib/sleepy_penguin.rb')
-rw-r--r--lib/sleepy_penguin.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sleepy_penguin.rb b/lib/sleepy_penguin.rb
index 808c94a..63f293d 100644
--- a/lib/sleepy_penguin.rb
+++ b/lib/sleepy_penguin.rb
@@ -15,3 +15,7 @@ if defined?(SleepyPenguin::Inotify) &&
     # :startdoc
   end
 end
+
+if SleepyPenguin.respond_to?(:__splice) || SleepyPenguin.respond_to?(:__tee)
+  require_relative 'sleepy_penguin/splice'
+end