jruby --1.9 does not support IO.gets(sep, limit)
------------------------------------------------

                 Key: JRUBY-5910
                 URL: https://jira.codehaus.org/browse/JRUBY-5910
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.2
    Affects Versions: JRuby 1.6.2, JRuby 1.6.3
            Reporter: Florian Gilcher
            Assignee: Thomas E Enebo
            Priority: Minor


Ruby 1.9 supports IO.gets(sep, limit). JRuby does not:
    ArgumentError: wrong number of arguments (2 for 1)
      read_slice at 
/Users/skade/.rvm/gems/jruby-1.6.3/gems/parslet-1.2.1/lib/parslet/source.rb:49
            read at 
/Users/skade/.rvm/gems/jruby-1.6.3/gems/parslet-1.2.1/lib/parslet/source.rb:25

relevant code:

  def read_slice(needed)
    start = @io.pos
    buf = @io.gets(nil, needed)

    # cache line ends
    @line_cache.scan_for_line_endings(start, buf)
    
    Parslet::Slice.new(buf || '', start, self)
  end

I don't have an idea on how far this goes, as some other methods in IO (#each 
for example) have gained this capability between 1.8.7 and 1.9.2 as well.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to