rookout 0.1.46 → 0.1.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rookout/augs/aug_factory.rb +4 -4
- data/lib/rookout/commit.rb +1 -1
- data/lib/rookout/config.rb +0 -2
- data/lib/rookout/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b33fdba32a87693bf2468a34dff9c911de6ba8188424c82f00733589ac76deb
|
4
|
+
data.tar.gz: bd7cabaa4a8a79820f5d2b3dadf7ac8cb6e98dd2db834e9e7290af66aab32ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b488bc42bb1f2b96218c9b703a524f53caf584f096ba180b41cbb5b07ea196045d029bf83a588edfd0d2e1bf21cd97267ad6da19af709eeaa2e241624e8c68af
|
7
|
+
data.tar.gz: cff6c76cb72cff0b3114a81f3939c68c480be5d0df69cd656122838c289f70bb5847f350ab5955243ffce5507471688b6d147c69f5e9d16639c75640bb548b17
|
@@ -67,7 +67,7 @@ module Rookout
|
|
67
67
|
def create_limits_manager configuration
|
68
68
|
limiters = []
|
69
69
|
if global_rate_limiter.nil?
|
70
|
-
rate_limit = parse_rate_limit configuration["rateLimit"], configuration["rateLimitModifier"], 200, 5000
|
70
|
+
rate_limit = parse_rate_limit configuration["rateLimit"], configuration["rateLimitModifier"], 200, 5000
|
71
71
|
unless rate_limit.nil?
|
72
72
|
limiters.append AugRateLimiter.new(*rate_limit)
|
73
73
|
end
|
@@ -82,7 +82,7 @@ module Rookout
|
|
82
82
|
if @global_rate_limiter.nil? && Rookout::Config.global_rate_limit != ""
|
83
83
|
begin
|
84
84
|
rate_limit = parse_rate_limit Rookout::Config.global_rate_limit,
|
85
|
-
"0", 0, 0
|
85
|
+
"0", 0, 0
|
86
86
|
if rate_limit.nil?
|
87
87
|
raise Exceptions::RookInvalidRateLimitConfiguration, Rookout::Config.global_rate_limit
|
88
88
|
end
|
@@ -101,7 +101,7 @@ module Rookout
|
|
101
101
|
@global_rate_limiter
|
102
102
|
end
|
103
103
|
|
104
|
-
def parse_rate_limit config, modifier_config, default_quota, default_window
|
104
|
+
def parse_rate_limit config, modifier_config, default_quota, default_window
|
105
105
|
window_quota = default_quota
|
106
106
|
window_size = default_window
|
107
107
|
|
@@ -129,7 +129,7 @@ module Rookout
|
|
129
129
|
raise Exceptions::RookInvalidRateLimitConfiguration, config
|
130
130
|
end
|
131
131
|
|
132
|
-
[window_quota_ns
|
132
|
+
[window_quota_ns, window_size_ns, rate_limit_modifier]
|
133
133
|
end
|
134
134
|
end
|
135
135
|
end
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/config.rb
CHANGED
@@ -81,13 +81,11 @@ module Rookout
|
|
81
81
|
attr_accessor :global_rate_limit_quota
|
82
82
|
attr_accessor :global_rate_limit_window_size
|
83
83
|
attr_accessor :global_rate_limit
|
84
|
-
attr_accessor :global_rate_limit_multiplier
|
85
84
|
attr_accessor :using_global_rate_limiter
|
86
85
|
|
87
86
|
Rookout::Config.global_rate_limit_quota = ""
|
88
87
|
Rookout::Config.global_rate_limit_window_size = ""
|
89
88
|
Rookout::Config.global_rate_limit = ""
|
90
|
-
Rookout::Config.global_rate_limit_multiplier = 1
|
91
89
|
Rookout::Config.using_global_rate_limiter = false
|
92
90
|
|
93
91
|
def update_config configuration
|
data/lib/rookout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rookout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liran Haimovitch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
75
|
+
version: 3.21.7
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3.
|
82
|
+
version: 3.21.7
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: google-style
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|