Skip to content

Conversation

@curquiza
Copy link
Member

Fixes #268

@curquiza curquiza added the bug Something isn't working label Nov 18, 2021
@curquiza curquiza merged commit c0bfc68 into main Nov 18, 2021
@curquiza curquiza deleted the fix-load-file-error branch November 18, 2021 13:47
meili-bors bot added a commit that referenced this pull request Dec 7, 2021
270: Add Dir glob to prevent LoadError's again r=curquiza a=brunoocasali

Related to #268
The issue was already fixed by #269 PR.

But the idea of this PR is to prevent that kind of error from happening again in the future.
Actually, I didn’t find a really good way to test this behavior in RSpec, if anyone has an idea, please ping me :)

I've builded locally the gem and tested in irb, everything seems to be working fine:

```rb
irb(main):001:0> require 'meilisearch'
=> true
irb(main):002:0> MeiliSearch::VERSION
=> "0.17.2.beta"
irb(main):003:0> new_client = MeiliSearch::Client.new('http://localhost:7700', 'masterKey')
=> #<MeiliSearch::Client:0x00007fa0f586b3c8 `@base_url="http://localhost:7700",` `@api_key="masterKey",` `@options={},` `@headers={"Content-Type"=>"application/json",` "X-Meili-API-Key"=>"masterKey"}, `@hea...`
irb(main):004:0> new_client.indexes
=> []
irb(main):005:0> 
```

Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot load such file meilisearch/utils

2 participants