Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Support of relative image sources #697

Merged
merged 1 commit into from
Dec 28, 2014

Conversation

idstein
Copy link
Contributor

@idstein idstein commented Jun 25, 2014

If an File-based image is not placed correctly, embedding the image will fail. This sanity check creates a relative path to the HTML IO object.

Pre-conditions:

If an File-based image is not placed correctly, embedding the image will fail. This sanity check creates a relative path to the HTML IO object.

Pre-conditions:
- The image to be embedded must be file based
- The html IO object must be support an absolute_path method (http://www.ruby-doc.org/core-2.1.2/File.html#method-c-absolute_path)
@mattwynne
Copy link
Member

@brasmusson any comments? Can you merge this if you like it please.

@brasmusson brasmusson merged commit b06740a into cucumber:master Dec 28, 2014
@brasmusson
Copy link
Contributor

I do not know in what Ruby versions an open file object responds to an absolute_path method, in v2.0 (which I'm using) they don't, so I change to use the path method instead. Also when using relative_path_from it's the path to the directory and not the path to the output file that should to be used (otherwise you get an extra ../). I fixed those issues (4cc2e76) and merged the PR.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants