elasticsearch-model 8.0.0.pre → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/elasticsearch-model.gemspec +1 -1
- data/gemfiles/6.1.gemfile +1 -1
- data/gemfiles/7.0.gemfile +1 -1
- data/gemfiles/7.1.gemfile +1 -1
- data/lib/elasticsearch/model/version.rb +1 -1
- data/lib/elasticsearch/model.rb +5 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59f777d222c903faedd6455331f6d784114bda8c6bb5e5d135fd7bc3aaef6adc
|
4
|
+
data.tar.gz: eff30de335c6748463490b938dc583215939388b781f23b795b9549254c001b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a06372240d9f71e9549fb745ebed859dcd654ea1285b8081ab87edfcfac6f8cf912f9b94929f8ace1acef190407b517d8b55968615f6f368936f9d4f87f1e0d
|
7
|
+
data.tar.gz: 07b61d6418b834b044e5d85f744a1139d3c2b9808be6f0e3ce417f24b87f10f2a14cbfa368fee372d662d2f778c1858d63ddcef4b2ece7d70bb7dbe6404ec95d
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ It aims to simplify integration of Ruby classes ("models"), commonly found e.g.
|
|
8
8
|
|
9
9
|
This library is compatible with Ruby 3 and higher.
|
10
10
|
|
11
|
-
The version numbers follow the Elasticsearch major versions. Currently the `main` branch is compatible with version `
|
11
|
+
The version numbers follow the Elasticsearch major versions. Currently the `main` branch is compatible with version `8.x` of the Elasticsearch stack.
|
12
12
|
|
13
13
|
| Rubygem | | Elasticsearch |
|
14
14
|
|:-------:|:-:|:-------------:|
|
@@ -141,7 +141,7 @@ Elasticsearch::Model.client = Elasticsearch::Client.new log: true
|
|
141
141
|
You might want to do this during your application bootstrap process, e.g. in a Rails initializer.
|
142
142
|
|
143
143
|
Please refer to the
|
144
|
-
[`
|
144
|
+
[`elastic-transport`](https://github.com/elastic/elastic-transport-ruby/)
|
145
145
|
library documentation for all the configuration options, and to the
|
146
146
|
[`elasticsearch-api`](http://rubydoc.info/gems/elasticsearch-api) library documentation
|
147
147
|
for information about the Ruby client API.
|
data/elasticsearch-model.gemspec
CHANGED
data/gemfiles/6.1.gemfile
CHANGED
data/gemfiles/7.0.gemfile
CHANGED
data/gemfiles/7.1.gemfile
CHANGED
data/lib/elasticsearch/model.rb
CHANGED
@@ -112,6 +112,11 @@ module Elasticsearch
|
|
112
112
|
METHODS.each do |method|
|
113
113
|
delegate method, to: :__elasticsearch__ unless self.public_instance_methods.include?(method)
|
114
114
|
end
|
115
|
+
|
116
|
+
def inherited(subclass)
|
117
|
+
super
|
118
|
+
Registry.add(subclass) if subclass.is_a?(Class)
|
119
|
+
end
|
115
120
|
end
|
116
121
|
end
|
117
122
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.0
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic Client Library Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -294,16 +294,16 @@ dependencies:
|
|
294
294
|
name: sqlite3
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- - "
|
297
|
+
- - "~>"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version: '
|
299
|
+
version: '1.4'
|
300
300
|
type: :development
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
|
-
- - "
|
304
|
+
- - "~>"
|
305
305
|
- !ruby/object:Gem::Version
|
306
|
-
version: '
|
306
|
+
version: '1.4'
|
307
307
|
description: ActiveModel/Record integrations for Elasticsearch.
|
308
308
|
email:
|
309
309
|
- client-libs@elastic.co
|
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
441
441
|
- !ruby/object:Gem::Version
|
442
442
|
version: '0'
|
443
443
|
requirements: []
|
444
|
-
rubygems_version: 3.5.
|
444
|
+
rubygems_version: 3.5.9
|
445
445
|
signing_key:
|
446
446
|
specification_version: 4
|
447
447
|
summary: ActiveModel/Record integrations for Elasticsearch.
|