Skip to content

Commit

Permalink
Merge pull request #150 from kenfar/v0.2.2
Browse files Browse the repository at this point in the history
Ready the code for release 0.2.2
  • Loading branch information
kenfar authored May 20, 2021
2 parents 2201ebd + 6dd2be1 commit 939423f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@

# V0.2.2 - 2021-05
* Improvement: the field-names from headers can now be used instead of column offsets
for gristle_sorter, gristle_freaker, gristle_profiler, and gristle_slicer.
* Improvement: The use of the header now follows four simple rules:
* It can be referred to as row 0 when it makes sense - like with gristle_slicer
& gristle_viewer.
* It will be passed through when it makes sense - like with gristle_sorter.
* It will be used to translate field names to offsets for configuration.
* But will otherwise be ignored.
* Bug Fix: gristle_freaker was failing with 0-length files when using col-type=each
* Bug Fix: gristle_sorter was failing with some multi-directional sorts

# V0.2.1 - 2021-04
* Improvement: added gristle_sorter as a script to install in the system so that it is
available to users.
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
V0.2.2 - 2021-05
================

- Improvement: the field-names from headers can now be used instead of
column offsets for gristle_sorter, gristle_freaker, gristle_profiler,
and gristle_slicer.
- Improvement: The use of the header now follows four simple rules:

- It can be referred to as row 0 when it makes sense - like with
gristle_slicer & gristle_viewer.
- It will be passed through when it makes sense - like with
gristle_sorter.
- It will be used to translate field names to offsets for
configuration.
- But will otherwise be ignored.

- Bug Fix: gristle_freaker was failing with 0-length files when using
col-type=each
- Bug Fix: gristle_sorter was failing with some multi-directional sorts

V0.2.1 - 2021-04
================

Expand Down
2 changes: 1 addition & 1 deletion datagristle/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python

__version__ = "0.2.1"
__version__ = "0.2.2"
2 changes: 1 addition & 1 deletion datagristle/file_sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _get_sort_values(self,
try:
sort_values = [transform(rec[key_field.position], key_field, primary_order) for key_field in key_fields]
except IndexError:
comm.abort('Error: key references columns that does not exist in record', f'{rec=}')
comm.abort('Error: key references columns that does not exist in record', f'rec={rec}')
return sort_values


Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
appdirs == 1.4.4
cletus == 1.0.15
colorama == 0.4.3
envoy == 0.0.3
Flask == 1.1.2
Jinja2 == 2.11.3
Expand Down

0 comments on commit 939423f

Please sign in to comment.