algolia 2.0.0.pre.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +146 -0
- data/.github/ISSUE_TEMPLATE.md +20 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +22 -0
- data/.gitignore +38 -0
- data/.rubocop.yml +186 -0
- data/.rubocop_todo.yml +14 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +18 -0
- data/LICENSE +21 -0
- data/README.md +56 -0
- data/Rakefile +45 -0
- data/Steepfile +6 -0
- data/algolia.gemspec +41 -0
- data/bin/console +21 -0
- data/bin/setup +8 -0
- data/lib/algolia.rb +42 -0
- data/lib/algolia/account_client.rb +65 -0
- data/lib/algolia/analytics_client.rb +105 -0
- data/lib/algolia/config/algolia_config.rb +40 -0
- data/lib/algolia/config/analytics_config.rb +20 -0
- data/lib/algolia/config/insights_config.rb +20 -0
- data/lib/algolia/config/recommendation_config.rb +20 -0
- data/lib/algolia/config/search_config.rb +40 -0
- data/lib/algolia/defaults.rb +35 -0
- data/lib/algolia/enums/call_type.rb +4 -0
- data/lib/algolia/enums/retry_outcome_type.rb +5 -0
- data/lib/algolia/error.rb +29 -0
- data/lib/algolia/helpers.rb +83 -0
- data/lib/algolia/http/http_requester.rb +84 -0
- data/lib/algolia/http/response.rb +23 -0
- data/lib/algolia/insights_client.rb +238 -0
- data/lib/algolia/iterators/base_iterator.rb +19 -0
- data/lib/algolia/iterators/object_iterator.rb +27 -0
- data/lib/algolia/iterators/paginator_iterator.rb +44 -0
- data/lib/algolia/iterators/rule_iterator.rb +9 -0
- data/lib/algolia/iterators/synonym_iterator.rb +9 -0
- data/lib/algolia/logger_helper.rb +14 -0
- data/lib/algolia/recommendation_client.rb +60 -0
- data/lib/algolia/responses/add_api_key_response.rb +38 -0
- data/lib/algolia/responses/base_response.rb +9 -0
- data/lib/algolia/responses/delete_api_key_response.rb +40 -0
- data/lib/algolia/responses/indexing_response.rb +28 -0
- data/lib/algolia/responses/multiple_batch_indexing_response.rb +29 -0
- data/lib/algolia/responses/multiple_response.rb +45 -0
- data/lib/algolia/responses/restore_api_key_response.rb +36 -0
- data/lib/algolia/responses/update_api_key_response.rb +39 -0
- data/lib/algolia/search_client.rb +614 -0
- data/lib/algolia/search_index.rb +1094 -0
- data/lib/algolia/transport/request_options.rb +94 -0
- data/lib/algolia/transport/retry_strategy.rb +117 -0
- data/lib/algolia/transport/stateful_host.rb +26 -0
- data/lib/algolia/transport/transport.rb +161 -0
- data/lib/algolia/user_agent.rb +25 -0
- data/lib/algolia/version.rb +3 -0
- data/sig/config/algolia_config.rbs +24 -0
- data/sig/config/analytics_config.rbs +11 -0
- data/sig/config/insights_config.rbs +11 -0
- data/sig/config/recommendation_config.rbs +11 -0
- data/sig/config/search_config.rbs +11 -0
- data/sig/enums/call_type.rbs +5 -0
- data/sig/helpers.rbs +12 -0
- data/sig/http/http_requester.rbs +17 -0
- data/sig/http/response.rbs +14 -0
- data/sig/interfaces/_connection.rbs +16 -0
- data/sig/iterators/base_iterator.rbs +15 -0
- data/sig/iterators/object_iterator.rbs +6 -0
- data/sig/iterators/paginator_iterator.rbs +8 -0
- data/sig/iterators/rule_iterator.rbs +5 -0
- data/sig/iterators/synonym_iterator.rbs +5 -0
- data/sig/transport/request_options.rbs +33 -0
- data/sig/transport/stateful_host.rbs +21 -0
- data/test/algolia/integration/account_client_test.rb +47 -0
- data/test/algolia/integration/analytics_client_test.rb +113 -0
- data/test/algolia/integration/base_test.rb +9 -0
- data/test/algolia/integration/insights_client_test.rb +80 -0
- data/test/algolia/integration/mocks/mock_requester.rb +45 -0
- data/test/algolia/integration/recommendation_client_test.rb +30 -0
- data/test/algolia/integration/search_client_test.rb +361 -0
- data/test/algolia/integration/search_index_test.rb +698 -0
- data/test/algolia/unit/helpers_test.rb +69 -0
- data/test/algolia/unit/retry_strategy_test.rb +139 -0
- data/test/algolia/unit/user_agent_test.rb +16 -0
- data/test/test_helper.rb +89 -0
- data/upgrade_guide.md +595 -0
- metadata +307 -0
metadata
ADDED
@@ -0,0 +1,307 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: algolia
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.pre.alpha.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Algolia
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.82.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.82.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.15'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.15'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: multi_json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: net-http-persistent
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: httpclient
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: m
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: minitest-hooks
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: minitest-proveit
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
description: A simple Ruby client for the algolia.com REST API
|
182
|
+
email:
|
183
|
+
- support@algolia.com
|
184
|
+
executables: []
|
185
|
+
extensions: []
|
186
|
+
extra_rdoc_files: []
|
187
|
+
files:
|
188
|
+
- ".circleci/config.yml"
|
189
|
+
- ".github/ISSUE_TEMPLATE.md"
|
190
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
191
|
+
- ".gitignore"
|
192
|
+
- ".rubocop.yml"
|
193
|
+
- ".rubocop_todo.yml"
|
194
|
+
- CODE_OF_CONDUCT.md
|
195
|
+
- Gemfile
|
196
|
+
- LICENSE
|
197
|
+
- README.md
|
198
|
+
- Rakefile
|
199
|
+
- Steepfile
|
200
|
+
- algolia.gemspec
|
201
|
+
- bin/console
|
202
|
+
- bin/setup
|
203
|
+
- lib/algolia.rb
|
204
|
+
- lib/algolia/account_client.rb
|
205
|
+
- lib/algolia/analytics_client.rb
|
206
|
+
- lib/algolia/config/algolia_config.rb
|
207
|
+
- lib/algolia/config/analytics_config.rb
|
208
|
+
- lib/algolia/config/insights_config.rb
|
209
|
+
- lib/algolia/config/recommendation_config.rb
|
210
|
+
- lib/algolia/config/search_config.rb
|
211
|
+
- lib/algolia/defaults.rb
|
212
|
+
- lib/algolia/enums/call_type.rb
|
213
|
+
- lib/algolia/enums/retry_outcome_type.rb
|
214
|
+
- lib/algolia/error.rb
|
215
|
+
- lib/algolia/helpers.rb
|
216
|
+
- lib/algolia/http/http_requester.rb
|
217
|
+
- lib/algolia/http/response.rb
|
218
|
+
- lib/algolia/insights_client.rb
|
219
|
+
- lib/algolia/iterators/base_iterator.rb
|
220
|
+
- lib/algolia/iterators/object_iterator.rb
|
221
|
+
- lib/algolia/iterators/paginator_iterator.rb
|
222
|
+
- lib/algolia/iterators/rule_iterator.rb
|
223
|
+
- lib/algolia/iterators/synonym_iterator.rb
|
224
|
+
- lib/algolia/logger_helper.rb
|
225
|
+
- lib/algolia/recommendation_client.rb
|
226
|
+
- lib/algolia/responses/add_api_key_response.rb
|
227
|
+
- lib/algolia/responses/base_response.rb
|
228
|
+
- lib/algolia/responses/delete_api_key_response.rb
|
229
|
+
- lib/algolia/responses/indexing_response.rb
|
230
|
+
- lib/algolia/responses/multiple_batch_indexing_response.rb
|
231
|
+
- lib/algolia/responses/multiple_response.rb
|
232
|
+
- lib/algolia/responses/restore_api_key_response.rb
|
233
|
+
- lib/algolia/responses/update_api_key_response.rb
|
234
|
+
- lib/algolia/search_client.rb
|
235
|
+
- lib/algolia/search_index.rb
|
236
|
+
- lib/algolia/transport/request_options.rb
|
237
|
+
- lib/algolia/transport/retry_strategy.rb
|
238
|
+
- lib/algolia/transport/stateful_host.rb
|
239
|
+
- lib/algolia/transport/transport.rb
|
240
|
+
- lib/algolia/user_agent.rb
|
241
|
+
- lib/algolia/version.rb
|
242
|
+
- sig/config/algolia_config.rbs
|
243
|
+
- sig/config/analytics_config.rbs
|
244
|
+
- sig/config/insights_config.rbs
|
245
|
+
- sig/config/recommendation_config.rbs
|
246
|
+
- sig/config/search_config.rbs
|
247
|
+
- sig/enums/call_type.rbs
|
248
|
+
- sig/helpers.rbs
|
249
|
+
- sig/http/http_requester.rbs
|
250
|
+
- sig/http/response.rbs
|
251
|
+
- sig/interfaces/_connection.rbs
|
252
|
+
- sig/iterators/base_iterator.rbs
|
253
|
+
- sig/iterators/object_iterator.rbs
|
254
|
+
- sig/iterators/paginator_iterator.rbs
|
255
|
+
- sig/iterators/rule_iterator.rbs
|
256
|
+
- sig/iterators/synonym_iterator.rbs
|
257
|
+
- sig/transport/request_options.rbs
|
258
|
+
- sig/transport/stateful_host.rbs
|
259
|
+
- test/algolia/integration/account_client_test.rb
|
260
|
+
- test/algolia/integration/analytics_client_test.rb
|
261
|
+
- test/algolia/integration/base_test.rb
|
262
|
+
- test/algolia/integration/insights_client_test.rb
|
263
|
+
- test/algolia/integration/mocks/mock_requester.rb
|
264
|
+
- test/algolia/integration/recommendation_client_test.rb
|
265
|
+
- test/algolia/integration/search_client_test.rb
|
266
|
+
- test/algolia/integration/search_index_test.rb
|
267
|
+
- test/algolia/unit/helpers_test.rb
|
268
|
+
- test/algolia/unit/retry_strategy_test.rb
|
269
|
+
- test/algolia/unit/user_agent_test.rb
|
270
|
+
- test/test_helper.rb
|
271
|
+
- upgrade_guide.md
|
272
|
+
homepage:
|
273
|
+
licenses:
|
274
|
+
- MIT
|
275
|
+
metadata: {}
|
276
|
+
post_install_message:
|
277
|
+
rdoc_options: []
|
278
|
+
require_paths:
|
279
|
+
- lib
|
280
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">="
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: '0'
|
285
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
|
+
requirements:
|
287
|
+
- - ">"
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: 1.3.1
|
290
|
+
requirements: []
|
291
|
+
rubygems_version: 3.0.4
|
292
|
+
signing_key:
|
293
|
+
specification_version: 4
|
294
|
+
summary: A simple Ruby client for the algolia.com REST API
|
295
|
+
test_files:
|
296
|
+
- test/algolia/integration/account_client_test.rb
|
297
|
+
- test/algolia/integration/analytics_client_test.rb
|
298
|
+
- test/algolia/integration/base_test.rb
|
299
|
+
- test/algolia/integration/insights_client_test.rb
|
300
|
+
- test/algolia/integration/mocks/mock_requester.rb
|
301
|
+
- test/algolia/integration/recommendation_client_test.rb
|
302
|
+
- test/algolia/integration/search_client_test.rb
|
303
|
+
- test/algolia/integration/search_index_test.rb
|
304
|
+
- test/algolia/unit/helpers_test.rb
|
305
|
+
- test/algolia/unit/retry_strategy_test.rb
|
306
|
+
- test/algolia/unit/user_agent_test.rb
|
307
|
+
- test/test_helper.rb
|