From 16d4e3c814460bdff45e222b719216dd75f5645d Mon Sep 17 00:00:00 2001 From: Michael Lissner Date: Fri, 20 Jan 2023 17:16:02 -0800 Subject: [PATCH] feat(v): Release new version --- CHANGES.md | 10 ++++++++-- README.rst | 5 ++++- pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 665df6a..c17e72a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,14 @@ Fixes: ## Current +**2.5.0 - 2023-01-20** + +Features: + - Citations now have a `full_span` property that returns the start and end indexes for the full citation, including any pre- or post-citation attributes. + + +## Past + **2.4.0 - 2022-07-22** Features: @@ -33,8 +41,6 @@ Fixes: - Initial support for finding short cites with non-standard regexes, including fixing short cite extraction for `Mich.`, `N.Y.2d` and `Pa.`. -## Past - **2.3.2 - 2021-03-23** Yanked. diff --git a/README.rst b/README.rst index 8c5cb80..9c8699f 100644 --- a/README.rst +++ b/README.rst @@ -179,6 +179,9 @@ The above example extracts citations from :code:`plain_text` and applies them to :code:`source_text`, using a diffing algorithm to insert annotations in the correct locations in the original text. +There is also a :code:`full_span` attribute that can be used to get the indexes of the full citation, including the +pre- and post-citation attributes. + Wrapping HTML Tags ^^^^^^^^^^^^^^^^^^ @@ -413,7 +416,7 @@ Deployment 1. Update version info in :code:`pyproject.toml` by running :code:`poetry version [major, minor, patch]`. -For an automated deployment, tag the commit with vx.y.z, and push it to master. +For an automated deployment, tag the commit with vx.y.z, and push it to main. An automated deploy and documentation update will be completed for you. For a manual deployment, run: diff --git a/pyproject.toml b/pyproject.toml index da89344..4b6591c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -version = "2.4.0" +version = "2.5.0" authors = ["Free Law Project "] classifiers = [ "Development Status :: 5 - Production/Stable",