diff --git a/CHANGELOG.md b/CHANGELOG.md index e563e1a..fc38067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index 4876d40..914add7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -228,6 +228,7 @@ PLATFORMS arm64-darwin-22 arm64-darwin-23 arm64-darwin-24 + arm64-darwin-25 x86_64-darwin-22 x86_64-linux diff --git a/gemfiles/rails_7_2.gemfile.lock b/gemfiles/rails_7_2.gemfile.lock index 1ce7743..e9c2f93 100644 --- a/gemfiles/rails_7_2.gemfile.lock +++ b/gemfiles/rails_7_2.gemfile.lock @@ -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) diff --git a/gemfiles/rails_8_0.gemfile.lock b/gemfiles/rails_8_0.gemfile.lock index 4fb1058..4a65efc 100644 --- a/gemfiles/rails_8_0.gemfile.lock +++ b/gemfiles/rails_8_0.gemfile.lock @@ -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) diff --git a/gemfiles/rails_8_1.gemfile.lock b/gemfiles/rails_8_1.gemfile.lock index f095fc4..2a4a08b 100644 --- a/gemfiles/rails_8_1.gemfile.lock +++ b/gemfiles/rails_8_1.gemfile.lock @@ -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) diff --git a/lib/with_transactional_lock/version.rb b/lib/with_transactional_lock/version.rb index b6e5078..6e8322e 100644 --- a/lib/with_transactional_lock/version.rb +++ b/lib/with_transactional_lock/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module WithTransactionalLock - VERSION = "3.2.0" + VERSION = "3.2.1" end diff --git a/rbi/with_transactional_lock.rbi b/rbi/with_transactional_lock.rbi new file mode 100644 index 0000000..8772b3d --- /dev/null +++ b/rbi/with_transactional_lock.rbi @@ -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))) + .returns(T.type_parameter(:U)) + end + def with_transactional_lock(lock_name, &block); end +end diff --git a/with_transactional_lock.gemspec b/with_transactional_lock.gemspec index 0eeb77e..558bfe3 100644 --- a/with_transactional_lock.gemspec +++ b/with_transactional_lock.gemspec @@ -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']