mongodb_meilisearch 1.2.1 → 1.3.0

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: 8dcda2174ac28dc1b3e134d90d2fc92b2d43e6815cab31dfc8a2c8954939d658
4
- data.tar.gz: 45b658a38a761d8c02bc1ee4d21f82d7762a60e749ba14b8ec53e987284bdc4f
3
+ metadata.gz: ff219e5de4c77b4b06515946701f57eee82588691ec7931d963a70011409c79a
4
+ data.tar.gz: c51b7f234431417abe62fdd5365a106b4d493fe9e49b7802726cdd61a519db48
5
5
  SHA512:
6
- metadata.gz: 425ebd155ffec9c67e96cbb8b028be16a27948566d8cd5e64bfb4226a9a3d89551a449cad2bc9c8ecb6dd2261cab702fdf426c603c82a5402d7660de90596149
7
- data.tar.gz: 322b9b928ea51c65df41906e872c9497af27b8cda2b2e04e0f1d360348c6ed9d4e7ebfad731d6e97956fa4d3cf0eb3b7b686db8352fcd2285be984690138eade
6
+ metadata.gz: b21b329983c8ac89de3e8543cccb021e63a7d1411b0cb464885ea3019fe815f7f72de8f408da1bc18d38cc2ebeac929f5491ec643ee3ea5e8a102dde3c582aae
7
+ data.tar.gz: 4c44d1ae3784917566bd6a1a2bb3993a718fe57d5cf97e7e9af21587a3587fda1d1c77764606ad21dd06b9c8e107eff82e7173d8d019ecd2e18dad46094a19a9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongodb_meilisearch (1.2.1)
4
+ mongodb_meilisearch (1.3.0)
5
5
  meilisearch
6
6
  mongoid (~> 7.0)
7
7
  rails
data/README.md CHANGED
@@ -43,7 +43,7 @@ The url below is the default one Meilisearch uses when run locally.
43
43
 
44
44
  ```bash
45
45
  SEARCH_ENABLED=true
46
- MEILISEARCH_API_KEY=<your api key here>
46
+ MEILI_MASTER_KEY=<your api key here>
47
47
  MEILISEARCH_URL=http://127.0.0.1:7700
48
48
 
49
49
  ```
@@ -5,5 +5,5 @@ module MongodbMeilisearch
5
5
  # @note This library will adhere to strict semantic versioning.
6
6
  # See https://semver.org/
7
7
  #
8
- VERSION = "1.2.1"
8
+ VERSION = "1.3.0"
9
9
  end
data/lib/search/client.rb CHANGED
@@ -8,7 +8,8 @@ module Search
8
8
  def initialize
9
9
  if ENV.fetch("SEARCH_ENABLED", "true") == "true"
10
10
  url = ENV.fetch("MEILISEARCH_URL")
11
- api_key = ENV.fetch("MEILISEARCH_API_KEY")
11
+ # MEILISEARCH_API_KEY is for mongodb_meilisearch v1.2.1 & earlier
12
+ api_key = ENV.fetch("MEILI_MASTER_KEY") || ENV.fetch("MEILISEARCH_API_KEY")
12
13
  timeout = ENV.fetch("MEILISEARCH_TIMEOUT", 10).to_i
13
14
  max_retries = ENV.fetch("MEILISEARCH_MAX_RETRIES", 2).to_i
14
15
  if url.present? && api_key.present?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb_meilisearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - masukomi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails