isolator 0.2.1 → 0.2.2

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: 9153ccb0db38a3f9f14f9739d594711c64fc022d00218759389849548155001d
4
- data.tar.gz: 99956b468700b2c508f356d5d4bd07d230137f955837b9b83c0fedebf47fbbf6
3
+ metadata.gz: 2e990fc085af8e46328e3738fbb03045ea0ab4ed5d8d8d03541bb3cfd3fbea30
4
+ data.tar.gz: 70c6db99fcd940ce42d7d7dd1d0147f5f1773de6fdc8cbdb6a60300131107373
5
5
  SHA512:
6
- metadata.gz: 5e2175a197ed494e66ac27e250b6e48c193c0becd6690514ee5ad11d4b77646c147188add49ed0a5de3ccbb72d9f44b29f520c7765d58b4a09e5f4e564ee264c
7
- data.tar.gz: e705fa7c0de03159198028b2d4b4bec5e8f2584daf64f0747b2088bab45f49ff4b77e4f1782eca2bf6e4c4bb7d44969b59732e1f51992aa9f51bae5f0c8f8489
6
+ metadata.gz: a79e5e0ce491e8cdc54c474d2f239d597d0a9fbec3fcfa8028b9625eab4d8c7b1300d51c6cc3e3c17e09a0f1ab439052af868633b68c861defb2862684ba6bb4
7
+ data.tar.gz: cd5d43b4e991e00deae27b6db429416c12cb4fb6dae68353a9c4b19f5698d907354ee142f2b395d72f659db93c20ccbfd58f6880cad601591141725011e365ed
data/.rubocop.yml CHANGED
@@ -25,6 +25,9 @@ Rails:
25
25
  Bundler/OrderedGems:
26
26
  Enabled: false
27
27
 
28
+ Naming/UncommunicativeMethodParamName:
29
+ Enabled: false
30
+
28
31
  Style/SymbolArray:
29
32
  Enabled: false
30
33
 
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change log
2
2
 
3
- ## master
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isolator
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
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.1
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-02-24 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sniffer