diff --git a/.github/latest_release_body.md b/.github/latest_release_body.md index fd7f2faf0..37b9ef181 100644 --- a/.github/latest_release_body.md +++ b/.github/latest_release_body.md @@ -1,12 +1,10 @@ -### ✴ What's new in 8.0+ ✴ - ### ✴ What's new in 9.0+ ✴ -- Wicked-fast [Keyset Pagination](https://ddnexus.github.io/pagy/docs/extras/keyset/) for big data! It works with `ActiveRecord::Relation` and `Sequel::Dataset` sets. +- Wicked-fast [Keyset Pagination](https://ddnexus.github.io/pagy/docs/api/keyset/) for big data! It works with `ActiveRecord::Relation` and `Sequel::Dataset` sets. - More [Playground Apps](https://ddnexus.github.io/pagy/playground/) to showcase, clone and develop pagy APPs without any setup on your side - Lots of refactorings and optimizations - See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes - + ### Changes in 8.6.3 diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a646733..cf899de27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,7 +71,8 @@ done... or use the detailed table below: - The internal Pagy protected methods have been renamed and refactored. If you use custom Pagy classes, you may need to search into the code. - +
+ ## Version 8.6.3 Temporary section to pass the tests diff --git a/README.md b/README.md index 2dbce7ce4..c76253717 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,11 @@ --- ### ✴ What's new in 9.0+ ✴ -- Wicked-fast [Keyset Pagination](https://ddnexus.github.io/pagy/docs/extras/keyset/) for big data! It works with `ActiveRecord::Relation` and `Sequel::Dataset` sets. +- Wicked-fast [Keyset Pagination](https://ddnexus.github.io/pagy/docs/api/keyset/) for big data! It works with `ActiveRecord::Relation` and `Sequel::Dataset` sets. - More [Playground Apps](https://ddnexus.github.io/pagy/playground/) to showcase, clone and develop pagy APPs without any setup on your side - Lots of refactorings and optimizations - See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes - + --- ### 🚀 🚀 🚀 🚀 🚀 diff --git a/scripts/bump b/scripts/bump index 55ea2cc74..71fc10aba 100755 --- a/scripts/bump +++ b/scripts/bump @@ -87,11 +87,20 @@ function edit_doc() { edit_doc 'Commit log' "$tmplog" -# Insert the changes in the the release body file used by .github/workflows/create_release.yml -# which is triggered by the :rubygem_release task (push tag) -lead='^$' -tail='^$' +# Insert the whats_new (from README) and changes in the the release body file +# used by .github/workflows/create_release.yml which is triggered by the :rubygem_release task (push tag) release_body_path="$root/.github/latest_release_body.md" +### What's New +lead='' +tail='' +#whats_new=$(sed -n "/$lead/,/$tail/p" "$root/README") +whats_new=$(sed -n "/$lead/,/$tail/{//b;p}" "$root/README.md") +gawk -i inplace -v st="$lead" -v et="$tail" -v repl="$whats_new" ' + $0 == st{del=1} $0 == et{$0 = repl; del=0} !del' "$release_body_path" + +### Changes +lead='^$' +tail='^$' sed -i "/$lead/,/$tail/{ /$lead/{p; r $tmplog }; /$tail/p; d }" "$release_body_path"