rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
* Problem with env hash and YARD?
@ 2013-05-03 16:54 Noah Gibbs
  0 siblings, 0 replies; only message in thread
From: Noah Gibbs @ 2013-05-03 16:54 UTC (permalink / raw)
  To: rack-devel

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

I'm having an odd problem using YARD with Rack::URLMap and I'm curious if it's a known thing.

I'm mounting the YARD Rack endpoint ("http://rubydoc.info/docs/yard/0.7.4/YARD/Server/RackAdapter") under /yard in my URLmap.  I then go to "/yard/docs".  It's calling the endpoint with a path of "/yard/docs" rather than "/docs" -- but if I mount a proc that calls through to the adapter and check env["PATH_INFO"], it properly and correctly contains "/docs" at that point, not "/yard/docs".

I searched the YARD adapter code, and it seems to be using Rack::Request.new(env).path_info...  Which, of course, check env["PATH_INFO"].  Which should be correct.

But it's not.

Any ideas?  This is weirding me out.

Random other bits:  I'm running under Thin 1.5.1 with Rack 1.5.2 and YARD 0.8.6.1.  YARD is including WEBrick::HTTPUtils, but shouldn't actually be running under WEBrick.

-- 

--- 
You received this message because you are subscribed to the Google Groups "Rack Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rack-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



[-- Attachment #2: Type: text/html, Size: 3214 bytes --]

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

only message in thread, other threads:[~2013-05-03 17:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-03 16:54 Problem with env hash and YARD? Noah Gibbs

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/rack.git

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).