Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [issue55] undefined method `>=' for true:TrueClass
@ 2010-01-28  8:02 anonymous
  0 siblings, 0 replies; only message in thread
From: anonymous @ 2010-01-28  8:02 UTC (permalink / raw)
  To: sup-devel

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]


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 <sup-bugs@masanjin.net>
<http://masanjin.net/sup-bugs/issue55>
_________________________________________

[-- Attachment #2: exception-log.txt --]
[-- Type: text/plain, Size: 1398 bytes --]

--- 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'

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-28  8:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-28  8:02 [sup-devel] [issue55] undefined method `>=' for true:TrueClass anonymous

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox