estella 5.0.0 → 5.0.1

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
- SHA1:
3
- metadata.gz: 9f1958b160694e75e7771648c51db035971f5977
4
- data.tar.gz: a178684df8dbcfdfbc73464aaac3c40cbdaf9611
2
+ SHA256:
3
+ metadata.gz: cc51b2dc360ad5c089a2cc5675b6c25d59ee98980628eea6f068b4a953710abe
4
+ data.tar.gz: 2b21201a658abe8dde10c9490565b7daf6b99e602d2a85ac467dcd0e394a0764
5
5
  SHA512:
6
- metadata.gz: 7664182130bd8c9016e7d6a606e733a7d88039c97167247b46d48a01ee18ebb01fe36a88a6aa1c55bd5c702727e31bff6eaa740151fa1aaac48d1fbea7b7b031
7
- data.tar.gz: 75e4fcbb9b614af1b498d5d143b3cc0508d9801cbb248d6231e8455fff27a42e096be8b5794b799406d35e0a3a09138f246ad15f241a5dad16dd3a0eb535e5e1
6
+ metadata.gz: e816c613fb01c7c9bf2c7d4f578cc739c6e3f754223c67f9e5c67fcef92cedac1dce97ff4050920556222d88ab19f652211e32a6edda730e9ceb19f32368f29c
7
+ data.tar.gz: 13b44813da03ace59e8f05fba39684e5c886177c4e49090978c5a40e659e9219e3cb63b62985561a9f29fa6c5276dc0985c8b09fc653bebbc33c169663011f11
@@ -1,5 +1,10 @@
1
1
  ## Changelog
2
2
 
3
+ ### 5.0.1
4
+
5
+ * [#33](https://github.com/artsy/estella/pull/32): Upgrade Rake to address [CVE-2020-8130](https://github.com/advisories/GHSA-jppv-gw3r-w3q8) - [@izakp](https://github.com/izakp).
6
+ * [#32](https://github.com/artsy/estella/pull/32): Revert Email analyzer - [@izakp](https://github.com/izakp).
7
+
3
8
  ### 5.0.0
4
9
 
5
10
  * [#29](https://github.com/artsy/estella/pull/29): Support Elasticsearch 5.x - [@izakp](https://github.com/izakp).
data/README.md CHANGED
@@ -9,7 +9,7 @@ Builds on [elasticsearch-model](https://github.com/elastic/elasticsearch-rails/t
9
9
 
10
10
  ## Compatibility
11
11
 
12
- This library is compatible with [Elasticsearch 1.5.x, 2.x](https://www.elastic.co/products/elasticsearch) and currently does not work with Elasticsearch 5.x (see [#18](https://github.com/artsy/estella/issues/18)). It works with many ORM/ODMs, including ActiveRecord and Mongoid.
12
+ This library is compatible with [Elasticsearch 1.5.x, 2.x](https://www.elastic.co/products/elasticsearch) when using versions `2.0.0` and earlier. It is compatible with Elasticsearch 5.x via version `5.0.0` or installing directly from the `master` branch of this repository. It works with many ORM/ODMs, including ActiveRecord and Mongoid.
13
13
 
14
14
  ## Dependencies
15
15
 
@@ -19,8 +19,8 @@ Gem::Specification.new do |gem|
19
19
  gem.add_runtime_dependency 'elasticsearch-model', '~> 5.0'
20
20
 
21
21
  gem.add_development_dependency 'activerecord'
22
- gem.add_development_dependency 'rake', '~> 11.0'
23
- gem.add_development_dependency 'rspec', '~> 3.1.0'
22
+ gem.add_development_dependency 'rake', '>= 12.3.3'
23
+ gem.add_development_dependency 'rspec', '>= 3.5'
24
24
  gem.add_development_dependency 'rspec-expectations'
25
25
  gem.add_development_dependency 'rubocop', '0.60.0'
26
26
  gem.add_development_dependency 'sqlite3'
@@ -18,9 +18,6 @@ module Estella
18
18
  NGRAM_ANALYZER =
19
19
  { type: 'custom', tokenizer: 'standard_tokenizer', filter: %w[lowercase asciifolding front_ngram_filter] }
20
20
 
21
- EMAIL_ANALYZER =
22
- { type: 'custom', tokenizer: 'uax_url_email', filter: %w[lowercase stop] }
23
-
24
21
  DEFAULT_ANALYSIS = {
25
22
  tokenizer: {
26
23
  standard_tokenizer: { type: 'standard' }
@@ -33,7 +30,6 @@ module Estella
33
30
  snowball_analyzer: SNOWBALL_ANALYZER,
34
31
  shingle_analyzer: SHINGLE_ANALYZER,
35
32
  ngram_analyzer: NGRAM_ANALYZER,
36
- email_analyzer: EMAIL_ANALYZER,
37
33
  search_analyzer: DEFAULT_ANALYZER
38
34
  }
39
35
  }
@@ -42,8 +38,7 @@ module Estella
42
38
  default: { type: 'text', analyzer: 'default_analyzer' },
43
39
  snowball: { type: 'text', analyzer: 'snowball_analyzer' },
44
40
  shingle: { type: 'text', analyzer: 'shingle_analyzer' },
45
- ngram: { type: 'text', analyzer: 'ngram_analyzer', search_analyzer: 'search_analyzer' },
46
- email: { type: 'text', analyzer: 'email_analyzer' }
41
+ ngram: { type: 'text', analyzer: 'ngram_analyzer', search_analyzer: 'search_analyzer' }
47
42
  }
48
43
 
49
44
  DEFAULT_FIELD_FACTORS = {
@@ -51,8 +46,7 @@ module Estella
51
46
  ngram: 10,
52
47
  snowball: 3,
53
48
  shingle: 2,
54
- search: 2,
55
- email: 2
49
+ search: 2
56
50
  }
57
51
 
58
52
  FULLTEXT_ANALYSIS = DEFAULT_FIELDS.keys
@@ -1,3 +1,3 @@
1
1
  module Estella
2
- VERSION = '5.0.0'
2
+ VERSION = '5.0.1'
3
3
  end
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: 5.0.0
4
+ version: 5.0.1
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: 2019-08-27 00:00:00.000000000 Z
12
+ date: 2020-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -71,30 +71,30 @@ dependencies:
71
71
  name: rake
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '11.0'
76
+ version: 12.3.3
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '11.0'
83
+ version: 12.3.3
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rspec
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - "~>"
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
- version: 3.1.0
90
+ version: '3.5'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 3.1.0
97
+ version: '3.5'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rspec-expectations
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  requirements: []
190
190
  rubyforge_project:
191
- rubygems_version: 2.5.1
191
+ rubygems_version: 2.7.6.2
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Make your Ruby objects searchable with Elasticsearch.