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

Add option to control generation of timestamps. #338

Merged
merged 1 commit into from
Jan 3, 2016

Conversation

bk2204
Copy link
Contributor

@bk2204 bk2204 commented Oct 18, 2015

This is the corresponding change related to asciidoctor/asciidoctor#1453.

@@ -296,7 +296,7 @@ def build_pdf_info doc
info[:Creator] = str2pdfval %(Asciidoctor PDF #{::Asciidoctor::Pdf::VERSION}, based on Prawn #{::Prawn::VERSION})
info[:Producer] ||= (info[:Author] || info[:Creator])
# FIXME use docdate attribute
info[:ModDate] = info[:CreationDate] = ::Time.now
info[:ModDate] = info[:CreationDate] = ::Time.now if doc.attr 'timestamps'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you write this as:

if doc.attr? 'timestamps'

Notice the question mark.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't clear if doing "timestamps!" would result in the value being absent altogether. If so, that's a fine solution and I'm happy to make the change. Otherwise, if it's still present but false, I think that will break functionality.

@mojavelinux
Copy link
Member

We'll wait on the merge in core before merging this one.

@mojavelinux mojavelinux added this to the v1.5.0.beta.1 milestone Oct 23, 2015
@mojavelinux
Copy link
Member

Now that the corresponding issue is merged in core, can you update this PR to align with the approach we took there (i.e., reproducible flag)?

@mojavelinux mojavelinux self-assigned this Jan 3, 2016
@bk2204
Copy link
Contributor Author

bk2204 commented Jan 3, 2016

Sure. I'll pick that up tomorrow, now that I'm back in Houston.

@mojavelinux
Copy link
Member

👍 Thanks!

@bk2204
Copy link
Contributor Author

bk2204 commented Jan 3, 2016

Updated.

@mojavelinux
Copy link
Member

Thanks!

mojavelinux added a commit that referenced this pull request Jan 3, 2016
Add option to control generation of timestamps
@mojavelinux mojavelinux merged commit cdbf471 into asciidoctor:master Jan 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants