zz-export-pull-requests 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/epr +2 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ad4880954085a339cda33570aa1e68c8f31d80517a75fc9aa9136316a42f5a4
4
- data.tar.gz: 3ac2c525c6d7848caa012d88f280735fa43e0b05f55f663424580466d6ac1d27
3
+ metadata.gz: b50ba3a1501bbe7be4a6c373d5ad252882cd68e1cdfc9750fb3c33be247e61cb
4
+ data.tar.gz: 34a39672fda231758549b9d73c874a3d82b0654f0de14e7d62435b4f4a56facb
5
5
  SHA512:
6
- metadata.gz: 71b1f606322e4aee75428468f20c2895c46aba7fe089cde0a2ce9984f8823dc432302ea2e79dd4652a607d940a106828b28b521465c30a7e608de5e25d8ac301
7
- data.tar.gz: c7a7cec7f092c6d5e5751cf56d774d84f4eb1869c3ec3542919df497777cb8d229fb303ffcb510de99bdf0307adf567eff796f9154f1554663fa5ea1671eb4ce
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.16"
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("#{now_formatted} - Rate limit reached. Will pause for an hour and will resume at #{later_formatted}.")
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.16
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-27 00:00:00.000000000 Z
11
+ date: 2019-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github_api