Commit c6eb08f
Merge #270
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 <[email protected]>2 files changed
+2
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 9 | | |
18 | 10 | | |
19 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 15 | + | |
25 | 16 | | |
26 | 17 | | |
27 | 18 | | |
| |||
0 commit comments