Skip to content

Commit

Permalink
Fixed file extension printing error. Now it uses the settings output_…
Browse files Browse the repository at this point in the history
…extension. Updated unit test.
  • Loading branch information
nueverest committed Mar 4, 2017
1 parent 743e51d commit 91c6ea9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blowdrycss/blowdry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion blowdrycss/unit_tests/test_blowdry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__

0 comments on commit 91c6ea9

Please sign in to comment.