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

iconara / puck / 73
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.5
DEFAULT BRANCH: master
Ran 05 Feb 2015 07:41PM UTC
Jobs 1
Files 7
Run time 3s
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
73

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

Jobs
ID Job ID Ran Files Coverage
1 73.1 (jruby) 05 Feb 2015 07:41PM UTC 0
99.38
Travis Job 73.1
Source Files on build 73
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #73
  • eeaaa120 on github
  • Next Build on fix_12 (#76)
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