diff --git a/blowdrycss/blowdry.py b/blowdrycss/blowdry.py index afcf81b..8eb0ecd 100644 --- a/blowdrycss/blowdry.py +++ b/blowdrycss/blowdry.py @@ -202,7 +202,7 @@ def parse(recent=True, class_set=set(), css_text=b''): if settings.human_readable: css_file = CSSFile() css_file.write(css_text=css_text) - print(path.join(css_file.file_directory, css_file.file_name) + '.css') + print(path.join(css_file.file_directory, css_file.file_name) + css_file.extension) # Output the Minified DRY CSS file. (user setting option) if settings.minify: diff --git a/blowdrycss/unit_tests/test_blowdry.py b/blowdrycss/unit_tests/test_blowdry.py index db557e3..9bfc1df 100644 --- a/blowdrycss/unit_tests/test_blowdry.py +++ b/blowdrycss/unit_tests/test_blowdry.py @@ -173,7 +173,8 @@ def test_parse_on_modify_css_text_PREXISTING(self): substrings = [ '~~~ blowdrycss started ~~~', 'CSSBuilder Running...', - '.css', + settings.output_file_name, + settings.output_extension, ] project_directory = settings.project_directory diff --git a/readme.rst b/readme.rst index a63f382..c8b0fc0 100644 --- a/readme.rst +++ b/readme.rst @@ -33,6 +33,8 @@ Version Changelog | **1.0.1** -- Enabled support for output file_name and extension customization. Created settings validation utility functions and unit tests. Custom output file examples: _blowdry.scss and custom.css. Added support for Python 3.6. +| +| **1.0.2** -- Fixed file extension printing error. Now it uses the settings output_extension. Updated unit test. Why the name blowdrycss? diff --git a/setup.py b/setup.py index c806c33..6a96ca7 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,7 @@ pip freeze # Ensure blowdrycss is not already installed. pip uninstall blowdrycss -y # Uninstall if it is already installed. python setup.py install # Install the latest. +Delete files in examplesite/css if they exist. blowdrycss # Run in project root and ensure it created a new blowdry.css file. pip uninstall blowdrycss -y # Uninstall blowdrycss. diff --git a/version.py b/version.py index 1548c2a..711cfb2 100644 --- a/version.py +++ b/version.py @@ -206,12 +206,14 @@ class selectors created during the most recent modification. Append this to the | **1.0.1** -- Enabled support for output file_name and extension customization. Created settings validation utility functions and unit tests. Custom output file examples: _blowdry.scss and custom.css. Added support for Python 3.6. + | + | **1.0.2** -- Fixed file extension printing error. Now it uses the settings output_extension. Updated unit test. """ __author__ = 'chad nelson' __project__ = 'blowdrycss' -__version__ = '1.0.1' +__version__ = '1.0.2' __release__ = __version__