condux 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d96252792bfea89971c379336ee9130cf0d24c9af25d5c5aaf83929f59a40d72
4
+ data.tar.gz: 69a3d64348e5c737c8dc0e44be1c0ea3c9d61ac0b3d0e4c57442165800307b9e
5
+ SHA512:
6
+ metadata.gz: 1717a671675f73d39d27199f0b3ac868d8cf138df29a883de9270bdd6014541bb142bfc449188270e0b3b6822264f14fb93565f7b884a3fe1e0fae2a1c3b33b1
7
+ data.tar.gz: ffa1f35ec30917a7beab4f1466595c1052432087c30fce85c3280b729f4b02add568b0521c7ce3d6dca396990c0b2d01aa9a574bb5b43c7724152f44ebb4e76a
data/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Condux SDK for Ruby
2
+
3
+ Report errors from a Ruby app to a Condux relay. Emits the Sentry "store" wire shape, so the relay
4
+ normalizes it exactly like an official Sentry SDK — point it at a project DSN and it works.
5
+
6
+ Delivery is resilient (429 / 5xx / network failures retry with backoff, honoring `Retry-After`) and
7
+ **never raises** — a failed send returns a `SendResult`, it does not crash the caller.
8
+
9
+ ## Usage
10
+
11
+ ```ruby
12
+ require "condux"
13
+
14
+ Condux.init(
15
+ dsn: "https://<key>@ingest.condux.ai/<projectId>",
16
+ environment: "production",
17
+ release: "1.4.2",
18
+ )
19
+
20
+ begin
21
+ do_work
22
+ rescue => e
23
+ Condux.capture_exception(e) # captures the exception's backtrace
24
+ raise
25
+ end
26
+
27
+ # or a bare message
28
+ Condux.capture_message("cache miss storm", level: Condux::Level::WARNING)
29
+ ```
30
+
31
+ ## Develop
32
+
33
+ ```bash
34
+ ruby -Ilib -Itest test/test_condux.rb
35
+ ```
36
+
37
+ Zero runtime dependencies (standard library only). The transport, sleep, and clock are injectable
38
+ (`Condux.init(... transport:, sleep:, clock:)`), so the tests exercise the retry/backoff with no real
39
+ network or timers.
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "securerandom"
4
+ require "json"
5
+ require_relative "level"
6
+ require_relative "dsn"
7
+ require_relative "event_payload"
8
+ require_relative "event_transport"
9
+
10
+ module Condux
11
+ # A configured reporter. Cheap to hold for the process lifetime; safe for concurrent use.
12
+ class Client
13
+ DEFAULT_MAX_RETRIES = 3
14
+
15
+ def initialize(dsn:, environment:, release:, max_retries:, transport:, sleep:, clock:)
16
+ parsed = Dsn.parse(dsn)
17
+ @transport = EventTransport.new(parsed.store_url, parsed.public_key, max_retries, transport, sleep)
18
+ @environment = environment
19
+ @release = release
20
+ @clock = clock || -> { Time.now }
21
+ end
22
+
23
+ def capture_exception(error, handled: true)
24
+ dispatch(level: Level::ERROR, exception: EventPayload.exception(error, handled: handled))
25
+ end
26
+
27
+ def capture_message(message, level)
28
+ dispatch(level: level, message: message)
29
+ end
30
+
31
+ private
32
+
33
+ def dispatch(level:, message: nil, exception: nil)
34
+ event = {
35
+ "event_id" => SecureRandom.hex(16), # 32 lowercase hex, the Sentry event_id shape
36
+ "timestamp" => @clock.call.to_f, # epoch seconds, the store convention
37
+ "platform" => "ruby",
38
+ "level" => level,
39
+ }
40
+ event["environment"] = @environment if @environment
41
+ event["release"] = @release if @release
42
+ event["message"] = message if message
43
+ event["exception"] = exception if exception
44
+ @transport.send_event(JSON.generate(event))
45
+ end
46
+ end
47
+ end
data/lib/condux/dsn.rb ADDED
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "uri"
4
+
5
+ module Condux
6
+ # A parsed DSN: the relay endpoint, the project id path segment, and the public key.
7
+ class Dsn
8
+ attr_reader :endpoint, :project_id, :public_key
9
+
10
+ def self.parse(dsn)
11
+ uri = URI(dsn)
12
+ if uri.user.nil? || uri.user.empty? || uri.host.nil?
13
+ raise ArgumentError, "Condux: DSN must be scheme://<key>@<host>/<projectId>"
14
+ end
15
+
16
+ endpoint = "#{uri.scheme}://#{uri.host}"
17
+ endpoint += ":#{uri.port}" if uri.port && ![80, 443].include?(uri.port)
18
+ new(endpoint, uri.path.sub(%r{\A/}, ""), uri.user)
19
+ end
20
+
21
+ def initialize(endpoint, project_id, public_key)
22
+ @endpoint = endpoint
23
+ @project_id = project_id
24
+ @public_key = public_key
25
+ end
26
+
27
+ # The Sentry store endpoint an event is POSTed to.
28
+ def store_url
29
+ "#{endpoint}/api/#{project_id}/store/"
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rbconfig"
4
+
5
+ module Condux
6
+ # Builds the Sentry "exception" payload (type/value/mechanism/stacktrace) from an exception.
7
+ module EventPayload
8
+ RUBY_LIB_DIR = RbConfig::CONFIG["rubylibdir"]
9
+
10
+ module_function
11
+
12
+ def exception(error, handled: true)
13
+ exception = {
14
+ "type" => error.class.name,
15
+ "value" => error.message.to_s,
16
+ # The relay reads mechanism.handled for the unhandled badge. A direct capture_exception is a handled
17
+ # capture; a framework integration reporting an uncaught exception passes handled: false.
18
+ "mechanism" => { "type" => "generic", "handled" => handled },
19
+ }
20
+ frames = stack_frames(error)
21
+ exception["stacktrace"] = { "frames" => frames } unless frames.empty?
22
+ { "values" => [exception] }
23
+ end
24
+
25
+ # Ruby backtrace locations are innermost-first (the raise site first); reverse to oldest-first (raise
26
+ # site last), the order the relay's fingerprinter and issue detail expect.
27
+ def stack_frames(error)
28
+ locations = error.backtrace_locations
29
+ return [] unless locations
30
+
31
+ locations.reverse.map do |loc|
32
+ {
33
+ "filename" => loc.path,
34
+ "function" => loc.label,
35
+ "lineno" => loc.lineno,
36
+ "in_app" => in_app?(loc.path),
37
+ }
38
+ end
39
+ end
40
+
41
+ # Application frames drive grouping + the culprit; gems and the standard library are noise.
42
+ def in_app?(path)
43
+ return false if path.nil?
44
+
45
+ !path.include?("/gems/") && !(RUBY_LIB_DIR && path.start_with?(RUBY_LIB_DIR))
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "net/http"
4
+ require "uri"
5
+ require_relative "send_result"
6
+
7
+ module Condux
8
+ # Delivers a serialized event to the relay, retrying transient failures (429 / 5xx / network) with
9
+ # capped exponential backoff, honoring Retry-After on a 429. Never raises — returns a SendResult.
10
+ class EventTransport
11
+ BASE_BACKOFF_MS = 200.0
12
+ MAX_BACKOFF_MS = 30_000.0
13
+
14
+ def initialize(store_url, public_key, max_retries, transport, sleep)
15
+ @store_url = store_url
16
+ @public_key = public_key
17
+ @max_retries = max_retries
18
+ @transport = transport || method(:net_http_send)
19
+ @sleep = sleep || ->(seconds) { Kernel.sleep(seconds) }
20
+ end
21
+
22
+ def send_event(body)
23
+ last_status = nil
24
+ last_error = nil
25
+ attempt = 0
26
+ while attempt <= @max_retries
27
+ status, headers, error = attempt_send(body)
28
+ if error
29
+ last_error = error
30
+ else
31
+ last_status = status
32
+ last_error = nil
33
+ return SendResult.new(ok: true, attempts: attempt + 1, status: status) if (200..299).cover?(status)
34
+ return SendResult.new(ok: false, attempts: attempt + 1, status: status) unless retriable?(status)
35
+ end
36
+
37
+ break if attempt == @max_retries
38
+
39
+ @sleep.call(backoff_seconds(attempt, status, headers))
40
+ attempt += 1
41
+ end
42
+
43
+ SendResult.new(ok: false, attempts: @max_retries + 1, status: last_status, error: last_error)
44
+ end
45
+
46
+ private
47
+
48
+ def attempt_send(body)
49
+ headers = { "Content-Type" => "application/json", "x-condux-auth" => @public_key }
50
+ status, response_headers = @transport.call(@store_url, headers, body)
51
+ [status, response_headers || {}, nil]
52
+ rescue StandardError => e # a genuine network failure — retry; a failed send must never crash the caller
53
+ message = e.message.to_s
54
+ [nil, {}, message.empty? ? e.class.name : message]
55
+ end
56
+
57
+ # 429 (rate limited) and 5xx are worth retrying; other 4xx (bad DSN / payload) are not.
58
+ def retriable?(status)
59
+ status == 429 || status >= 500
60
+ end
61
+
62
+ # Honor Retry-After (seconds) on a 429; otherwise capped exponential backoff. Returns seconds.
63
+ def backoff_seconds(attempt, status, headers)
64
+ if status == 429
65
+ retry_after = header(headers, "retry-after")
66
+ if retry_after && !retry_after.strip.empty?
67
+ seconds = begin
68
+ Float(retry_after)
69
+ rescue ArgumentError, TypeError
70
+ nil
71
+ end
72
+ return [seconds, 0.0].max if seconds
73
+ end
74
+ end
75
+ [BASE_BACKOFF_MS * (2**attempt), MAX_BACKOFF_MS].min / 1000.0
76
+ end
77
+
78
+ def header(headers, name)
79
+ target = name.downcase
80
+ headers.each { |key, value| return value if key.to_s.downcase == target }
81
+ nil
82
+ end
83
+
84
+ def net_http_send(url, headers, body)
85
+ uri = URI(url)
86
+ http = Net::HTTP.new(uri.host, uri.port)
87
+ http.use_ssl = uri.scheme == "https"
88
+ request = Net::HTTP::Post.new(uri)
89
+ headers.each { |key, value| request[key] = value }
90
+ request.body = body
91
+ response = http.request(request)
92
+ [response.code.to_i, response]
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Condux
4
+ # Event severity, matching the levels the relay understands. The wire value is the lowercase string.
5
+ module Level
6
+ DEBUG = "debug"
7
+ INFO = "info"
8
+ WARNING = "warning"
9
+ ERROR = "error"
10
+ FATAL = "fatal"
11
+ end
12
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../condux"
4
+
5
+ module Condux
6
+ module Rack
7
+ # Rack middleware: report an uncaught exception (as unhandled) and re-raise, so the app's own error
8
+ # handling still runs. Covers Rails and any Rack app.
9
+ #
10
+ # # config.ru (Rack)
11
+ # require "condux/rack"
12
+ # use Condux::Rack::CaptureExceptions
13
+ #
14
+ # # Rails (config/application.rb)
15
+ # config.middleware.use "Condux::Rack::CaptureExceptions"
16
+ class CaptureExceptions
17
+ def initialize(app)
18
+ @app = app
19
+ end
20
+
21
+ def call(env)
22
+ @app.call(env)
23
+ rescue StandardError => e # report anything the app raises, then re-raise
24
+ Condux.capture_exception(e, handled: false)
25
+ raise
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Condux
4
+ # Outcome of a delivery attempt sequence. Never raised — inspect #ok.
5
+ SendResult = Struct.new(:ok, :attempts, :status, :error, keyword_init: true)
6
+ end
data/lib/condux.rb ADDED
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "condux/level"
4
+ require_relative "condux/send_result"
5
+ require_relative "condux/client"
6
+
7
+ # Condux SDK for Ruby — report errors to a Condux relay.
8
+ #
9
+ # Emits the Sentry "store" wire shape (event_id, timestamp, level, exception.values[]) so the relay
10
+ # normalizes it exactly like an official Sentry SDK: swap the DSN and it works. Delivery is resilient
11
+ # (429 / 5xx / network failures retry with backoff, honoring Retry-After) and never raises — a failed send
12
+ # returns a SendResult you can inspect. The transport and sleep are injectable so backoff is exercised with
13
+ # no real network or timers. Inspired by common SDK transports, implemented fresh.
14
+ module Condux
15
+ class << self
16
+ # Configure the SDK with a project DSN (and optional testing hooks).
17
+ def init(dsn:, environment: nil, release: nil, max_retries: Client::DEFAULT_MAX_RETRIES,
18
+ transport: nil, sleep: nil, clock: nil)
19
+ @client = Client.new(dsn: dsn, environment: environment, release: release,
20
+ max_retries: max_retries, transport: transport, sleep: sleep, clock: clock)
21
+ end
22
+
23
+ # Report an exception as an error-level event, with its stack trace. Never raises on delivery failure.
24
+ # Pass handled: false for an uncaught exception (a framework integration does this).
25
+ def capture_exception(error, handled: true)
26
+ require_client.capture_exception(error, handled: handled)
27
+ end
28
+
29
+ # Report a bare message event at the given level (default info).
30
+ def capture_message(message, level: Level::INFO)
31
+ require_client.capture_message(message, level)
32
+ end
33
+
34
+ private
35
+
36
+ def require_client
37
+ raise "Condux not initialized — call Condux.init(dsn:) first" unless @client
38
+
39
+ @client
40
+ end
41
+ end
42
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: condux
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Condux
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-08-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'The Condux SDK for Ruby: report errors to a Condux relay with a resilient,
14
+ never-raising transport. Zero runtime dependencies (standard library only).'
15
+ email:
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - lib/condux.rb
23
+ - lib/condux/client.rb
24
+ - lib/condux/dsn.rb
25
+ - lib/condux/event_payload.rb
26
+ - lib/condux/event_transport.rb
27
+ - lib/condux/level.rb
28
+ - lib/condux/rack.rb
29
+ - lib/condux/send_result.rb
30
+ homepage: https://condux.ai
31
+ licenses:
32
+ - Apache-2.0
33
+ metadata:
34
+ homepage_uri: https://condux.ai
35
+ source_code_uri: https://github.com/tripledownab/condux
36
+ documentation_uri: https://github.com/tripledownab/condux/blob/main/docs/sdk-publishing.md
37
+ rubygems_mfa_required: 'true'
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '2.6'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.5.22
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: Report errors to a Condux relay (Sentry store wire shape).
57
+ test_files: []