elasticsearch_record 5.0.2 → 5.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c40dcd47630a8b238e2aea55c4a1fd11996618606267fac0aeb8ff1f6675cbae
4
- data.tar.gz: 6cf4bbabec3588fe3f65b97f10a7fb98cb79d163db044c845cca15d8b467fe35
3
+ metadata.gz: 7b18aa777ca6fea844dc752ed8ae1260ddc72636d59a8f5869e6570fc4f9a2c1
4
+ data.tar.gz: 512d03314871a38a3256844e644b53481ec7638baa51214ee43c089a2cc10165
5
5
  SHA512:
6
- metadata.gz: a22d8ee32007b72c6893e0f4a31f7b796f8f231665c7b3f56bb693fbf795e7ff014000105f69fb4c5817e97a985d93061c76c26f76dba877b16c4a5a4f635130
7
- data.tar.gz: 2de3a166ea5f5c9e06b96c923475d31e2683fc5c4c12d6e696a08f1efda7c4f100b2b1deb08f80fef2acb2787e78a4bb12126aa4ae4aabfec02d68d1c05c3dec
6
+ metadata.gz: b65e98fc0cf0c50380b984e6f8713836e433f7d9c8b79de566e900bd0b898e0a58da67d1fe1d8a7bb54ba47107c6be39b96cddb0a7792f4f007a5c96d7465e96
7
+ data.tar.gz: ef0f42e15d0b31befb0bc1eb1a38df21908d2d4302555b8d59f3750360aa556d3f0d4e9ebc2e0d758b25208e0c81628884968b259003a8587c1b40f50aed1603
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # ElasticsearchRecord - CHANGELOG
2
2
 
3
+ ## [5.0.3] - 2026-10-19
4
+ * [fix] `ElasticsearchRecord::Tasks::ElasticsearchDatabaseTasks#check_current_protected_environment!` - rails 8.1 asks every tasks class for it, so 'db:drop', 'db:purge', 'db:schema:load' & 'db:test:prepare' no longer abort with a `NoMethodError`
5
+
3
6
  ## [5.0.2] - 2026-09-17
4
7
  * [add] `Arel::Visitors::ElasticsearchQuery#visit_Arel_Nodes_Casted` & `#visit_Arel_Nodes_Quoted` - the value nodes `Arel::Attributes::Attribute#eq` & co. build for plain values
5
8
  * [add] specs for `SchemaMigration#delete_version` & `#delete_all_versions`
@@ -9,7 +9,7 @@ module ElasticsearchRecord
9
9
  module VERSION
10
10
  MAJOR = 5
11
11
  MINOR = 0
12
- TINY = 2
12
+ TINY = 3
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -34,6 +34,17 @@ module ElasticsearchRecord
34
34
  nil
35
35
  end
36
36
 
37
+ # Since rails 8.1 the protected-environment check of 'db:drop', 'db:purge', 'db:schema:load'
38
+ # & co. is asked of the tasks class of every database config
39
+ # (+ActiveRecord::Tasks::DatabaseTasks.check_protected_environments!+) - without this method
40
+ # each of these tasks aborts with a NoMethodError.
41
+ # The cluster never stores an environment (+ElasticsearchRecord::InternalMetadata#enabled?+ is
42
+ # false), so there is nothing to protect or to mismatch - the outcome the central check of
43
+ # rails <= 8.0 had for an elasticsearch config as well.
44
+ def check_current_protected_environment!(*)
45
+ nil
46
+ end
47
+
37
48
  private
38
49
 
39
50
  attr_reader :db_config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gonsior