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

iconara / puck
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.5
DEFAULT BRANCH: master
Repo Added 19 Jul 2013 04:08PM UTC
Files 8
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

LAST BUILD ON BRANCH fix_12
branch: fix_12
CHANGE BRANCH
x
Reset
  • fix_12
  • bundler-workarounds
  • everything-is-awesome
  • exec
  • explicit-prefix
  • gemspec-in-gemfile
  • master
  • no-bootstrap-exit
  • pr_4
  • pr_5
  • prefer-user-installed-gems
  • set-dollar-zero
  • tmpdir-build
  • travis-bundler-versions
  • travis-debug
  • travis-test
  • v1.0.0
  • v1.0.0.pre4
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.5

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

Relevant lines Covered
Build:
Build:
328 RELEVANT LINES 323 COVERED LINES
11.85 HITS PER LINE
Source Files on fix_12
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
76 fix_12 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... push 06 Feb 2015 06:31AM UTC iconara travis-ci pending completion  
73 fix_12 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... push 05 Feb 2015 07:41PM UTC iconara travis-ci pending completion  
See All Builds (166)
  • Repo on GitHub
  • CI Project
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