about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-13 01:14:38 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-13 01:14:38 +0000
commit0337144dc569a8795e562cac4d6071e29c1526ac (patch)
tree9ab669e60d9e60f8c60e370baf9616ea7461390f
parent3d8e66dfec175de1f402ef9b77c018c6d437fca1 (diff)
downloadsleepy_penguin-0337144dc569a8795e562cac4d6071e29c1526ac.tar.gz
Our usage of rdoc was incorrect in some places and causing
internal methods to become visible.
-rw-r--r--lib/sleepy_penguin.rb4
-rw-r--r--lib/sleepy_penguin/epoll/io.rb3
-rw-r--r--lib/sleepy_penguin/sp.rb2
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/sleepy_penguin.rb b/lib/sleepy_penguin.rb
index 1888e3b..60e8750 100644
--- a/lib/sleepy_penguin.rb
+++ b/lib/sleepy_penguin.rb
@@ -7,17 +7,17 @@ end
 require 'sleepy_penguin_ext'
 require 'sleepy_penguin/epoll'
 
-# :stopdoc:
-#
 # We need to serialize Inotify#take for Rubinius since that has no GVL
 # to protect the internal array
 if defined?(SleepyPenguin::Inotify) &&
    defined?(Rubinius) && Rubinius.respond_to?(:synchronize)
   class SleepyPenguin::Inotify
+    # :stopdoc:
     alias __take take
     undef_method :take
     def take(*args)
       Rubinius.synchronize(@inotify_tmp) { __take(*args) }
     end
+    # :startdoc
   end
 end
diff --git a/lib/sleepy_penguin/epoll/io.rb b/lib/sleepy_penguin/epoll/io.rb
index caeb376..d5540c2 100644
--- a/lib/sleepy_penguin/epoll/io.rb
+++ b/lib/sleepy_penguin/epoll/io.rb
@@ -1,5 +1,5 @@
-# :stopdoc:
 class SleepyPenguin::Epoll::IO
+  # :stopdoc:
   alias __epoll_wait epoll_wait
   undef_method :epoll_wait
   def epoll_wait(maxevents = 64, timeout = nil)
@@ -24,4 +24,5 @@ class SleepyPenguin::Epoll::IO
       retry
     end
   end
+  # :startdoc:
 end
diff --git a/lib/sleepy_penguin/sp.rb b/lib/sleepy_penguin/sp.rb
index 62e000f..6a32f25 100644
--- a/lib/sleepy_penguin/sp.rb
+++ b/lib/sleepy_penguin/sp.rb
@@ -1,4 +1,4 @@
 # :stopdoc:
 require "sleepy_penguin"
-SP = SleepyPenguin
+Object.const_set(:SP, SleepyPenguin)
 # :startdoc: