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

iconara / puck / 76
98%
master: 99%

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

pending completion
76

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 328 relevant lines covered (98.48%)

11.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 76.1 (jruby) 06 Feb 2015 06:31AM UTC 0
Travis Job 76.1
2 76.2 (jruby-head) 06 Feb 2015 06:33AM UTC 0
0.0
Travis Job 76.2
Source Files on build 76
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #76
  • 3db10b1a on github
  • Prev Build on fix_12 (#73)
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

© 2025 Coveralls, Inc