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: 71d04fdb0054f5a9ced6c246dc346d2b9c39f9bf115894805cbd1eb9411c7442
4
- data.tar.gz: 59c54357c8495e8e505228d7eb2a65401505704ad208eb553124f637a5eb00f8
3
+ metadata.gz: a64173c9e70060c2641b5022f266c5ef5af43fb56ba4bdb2e9453079e14ec2c0
4
+ data.tar.gz: 2df9974ae895cff4d0a9a1c2c4acae81a1e6cdbc0f062edeb37f4d4ac7f7e782
5
5
  SHA512:
6
- metadata.gz: 2251a5f5cb89a617fcae72eea174736f8df978aa73907b89e7c8a5e4176e2cec9f9ad3e48a12b09f9111cf7ef3a0ede6692fbb1f70b0ef6577e72864b4717875
7
- data.tar.gz: 802c59f3396270a1ccc072a13c202fe21b6899e3fe3746d95f1b1cce619fddef878c1f255089e72c21595d0fa06ebae4b2da0f28ea4393675b01fb6528bb006a
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
- print "\rRate Limit Exceeded, Will retry in #{minutes} min #{seconds} sec"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tractive
4
- VERSION = "1.0.16"
4
+ VERSION = "1.0.19"
5
5
  end
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.16
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-24 00:00:00.000000000 Z
11
+ date: 2022-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql