meilisearch 0.19.1 β†’ 0.20.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: baef66d6ee72247efa51f7789857e45da0380221c2c8bca1def9faf7c94604dc
4
- data.tar.gz: 671cc838677bf43b043cad0157ee9132a0485d4099076fde963a13a4a27f5e54
3
+ metadata.gz: a40fa643cb41246f5e77e635458aa3e516b76806e63f10e41d49eae41a2fd357
4
+ data.tar.gz: deb1618089a993f0f34e79b836ebc650db402253939c95ad1c15cb222d15a33d
5
5
  SHA512:
6
- metadata.gz: bab42e61c5daed521738024b4ff881ec36422aa820ea2dd009025d802d444cedabb208a31e9db8c15fd6dfc6ad6d0b900d14eeb34382fe33ae7d1bf3c4c5ed92
7
- data.tar.gz: abc4c9088b6c396aa6256ed8d35aea3d06f74ec32cadf2645712baf452b3c6e85f490521bc805b885d7d0c84643378819bee3ccfa2be1dd1bdb90f86b97020d8
6
+ metadata.gz: a3e5ff462a29b80b1b8a36060301d42064563a9211109465bbc58b004bc7c5125c851ef9e22afb5c36c9c9197e1fa09ff30a3de8e90a57a9e9edfeb85a58723d
7
+ data.tar.gz: 287b3057c280021c31ff7e40ef91f8fc4c8733f52ae728ecc421b0b5ebfb0781ea02591804ef052da89cf37c006d6c0a03b20afc65b249ad4264ad9c59b750a3
data/README.md CHANGED
@@ -28,6 +28,7 @@
28
28
 
29
29
  ## Table of Contents <!-- omit in toc -->
30
30
 
31
+ - [πŸŽƒ Hacktoberfest](#-hacktoberfest)
31
32
  - [πŸ“– Documentation](#-documentation)
32
33
  - [πŸ”§ Installation](#-installation)
33
34
  - [πŸš€ Getting Started](#-getting-started)
@@ -35,6 +36,14 @@
35
36
  - [πŸ’‘ Learn More](#-learn-more)
36
37
  - [βš™οΈ Development Workflow and Contributing](#️-development-workflow-and-contributing)
37
38
 
39
+ ## πŸŽƒ Hacktoberfest
40
+
41
+ It’s Hacktoberfest 2022 @Meilisearch
42
+
43
+ [Hacktoberfest](https://hacktoberfest.com/) is a celebration of the open-source community. This year, and for the third time in a row, Meilisearch is participating in this fantastic event.
44
+
45
+ You’d like to contribute? Don’t hesitate to check out our [contributing guidelines](./CONTRIBUTING.md).
46
+
38
47
  ## πŸ“– Documentation
39
48
 
40
49
  See our [Documentation](https://docs.meilisearch.com/learn/tutorials/getting_started.html) or our [API References](https://docs.meilisearch.com/reference/api/).
@@ -197,7 +206,7 @@ JSON output:
197
206
 
198
207
  ## πŸ€– Compatibility with Meilisearch
199
208
 
200
- This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0).
209
+ This package only guarantees the compatibility with the [version v0.29.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.29.0).
201
210
 
202
211
  ## πŸ’‘ Learn More
203
212
 
@@ -90,7 +90,10 @@ module MeiliSearch
90
90
  {
91
91
  'Content-Type' => 'application/json',
92
92
  'Authorization' => ("Bearer #{@api_key}" unless @api_key.nil?),
93
- 'User-Agent' => MeiliSearch.qualified_version
93
+ 'User-Agent' => [
94
+ @options.fetch(:client_agents, []),
95
+ MeiliSearch.qualified_version
96
+ ].flatten.join(';')
94
97
  }.compact
95
98
  end
96
99
 
@@ -396,5 +396,35 @@ module MeiliSearch
396
396
  def reset_pagination
397
397
  http_delete "/indexes/#{@uid}/settings/pagination"
398
398
  end
399
+
400
+ def typo_tolerance
401
+ http_get("/indexes/#{@uid}/settings/typo-tolerance")
402
+ end
403
+ alias get_typo_tolerance typo_tolerance
404
+
405
+ def update_typo_tolerance(typo_tolerance_attributes)
406
+ attributes = Utils.transform_attributes(typo_tolerance_attributes)
407
+ http_patch("/indexes/#{@uid}/settings/typo-tolerance", attributes)
408
+ end
409
+ alias typo_tolerance= update_typo_tolerance
410
+
411
+ def reset_typo_tolerance
412
+ http_delete("/indexes/#{@uid}/settings/typo-tolerance")
413
+ end
414
+
415
+ def faceting
416
+ http_get("/indexes/#{@uid}/settings/faceting")
417
+ end
418
+ alias get_faceting faceting
419
+
420
+ def update_faceting(faceting_attributes)
421
+ attributes = Utils.transform_attributes(faceting_attributes)
422
+ http_patch("/indexes/#{@uid}/settings/faceting", attributes)
423
+ end
424
+ alias faceting= update_faceting
425
+
426
+ def reset_faceting
427
+ http_delete("/indexes/#{@uid}/settings/faceting")
428
+ end
399
429
  end
400
430
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MeiliSearch
4
- VERSION = '0.19.1'
4
+ VERSION = '0.20.0'
5
5
 
6
6
  def self.qualified_version
7
7
  "Meilisearch Ruby (v#{VERSION})"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meilisearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meili
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-26 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty