estella 7.0.0 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +1 -2
- data/RELEASING.md +1 -1
- data/lib/estella/analysis.rb +1 -1
- data/lib/estella/searchable.rb +2 -2
- data/lib/estella/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5793640ef7cc26547291feebe119886905b1addd6cd55ddb726b97ee8c389e7b
|
4
|
+
data.tar.gz: 4c47e8bac06766622093b0e2284408ee3c22f1613e93f294556f0a4a4a437dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 136c90c42ac8d4e9f4581166f82d79f7f18f76c2513498f3ef3a40e30fa3af78a47a59958f1fb078cdcfa35410557e3f6b5a6a00c825439b0e4b817364c944a0
|
7
|
+
data.tar.gz: 698ba993e483812629dc77439d9ddcca157f3a81c5129f212604eba2f4560417ff734e86e977632568a554a092718a3ddfceb72052e97924e7e088e9f84f67a0
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
## Changelog
|
2
2
|
|
3
|
-
###
|
3
|
+
### v7.0.2
|
4
|
+
|
5
|
+
* [#45](https://github.com/artsy/estella/pull/45): chore: switch to a non deprecated ngram filter name - [@ovasdi]
|
6
|
+
|
7
|
+
### v7.0.1
|
8
|
+
|
9
|
+
* [#43](https://github.com/artsy/estella/pull/43): chore: docs - [@ovasdi]
|
10
|
+
* [#42](https://github.com/artsy/estella/pull/42): feat: searchable module index_slug supports FriendlyId - [@ovasdi]
|
4
11
|
|
5
12
|
### v7.0.0
|
6
13
|
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# estella
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/estella.svg)](https://badge.fury.io/rb/estella)
|
4
|
-
[![Build Status](https://
|
5
|
-
[![License Status](https://git.legal/projects/3493/badge.svg)](https://git.legal/projects/3493)
|
4
|
+
[![Build Status](https://dl.circleci.com/status-badge/img/gh/artsy/estella/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/artsy/estella/tree/main)
|
6
5
|
[![Coverage Status](https://coveralls.io/repos/github/artsy/estella/badge.svg?branch=main)](https://coveralls.io/github/artsy/estella?branch=main)
|
7
6
|
|
8
7
|
Builds on [elasticsearch-model](https://github.com/elastic/elasticsearch-rails/tree/main/elasticsearch-model) to make your Ruby objects searchable with Elasticsearch. Provides fine-grained control of fields, analysis, filters, weightings and boosts.
|
data/RELEASING.md
CHANGED
@@ -11,7 +11,7 @@ bundle install
|
|
11
11
|
rake
|
12
12
|
```
|
13
13
|
|
14
|
-
Check that the last build succeeded in [
|
14
|
+
Check that the last build succeeded in [Circle CI](https://app.circleci.com/pipelines/github/artsy/estella) for all supported platforms.
|
15
15
|
|
16
16
|
Increment the version, modify [lib/estella/version.rb](lib/estella/version.rb).
|
17
17
|
|
data/lib/estella/analysis.rb
CHANGED
@@ -6,7 +6,7 @@ module Estella
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
FRONT_NGRAM_FILTER =
|
9
|
-
{ type: '
|
9
|
+
{ type: 'edge_ngram', min_gram: 2, max_gram: 15, side: 'front' }
|
10
10
|
|
11
11
|
DEFAULT_ANALYZER =
|
12
12
|
{ type: 'custom', tokenizer: 'standard_tokenizer', filter: %w[lowercase asciifolding] }
|
data/lib/estella/searchable.rb
CHANGED
@@ -57,10 +57,10 @@ module Estella
|
|
57
57
|
end
|
58
58
|
|
59
59
|
module ClassMethods
|
60
|
-
# support for mongoid::slug
|
60
|
+
# support for mongoid::slug and friendly_id (AR slugs)
|
61
61
|
# indexes slug attribute by default
|
62
62
|
def index_slug
|
63
|
-
if
|
63
|
+
if method_defined?(:slug) || method_defined?(:friendly_id)
|
64
64
|
indexed_fields.merge!(slug: { type: :keyword })
|
65
65
|
indexed_json.merge!(slug: :slug)
|
66
66
|
end
|
data/lib/estella/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: estella
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anil Bawa-Cavia
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.5.
|
203
|
+
rubygems_version: 3.5.14
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Make your Ruby objects searchable with Elasticsearch.
|