Sha256: 4e3a23ccf2e1abb8f84754669c1705a509ea201d3796016bd28ac7981ec76ab3

Contents?: true

Size: 534 Bytes

Versions: 16

Compression:

Stored size: 534 Bytes

Contents

if RUBY_VERSION=="1.8.0"
  module REXML
    module Parsers
      class BaseParser
        # Returns true if there are more events.  Synonymous with !empty?
        def has_next?
          return true if @closed # THIS WAS ADDED TO FIX PROBLEM
          @source.read if @source.buffer.size==0 and !@source.empty?
          (!@source.empty? and @source.buffer.strip.size>0) or @stack.size>0 or @closed
        end
      end
    end
  end
else
  puts "WARNING: rexml_1.8_patch is needed on Ruby 1.8.0 and not by Ruby #{RUBY_VERSION}"
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
jabber4r-revive-0.10.0 lib/jabber4r/rexml_1.8_patch.rb
jabber4r-0.8.0 lib/jabber4r/rexml_1.8_patch.rb
typo-3.99.0 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-3.99.2 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-3.99.1 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-3.99.3 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.0.2 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.0.0 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-3.99.4 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.0.1 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.0.3 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.1.1 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-4.1 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-5.0.2 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-5.0.1 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb
typo-5.0 vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb