openai-compatible-errors 0.1.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.
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openai-compatible-errors
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - AI ROUTER contributors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-08-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.26.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.26.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
41
+ description: |
42
+ A zero-runtime-dependency Ruby library that normalizes OpenAI-compatible HTTP
43
+ and SDK failures, parses Retry-After hints, plans conservative retries, and
44
+ inspects Chat Completions or Responses SSE streams without retaining raw
45
+ provider payloads.
46
+ email:
47
+ executables: []
48
+ extensions: []
49
+ extra_rdoc_files: []
50
+ files:
51
+ - CHANGELOG.md
52
+ - CONTRIBUTING.md
53
+ - Gemfile
54
+ - LICENSE
55
+ - README.md
56
+ - RELEASING.md
57
+ - Rakefile
58
+ - SECURITY.md
59
+ - examples/net_http.rb
60
+ - lib/openai_compatible_errors.rb
61
+ - lib/openai_compatible_errors/error.rb
62
+ - lib/openai_compatible_errors/headers.rb
63
+ - lib/openai_compatible_errors/normalize.rb
64
+ - lib/openai_compatible_errors/redaction.rb
65
+ - lib/openai_compatible_errors/retry.rb
66
+ - lib/openai_compatible_errors/sse.rb
67
+ - lib/openai_compatible_errors/version.rb
68
+ - test/test_helper.rb
69
+ - test/test_normalize.rb
70
+ - test/test_redaction.rb
71
+ - test/test_retry.rb
72
+ - test/test_sse.rb
73
+ homepage: https://github.com/airouter-dev/openai-compatible-errors-ruby
74
+ licenses:
75
+ - MIT
76
+ metadata:
77
+ bug_tracker_uri: https://github.com/airouter-dev/openai-compatible-errors-ruby/issues
78
+ changelog_uri: https://github.com/airouter-dev/openai-compatible-errors-ruby/blob/main/CHANGELOG.md
79
+ documentation_uri: https://github.com/airouter-dev/openai-compatible-errors-ruby#readme
80
+ homepage_uri: https://github.com/airouter-dev/openai-compatible-errors-ruby
81
+ source_code_uri: https://github.com/airouter-dev/openai-compatible-errors-ruby
82
+ rubygems_mfa_required: 'true'
83
+ post_install_message:
84
+ rdoc_options: []
85
+ require_paths:
86
+ - lib
87
+ required_ruby_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '3.0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ requirements: []
98
+ rubygems_version: 3.5.22
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: Safe error normalization and replay boundaries for OpenAI-compatible APIs
102
+ test_files:
103
+ - test/test_helper.rb
104
+ - test/test_normalize.rb
105
+ - test/test_redaction.rb
106
+ - test/test_retry.rb
107
+ - test/test_sse.rb