meilisearch 0.19.1 → 0.19.2

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: 67fd01c01f58eb04e3d5e8d33c12f66a6ed9601d743444d8ade60f93cd05e322
4
+ data.tar.gz: aa37afae83757583053e1fdd821ef8e87f0e518edbfe1c52c2abba3d27610b4a
5
5
  SHA512:
6
- metadata.gz: bab42e61c5daed521738024b4ff881ec36422aa820ea2dd009025d802d444cedabb208a31e9db8c15fd6dfc6ad6d0b900d14eeb34382fe33ae7d1bf3c4c5ed92
7
- data.tar.gz: abc4c9088b6c396aa6256ed8d35aea3d06f74ec32cadf2645712baf452b3c6e85f490521bc805b885d7d0c84643378819bee3ccfa2be1dd1bdb90f86b97020d8
6
+ metadata.gz: 04b69743166d96c14954eb5a06ad77f1d8edd9b7e6884f8fc19f2235ee88897adc570cb68cc39357bedb993eaad0312979f746bf3773bbf54a130bb347b9fa25
7
+ data.tar.gz: 242457a2a1aacebcc754a7380976e289f9691bbf8c2d08a3395f70e2608ae4516286329316c28de0ec2fd342499d93b6384f1f14c04e98c21672f402a79de4c5
@@ -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.19.2'
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.19.2
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-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty