From: anonymous <sup-bugs@masanjin.net>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [issue55] undefined method `>=' for true:TrueClass
Date: Thu, 28 Jan 2010 08:02:43 +0000 [thread overview]
Message-ID: <1264665763.28.0.0069731812863.issue55@masanjin.net> (raw)
In-Reply-To: <1264665763.28.0.0069731812863.issue55@masanjin.net>
[-- 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
parent reply other threads:[~2010-01-28 8:09 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1264665763.28.0.0069731812863.issue55@masanjin.net>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1264665763.28.0.0069731812863.issue55@masanjin.net \
--to=sup-bugs@masanjin.net \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox