casbin-ruby 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/casbin-ruby/util/thread_lock.rb +4 -1
- data/lib/casbin-ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432f8bf4cd2d4ff1fad9a35f611ecc47db212177d88939415cafac07913cabd3
|
4
|
+
data.tar.gz: bb0284c6049cae5551fb46943abc3308a21ff10fa7a57c0bdebcb2be92dc02cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51625e08d8433a2a3d43c71a62f5fc08c853dc56665a694627b90d348aaecad20ffbe9e24db44144cafc204df234ddce33c97073d1fa033b90bc31b8aa57031
|
7
|
+
data.tar.gz: 9ca251806e1b6944b2fc13ae028edbf28c66c1481e0ec5f5fe3d24e305721eba30b55879c667a0d2c16396963dea01cfd59251a86c6163cfdc0c46842df5a6c7
|
@@ -1,12 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'singleton'
|
4
|
+
require 'forwardable'
|
4
5
|
|
5
6
|
class ThreadLock
|
6
7
|
include Singleton
|
7
8
|
|
8
9
|
class << self
|
9
|
-
|
10
|
+
extend Forwardable
|
11
|
+
|
12
|
+
def_delegators :instance, :thread=, :lock?
|
10
13
|
end
|
11
14
|
|
12
15
|
attr_accessor :thread
|
data/lib/casbin-ruby/version.rb
CHANGED