Sha256: ec8bf0f2ac6eb4d9cc11cde039f52fbeeaac88ab5c9d2e246c7317b8530b9dee

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

Stored size: 412 Bytes

Contents

module Gitrb
  module Util
    if RUBY_VERSION > '1.9'
      def self.read_bytes_until(io, char)
        str = ''
        while ((ch = io.getc) != char) && !io.eof
          str << ch
        end
        str
      end
    else
      def self.read_bytes_until(io, char)
        str = ''
        while ((ch = io.getc.chr) != char) && !io.eof
          str << ch
        end
        str
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gitrb-0.1.3 lib/gitrb/util.rb
gitrb-0.1.2 lib/gitrb/util.rb
gitrb-0.1.1 lib/gitrb/util.rb
gitrb-0.1.0 lib/gitrb/util.rb
gitrb-0.0.9 lib/gitrb/util.rb
gitrb-0.0.8 lib/gitrb/util.rb
gitrb-0.0.7 lib/gitrb/util.rb
gitrb-0.0.6 lib/gitrb/util.rb