prosody 0.2.1 → 0.4.0
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 +4 -4
- data/.release-please-manifest.json +1 -1
- data/ARCHITECTURE.md +12 -2
- data/CHANGELOG.md +20 -0
- data/Cargo.lock +586 -450
- data/Cargo.toml +6 -6
- data/README.md +211 -20
- data/Rakefile +11 -1
- data/examples/keyed_state.rb +58 -0
- data/examples/keyed_state.rbs +18 -0
- data/examples/keyed_state_windowing.rb +47 -0
- data/examples/keyed_state_windowing.rbs +16 -0
- data/ext/prosody/Cargo.toml +1 -1
- data/ext/prosody/src/client/config.rs +387 -19
- data/ext/prosody/src/handler/context.rs +146 -5
- data/ext/prosody/src/handler/message.rs +17 -0
- data/ext/prosody/src/handler/mod.rs +4 -2
- data/ext/prosody/src/handler/state.rs +1035 -0
- data/ext/prosody/src/lib.rs +1 -0
- data/lib/prosody/configuration.rb +26 -0
- data/lib/prosody/handler.rb +6 -2
- data/lib/prosody/native_stubs.rb +381 -6
- data/lib/prosody/state.rb +693 -0
- data/lib/prosody/version.rb +1 -1
- data/lib/prosody.rb +5 -0
- data/release-please-config.json +4 -0
- data/sig/configuration.rbs +24 -1
- data/sig/handler.rbs +7 -3
- data/sig/processor.rbs +28 -12
- data/sig/prosody.rbs +11 -6
- data/sig/sentry.rbs +6 -0
- data/sig/state.rbs +272 -0
- data/steep_expectations.yml +47 -0
- data/typecheck/payload_types.rb +43 -0
- data/typecheck/payload_types.rbs +20 -0
- data/typecheck_negative/payload_types.rb +16 -0
- data/typecheck_negative/payload_types.rbs +8 -0
- metadata +24 -11
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prosody
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Griffith
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '2.
|
|
18
|
+
version: '2.42'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '2.
|
|
25
|
+
version: '2.42'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: opentelemetry-api
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '1.
|
|
32
|
+
version: '1.10'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '1.
|
|
39
|
+
version: '1.10'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rb_sys
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -71,42 +71,42 @@ dependencies:
|
|
|
71
71
|
requirements:
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '1.
|
|
74
|
+
version: '1.12'
|
|
75
75
|
type: :development
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - "~>"
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '1.
|
|
81
|
+
version: '1.12'
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: opentelemetry-exporter-otlp
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - "~>"
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0.
|
|
88
|
+
version: '0.34'
|
|
89
89
|
type: :development
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - "~>"
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: '0.
|
|
95
|
+
version: '0.34'
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: sentry-ruby
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: '6.
|
|
102
|
+
version: '6.6'
|
|
103
103
|
type: :development
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '6.
|
|
109
|
+
version: '6.6'
|
|
110
110
|
description: |
|
|
111
111
|
Prosody offers Ruby bindings to the Prosody Kafka client, providing features
|
|
112
112
|
for message production and consumption, including configurable retry
|
|
@@ -132,6 +132,10 @@ files:
|
|
|
132
132
|
- README.md
|
|
133
133
|
- Rakefile
|
|
134
134
|
- docker-compose.yaml
|
|
135
|
+
- examples/keyed_state.rb
|
|
136
|
+
- examples/keyed_state.rbs
|
|
137
|
+
- examples/keyed_state_windowing.rb
|
|
138
|
+
- examples/keyed_state_windowing.rbs
|
|
135
139
|
- ext/prosody/Cargo.toml
|
|
136
140
|
- ext/prosody/extconf.rb
|
|
137
141
|
- ext/prosody/src/admin.rs
|
|
@@ -143,6 +147,7 @@ files:
|
|
|
143
147
|
- ext/prosody/src/handler/context.rs
|
|
144
148
|
- ext/prosody/src/handler/message.rs
|
|
145
149
|
- ext/prosody/src/handler/mod.rs
|
|
150
|
+
- ext/prosody/src/handler/state.rs
|
|
146
151
|
- ext/prosody/src/handler/trigger.rs
|
|
147
152
|
- ext/prosody/src/lib.rs
|
|
148
153
|
- ext/prosody/src/logging.rs
|
|
@@ -159,13 +164,21 @@ files:
|
|
|
159
164
|
- lib/prosody/native_stubs.rb
|
|
160
165
|
- lib/prosody/processor.rb
|
|
161
166
|
- lib/prosody/sentry.rb
|
|
167
|
+
- lib/prosody/state.rb
|
|
162
168
|
- lib/prosody/version.rb
|
|
163
169
|
- release-please-config.json
|
|
164
170
|
- sig/configuration.rbs
|
|
165
171
|
- sig/handler.rbs
|
|
166
172
|
- sig/processor.rbs
|
|
167
173
|
- sig/prosody.rbs
|
|
174
|
+
- sig/sentry.rbs
|
|
175
|
+
- sig/state.rbs
|
|
168
176
|
- sig/version.rbs
|
|
177
|
+
- steep_expectations.yml
|
|
178
|
+
- typecheck/payload_types.rb
|
|
179
|
+
- typecheck/payload_types.rbs
|
|
180
|
+
- typecheck_negative/payload_types.rb
|
|
181
|
+
- typecheck_negative/payload_types.rbs
|
|
169
182
|
homepage: https://github.com/prosody-events/prosody-rb
|
|
170
183
|
licenses:
|
|
171
184
|
- MIT
|