tractive 1.0.16 → 1.0.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a64173c9e70060c2641b5022f266c5ef5af43fb56ba4bdb2e9453079e14ec2c0
|
4
|
+
data.tar.gz: 2df9974ae895cff4d0a9a1c2c4acae81a1e6cdbc0f062edeb37f4d4ac7f7e782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51169ab9fe1e28040eb2d6cfe5e311b7c8c34a2c5d8d8c754724ee352974d523ef1f9602e2378f3269cc55fea599c4ee3ccae1770fb02b810e9ae7735c923a23
|
7
|
+
data.tar.gz: abb9a23e369b87413212238c60e28fb5ea7fb680e844e1abd53d38af3e87bc28cc744bfc2a7fa2efebbfc1eadf72734d4e88383790adc433f389a99f0667ad89
|
@@ -15,14 +15,14 @@ module Http
|
|
15
15
|
retries += 1
|
16
16
|
RestClient::Request.execute(@args, &block)
|
17
17
|
rescue RestClient::Forbidden => e
|
18
|
-
retry_after = e.http_headers[:x_ratelimit_reset].to_i - Time.now.to_i
|
18
|
+
retry_after = e.http_headers[:x_ratelimit_reset].to_i - Time.now.to_i + 5
|
19
19
|
raise e if retry_after.negative? || retries > @max_retries
|
20
20
|
|
21
21
|
while retry_after.positive?
|
22
22
|
minutes = retry_after / 60
|
23
23
|
seconds = retry_after % 60
|
24
24
|
|
25
|
-
|
25
|
+
$logger.info "Rate Limit Exceeded, Will retry in #{minutes} min #{seconds} sec"
|
26
26
|
sleep(1)
|
27
27
|
|
28
28
|
retry_after = e.http_headers[:x_ratelimit_reset].to_i - Time.now.to_i
|
@@ -104,7 +104,7 @@ module Migrator
|
|
104
104
|
|
105
105
|
keywords = ticket[:keywords]&.split(",") || []
|
106
106
|
keywords.each do |keyword|
|
107
|
-
badges.add(@labels_cfg.fetch("keywords", {})[keyword.strip])
|
107
|
+
badges.add(@labels_cfg.fetch("keywords", {})[keyword.strip.gsub(" ", "_")])
|
108
108
|
end
|
109
109
|
|
110
110
|
# If the field is not set, it will be nil and generate an unprocessable json
|
data/lib/tractive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tractive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|