threadlock 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/threadlock.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5572ec2bfc12ce846c7ebedc66bd8e072dd7d96f
|
4
|
+
data.tar.gz: 49bae1342466bab33abec0830b028bb10cf1a4cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cbc19433166cb2688d8fb2b5562bbde9a844371e0c477692a1fbeaf232872c8092c2847ce3d75698ffb0dc11d80897d3cb65bf32519efddd94c17c0f4fb5bbe
|
7
|
+
data.tar.gz: b9796a59a4b08e96f3534cc56320c716ae39cf2ca6e028068d7de0a3898e198af7b109d8c2a569b6dab275aef26d82d9c560d2f07d9cd19a39f58250b74d6e80
|
data/lib/threadlock.rb
CHANGED
@@ -12,7 +12,13 @@ def threadlock(*funcs, lock: :@___threadlock___)
|
|
12
12
|
.gsub(/\-/, "_sUB")
|
13
13
|
.gsub(/\*/, "_mULT")
|
14
14
|
.gsub(/\//, "_dIV")
|
15
|
-
.gsub(
|
15
|
+
.gsub(/\%/, "_mOD")
|
16
|
+
.gsub(/\[/, "_bRACKO")
|
17
|
+
.gsub(/\]/, "_bRACKC")
|
18
|
+
.gsub(/\@/, "_aTTR")
|
19
|
+
.gsub(/\&/, "_aMPER")
|
20
|
+
.gsub(/\|/, "_pIPE")
|
21
|
+
.gsub(/\^/, "_cARET")
|
16
22
|
.gsub(/^/, "___")
|
17
23
|
|
18
24
|
class_eval\
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: threadlock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe McIlvain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "Use the threadlock function in your class definition to automatically
|
14
14
|
run instance methods inside of an instance-wide re-entrant lock (Monitor). All
|