all_my_circuits 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/all_my_circuits.gemspec +1 -1
- data/lib/all_my_circuits/breaker.rb +2 -2
- data/lib/all_my_circuits/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32a961192d3afc78f26176ee3c904a4cadde5963
|
4
|
+
data.tar.gz: e3c3afd7c0e2530aca4d584df7de97a1fad432f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12c35e03bbe5c86bf8b483f7105ff8dcbdfc27b996bb157c62bf0156b911cdc2a1d7917bf56d6e5eae4689373a4be87b3e03421ad4a0ad2f7bf058c15aae6677
|
7
|
+
data.tar.gz: b333a573afc52d35bf61021ee8ba18aaa715ec8c49cab17c25bcf01fbfddd693fbe355c353b5f7fdfc45cb4b522c39ef9c62f9648a3041a2094d48bf13cf15c1
|
data/all_my_circuits.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "concurrent-ruby", "~> 0.
|
22
|
+
spec.add_dependency "concurrent-ruby", "~> 1.0.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.9"
|
25
25
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'concurrent/atomics'
|
2
2
|
require "thread"
|
3
3
|
|
4
4
|
module AllMyCircuits
|
@@ -71,7 +71,7 @@ module AllMyCircuits
|
|
71
71
|
@notifier = notifier
|
72
72
|
|
73
73
|
@state_lock = Mutex.new
|
74
|
-
@request_number = Concurrent::
|
74
|
+
@request_number = Concurrent::AtomicReference.new(0)
|
75
75
|
@last_open_or_probed = nil
|
76
76
|
@opened_at_request_number = 0
|
77
77
|
@clock = clock
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: all_my_circuits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vlad Yarotsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.4.
|
137
|
+
rubygems_version: 2.4.8
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Circuit Breaker library with support for rolling-window absolute/percentage
|