Browse files

Fix Zlib::ZStream#closed? & #ended?

  • Loading branch information...
1 parent 9e7a7b4 commit 62d48b114b4bb3734c68faaf611b444d3d01b4d2 @IPGlider IPGlider committed May 9, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/zlib.rb.ffi
View
8 lib/zlib.rb.ffi
@@ -392,6 +392,12 @@ module Zlib
alias :close :end
+ def ended?
+ !ready?
+ end
+
+ alias :closed? :ended?
+
def expand_output
if @output.nil? then
@output = ''
@@ -459,8 +465,6 @@ module Zlib
def ready?
@flags & READY == READY
end
- alias :closed? :ready?
- alias :ended? :ready?
##
# Resets and initializes the stream. All data in both input and output

0 comments on commit 62d48b1

Please sign in to comment.