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

iconara / puck / 73 / 1
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.5
DEFAULT BRANCH: master
Ran 05 Feb 2015 07:41PM 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

05 Feb 2015 07:36PM UTC coverage: 99.385%. First build
jruby

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.

323 of 325 relevant lines covered (99.38%)

11.92 hits per line

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