Skip to content

Commit

Permalink
Bump version to 5.81.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 31, 2024
1 parent 383d597 commit dfa946e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
=== master
=== 5.81.0 (2024-06-01)

* Fix ignored block warnings in a couple plugin apply methods on Ruby 3.4 (jeremyevans)

* Skip Ruby internal caller locations when searching for caller locations in caller_logging and provenance extensions (jeremyevans)

Expand Down
31 changes: 31 additions & 0 deletions doc/release_notes/5.81.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
= New Features

* A temporarily_release_connection Database extension has been added,
designed for multithreaded transactional testing.

This allows one thread to start a transaction, and then release
the connection back for usage by the connection pool, so that
other threads can operate on the connection object safely inside
the transaction. This requires the connection pool be limited
to a single connection, to ensure that the released connection
can be reacquired. It's not perfect, because if the connection
is disconnected and removed from the pool while temporarily
released, there is no way to handle that situation correctly.
Example:

DB.transaction(rollback: :always, auto_savepoint: true) do |conn|
DB.temporarily_release_connection(conn) do
# Other threads can operate on connection safely inside
# the transaction
yield
end
end

= Other Improvements

* In the caller_logging and provenance extensions, Ruby internal
caller locations are skipped when trying to locate the appropriate
caller line to include.

* A couple ignored block warnings in plugin apply methods have been
fixed on Ruby 3.4.
2 changes: 1 addition & 1 deletion lib/sequel/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Sequel

# The minor version of Sequel. Bumped for every non-patch level
# release, generally around once a month.
MINOR = 80
MINOR = 81

# The tiny version of Sequel. Usually 0, only bumped for bugfix
# releases that fix regressions from previous versions.
Expand Down

0 comments on commit dfa946e

Please sign in to comment.