Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.14.0-SNAPSHOT
stack-version: 8.15.0-SNAPSHOT
security-enabled: false
- uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
sudo sysctl -w vm.max_map_count=262144
- uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.14.0-SNAPSHOT
stack-version: 8.15.0-SNAPSHOT
security-enabled: false
- uses: ruby/setup-ruby@v1
with:
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## 8.0.0

First general availability release for `8.0.0`. Major versions of `8.x` will support Elasticsearch version `8.x` changing the `elasticsearch` dependency's major version: `gem 'elasticsearch', '~> 8'`.
All references to `type` should have been removed. Document types were deprecated and do not exist in `8.x`.

The dependency from `elasticsearch` on `elasticsearch-transport` was updated to `elastic-transport`. All `8.x` Elasticsearch APIs supported by `elasticsearch` should now be supported on the Rails library. See [Release notes for the Elasticsearch client 8.0](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/release_notes_80.html) and the [8.x release notes](https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/release_notes.html#_8_x) for more information.

### Compatibility

The gem is currently testing with Ruby 3.1, 3.2 and 3.3 and JRuby 9.4. Testing for Ruby `2.x` versions has been dropped as they're no longer updated or supported. Currently testing with Rails 6.1, 7.0 and 7.1.

### Changes since 8.0.0.pre

- Address Rails 7.1 deprecation warning in elasticsearch-rails [PR](https://github.com/elastic/elasticsearch-rails/pull/1067)
- Ensure subclasses are added to the registry [PR](https://github.com/elastic/elasticsearch-rails/pull/1073)

### Development changes

- Using `debug` for debugging in `development` and `testing` Gemfile groups.
- Minor general code cleanups and styling changes.
- Updated code for `elasticsearch` 8.x.

## 7.2.1

* The default git branch `master` has been renamed to `main`
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-model/elasticsearch-model.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ Gem::Specification.new do |s|
unless defined?(JRUBY_VERSION)
s.add_development_dependency 'oj'
s.add_development_dependency 'ruby-prof'
s.add_development_dependency 'sqlite3'
s.add_development_dependency 'sqlite3', '~> 1.4'
end
end
2 changes: 1 addition & 1 deletion elasticsearch-model/gemfiles/6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gemspec path: '../'

gem 'activemodel', '6.1'
gem 'activerecord', '6.1'
gem 'sqlite3' unless defined?(JRUBY_VERSION)
gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
# gem 'mongoid', '~> 6'

group :development, :testing do
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-model/gemfiles/7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gemspec path: '../'

gem 'activemodel', '~> 7'
gem 'activerecord', '~> 7'
gem 'sqlite3' unless defined?(JRUBY_VERSION)
gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
# gem 'mongoid', '~> 6'

group :development, :testing do
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-model/gemfiles/7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ gemspec path: '../'

gem 'activemodel', '~> 7.1'
gem 'activerecord', '~> 7.1'
gem 'sqlite3' unless defined?(JRUBY_VERSION)
gem 'sqlite3', '~> 1.4' unless defined?(JRUBY_VERSION)
# gem 'mongoid', '~> 6'

group :development, :testing do
Expand Down
2 changes: 1 addition & 1 deletion elasticsearch-rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ group :development, :testing do
gem 'pry-nav'
gem 'rspec'
unless defined?(JRUBY_VERSION)
gem 'sqlite3'
gem 'sqlite3', '~> 1.4'
gem 'debug'
end
end