mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
version bump to 1.8.1
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
jc changelog
|
jc changelog
|
||||||
|
|
||||||
202003xx v1.x.x
|
20200308 v1.8.1
|
||||||
- Code optimizations by https://github.com/philippeitis
|
- CLI and history parser optimizations by https://github.com/philippeitis
|
||||||
|
- Refactored magic syntax function and added tests (https://github.com/philippeitis)
|
||||||
- Github actions for CI testing on multiple platforms by https://github.com/philippeitis
|
- Github actions for CI testing on multiple platforms by https://github.com/philippeitis
|
||||||
- Updated ls parser to fix parsing error in OSX with -lR when there are empty folders
|
- Updated ls parser to fix parsing error in OSX with -lR when there are empty folders
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import jc.utils
|
|||||||
|
|
||||||
|
|
||||||
class info():
|
class info():
|
||||||
version = '1.8.0'
|
version = '1.8.1'
|
||||||
description = 'jc cli output JSON conversion tool'
|
description = 'jc cli output JSON conversion tool'
|
||||||
author = 'Kelly Brazil'
|
author = 'Kelly Brazil'
|
||||||
author_email = 'kellyjonbrazil@gmail.com'
|
author_email = 'kellyjonbrazil@gmail.com'
|
||||||
|
2
setup.py
2
setup.py
@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='jc',
|
name='jc',
|
||||||
version='1.8.0',
|
version='1.8.1',
|
||||||
author='Kelly Brazil',
|
author='Kelly Brazil',
|
||||||
author_email='kellyjonbrazil@gmail.com',
|
author_email='kellyjonbrazil@gmail.com',
|
||||||
description='This tool serializes the output of popular command line tools and filetypes to structured JSON output.',
|
description='This tool serializes the output of popular command line tools and filetypes to structured JSON output.',
|
||||||
|
@ -109,6 +109,9 @@ class MyTests(unittest.TestCase):
|
|||||||
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-newlines.out'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-newlines.out'), 'r', encoding='utf-8') as f:
|
||||||
self.osx_10_14_6_ls_newlines = f.read()
|
self.osx_10_14_6_ls_newlines = f.read()
|
||||||
|
|
||||||
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-lR-empty-folder.out'), 'r', encoding='utf-8') as f:
|
||||||
|
self.osx_10_14_6_ls_lR_empty_folder = f.read()
|
||||||
|
|
||||||
# output
|
# output
|
||||||
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ls.json'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/ls.json'), 'r', encoding='utf-8') as f:
|
||||||
self.centos_7_7_ls_json = json.loads(f.read())
|
self.centos_7_7_ls_json = json.loads(f.read())
|
||||||
@ -209,6 +212,9 @@ class MyTests(unittest.TestCase):
|
|||||||
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-newlines.json'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-newlines.json'), 'r', encoding='utf-8') as f:
|
||||||
self.osx_10_14_6_ls_newlines_json = json.loads(f.read())
|
self.osx_10_14_6_ls_newlines_json = json.loads(f.read())
|
||||||
|
|
||||||
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/osx-10.14.6/ls-lR-empty-folder.json'), 'r', encoding='utf-8') as f:
|
||||||
|
self.osx_10_14_6_ls_lR_empty_folder_json = json.loads(f.read())
|
||||||
|
|
||||||
def test_ls_centos_7_7(self):
|
def test_ls_centos_7_7(self):
|
||||||
"""
|
"""
|
||||||
Test plain 'ls /' on Centos 7.7
|
Test plain 'ls /' on Centos 7.7
|
||||||
@ -407,6 +413,12 @@ class MyTests(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
self.assertEqual(jc.parsers.ls.parse(self.osx_10_14_6_ls_newlines, quiet=True), self.osx_10_14_6_ls_newlines_json)
|
self.assertEqual(jc.parsers.ls.parse(self.osx_10_14_6_ls_newlines, quiet=True), self.osx_10_14_6_ls_newlines_json)
|
||||||
|
|
||||||
|
def test_ls_lR_empty_folder_osx_10_14_6(self):
|
||||||
|
"""
|
||||||
|
Test 'ls -lR' for empty directories on OSX 10.14.6
|
||||||
|
"""
|
||||||
|
self.assertEqual(jc.parsers.ls.parse(self.osx_10_14_6_ls_lR_empty_folder, quiet=True), self.osx_10_14_6_ls_lR_empty_folder_json)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
Reference in New Issue
Block a user