exaonruby 1.1.0 → 1.3.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/CHANGELOG.md +50 -0
- data/README.md +31 -4
- data/exaonruby.gemspec +6 -3
- data/lib/exa/configuration.rb +1 -1
- data/lib/exa/endpoints/events.rb +1 -1
- data/lib/exa/endpoints/imports.rb +1 -1
- data/lib/exa/endpoints/monitors.rb +1 -1
- data/lib/exa/endpoints/search.rb +5 -2
- data/lib/exa/endpoints/webhooks.rb +1 -1
- data/lib/exa/endpoints/webset_enrichments.rb +1 -1
- data/lib/exa/endpoints/webset_items.rb +1 -1
- data/lib/exa/endpoints/webset_searches.rb +1 -1
- data/lib/exa/endpoints/websets.rb +1 -1
- data/lib/exa/middleware/instrumentation.rb +97 -0
- data/lib/exa/middleware/rate_limiter.rb +72 -0
- data/lib/exa/middleware/request_logger.rb +170 -0
- data/lib/exa/middleware/response_cache.rb +226 -0
- data/lib/exa/rails.rb +157 -0
- data/lib/exa/utils/parallel.rb +135 -0
- data/lib/exa/version.rb +1 -1
- data/lib/exa.rb +19 -1
- data/lib/generators/exa/install_generator.rb +94 -0
- metadata +33 -4
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exaonruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tigel-agm
|
|
@@ -69,10 +69,32 @@ dependencies:
|
|
|
69
69
|
- - "<"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
71
|
version: '3.0'
|
|
72
|
+
- !ruby/object:Gem::Dependency
|
|
73
|
+
name: concurrent-ruby
|
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
|
75
|
+
requirements:
|
|
76
|
+
- - ">="
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
version: '1.2'
|
|
79
|
+
- - "<"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '2.0'
|
|
82
|
+
type: :runtime
|
|
83
|
+
prerelease: false
|
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
85
|
+
requirements:
|
|
86
|
+
- - ">="
|
|
87
|
+
- !ruby/object:Gem::Version
|
|
88
|
+
version: '1.2'
|
|
89
|
+
- - "<"
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '2.0'
|
|
72
92
|
description: A production-ready Ruby gem wrapper for the Exa.ai Search and Websets
|
|
73
93
|
APIs. Features neural search, LLM-powered answers, async research tasks, Websets
|
|
74
|
-
management (monitors, imports, webhooks), SSE streaming,
|
|
75
|
-
|
|
94
|
+
management (monitors, imports, webhooks), SSE streaming, request logging, rate limiting,
|
|
95
|
+
response caching, OpenTelemetry instrumentation, parallel requests, Rails integration,
|
|
96
|
+
Sorbet types, and a beautiful CLI. Includes n8n/Zapier webhook signature verification
|
|
97
|
+
utilities.
|
|
76
98
|
email: []
|
|
77
99
|
executables:
|
|
78
100
|
- exa
|
|
@@ -102,6 +124,11 @@ files:
|
|
|
102
124
|
- lib/exa/endpoints/webset_searches.rb
|
|
103
125
|
- lib/exa/endpoints/websets.rb
|
|
104
126
|
- lib/exa/errors.rb
|
|
127
|
+
- lib/exa/middleware/instrumentation.rb
|
|
128
|
+
- lib/exa/middleware/rate_limiter.rb
|
|
129
|
+
- lib/exa/middleware/request_logger.rb
|
|
130
|
+
- lib/exa/middleware/response_cache.rb
|
|
131
|
+
- lib/exa/rails.rb
|
|
105
132
|
- lib/exa/resources/answer_response.rb
|
|
106
133
|
- lib/exa/resources/base.rb
|
|
107
134
|
- lib/exa/resources/contents_response.rb
|
|
@@ -116,10 +143,12 @@ files:
|
|
|
116
143
|
- lib/exa/resources/webset.rb
|
|
117
144
|
- lib/exa/resources/webset_item.rb
|
|
118
145
|
- lib/exa/types.rb
|
|
146
|
+
- lib/exa/utils/parallel.rb
|
|
119
147
|
- lib/exa/utils/parameter_converter.rb
|
|
120
148
|
- lib/exa/utils/sse_client.rb
|
|
121
149
|
- lib/exa/utils/webhook_handler.rb
|
|
122
150
|
- lib/exa/version.rb
|
|
151
|
+
- lib/generators/exa/install_generator.rb
|
|
123
152
|
homepage: https://github.com/tigel-agm/exaonruby
|
|
124
153
|
licenses:
|
|
125
154
|
- MIT
|
|
@@ -145,5 +174,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
145
174
|
requirements: []
|
|
146
175
|
rubygems_version: 4.0.2
|
|
147
176
|
specification_version: 4
|
|
148
|
-
summary: Complete Ruby client for the Exa.ai API with CLI and
|
|
177
|
+
summary: Complete Ruby client for the Exa.ai API with CLI, middleware, and Rails integration
|
|
149
178
|
test_files: []
|