• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vanstyn / RapidApp / 707 / 5
51%
master: 51%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2015 12:46AM UTC
Files 93
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jun 2015 11:50PM UTC coverage: 51.067% (-0.001%) from 51.068%
707.5

push

travis-ci

vanstyn
ADD NEW MAGIC PATH DISPATCH KEYWORD '_ra-rel-mnt_' - #153

If the now reserved keyword/string '/_ra-rel-mnt_/' appears anyplace
in the url path in any request, we munge it (within Middleware) and
strip everything in the path *up to that point* before sending into
Catalyst/RapidApp dispatch. The reason this is being done is to
provide an efficient mechanism for generated markups such as <img>
'src', css urls, <link> tags, etc, to reference paths (such as
simplecas and asset urls) w/o needing to know the current mount_url
and, more importantly, be able to remain valid if the mount_url is
changed after the fact. This is essentially a means to supply an
absolute url path but the form of a *relative* url path from the
perspective of the browser. This is a better way to handle this case
than from within the module dispatch because it avoids the
associated unnecessary overhead (which can vary from module to
module) and is also even more flexible, to also work via locally-
defined controller actions which internally re-dispatch to modules.

This is a second take on this problem which was already handled
within module dispatch (see _maybe_special_path_redirect logic) but
which I was never happy with because its ugly. This previous
solution does not conflict in any way with the new _ra-rel-mnt_
option, however, it will probably be unfactored and removed, if for
no other reason, keeping the code less confusing. (however, if this
is done, already generated markup in the wild will have to be
considered, but i do not think there is enough of it out there to
justify keeping the code, and the possible failure scenario is very
minor)

Internal locations which relied on referencing relative urls for
generating markup, such as the HtmlEditor insert image, have been
changed to reference the new _ra-rel-mnt_ relative paths.

This change is still considered EXPERIMENTAL and needs more testing
before release...

(set dev ver 1.0502_03)

3183 of 6233 relevant lines covered (51.07%)

228.59 hits per line

Source Files on job 707.5
  • Tree
  • List 0
  • Changed 7
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 707
  • Travis Job 707.5
  • ee4f8fa4 on github
  • Prev Job for on master (#706.5)
  • Next Job for on master (#708.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc