meilisearch 0.15.3 → 0.15.4

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: e48c328b5e42361ede3a76e638721b8a2117b8fc6d6128c3709083fe9dae9f76
4
- data.tar.gz: 733ed1fbfded2147c3e440978b7f3bad5a212b54928eb0b41694a474ebafefcd
3
+ metadata.gz: 03f23776fd7b1baeabbfcc33fcd848f8bd89f56655579756d9e2c06492f8d824
4
+ data.tar.gz: d5137b74a7def336e41e746d56f714847be1f73185c5f05abf70a03310cc79b4
5
5
  SHA512:
6
- metadata.gz: efd4e7d40c5c1d676b2f4b2bd8ef4f80b980453d92ab5d894baf92142ba4a62153ad5654bdef24f45cf5877421be558299fcc7013b5127e173ff81b4b598d6ab
7
- data.tar.gz: 6360ee85bd1a6163ddc7baad68f185dbc82ad340ff1b4c6b5cf7f7767a4ec162cab4bb37f5c0742e4285115460526909681b27475bf94c40939198ef6c723ecc
6
+ metadata.gz: c2c1fee375d80f6e0c372438b3fbb4c76b4c504f0c7ddf1d12d810e89f93f8173e838b1d6d8cf1d57ba02f75277f784660379c8961ccb47884eb2e37d7a43f06
7
+ data.tar.gz: ab566b980a0ab15a5ffef99fb47520f667783c098e3ea81fa35784a12d1806846b18a80f42116f0605e2770655a62f35b97e8881983b08ff865de28fcde89c7a
@@ -88,7 +88,7 @@ module MeiliSearch
88
88
  private
89
89
 
90
90
  def index_object(uid, primary_key = nil)
91
- Index.new(uid, @base_url, @api_key, primary_key)
91
+ Index.new(uid, @base_url, @api_key, primary_key, @options)
92
92
  end
93
93
  end
94
94
  end
@@ -7,6 +7,8 @@ module MeiliSearch
7
7
  class HTTPRequest
8
8
  include HTTParty
9
9
 
10
+ attr_reader :options
11
+
10
12
  def initialize(url, api_key = nil, options = {})
11
13
  @base_url = url
12
14
  @api_key = api_key
@@ -7,10 +7,10 @@ module MeiliSearch
7
7
  class Index < HTTPRequest
8
8
  attr_reader :uid, :primary_key
9
9
 
10
- def initialize(index_uid, url, api_key = nil, primary_key = nil)
10
+ def initialize(index_uid, url, api_key = nil, primary_key = nil, options = {})
11
11
  @uid = index_uid
12
12
  @primary_key = primary_key
13
- super(url, api_key)
13
+ super(url, api_key, options)
14
14
  end
15
15
 
16
16
  def fetch_info
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MeiliSearch
4
- VERSION = '0.15.3'
4
+ VERSION = '0.15.4'
5
5
  end
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.15.3
4
+ version: 0.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Meili
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty