orbit_activities 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -1
- data/lib/orbit_activities.rb +3 -0
- data/lib/orbit_activities/http.rb +6 -0
- data/lib/orbit_activities/version.rb +1 -1
- 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: f1a41acb3a0bbbe16e86bf6b1c0d369207120f15085fb178015733f6cba8b353
|
4
|
+
data.tar.gz: d68d8d88b2d610b6f1b3e780ef52aa05381adbf087472479b10f87dad099c133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f8b24a3552058ccd69b4d74ca073231b81803a50e742cd55c2bcded567169653031cf9f456ee2365791b63643d10ac64348516184182097164e89120a31d6d4
|
7
|
+
data.tar.gz: f04486582e0457c0f636a27224e9fbfe061a6748203bf07522ea9d0ff8a03813dbb59fe382b0ea21173becb4b43fea8072e8935436be4b4390e2900b786d3cf0
|
data/Gemfile.lock
CHANGED
@@ -10,7 +10,7 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.
|
13
|
+
addressable (2.8.0)
|
14
14
|
public_suffix (>= 2.0.2, < 5.0)
|
15
15
|
ast (2.4.2)
|
16
16
|
byebug (11.1.3)
|
@@ -80,6 +80,7 @@ GEM
|
|
80
80
|
|
81
81
|
PLATFORMS
|
82
82
|
arm64-darwin-20
|
83
|
+
x86_64-linux
|
83
84
|
|
84
85
|
DEPENDENCIES
|
85
86
|
byebug
|
data/lib/orbit_activities.rb
CHANGED
@@ -21,6 +21,12 @@ module OrbitActivities
|
|
21
21
|
|
22
22
|
response = http.request(req)
|
23
23
|
|
24
|
+
if response.class == Net::HTTPTooManyRequests
|
25
|
+
puts "Reached rate limitation in API, retrying in 60 seconds..."
|
26
|
+
sleep(60)
|
27
|
+
response = http.request(req)
|
28
|
+
end
|
29
|
+
|
24
30
|
validate_payload(response.body)
|
25
31
|
end
|
26
32
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orbit_activities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Orbit DevRel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: http
|