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

iconara / puck / 76 / 2
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.5
DEFAULT BRANCH: master
Ran 06 Feb 2015 06:33AM UTC
Files 7
Run time 2s
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

06 Feb 2015 06:28AM UTC coverage: 0.0% (-99.4%) from 99.385%
jruby-head

push

travis-ci

iconara
Work around an issue in Windows

`$: << File.expand_path('../../lib', __FILE__)` from an app's bin files does not work on Windows because the path ends up as "classpath:C:/META-INF/app.home/lib". It's the same on *nix but it doesn't seem to matter that the path is prefixed with just a slash.

The behaviour of File.expand_path seems to depend on not just the actual value of __FILE__, but also on how the file it's run from was loaded. That sounds very strange and I hope I'm wrong, but that's what it looks like. It does seem like when the file is loaded either as "classpath:META-INF/app.home/bin/foobar" or just "META-INF/app.home/bin/foobar" that the path returned by File.expand_path does not come out prefixed by "classpath:/", but instead a full file system + JAR path, e.g. /home/foo/bar.jar!/META-INF/app.home/lib".

I have not tested this on Windows, I'm hoping to get some help to verify that this works around the problem. The next step is figuring out how to report this as a JRuby issue.

0 of 323 relevant lines covered (0.0%)

0.0 hits per line

Source Files on job 76.2 (jruby-head)
  • Tree
  • List 0
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 76
  • Travis Job 76.2
  • 3db10b1a on github
  • Prev Job for jruby on fix_12 (#73.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