isolator 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +5 -1
- data/lib/isolator/version.rb +1 -1
- data/lib/isolator.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e990fc085af8e46328e3738fbb03045ea0ab4ed5d8d8d03541bb3cfd3fbea30
|
|
4
|
+
data.tar.gz: 70c6db99fcd940ce42d7d7dd1d0147f5f1773de6fdc8cbdb6a60300131107373
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a79e5e0ce491e8cdc54c474d2f239d597d0a9fbec3fcfa8028b9625eab4d8c7b1300d51c6cc3e3c17e09a0f1ab439052af868633b68c861defb2862684ba6bb4
|
|
7
|
+
data.tar.gz: cd5d43b4e991e00deae27b6db429416c12cb4fb6dae68353a9c4b19f5698d907354ee142f2b395d72f659db93c20ccbfd58f6880cad601591141725011e365ed
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Change log
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.2.2 (2018-03-28)
|
|
4
|
+
|
|
5
|
+
- [Fix [#14](https://github.com/palkan/isolator/issues/14)] Always use default value for threshold. ([@palkan][])
|
|
6
|
+
|
|
7
|
+
Previously, in multi-threaded env the default value were missing (and led to `KeyError`).
|
|
4
8
|
|
|
5
9
|
## 0.2.1 (2018-02-24)
|
|
6
10
|
|
data/lib/isolator/version.rb
CHANGED
data/lib/isolator.rb
CHANGED
|
@@ -64,7 +64,7 @@ module Isolator
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
def transactions_threshold
|
|
67
|
-
Thread.current.fetch(:isolator_threshold)
|
|
67
|
+
Thread.current.fetch(:isolator_threshold, 1)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def transactions_threshold=(val)
|
|
@@ -106,8 +106,6 @@ module Isolator
|
|
|
106
106
|
include Isolator::Isolate
|
|
107
107
|
include Isolator::Callbacks
|
|
108
108
|
end
|
|
109
|
-
|
|
110
|
-
self.transactions_threshold = 1
|
|
111
109
|
end
|
|
112
110
|
|
|
113
111
|
require "isolator/orm_adapters"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isolator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Dementyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sniffer
|