umbrellio-sequel-plugins 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a56d6ec4ec8867a8f8f2d6721f240519d298e0fbcf0574b6f99eebc73bf5edad
4
- data.tar.gz: d47dd520afe94e7cf2fcb7314305d48399499054d6bc7da4cd1ddb7ed525f1c4
3
+ metadata.gz: 2bf5561f5521d95035e4c2c6eff801b27e2115e5e7b0dd72ea29d3a1585ba79d
4
+ data.tar.gz: 64f7d874e0acb664df12bd938714a90da117354b5c8ef72ed636f4d509711983
5
5
  SHA512:
6
- metadata.gz: 5b5ee860f246e355526d33a852b11273e23caae0e03a02ae298ab4af33e21a3cfb72a231ae93b5a80e76232222041ed9e7e256a17401294887613ca7e3377f1b
7
- data.tar.gz: 4ae1b3566ab9471fa4b1962fece7fd9bf3c8f6b34a7af3946dbbe9d2060f6da8c8b2d04f838e126fbbe353c0ad33b86b0d357b08b4e2cdc04322b4b232af84f3
6
+ metadata.gz: 61c1c97fd1e348a891a4e705e001fb7e9af1542eed57e7c0743dfc515152b605f0204285637f97e5d9adce264a4b1e32326b9df7b09e8c863077cdbb635d2c68
7
+ data.tar.gz: 024655212c2613e135764b680f0be5623a8012f764b208ca07ab1e4ecb4d66c5777bd9574804bb3fc9de8e0f09343b21b6726b53cf4a1576cdbe658c1f20c5a6
@@ -5,12 +5,12 @@ module Sequel::Plugins::WithLock
5
5
  # Execute block with lock
6
6
  #
7
7
  # @yield
8
- def with_lock
8
+ def with_lock(savepoint: true)
9
9
  return yield if @__locked
10
10
  @__locked = true
11
11
 
12
12
  begin
13
- db.transaction do
13
+ db.transaction(savepoint: savepoint) do
14
14
  lock!
15
15
  yield
16
16
  end
@@ -4,7 +4,7 @@ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- gem_version = "0.5.0"
7
+ gem_version = "0.5.1"
8
8
  release_version = "#{gem_version}.#{ENV["GITHUB_RUN_NUMBER"]}" if ENV["GITHUB_ACTIONS"]
9
9
 
10
10
  spec.name = "umbrellio-sequel-plugins"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umbrellio-sequel-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nulldef
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-04 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
@@ -212,7 +212,7 @@ homepage: https://github.com/umbrellio/umbrellio-sequel-plugins
212
212
  licenses:
213
213
  - MIT
214
214
  metadata: {}
215
- post_install_message:
215
+ post_install_message:
216
216
  rdoc_options: []
217
217
  require_paths:
218
218
  - lib
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  requirements: []
230
230
  rubygems_version: 3.1.2
231
- signing_key:
231
+ signing_key:
232
232
  specification_version: 4
233
233
  summary: Sequel plugins
234
234
  test_files: []