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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6d4b2a947aca843ad8d235f4aa45ec085ce630da23038b61158d814330c1eed
4
- data.tar.gz: c55ab525549e1434fc11d655ba97bb9dbbcadca871233bb37fa6553d0a48b079
3
+ metadata.gz: f1a41acb3a0bbbe16e86bf6b1c0d369207120f15085fb178015733f6cba8b353
4
+ data.tar.gz: d68d8d88b2d610b6f1b3e780ef52aa05381adbf087472479b10f87dad099c133
5
5
  SHA512:
6
- metadata.gz: c393d3604e519836588ddfdde415e3cf8663bf0b16c39de0fd703a634404d9acd06e7d5658e09e6bb454805feb63668916d364ebf0fd3bed86312b562c7087ab
7
- data.tar.gz: 9f568b3ebc2b794a516066f78d1edda8501df96b2760cc109d1853f991b17e9500188418d4c0ba6e69c58b337bec54c9ce14c894c640d9eb70278713e8b84f30
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.7.0)
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
@@ -6,6 +6,9 @@ require_relative "orbit_activities/version"
6
6
  module OrbitActivities
7
7
  loader = Zeitwerk::Loader.new
8
8
  loader.tag = File.basename(__FILE__, ".rb")
9
+ loader.inflector.inflect({
10
+ 'Http' => 'HTTP'
11
+ })
9
12
  loader.push_dir(__dir__)
10
13
  loader.setup
11
14
  end
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OrbitActivities
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
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.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-06-25 00:00:00.000000000 Z
12
+ date: 2021-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: http