hermes_messenger_of_the_gods 3.0.0 → 3.0.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66cf9c906ee1778e68e8064e13f77c5157284335c7c1f25bb1cf9328b151a1a0
|
4
|
+
data.tar.gz: 55c3008d04eb24472e3c574938140d7db78e68fa8960acc1f5198dc331ffe0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz: '
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08844c25373078afe15fca74c7aa7129c46708c62c58865527617de9bf63ef972ab26ae92a14f62363764be2678a924a611be26432216c674190d26340c07cae'
|
7
|
+
data.tar.gz: 2dd3a36e8091eec825c3ae2ddc2843e3b2658cd192c8e1773b0429868a69cb6c969f0c9aa2011670dc9503ee4b6320a62871b2663b319eef2901329a07ca637e
|
data/.github/workflows/test.yml
CHANGED
@@ -7,16 +7,16 @@ jobs:
|
|
7
7
|
strategy:
|
8
8
|
fail-fast: false
|
9
9
|
matrix:
|
10
|
-
rubyVersion: ["2.7.8", "3.0.4", "3.1.2", "3.2.2"]
|
10
|
+
rubyVersion: ["2.7.8", "3.0.4", "3.1.2", "3.2.2", "3.3.7", "3.4.1"]
|
11
11
|
runs-on: ubuntu-latest
|
12
12
|
steps:
|
13
13
|
- name: Install SSH Key
|
14
|
-
uses: webfactory/ssh-agent@v0.
|
14
|
+
uses: webfactory/ssh-agent@v0.9.0
|
15
15
|
with:
|
16
16
|
ssh-private-key: ${{ secrets.GH_ACTIONS_SSH_PRIVATE_KEY }}
|
17
17
|
|
18
18
|
- name: Pull
|
19
|
-
uses: actions/checkout@
|
19
|
+
uses: actions/checkout@v4
|
20
20
|
with:
|
21
21
|
path: ${{ github.workspace }}/src/github.com/${{ github.repository }}
|
22
22
|
- uses: ruby/setup-ruby@v1
|
@@ -100,10 +100,11 @@ module HermesMessengerOfTheGods
|
|
100
100
|
def work_off(&blk)
|
101
101
|
poller.before_request do |_stats|
|
102
102
|
throw :stop_polling if shutting_down?
|
103
|
+
end
|
103
104
|
|
104
|
-
|
105
|
-
|
105
|
+
poller.after_empty_receive do |_stats|
|
106
106
|
self.received_work_in_last_check = false
|
107
|
+
self.class.set_deletion_cost(0)
|
107
108
|
end
|
108
109
|
|
109
110
|
poller.poll(poll_options) do |messages, _stats|
|
@@ -177,17 +178,6 @@ module HermesMessengerOfTheGods
|
|
177
178
|
queue.reload.data
|
178
179
|
end
|
179
180
|
|
180
|
-
def has_pending_work?
|
181
|
-
data = queue_data.attributes
|
182
|
-
|
183
|
-
approximate_pending_messages = data['ApproximateNumberOfMessages'].to_i -
|
184
|
-
data['ApproximateNumberOfMessagesNotVisible'].to_i -
|
185
|
-
data['ApproximateNumberOfMessagesDelayed'].to_i
|
186
|
-
|
187
|
-
# Just in case the math is off
|
188
|
-
approximate_pending_messages.positive?
|
189
|
-
end
|
190
|
-
|
191
181
|
def to_transmit_payload(message, raw_message, dispatch_options = {})
|
192
182
|
send_opts = fetch_option(:send_options, raw_message) || {}
|
193
183
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermes_messenger_of_the_gods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Malinconico
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2025-02-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
- !ruby/object:Gem::Version
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
|
-
rubygems_version: 3.3.
|
257
|
+
rubygems_version: 3.3.12
|
258
258
|
signing_key:
|
259
259
|
specification_version: 4
|
260
260
|
summary: Create and receive messages like a god!
|