pg_advisory_lock 0.1.1 → 0.2.0

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: 2fe66a6a9bafd02afd8fd643bf1792ab0b9cadfc74f076a30e25873a885d5ca7
4
- data.tar.gz: 6d65a6c45a2f948dc4ad6b46ebfa139787534dd992f0268c7ed1414c008ae31a
3
+ metadata.gz: 466169c01607df8b0c40594fa296e1fed78308d06a5512bab01e12cbafe59c2d
4
+ data.tar.gz: 55fb38aafaaad466d4ef287dcb5ae9b2ad17bdd2e22cfc8ddeb6ca75e7d036e4
5
5
  SHA512:
6
- metadata.gz: 967d5773b005b24e609cf8b415ae6d51d91a12be020e20eb74c63036da765e0182911f83d2fb86511bc009152c0fb4457ee83a2fbad95f517914ed17ab659dee
7
- data.tar.gz: d8dc937754f2316cfd65002147f562a1778eba09cbf7e4e9659c1159bef12c758d0bdfc2a54a429aba7146d69b0efc7ec27a4b16c886c62423283e8e01fcfe89
6
+ metadata.gz: cb2a78d382278811c09863faee99aca67c7fffdfb9f579b9ea96f76c3a895888b598c1bbd16c2ea5e57cbd409f6d36d60dc8b185b00c7861a83c3ac98dfe1d75
7
+ data.tar.gz: 8fa4803b480af658d61c4c86441e7f0e0886f573a373ab182ed2c3b5bf41f195a9f1e4d81bdecadd1881655feb28eed39b1dd84f0bb8386dfcf2c15033f72fae
@@ -40,7 +40,7 @@ module PgAdvisoryLock
40
40
  # block must be passed if transaction argument is false.
41
41
  # @raise [ArgumentError] when lock name is invalid.
42
42
  # @return yield
43
- def with_lock(name, transaction: false, shared: false, id: nil, &block)
43
+ def with_lock(name, transaction: true, shared: false, id: nil, &block)
44
44
  new(name, transaction: transaction, shared: shared, id: id).lock(&block)
45
45
  end
46
46
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgAdvisoryLock
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_advisory_lock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Denis Talakevich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-24 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord