algoliasearch 1.27.1 → 1.27.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aae19d372c42117c6544a94ca9ded95f57099c0a2e5f223478c114c77464f76b
4
- data.tar.gz: 7733b7db42953625b43385f5909cd8b6562fa0a4cae1dead9c086d629f06d74f
3
+ metadata.gz: 148ad36bea50c925c317de458f31ab4eab0f79a60c4f72cf58ad0f6cdc3a820e
4
+ data.tar.gz: 475be44217c44afdcbe272e6768bee7cf4f1048dc868de21bdd8a0c8280781ba
5
5
  SHA512:
6
- metadata.gz: c749292cf92f463b85a1f9b1c19d6a1d394708954e0f06a8086173f37d048344ed0272df1ccb642c0dd5a10ddb2c1549bc3c5c5b21a53d50553df1173980ad72
7
- data.tar.gz: 78474507aeba9e2098ed5d44f970d50ef2acecc8adaa51127cbffadaa3dcf70e37e56288cc0f1f7c5d0c3ae4ee2cc7b53484c37ca98cbc6fb6fff4de7acc707a
6
+ metadata.gz: b88a4608e616f32ae6a3b0b3e203f74286ba18d00c84dc43d32bb4708e0a4f086d05e9b6355f7368b9bbd25ca70040a54627d26ea5646b4bdddf6f1ad67136bc
7
+ data.tar.gz: 5b372b2bfb3862bd75cac2cd6e45f623efa119fa3eb0edef7ce18bde8553ddf10b2823d277a38bcab441652dec5d896b0bcf955047ec4daa1d3bb72f0e94e000
@@ -1,5 +1,14 @@
1
1
  # ChangeLog
2
2
 
3
+ ## Unreleased
4
+
5
+
6
+ ## [1.27.2](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.1...1.27.2) (2020-04-28)
7
+
8
+ **Fixed**
9
+
10
+ * In `search_user_id`, retrieve param `cluster` instead of `clusterName`. [368](https://github.com/algolia/algoliasearch-client-ruby/issues/368)
11
+
3
12
  ## [1.27.1](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.0...1.27.1) (2019-09-26)
4
13
 
5
14
  **Fixed**
@@ -1,299 +1,86 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algoliasearch (1.27.0)
5
- httpclient (~> 2.8, >= 2.8.3)
6
- json (>= 1.5.1)
4
+ algolia (0.1.0)
5
+ faraday (~> 0.15)
6
+ multi_json (~> 1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.4.0)
12
- backports (3.15.0)
11
+ addressable (2.7.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ ast (2.4.0)
13
14
  crack (0.4.3)
14
15
  safe_yaml (~> 1.0.0)
15
- diff-lcs (1.3)
16
16
  docile (1.3.2)
17
- ethon (0.12.0)
18
- ffi (>= 1.3.0)
19
- faraday (0.15.4)
17
+ faraday (0.17.3)
20
18
  multipart-post (>= 1.2, < 3)
21
- faraday_middleware (0.13.1)
22
- faraday (>= 0.7.4, < 1.0)
23
- ffi (1.11.1)
24
- ffi2-generators (0.1.1)
25
- gh (0.15.1)
26
- addressable (~> 2.4.0)
27
- backports
28
- faraday (~> 0.8)
29
- multi_json (~> 1.0)
30
- net-http-persistent (~> 2.9)
31
- net-http-pipeline
32
- hashdiff (1.0.0)
33
- highline (1.7.10)
34
- httpclient (2.8.3)
35
- json (2.2.0)
36
- launchy (2.4.3)
37
- addressable (~> 2.3)
38
- multi_json (1.13.1)
19
+ hashdiff (1.0.1)
20
+ http-2-next (0.2.6)
21
+ httpx (0.8.1)
22
+ http-2-next (>= 0.1.2)
23
+ timers
24
+ jaro_winkler (1.5.4)
25
+ m (1.5.1)
26
+ method_source (>= 0.6.7)
27
+ rake (>= 0.9.2.2)
28
+ method_source (1.0.0)
29
+ minitest (5.14.0)
30
+ minitest-ci (3.4.0)
31
+ minitest (>= 5.0.6)
32
+ minitest-hooks (1.5.0)
33
+ minitest (> 5.3)
34
+ minitest-proveit (1.0.0)
35
+ minitest (> 5, < 7)
36
+ multi_json (1.14.1)
39
37
  multipart-post (2.1.1)
40
- net-http-persistent (2.9.4)
41
- net-http-pipeline (1.0.1)
42
- pusher-client (0.6.2)
43
- json
44
- websocket (~> 1.0)
45
- rake (12.3.3)
46
- rdoc (6.2.0)
47
- rspec (3.8.0)
48
- rspec-core (~> 3.8.0)
49
- rspec-expectations (~> 3.8.0)
50
- rspec-mocks (~> 3.8.0)
51
- rspec-core (3.8.2)
52
- rspec-support (~> 3.8.0)
53
- rspec-expectations (3.8.4)
54
- diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.1)
57
- diff-lcs (>= 1.2.0, < 2.0)
58
- rspec-support (~> 3.8.0)
59
- rspec-support (3.8.2)
60
- rubysl (2.2.0)
61
- rubysl-abbrev (~> 2.0)
62
- rubysl-base64 (~> 2.0)
63
- rubysl-benchmark (~> 2.0)
64
- rubysl-bigdecimal (~> 2.0)
65
- rubysl-cgi (~> 2.0)
66
- rubysl-cgi-session (~> 2.0)
67
- rubysl-cmath (~> 2.0)
68
- rubysl-complex (~> 2.0)
69
- rubysl-continuation (~> 2.0)
70
- rubysl-coverage (~> 2.0)
71
- rubysl-csv (~> 2.0)
72
- rubysl-curses (~> 2.0)
73
- rubysl-date (~> 2.0)
74
- rubysl-delegate (~> 2.0)
75
- rubysl-digest (~> 2.0)
76
- rubysl-drb (~> 2.0)
77
- rubysl-e2mmap (~> 2.0)
78
- rubysl-english (~> 2.0)
79
- rubysl-enumerator (~> 2.0)
80
- rubysl-erb (~> 2.0)
81
- rubysl-etc (~> 2.0)
82
- rubysl-expect (~> 2.0)
83
- rubysl-fcntl (~> 2.0)
84
- rubysl-fiber (~> 2.0)
85
- rubysl-fileutils (~> 2.0)
86
- rubysl-find (~> 2.0)
87
- rubysl-forwardable (~> 2.0)
88
- rubysl-getoptlong (~> 2.0)
89
- rubysl-gserver (~> 2.0)
90
- rubysl-io-console (~> 2.0)
91
- rubysl-io-nonblock (~> 2.0)
92
- rubysl-io-wait (~> 2.0)
93
- rubysl-ipaddr (~> 2.0)
94
- rubysl-irb (~> 2.1)
95
- rubysl-logger (~> 2.0)
96
- rubysl-mathn (~> 2.0)
97
- rubysl-matrix (~> 2.0)
98
- rubysl-mkmf (~> 2.0)
99
- rubysl-monitor (~> 2.0)
100
- rubysl-mutex_m (~> 2.0)
101
- rubysl-net-ftp (~> 2.0)
102
- rubysl-net-http (~> 2.0)
103
- rubysl-net-imap (~> 2.0)
104
- rubysl-net-pop (~> 2.0)
105
- rubysl-net-protocol (~> 2.0)
106
- rubysl-net-smtp (~> 2.0)
107
- rubysl-net-telnet (~> 2.0)
108
- rubysl-nkf (~> 2.0)
109
- rubysl-observer (~> 2.0)
110
- rubysl-open-uri (~> 2.0)
111
- rubysl-open3 (~> 2.0)
112
- rubysl-openssl (~> 2.0)
113
- rubysl-optparse (~> 2.0)
114
- rubysl-ostruct (~> 2.0)
115
- rubysl-pathname (~> 2.0)
116
- rubysl-prettyprint (~> 2.0)
117
- rubysl-prime (~> 2.0)
118
- rubysl-profile (~> 2.0)
119
- rubysl-profiler (~> 2.0)
120
- rubysl-pstore (~> 2.0)
121
- rubysl-pty (~> 2.0)
122
- rubysl-rational (~> 2.0)
123
- rubysl-resolv (~> 2.0)
124
- rubysl-rexml (~> 2.0)
125
- rubysl-rinda (~> 2.0)
126
- rubysl-rss (~> 2.0)
127
- rubysl-scanf (~> 2.0)
128
- rubysl-securerandom (~> 2.0)
129
- rubysl-set (~> 2.0)
130
- rubysl-shellwords (~> 2.0)
131
- rubysl-singleton (~> 2.0)
132
- rubysl-socket (~> 2.0)
133
- rubysl-stringio (~> 2.0)
134
- rubysl-strscan (~> 2.0)
135
- rubysl-sync (~> 2.0)
136
- rubysl-syslog (~> 2.0)
137
- rubysl-tempfile (~> 2.0)
138
- rubysl-thread (~> 2.0)
139
- rubysl-thwait (~> 2.0)
140
- rubysl-time (~> 2.0)
141
- rubysl-timeout (~> 2.0)
142
- rubysl-tmpdir (~> 2.0)
143
- rubysl-tsort (~> 2.0)
144
- rubysl-un (~> 2.0)
145
- rubysl-unicode_normalize (~> 2.0)
146
- rubysl-uri (~> 2.0)
147
- rubysl-weakref (~> 2.0)
148
- rubysl-webrick (~> 2.0)
149
- rubysl-xmlrpc (~> 2.0)
150
- rubysl-yaml (~> 2.0)
151
- rubysl-zlib (~> 2.0)
152
- rubysl-abbrev (2.0.4)
153
- rubysl-base64 (2.0.0)
154
- rubysl-benchmark (2.0.1)
155
- rubysl-bigdecimal (2.0.2)
156
- rubysl-cgi (2.0.1)
157
- rubysl-cgi-session (2.1.0)
158
- rubysl-cmath (2.0.0)
159
- rubysl-complex (2.0.0)
160
- rubysl-continuation (2.0.0)
161
- rubysl-coverage (2.1)
162
- rubysl-csv (2.0.2)
163
- rubysl-english (~> 2.0)
164
- rubysl-curses (2.0.1)
165
- rubysl-date (2.0.9)
166
- rubysl-delegate (2.0.1)
167
- rubysl-digest (2.0.8)
168
- rubysl-drb (2.0.1)
169
- rubysl-e2mmap (2.0.0)
170
- rubysl-english (2.0.0)
171
- rubysl-enumerator (2.0.0)
172
- rubysl-erb (2.0.2)
173
- rubysl-etc (2.0.3)
174
- ffi2-generators (~> 0.1)
175
- rubysl-expect (2.0.0)
176
- rubysl-fcntl (2.0.4)
177
- ffi2-generators (~> 0.1)
178
- rubysl-fiber (2.0.0)
179
- rubysl-fileutils (2.0.3)
180
- rubysl-find (2.0.1)
181
- rubysl-forwardable (2.0.1)
182
- rubysl-getoptlong (2.0.0)
183
- rubysl-gserver (2.0.0)
184
- rubysl-socket (~> 2.0)
185
- rubysl-thread (~> 2.0)
186
- rubysl-io-console (2.0.0)
187
- rubysl-io-nonblock (2.0.0)
188
- rubysl-io-wait (2.0.0)
189
- rubysl-ipaddr (2.0.0)
190
- rubysl-irb (2.1.1)
191
- rubysl-e2mmap (~> 2.0)
192
- rubysl-mathn (~> 2.0)
193
- rubysl-thread (~> 2.0)
194
- rubysl-logger (2.1.0)
195
- rubysl-mathn (2.0.0)
196
- rubysl-matrix (2.1.0)
197
- rubysl-e2mmap (~> 2.0)
198
- rubysl-mkmf (2.1)
199
- rubysl-fileutils (~> 2.0)
200
- rubysl-shellwords (~> 2.0)
201
- rubysl-monitor (2.1)
202
- rubysl-mutex_m (2.0.0)
203
- rubysl-net-ftp (2.0.1)
204
- rubysl-net-http (2.0.4)
205
- rubysl-cgi (~> 2.0)
206
- rubysl-erb (~> 2.0)
207
- rubysl-singleton (~> 2.0)
208
- rubysl-net-imap (2.0.1)
209
- rubysl-net-pop (2.0.1)
210
- rubysl-net-protocol (2.0.1)
211
- rubysl-net-smtp (2.0.1)
212
- rubysl-net-telnet (2.0.0)
213
- rubysl-nkf (2.0.1)
214
- rubysl-observer (2.0.0)
215
- rubysl-open-uri (2.0.0)
216
- rubysl-open3 (2.0.0)
217
- rubysl-openssl (2.10)
218
- rubysl-optparse (2.0.1)
219
- rubysl-shellwords (~> 2.0)
220
- rubysl-ostruct (2.1.0)
221
- rubysl-pathname (2.3)
222
- rubysl-prettyprint (2.0.3)
223
- rubysl-prime (2.0.1)
224
- rubysl-profile (2.0.0)
225
- rubysl-profiler (2.1)
226
- rubysl-pstore (2.0.0)
227
- rubysl-pty (2.0.3)
228
- rubysl-rational (2.0.1)
229
- rubysl-resolv (2.1.2)
230
- rubysl-rexml (2.0.4)
231
- rubysl-rinda (2.0.1)
232
- rubysl-rss (2.0.0)
233
- rubysl-scanf (2.0.0)
234
- rubysl-securerandom (2.0.0)
235
- rubysl-set (2.0.1)
236
- rubysl-shellwords (2.0.0)
237
- rubysl-singleton (2.0.0)
238
- rubysl-socket (2.2.1)
239
- rubysl-fcntl (~> 2.0)
240
- rubysl-stringio (2.3)
241
- rubysl-strscan (2.0.0)
242
- rubysl-sync (2.0.0)
243
- rubysl-syslog (2.1.0)
244
- ffi2-generators (~> 0.1)
245
- rubysl-tempfile (2.0.1)
246
- rubysl-thread (2.1)
247
- rubysl-thwait (2.0.0)
248
- rubysl-time (2.0.3)
249
- rubysl-timeout (2.0.0)
250
- rubysl-tmpdir (2.0.1)
251
- rubysl-tsort (2.0.1)
252
- rubysl-un (2.0.0)
253
- rubysl-fileutils (~> 2.0)
254
- rubysl-optparse (~> 2.0)
255
- rubysl-unicode_normalize (2.0)
256
- rubysl-uri (2.0.0)
257
- rubysl-weakref (2.0.0)
258
- rubysl-webrick (2.0.0)
259
- rubysl-xmlrpc (2.0.0)
260
- rubysl-yaml (2.1.0)
261
- rubysl-zlib (2.0.1)
38
+ parallel (1.19.1)
39
+ parser (2.7.1.1)
40
+ ast (~> 2.4.0)
41
+ public_suffix (4.0.4)
42
+ rainbow (3.0.0)
43
+ rake (10.5.0)
44
+ rexml (3.2.4)
45
+ rubocop (0.82.0)
46
+ jaro_winkler (~> 1.5.1)
47
+ parallel (~> 1.10)
48
+ parser (>= 2.7.0.1)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ rexml
51
+ ruby-progressbar (~> 1.7)
52
+ unicode-display_width (>= 1.4.0, < 2.0)
53
+ ruby-progressbar (1.10.1)
262
54
  safe_yaml (1.0.5)
263
- simplecov (0.17.0)
55
+ simplecov (0.18.5)
264
56
  docile (~> 1.1)
265
- json (>= 1.8, < 3)
266
- simplecov-html (~> 0.10.0)
267
- simplecov-html (0.10.2)
268
- travis (1.8.10)
269
- backports
270
- faraday (~> 0.9)
271
- faraday_middleware (~> 0.9, >= 0.9.1)
272
- gh (~> 0.13)
273
- highline (~> 1.6)
274
- launchy (~> 2.1)
275
- pusher-client (~> 0.4)
276
- typhoeus (~> 0.6, >= 0.6.8)
277
- typhoeus (0.8.0)
278
- ethon (>= 0.8.0)
279
- webmock (3.7.2)
57
+ simplecov-html (~> 0.11)
58
+ simplecov-html (0.12.2)
59
+ timers (4.3.0)
60
+ unicode-display_width (1.7.0)
61
+ webmock (3.8.3)
280
62
  addressable (>= 2.3.6)
281
63
  crack (>= 0.3.2)
282
64
  hashdiff (>= 0.4.0, < 2.0.0)
283
- websocket (1.2.8)
65
+ yard (0.9.24)
284
66
 
285
67
  PLATFORMS
286
68
  ruby
287
69
 
288
70
  DEPENDENCIES
289
- algoliasearch!
71
+ algolia!
72
+ bundler
73
+ httpx
74
+ m
75
+ minitest
76
+ minitest-ci
77
+ minitest-hooks
78
+ minitest-proveit
290
79
  rake
291
- rdoc
292
- rspec (>= 2.5.0)
293
- rubysl (~> 2.2)
80
+ rubocop
294
81
  simplecov
295
- travis
296
82
  webmock
83
+ yard
297
84
 
298
85
  BUNDLED WITH
299
- 2.0.2
86
+ 1.17.3
data/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
 
8
8
  <p align="center">
9
9
  <a href="https://travis-ci.org/algolia/algoliasearch-client-ruby"><img src="https://img.shields.io/travis/algolia/algoliasearch-client-ruby/master.svg" alt="Build Status"></a>
10
- <a href="https://rubygems.org/gems/algoliasearch/versions/1.26.0"><img src="https://badge.fury.io/rb/algoliasearch.svg" alt="Gem Version"></a>
11
- <a href="https://rubygems.org/gems/algoliasearch/versions/1.26.0"><img src="https://img.shields.io/badge/licence-MIT-blue.svg" alt="License"></a>
10
+ <a href="https://rubygems.org/gems/algoliasearch"><img src="https://badge.fury.io/rb/algoliasearch.svg" alt="Gem Version"></a>
11
+ <a href="https://rubygems.org/gems/algoliasearch"><img src="https://img.shields.io/badge/licence-MIT-blue.svg" alt="License"></a>
12
12
  </p>
13
13
  </p>
14
14
 
@@ -64,17 +64,21 @@ Gem::Specification.new do |s|
64
64
  s.specification_version = 4
65
65
 
66
66
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
67
+ if defined?(RUBY_VERSION) && RUBY_VERSION < '2.0'
68
+ s.add_runtime_dependency 'json', '>= 1.5.1', '< 2.3'
69
+ else
70
+ s.add_runtime_dependency 'json', '>= 1.5.1'
71
+ end
67
72
  s.add_runtime_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
68
- s.add_runtime_dependency 'json', '>= 1.5.1'
69
73
  s.add_development_dependency 'travis', '~> 0'
70
74
  s.add_development_dependency 'rake', '~> 0'
71
75
  s.add_development_dependency 'rdoc', '~> 0'
72
76
  else
73
77
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
74
- s.add_dependency 'json', '>= 1.5.1'
78
+ s.add_dependency 'json', '>= 1.5.1', '< 2.3'
75
79
  end
76
80
  else
77
81
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
78
- s.add_dependency 'json', '>= 1.5.1'
82
+ s.add_dependency 'json', '>= 1.5.1', '< 2.3'
79
83
  end
80
84
  end
@@ -552,7 +552,7 @@ module Algolia
552
552
 
553
553
  def search_user_id(query, cluster_name = nil, page = nil, hits_per_page = nil, request_options = {})
554
554
  body = { :query => query }
555
- body[:clusterName] = cluster_name unless cluster_name.nil?
555
+ body[:cluster] = cluster_name unless cluster_name.nil?
556
556
  body[:page] = page unless page.nil?
557
557
  body[:hitsPerPage] = hits_per_page unless hits_per_page.nil?
558
558
  post(Protocol.search_user_id_uri, body.to_json, :read, request_options)
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = "1.27.1"
2
+ VERSION = "1.27.2"
3
3
  end
metadata CHANGED
@@ -1,49 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.1
4
+ version: 1.27.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-26 00:00:00.000000000 Z
11
+ date: 2020-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: httpclient
14
+ name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.8'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 2.8.3
19
+ version: 1.5.1
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '2.8'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 2.8.3
26
+ version: 1.5.1
33
27
  - !ruby/object:Gem::Dependency
34
- name: json
28
+ name: httpclient
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.8'
37
34
  - - ">="
38
35
  - !ruby/object:Gem::Version
39
- version: 1.5.1
36
+ version: 2.8.3
40
37
  type: :runtime
41
38
  prerelease: false
42
39
  version_requirements: !ruby/object:Gem::Requirement
43
40
  requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.8'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.5.1
46
+ version: 2.8.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: travis
49
49
  requirement: !ruby/object:Gem::Requirement