Skip to content

Commit

Permalink
feat: include version in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
sesh committed Feb 27, 2024
1 parent 9d488ba commit 34ffcb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ready/ready.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from importlib import resources
from . import checks as checks_module

VERSION = "1.2.4"
VERSION = "1.2.5"

from ready.checks.bad_response import (
check_bad_response_cloudflare,
Expand Down Expand Up @@ -152,7 +152,8 @@ def ready(
else:
fld = "Disabled. Install tld if fld is different to domain."

print(f"Domain: {domain}, Domain (no path): {domain_with_no_path}, First Level Domain: {fld}")
if not hide_output:
print(f"Domain: {domain}, Domain (no path): {domain_with_no_path}, First Level Domain: {fld}")

responses = {
"http_response": response_or_none(
Expand Down Expand Up @@ -357,6 +358,7 @@ def ready(
for r in results
},
"when": datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"),
"version": VERSION
},
indent=2,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ready-check
version = 1.2.4
version = 1.2.5
author = Brenton Cleeland
author_email = [email protected]
description = A developer-friendly web scanning tool
Expand Down

0 comments on commit 34ffcb4

Please sign in to comment.