From: Maksym Parkachov <lazy.gopher@googlemail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: jruby Rack::Reloader exception
Date: Wed, 22 Jul 2009 11:08:10 -0700 (PDT) [thread overview]
Message-ID: <64b178f3-0896-40bd-86a6-f075bf60536d@o7g2000yqb.googlegroups.com> (raw)
Hi folks,
I was trying to use Rack::Reloader with jruby + Sinatra and got
exception,
which is not happening with C ruby. The problem lies with
$LOADED_FEATURES
where jruby lists the same files as C ruby, but some of them are not
in the file system
as they implemented with java. The patch below fixes the problem.
Cheers,
Maksym.
P.S. I don't really know how to proper format patch, so, just sending
git diff output.
diff --git a/lib/rack/reloader.rb b/lib/rack/reloader.rb
index 3b962c4..c3d12ec 100644
--- a/lib/rack/reloader.rb
+++ b/lib/rack/reloader.rb
@@ -93,6 +93,7 @@ module Rack
found, stat = safe_stat(path)
return ::File.expand_path(found), stat if found
end
+ return false, false
end
def safe_stat(file)
reply other threads:[~2009-07-22 18:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://groups.google.com/group/rack-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64b178f3-0896-40bd-86a6-f075bf60536d@o7g2000yqb.googlegroups.com \
--to=rack-devel@googlegroups.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).