algoliasearch 1.27.3 → 1.27.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b8f0b51a88b74caae749998520d35ea8a006089c580e7a7dbb9e3438651c463
4
- data.tar.gz: a16f2830aa1af13d4731da6b2eb23ac731812d6d4751f7b9da9aff8feba5de99
3
+ metadata.gz: d05a0e17139977680099b2b1e1ee1e0901834ad0aeb20f8061a54d9f74def4d9
4
+ data.tar.gz: ad1178bb101f66b3dafb95d2e17f40abd6efa1593482b9d7ddd8965d73afbcf9
5
5
  SHA512:
6
- metadata.gz: 4a310ba42e3b4ad001d16debd277177d28dce746453793777e09509e0c9e7ffcef03d22119e0d1b50f5597e3d616f1a28f76d7b886c006c9c177cd6014726031
7
- data.tar.gz: 346211f63a67f947468b1cc4e687ce732463808a3efeb88d0249922f05dd156bf36633d551ff1480a7d6ffc8070391cee45815de622e395d05fa63ebc3fe031d
6
+ metadata.gz: bfc4fce2c92ca1aa22a814ca43051070600be031227dda2667348eea5ae6e0392c73534b35daf6b1966e6fdb6b380a1bc60d21a4669b3da6d6e6493901ebe330
7
+ data.tar.gz: acb939243bb56bb478ee96fd842b201631d39847296a51cf39e610420b2f5abd7d523bd1141b90eef0fa2dc0f2196f7936eca5417389b0a435299b1b98043cb4
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
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
+
5
11
  ## [1.27.3](https://github.com/algolia/algoliasearch-client-ruby/compare/1.27.2...1.27.3) (2020-06-03)
6
12
 
7
13
  **Fixed**
@@ -8,48 +8,41 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.2.4.3)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
11
  addressable (2.7.0)
17
12
  public_suffix (>= 2.0.2, < 5.0)
18
- concurrent-ruby (1.1.6)
13
+ backports (3.18.2)
14
+ connection_pool (2.2.3)
19
15
  crack (0.4.3)
20
16
  safe_yaml (~> 1.0.0)
21
- diff-lcs (1.3)
17
+ diff-lcs (1.4.4)
22
18
  docile (1.3.2)
23
19
  ethon (0.12.0)
24
20
  ffi (>= 1.3.0)
25
- faraday (1.0.1)
21
+ faraday (0.17.3)
26
22
  multipart-post (>= 1.2, < 3)
27
- faraday_middleware (1.0.0)
28
- faraday (~> 1.0)
29
- ffi (1.13.0)
23
+ faraday_middleware (0.14.0)
24
+ faraday (>= 0.7.4, < 1.0)
25
+ ffi (1.13.1)
30
26
  ffi2-generators (0.1.1)
31
- gh (0.17.0)
32
- activesupport (~> 5.0)
33
- addressable (~> 2.4)
34
- faraday (~> 1.0)
35
- faraday_middleware (~> 1.0)
27
+ gh (0.14.0)
28
+ addressable
29
+ backports
30
+ faraday (~> 0.8)
36
31
  multi_json (~> 1.0)
37
- net-http-persistent (~> 2.9)
32
+ net-http-persistent (>= 2.7)
38
33
  net-http-pipeline
39
34
  hashdiff (1.0.1)
40
- highline (2.0.3)
35
+ highline (1.7.10)
41
36
  httpclient (2.8.3)
42
- i18n (1.8.2)
43
- concurrent-ruby (~> 1.0)
44
- json (2.3.0)
45
- launchy (2.4.3)
46
- addressable (~> 2.3)
47
- minitest (5.14.1)
48
- multi_json (1.14.1)
37
+ json (2.3.1)
38
+ launchy (2.5.0)
39
+ addressable (~> 2.7)
40
+ multi_json (1.15.0)
49
41
  multipart-post (2.1.1)
50
- net-http-persistent (2.9.4)
42
+ net-http-persistent (4.0.0)
43
+ connection_pool (~> 2.2)
51
44
  net-http-pipeline (1.0.1)
52
- public_suffix (4.0.5)
45
+ public_suffix (4.0.6)
53
46
  pusher-client (0.6.2)
54
47
  json
55
48
  websocket (~> 1.0)
@@ -271,24 +264,21 @@ GEM
271
264
  rubysl-yaml (2.1.0)
272
265
  rubysl-zlib (2.0.1)
273
266
  safe_yaml (1.0.5)
274
- simplecov (0.18.5)
267
+ simplecov (0.19.0)
275
268
  docile (~> 1.1)
276
269
  simplecov-html (~> 0.11)
277
270
  simplecov-html (0.12.2)
278
- thread_safe (0.3.6)
279
- travis (1.9.1)
280
- faraday (~> 1.0)
281
- faraday_middleware (~> 1.0)
271
+ travis (1.8.13)
272
+ backports
273
+ faraday (~> 0.9)
274
+ faraday_middleware (~> 0.9, >= 0.9.1)
282
275
  gh (~> 0.13)
283
- highline (~> 2.0)
284
- json (~> 2.3)
285
- launchy (~> 2.1, < 2.5.0)
276
+ highline (~> 1.6)
277
+ launchy (~> 2.1)
286
278
  pusher-client (~> 0.4)
287
279
  typhoeus (~> 0.6, >= 0.6.8)
288
280
  typhoeus (0.8.0)
289
281
  ethon (>= 0.8.0)
290
- tzinfo (1.2.7)
291
- thread_safe (~> 0.1)
292
282
  webmock (3.8.3)
293
283
  addressable (>= 2.3.6)
294
284
  crack (>= 0.3.2)
@@ -300,6 +290,7 @@ PLATFORMS
300
290
 
301
291
  DEPENDENCIES
302
292
  algoliasearch!
293
+ gh (<= 0.14.0)
303
294
  rake
304
295
  rdoc
305
296
  rspec (>= 2.5.0)
@@ -309,4 +300,4 @@ DEPENDENCIES
309
300
  webmock
310
301
 
311
302
  BUNDLED WITH
312
- 2.1.4
303
+ 1.17.2
data/README.md CHANGED
@@ -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).
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Algolia
2
- VERSION = "1.27.3"
2
+ VERSION = "1.27.4"
3
3
  end
@@ -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)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.27.3
4
+ version: 1.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.0.6
148
+ rubygems_version: 3.0.4
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: A simple Ruby client for the algolia.com REST API