New submission from anonymous:

Source#current_offset= returns true instead of the set value, causing
Source#done? to blow up on (self.cur_offset ||= start_offset) >= end_offset

The fix is to swap the two lines in Source#current_offset= so that it returns
the value:

  def cur_offset= o
    @dirty = true
    @cur_offset = o
  end

As it is in 0.10.2 it returns the value for @dirty instead

----------
files: exception-log.txt
messages: 139
nosy: anonymous
priority: bug
ruby_version: 1.9.1
status: unread
sup_version: 0.10.2
title: undefined method `>=' for true:TrueClass

_________________________________________
Sup issue tracker <[email protected]>
<http://masanjin.net/sup-bugs/issue55>
_________________________________________
--- NoMethodError from thread: poll after loading inbox
undefined method `>=' for true:TrueClass
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/source.rb:88:in 
`done?'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/util.rb:599:in 
`__pass'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/util.rb:586:in 
`method_missing'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:100:in 
`block (2 levels) in do_poll'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:97:in `each'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:97:in `block 
in do_poll'
<internal:prelude>:8:in `synchronize'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:96:in 
`do_poll'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/util.rb:559:in 
`method_missing'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/modes/poll-mode.rb:15:in
 `poll'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:47:in 
`poll_with_sources'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/poll.rb:62:in `poll'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup/util.rb:559:in 
`method_missing'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/bin/sup:226:in `block (2 
levels) in <module:Redwood>'
/usr/local/lib/ruby-1.9/gems/1.9.1/gems/sup-0.10.2/lib/sup.rb:77:in `block in 
reporting_thread'
_______________________________________________
Sup-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-devel

Reply via email to