Skip to content

Commit

Permalink
Version 3.21
Browse files Browse the repository at this point in the history
  • Loading branch information
mborsetti committed Apr 16, 2024
1 parent 8e86ac9 commit 8310b87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.rst
Expand Up @@ -33,9 +33,9 @@ can check out the `wish list <https://github.com/mborsetti/webchanges/blob/main/
Internals, for changes that don't affect users. [triggers a minor patch]
Version 3.21rc0
Version 3.21
===================
Unreleased
2024-04-16

Added
-----
Expand Down
4 changes: 2 additions & 2 deletions RELEASE.rst
Expand Up @@ -10,8 +10,8 @@ Added

- ``difflib`` to report element-by-element changes in JSON or XML structured data.
- ``imagediff`` (BETA) to report an image showing changes in an **image** being tracked.
- ``ai_google`` (BETA) to use a **Generative AI provide a summary of changes** (API key required). We use Google's
Gemini Pro 1.5 since it is the first model that can ingest 1M tokens, allowing to analyze changes in
- ``ai_google`` (BETA) to use a **Generative AI provide a summary of changes** (free API key required). We use
Google's Gemini Pro 1.5 since it is the first model that can ingest 1M tokens, allowing to analyze changes in
long documents (up to 350,000 words, or about 700 pages single-spaced) such as terms and conditions, privacy
policies, etc. where summarization adds the most value and which other models can't handle. The differ can call
the Gen AI model to summarize a unified diff or to find and summarize the differences itself. Also supported is
Expand Down
2 changes: 1 addition & 1 deletion tests/test_differs.py
Expand Up @@ -363,7 +363,7 @@ def test_unified_diff_to_html_no_link_text(job_state: JobState) -> None:
def test_unified_diff_to_html_url_no_link(job_state: JobState) -> None:
# must add to fake headers to get what we want:
inpt = '-fake head 1\n+fake head 2\n https://test.htm'
job = JobBase.unserialize({'url': 'https://www.example.com', 'is_markdown': True})
job = JobBase.unserialize({'url': 'https://www.example.com', 'is_markdown': True, 'differ': {'name': 'unified'}})
job_state.job = job
result = ''.join(list(UnifiedDiffer(job_state).unified_diff_to_html(inpt)))
assert result[193:-8] == (
Expand Down
2 changes: 1 addition & 1 deletion webchanges/__init__.py
Expand Up @@ -22,7 +22,7 @@
# * MINOR version when you add functionality in a backwards compatible manner, and
# * MICRO or PATCH version when you make backwards compatible bug fixes. We no longer use '0'
# If unsure on increments, use pkg_resources.parse_version to parse
__version__ = '3.21rc0'
__version__ = '3.21'
__description__ = (
'Check web (or command output) for changes since last run and notify.\n'
'\n'
Expand Down

0 comments on commit 8310b87

Please sign in to comment.