diff --git a/plugins/basename/.CHECKSUM b/plugins/basename/.CHECKSUM index cecb62105e..e1a901c9fd 100644 --- a/plugins/basename/.CHECKSUM +++ b/plugins/basename/.CHECKSUM @@ -1,7 +1,7 @@ { - "spec": "500bd50e08b0609671e34fdccdbef0ac", - "manifest": "0948a7896ab3171c739ebe6e99bdee47", - "setup": "bbe0bf7368ede093db808e5a33737877", + "spec": "ed8c0b9d7bb5018dfbbcd255f8e90c25", + "manifest": "4df75eb1dd0bc7cca85a18b0ab50589b", + "setup": "0107162015af1bea589b9b2b8d0fba23", "schemas": [ { "identifier": "basename/schema.py", diff --git a/plugins/basename/bin/komand_basename b/plugins/basename/bin/komand_basename index a3171dbc47..72b1b846b8 100755 --- a/plugins/basename/bin/komand_basename +++ b/plugins/basename/bin/komand_basename @@ -6,7 +6,7 @@ from sys import argv Name = "Basename" Vendor = "rapid7" -Version = "1.1.1" +Version = "1.1.2" Description = "This plugin is used to get the last item of a file path or URL using Python's basename utility" diff --git a/plugins/basename/help.md b/plugins/basename/help.md index 5104253537..8fae0ce10a 100644 --- a/plugins/basename/help.md +++ b/plugins/basename/help.md @@ -1,10 +1,10 @@ # Description -This plugin is used to get the last item of a file path or URL using Python's basename utility +This plugin is used to get the last item of a file path or URL using Python's Basename utility # Key Features -* Obtain basename of a file path or URL. +* Obtain Basename of a file path or URL. # Requirements @@ -27,7 +27,7 @@ This plugin is used to get the last item of a file path or URL using Python's ba #### Basename -Get the basename of a path +Get the Basename of a path ##### Input @@ -73,6 +73,7 @@ If the input doesn't contain a slash `/` in the path the result will be the orig # Version History +* 1.1.2 - Added `__init__.py` file to `unit_test` folder | Refreshed with new Tooling * 1.1.1 - Update SDK to version 5 * 1.1.0 - Add missing `title` in action Basename | Use input and output constants | Add example input and output | Changed `Exception` to `PluginException` | Added "f" strings * 1.0.2 - Update to use the `insightconnect-python-3-38-slim-plugin:4` Docker image | Update plugin.spec.yaml to include `cloud_ready` @@ -83,6 +84,8 @@ If the input doesn't contain a slash `/` in the path the result will be the orig # Links +* [Python Basename](https://docs.python.org/3/library/os.path.html) + ## References -* [Python Basename](https://docs.python.org/2/library/os.path.html#os.path.basename) +* [Python Basename](https://docs.python.org/3/library/os.path.html) diff --git a/plugins/basename/plugin.spec.yaml b/plugins/basename/plugin.spec.yaml index 78981a85c6..4ecb2b78c2 100644 --- a/plugins/basename/plugin.spec.yaml +++ b/plugins/basename/plugin.spec.yaml @@ -4,7 +4,7 @@ products: [insightconnect] name: basename title: Basename description: This plugin is used to get the last item of a file path or URL using Python's basename utility -version: 1.1.1 +version: 1.1.2 vendor: rapid7 support: community supported_versions: ["Python 3.38"] @@ -20,6 +20,9 @@ resources: tags: - basename - utilities +key_features: ["Obtain basename of a file path or URL."] +references: ["[Python Basename](https://docs.python.org/2/library/os.path.html#os.path.basename)"] +requirements: [] hub_tags: use_cases: [data_utility] keywords: [basename, utilities, cloud_enabled] diff --git a/plugins/basename/setup.py b/plugins/basename/setup.py index 1471ec43a1..e618abf43b 100755 --- a/plugins/basename/setup.py +++ b/plugins/basename/setup.py @@ -3,7 +3,7 @@ setup(name="basename-rapid7-plugin", - version="1.1.1", + version="1.1.2", description="This plugin is used to get the last item of a file path or URL using Python's basename utility", author="rapid7", author_email="", diff --git a/plugins/basename/unit_test/__init__.py b/plugins/basename/unit_test/__init__.py new file mode 100644 index 0000000000..e69de29bb2