From 0930b2b005c438eb85a6c6cba4ec8c227cc9cf8d Mon Sep 17 00:00:00 2001 From: Jeff Rimko Date: Sun, 17 Dec 2017 12:29:01 -0500 Subject: [PATCH] Updated changelog and bumped version. --- CHANGELOG.adoc | 4 ++++ app/poppage.py | 4 +--- app/setup.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 5f98c14..117473b 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,5 +1,9 @@ = PopPage Changelog +== poppage-0.6.8 (2017-12-17) +=== Changed + - Added logic to prevent input templates from being overwritten by output. + == poppage-0.6.7 (2017-12-14) === Added - YAML tag `!py` to allow executing Python code in defaults file; useful for processing other variables. diff --git a/app/poppage.py b/app/poppage.py index 26e4d71..3b94e2b 100644 --- a/app/poppage.py +++ b/app/poppage.py @@ -81,7 +81,7 @@ ##==============================================================# #: Application version string. -__version__ = "0.6.7" +__version__ = "0.6.8" #: Key separator. KEYSEP = "::" @@ -229,8 +229,6 @@ def make_file(inpath, tmpldict, outpath=None): if outpath: outpath = render_str(outpath, tmpldict) if op.isdir(outpath): - # TODO: (JRR@201712141826) This is dangerous as it could overwrite - # the input template file! outpath = op.join(outpath, op.basename(inpath)) outpath = render_str(outpath, tmpldict) if is_binary(inpath): diff --git a/app/setup.py b/app/setup.py index 7985a56..2f31fd5 100644 --- a/app/setup.py +++ b/app/setup.py @@ -22,7 +22,7 @@ setup( name = "poppage", - version = "0.6.7", + version = "0.6.8", author = "Jeff Rimko", author_email = "jeffrimko@gmail.com", description = "Utility for generating files and directories from templates.",