algoliasearch 1.27.0 → 1.27.5

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: 9036ce666897c7cfb05a637b80ffcebc26a08560ac655bca29f0bbaa631aa2e6
4
- data.tar.gz: 39a1e847147a3d9f08fa529045abaec8725d95c7cb4f8a496646c0b2dd25f9d4
3
+ metadata.gz: cf38b8588ce027c600ffc7d53f92df4e2d119577bcf3f5e2b2cf44108c7e544c
4
+ data.tar.gz: e7ceae421834ac035a4dfe3f0a836fbcbc4c4ee2f99ee9783a01930d3feb6f2d
5
5
  SHA512:
6
- metadata.gz: db1d480cc1aa22bf2c2ea547740ab905440928dab50680afb21998bffa9b6ffd29aef6dda35a0263bf5c4a61c398a7d6e260c045efe636fc1a0dbc781dd15b44
7
- data.tar.gz: 22e70e7d376ca9ef5fca68e13b381eedd854afef4d315a2d2e18c6c2b64562e2d1952d8a17dad309171bc33dc489728004cbf9bc668fd39fc6d4e81a18bc2aa8
6
+ metadata.gz: 236b8fbeefcac0593ea2f92ec0ce5adc329509b68a5063fedf725089f08d81b6cd7540d20d0e0e9e1b02acd769f91e1d89bdd945ea0a2b9dd55d2f03545b1de6
7
+ data.tar.gz: ca0b76392edc0cbe5389e9fc870c7a547798e8195ca584e53b2c8939ea481301110b12fdf85f023271bfbc44d07e16d4e56880f4a820f403701e2543fa2d2e1f
@@ -1,5 +1,31 @@
1
1
  # ChangeLog
2
2
 
3
+ ## Unreleased
4
+
5
+ ## [1.27.4](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.3...1.27.4) (2020-09-16)
6
+
7
+ **Fixed**
8
+
9
+ * Retrieve all objects when using `copy_index` from `AccountClient` class ([399](https://github.com/algolia/algoliasearch-client-ruby/pull/399))
10
+
11
+ ## [1.27.3](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.2...1.27.3) (2020-06-03)
12
+
13
+ **Fixed**
14
+
15
+ * Replace expired certificate within embedded certificate chain ([9087dd1](https://github.com/algolia/algoliasearch-client-ruby/commit/9087dd14a97bf77c9391a3360c4803edf686086d))
16
+
17
+ ## [1.27.2](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.1...1.27.2) (2020-04-28)
18
+
19
+ **Fixed**
20
+
21
+ * In `search_user_id`, retrieve param `cluster` instead of `clusterName`. [368](https://github.com/algolia/algoliasearch-client-ruby/issues/368)
22
+
23
+ ## [1.27.1](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.0...1.27.1) (2019-09-26)
24
+
25
+ **Fixed**
26
+
27
+ * Update `Algolia::Index.exists` method to `Algolia::Index.exists?`. [364](https://github.com/algolia/algoliasearch-client-ruby/issues/364)
28
+
3
29
  ## [1.27.0](https://github.com/algolia/algoliasearch-client-ruby/releases/tag/1.27.0) (2019-09-16)
4
30
 
5
31
  **Added**
@@ -1,271 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algoliasearch (1.26.1)
4
+ algoliasearch (1.27.4)
5
5
  httpclient (~> 2.8, >= 2.8.3)
6
6
  json (>= 1.5.1)
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
+ backports (3.18.2)
14
+ connection_pool (2.2.3)
13
15
  crack (0.4.3)
14
16
  safe_yaml (~> 1.0.0)
15
- diff-lcs (1.3)
17
+ diff-lcs (1.4.4)
16
18
  docile (1.3.2)
17
19
  ethon (0.12.0)
18
20
  ffi (>= 1.3.0)
19
- faraday (0.15.4)
21
+ faraday (0.17.3)
20
22
  multipart-post (>= 1.2, < 3)
21
- faraday_middleware (0.13.1)
23
+ faraday_middleware (0.14.0)
22
24
  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)
25
+ ffi (1.13.1)
26
+ gh (0.14.0)
27
+ addressable
27
28
  backports
28
29
  faraday (~> 0.8)
29
30
  multi_json (~> 1.0)
30
- net-http-persistent (~> 2.9)
31
+ net-http-persistent (>= 2.7)
31
32
  net-http-pipeline
32
- hashdiff (1.0.0)
33
+ hashdiff (1.0.1)
33
34
  highline (1.7.10)
34
35
  httpclient (2.8.3)
35
- json (2.2.0)
36
- launchy (2.4.3)
37
- addressable (~> 2.3)
38
- multi_json (1.13.1)
36
+ json (2.3.1)
37
+ launchy (2.5.0)
38
+ addressable (~> 2.7)
39
+ multi_json (1.15.0)
39
40
  multipart-post (2.1.1)
40
- net-http-persistent (2.9.4)
41
+ net-http-persistent (4.0.0)
42
+ connection_pool (~> 2.2)
41
43
  net-http-pipeline (1.0.1)
44
+ public_suffix (4.0.6)
42
45
  pusher-client (0.6.2)
43
46
  json
44
47
  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)
48
+ rake (13.0.1)
49
+ rdoc (6.2.1)
50
+ rspec (3.9.0)
51
+ rspec-core (~> 3.9.0)
52
+ rspec-expectations (~> 3.9.0)
53
+ rspec-mocks (~> 3.9.0)
54
+ rspec-core (3.9.2)
55
+ rspec-support (~> 3.9.3)
56
+ rspec-expectations (3.9.2)
54
57
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-mocks (3.8.1)
58
+ rspec-support (~> 3.9.0)
59
+ rspec-mocks (3.9.1)
57
60
  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)
61
+ rspec-support (~> 3.9.0)
62
+ rspec-support (3.9.3)
262
63
  safe_yaml (1.0.5)
263
- simplecov (0.17.0)
64
+ simplecov (0.19.0)
264
65
  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)
66
+ simplecov-html (~> 0.11)
67
+ simplecov-html (0.12.2)
68
+ travis (1.8.13)
269
69
  backports
270
70
  faraday (~> 0.9)
271
71
  faraday_middleware (~> 0.9, >= 0.9.1)
@@ -276,7 +76,7 @@ GEM
276
76
  typhoeus (~> 0.6, >= 0.6.8)
277
77
  typhoeus (0.8.0)
278
78
  ethon (>= 0.8.0)
279
- webmock (3.7.2)
79
+ webmock (3.8.3)
280
80
  addressable (>= 2.3.6)
281
81
  crack (>= 0.3.2)
282
82
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -296,4 +96,4 @@ DEPENDENCIES
296
96
  webmock
297
97
 
298
98
  BUNDLED WITH
299
- 2.0.2
99
+ 1.17.2
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
 
@@ -18,6 +18,7 @@
18
18
  <a href="https://discourse.algolia.com" target="_blank">Community Forum</a> •
19
19
  <a href="http://stackoverflow.com/questions/tagged/algolia" target="_blank">Stack Overflow</a> •
20
20
  <a href="https://github.com/algolia/algoliasearch-client-ruby/issues" target="_blank">Report a bug</a> •
21
+ <a href="https://www.algolia.com/doc/api-client/troubleshooting/faq/ruby/" target="_blank">FAQ</a> •
21
22
  <a href="https://www.algolia.com/support" target="_blank">Support</a>
22
23
  </p>
23
24
 
@@ -51,6 +52,10 @@ objects = index.search('Fo')
51
52
 
52
53
  For full documentation, visit the **[Algolia Ruby API Client](https://www.algolia.com/doc/api-client/getting-started/install/ruby/)**.
53
54
 
55
+ ## ❓ Troubleshooting
56
+
57
+ Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/ruby/) where you will find answers for the most common issues and gotchas with the client.
58
+
54
59
  ## 📄 License
55
60
 
56
61
  Algolia Ruby API Client is an open-sourced software licensed under the [MIT license](LICENSE.md).
@@ -23,6 +23,8 @@ Gem::Specification.new do |s|
23
23
  "source_code_uri" => "https://github.com/algolia/algoliasearch-client-ruby"
24
24
  }
25
25
 
26
+ s.post_install_message = "A new major version is available for Algolia! Please now use the https://rubygems.org/gems/algolia gem to get the latest features."
27
+
26
28
  s.require_paths = ["lib"]
27
29
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
28
30
 
@@ -64,17 +66,21 @@ Gem::Specification.new do |s|
64
66
  s.specification_version = 4
65
67
 
66
68
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
69
+ if defined?(RUBY_VERSION) && RUBY_VERSION < '2.0'
70
+ s.add_runtime_dependency 'json', '>= 1.5.1', '< 2.3'
71
+ else
72
+ s.add_runtime_dependency 'json', '>= 1.5.1'
73
+ end
67
74
  s.add_runtime_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
68
- s.add_runtime_dependency 'json', '>= 1.5.1'
69
75
  s.add_development_dependency 'travis', '~> 0'
70
76
  s.add_development_dependency 'rake', '~> 0'
71
77
  s.add_development_dependency 'rdoc', '~> 0'
72
78
  else
73
79
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
74
- s.add_dependency 'json', '>= 1.5.1'
80
+ s.add_dependency 'json', '>= 1.5.1', '< 2.3'
75
81
  end
76
82
  else
77
83
  s.add_dependency 'httpclient', '~> 2.8', '>= 2.8.3'
78
- s.add_dependency 'json', '>= 1.5.1'
84
+ s.add_dependency 'json', '>= 1.5.1', '< 2.3'
79
85
  end
80
86
  end
@@ -55,7 +55,7 @@ module Algolia
55
55
  batch_size = 1000
56
56
  count = 0
57
57
 
58
- source_index.browse()['hits'].each do |obj|
58
+ source_index.browse do |obj|
59
59
  batch << obj
60
60
  count += 1
61
61
 
@@ -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)
@@ -1266,7 +1266,7 @@ module Algolia
1266
1266
  res = []
1267
1267
  page = 0
1268
1268
  loop do
1269
- curr = search_rules('', { :hits_per_page => hits_per_page, :page => page }, request_options)['hits']
1269
+ curr = search_rules('', { :hitsPerPage => hits_per_page, :page => page }, request_options)['hits']
1270
1270
  curr.each do |rule|
1271
1271
  res << rule
1272
1272
  yield rule if block_given?
@@ -1295,6 +1295,11 @@ module Algolia
1295
1295
  return true
1296
1296
  end
1297
1297
 
1298
+ #
1299
+ # Aliases the exists method
1300
+ #
1301
+ alias :exists? :exists
1302
+
1298
1303
  # Deprecated
1299
1304
  alias_method :get_user_key, :get_api_key
1300
1305
  alias_method :list_user_keys, :list_api_keys
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = "1.27.0"
2
+ VERSION = "1.27.5"
3
3
  end
@@ -16,6 +16,43 @@
16
16
 
17
17
  # @(#) $RCSfile: certdata.txt,v $ $Revision: 1.87 $ $Date: 2012/12/29 16:32:45 $
18
18
 
19
+ USERTrust RSA root CA
20
+ =====================
21
+ -----BEGIN CERTIFICATE-----
22
+ MIIF3jCCA8agAwIBAgIQAf1tMPyjylGoG7xkDjUDLTANBgkqhkiG9w0BAQwFADCB
23
+ iDELMAkGA1UE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yberTrust Global Root
20
57
  ==========================
21
58
  -----BEGIN CERTIFICATE-----
@@ -551,30 +588,6 @@ mYbvP33zGDLKe8bjq2RGlfgmadlVg3sslgf/WSxEo8bl6ancoWOAWiFeIc9TVPC6b4nbqKqVz4vj
551
588
  ccweGyBECMB6tkD9xOQ14R0WHNC8K47Wcdk=
552
589
  -----END CERTIFICATE-----
553
590
 
554
- AddTrust External Root
555
- ======================
556
- -----BEGIN CERTIFICATE-----
557
- MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
558
- QWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYD
559
- VQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEw
560
- NDgzOFowbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
561
- cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0Eg
562
- Um9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvtH7xsD821
563
- +iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9uMq/NzgtHj6RQa1wVsfw
564
- Tz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzXmk6vBbOmcZSccbNQYArHE504B4YCqOmo
565
- aSYYkKtMsE8jqzpPhNjfzp/haW+710LXa0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy
566
- 2xSoRcRdKn23tNbE7qzNE0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv7
567
- 7+ldU9U0WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYDVR0P
568
- BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0Jvf6xCZU7wO94CTL
569
- VBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRk
570
- VHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENB
571
- IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZl
572
- j7DYd7usQWxHYINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
573
- 6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvCNr4TDea9Y355
574
- e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEXc4g/VhsxOBi0cQ+azcgOno4u
575
- G+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5amnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
576
- -----END CERTIFICATE-----
577
-
578
591
  AddTrust Public Services Root
579
592
  =============================
580
593
  -----BEGIN CERTIFICATE-----
@@ -47,9 +47,7 @@ describe 'Account client' do
47
47
 
48
48
  it 'should perform a cross app copy index and assert that destination must not exist' do
49
49
 
50
- @index_1.save_objects! ([
51
- {:objectID => 'one'},
52
- ])
50
+ @index_1.save_objects!(1.upto(1500).map { |i| { :objectID => i, :i => i } })
53
51
 
54
52
  @index_1.batch_rules! ([
55
53
  {
@@ -67,9 +65,8 @@ describe 'Account client' do
67
65
 
68
66
  Algolia::AccountClient.copy_index!(@index_1, @index_3)
69
67
 
70
- res = @index_3.search('');
71
- res['nbHits'].should eq(1)
72
- res['hits'][0]['objectID'].should eq('one')
68
+ res = @index_3.search('')
69
+ res['nbHits'].should eq(1500)
73
70
 
74
71
  res = @index_3.search_rules('')['hits']
75
72
  res.size.should eq(1)
@@ -177,12 +177,12 @@ describe 'Client' do
177
177
 
178
178
  it "should tell if index exists" do
179
179
  @index.add_object!({ :name => "John Doe", :email => "john@doe.org" }, "1")
180
- expect(@index.exists).to be true
180
+ expect(@index.exists?).to be true
181
181
  end
182
182
 
183
183
  it "should tell if index does not exist" do
184
184
  index = Algolia::Index.new('nonexistent_index')
185
- expect(index.exists).to be false
185
+ expect(index.exists?).to be false
186
186
  end
187
187
 
188
188
  it "should add a simple object" do
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.0
4
+ version: 1.27.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
11
+ date: 2020-10-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
@@ -130,7 +130,8 @@ metadata:
130
130
  documentation_uri: http://www.rubydoc.info/gems/algoliasearch
131
131
  homepage_uri: https://www.algolia.com/doc/api-client/ruby/getting-started/
132
132
  source_code_uri: https://github.com/algolia/algoliasearch-client-ruby
133
- post_install_message:
133
+ post_install_message: A new major version is available for Algolia! Please now use
134
+ the https://rubygems.org/gems/algolia gem to get the latest features.
134
135
  rdoc_options: []
135
136
  require_paths:
136
137
  - lib
@@ -145,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  - !ruby/object:Gem::Version
146
147
  version: '0'
147
148
  requirements: []
148
- rubygems_version: 3.0.4
149
- signing_key:
149
+ rubygems_version: 3.0.3
150
+ signing_key:
150
151
  specification_version: 4
151
152
  summary: A simple Ruby client for the algolia.com REST API
152
153
  test_files: []