Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project aims to adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.2.1]

### Added

- Added support for Sorbet via an RBI file

## [3.2.0]

### Added
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
with_transactional_lock (3.2.0)
with_transactional_lock (3.2.1)
activerecord (>= 7.2, < 8.2)
railties (>= 7.2, < 8.2)

Expand Down Expand Up @@ -228,6 +228,7 @@ PLATFORMS
arm64-darwin-22
arm64-darwin-23
arm64-darwin-24
arm64-darwin-25
Copy link
Copy Markdown
Author

@jacamera jacamera Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we want this. Got added when I ran bundle install after updating the VERSION constant.

x86_64-darwin-22
x86_64-linux

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7_2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
with_transactional_lock (3.2.0)
with_transactional_lock (3.2.1)
activerecord (>= 7.2, < 8.2)
railties (>= 7.2, < 8.2)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8_0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
with_transactional_lock (3.2.0)
with_transactional_lock (3.2.1)
activerecord (>= 7.2, < 8.2)
railties (>= 7.2, < 8.2)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_8_1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
with_transactional_lock (3.2.0)
with_transactional_lock (3.2.1)
activerecord (>= 7.2, < 8.2)
railties (>= 7.2, < 8.2)

Expand Down
2 changes: 1 addition & 1 deletion lib/with_transactional_lock/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module WithTransactionalLock
VERSION = "3.2.0"
VERSION = "3.2.1"
end
11 changes: 11 additions & 0 deletions rbi/with_transactional_lock.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# typed: strong
# frozen_string_literal: true

module WithTransactionalLock::Mixin::ClassMethods
sig do
type_parameters(:U)
.params(lock_name: String, block: T.proc.returns(T.type_parameter(:U)))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the lock_name could be anything that gets passed into this hashing function, but I would guess+hope that it's a string the vast majority of the time.

.returns(T.type_parameter(:U))
end
def with_transactional_lock(lock_name, &block); end
end
2 changes: 1 addition & 1 deletion with_transactional_lock.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.metadata['allowed_push_host'] = 'https://rubygems.org'
s.metadata['rubygems_mfa_required'] = 'true' # in case we ever use rubygems

s.files = Dir["lib/**/*", "LICENSE", "Rakefile", "README.md"]
s.files = Dir["lib/**/*", "rbi/**/*", "LICENSE", "Rakefile", "README.md"]

rails_constraints = ['>= 7.2', '< 8.2']

Expand Down
Loading