elasticsearch-model 8.0.0.pre → 8.0.0

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
2
  SHA256:
3
- metadata.gz: 0c760a3ffa71e37511564ccafa368fbaf6c7bb8329c0a472c9e1ef9b26739740
4
- data.tar.gz: 1ded565b299e1a95f35315bdff3645b564d401f2970943ad8c5445d6ee39e1ea
3
+ metadata.gz: 59f777d222c903faedd6455331f6d784114bda8c6bb5e5d135fd7bc3aaef6adc
4
+ data.tar.gz: eff30de335c6748463490b938dc583215939388b781f23b795b9549254c001b4
5
5
  SHA512:
6
- metadata.gz: a5fca8875b77ac7c26a9bb42802bca17bc88837c356a9ae83ca4404ea4779ad8bd2dc3c039332075a68a17cbfb5f815a34eacc93648dc70f50a42c12aea9026d
7
- data.tar.gz: 1d56f2c15d073532f89c31b78ccdeabc84ec1dc7dc501728770eea544f9ceb4e8d126570c8593e23dfb381f5249645de6ed0cecb288dbdf67de886e4ad200f45
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 `7.x` of the Elasticsearch stack. **We haven't tested and updated the code for Elasticsearch `8.0` yet**.
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
- [`elasticsearch-transport`](https://github.com/elastic/elasticsearch-ruby/tree/main/elasticsearch-transport)
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.
@@ -63,6 +63,6 @@ Gem::Specification.new do |s|
63
63
  unless defined?(JRUBY_VERSION)
64
64
  s.add_development_dependency 'oj'
65
65
  s.add_development_dependency 'ruby-prof'
66
- s.add_development_dependency 'sqlite3'
66
+ s.add_development_dependency 'sqlite3', '~> 1.4'
67
67
  end
68
68
  end
data/gemfiles/6.1.gemfile CHANGED
@@ -26,7 +26,7 @@ gemspec path: '../'
26
26
 
27
27
  gem 'activemodel', '6.1'
28
28
  gem 'activerecord', '6.1'
29
- gem 'sqlite3' unless defined?(JRUBY_VERSION)
29
+ gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
30
30
  # gem 'mongoid', '~> 6'
31
31
 
32
32
  group :development, :testing do
data/gemfiles/7.0.gemfile CHANGED
@@ -26,7 +26,7 @@ gemspec path: '../'
26
26
 
27
27
  gem 'activemodel', '~> 7'
28
28
  gem 'activerecord', '~> 7'
29
- gem 'sqlite3' unless defined?(JRUBY_VERSION)
29
+ gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
30
30
  # gem 'mongoid', '~> 6'
31
31
 
32
32
  group :development, :testing do
data/gemfiles/7.1.gemfile CHANGED
@@ -26,7 +26,7 @@ gemspec path: '../'
26
26
 
27
27
  gem 'activemodel', '~> 7.1'
28
28
  gem 'activerecord', '~> 7.1'
29
- gem 'sqlite3' unless defined?(JRUBY_VERSION)
29
+ gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
30
30
  # gem 'mongoid', '~> 6'
31
31
 
32
32
  group :development, :testing do
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module Model
20
- VERSION = '8.0.0.pre'.freeze
20
+ VERSION = '8.0.0'.freeze
21
21
  end
22
22
  end
@@ -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.pre
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-04-16 00:00:00.000000000 Z
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: '0'
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: '0'
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.3
444
+ rubygems_version: 3.5.9
445
445
  signing_key:
446
446
  specification_version: 4
447
447
  summary: ActiveModel/Record integrations for Elasticsearch.