zz-export-pull-requests 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/epr +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b50ba3a1501bbe7be4a6c373d5ad252882cd68e1cdfc9750fb3c33be247e61cb
|
4
|
+
data.tar.gz: 34a39672fda231758549b9d73c874a3d82b0654f0de14e7d62435b4f4a56facb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8970282ec36f3891e1d03911139433289877e192bcee1aa90e4315577a0bf7f1fa8f4d7199221e2b54b049493f6b18040862ee896629536ee6231d6c803377b
|
7
|
+
data.tar.gz: b105e4e5c0180ad62ed8628df56d0b194a0f3682d7631e228661d35e1c9fc25633d2cb72860460c7551953a5fc53777f1c594ad1eb085688615c6967a1bdfca6
|
data/bin/epr
CHANGED
@@ -10,7 +10,7 @@ require "github_api"
|
|
10
10
|
require "gitlab"
|
11
11
|
require "bitbucket_rest_api"
|
12
12
|
|
13
|
-
VERSION = "0.3.
|
13
|
+
VERSION = "0.3.17"
|
14
14
|
SERVICES = %w[github gitlab bitbucket]
|
15
15
|
GIT_CONFIGS = %w[epr.token github.oauth-token]
|
16
16
|
|
@@ -95,12 +95,11 @@ def sleep_if_limit_reached
|
|
95
95
|
executions = $redis.get("bb-executed").to_i
|
96
96
|
if executions >= BITBUCKET_RATE_LIMIT
|
97
97
|
now = Time.now
|
98
|
-
now_formatted = now.strftime("%I:%M:%S")
|
99
98
|
one_hour = 1*60*60
|
100
99
|
later = now + one_hour
|
101
100
|
later_formatted = later.strftime("%I:%M:%S")
|
102
101
|
if ENV['SHOW_LOGS']
|
103
|
-
$redisLogger.info("
|
102
|
+
$redisLogger.info("Rate limit reached. Will pause for an hour and will resume at #{later_formatted}.")
|
104
103
|
end
|
105
104
|
sleep one_hour
|
106
105
|
$redis.set("bb-executed", 0)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zz-export-pull-requests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zulhilmi Zainudin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github_api
|