frozen_record 0.25.3 → 0.25.4

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: 55cfe5dc540e6f5aa6d4a188a45297e5daae39c67b6f79a029ed12a1333d2a17
4
- data.tar.gz: 68ec4931e6cd4c24dc95da423b4d32f61f789ebb38e8012ad16f12db9a0d389b
3
+ metadata.gz: 45e9d1a344670234462c22c5d74da8b8e1bf4b726b14b447d1abe646632aae26
4
+ data.tar.gz: 96c4daa09b3b7b46f332e082ff94f91683d5da82b378bf32398bcbc88f4c4c7c
5
5
  SHA512:
6
- metadata.gz: a3bbf2f250846efd3679e39a7aea8628bfdea01c84a31cab342d5348e4a41bff3655a1f4e4158b461e2084866113c0a110b676664087ccb1b735c5d66e330cd3
7
- data.tar.gz: e3bb79694ba6bb4b430cc378bad2c787a41bf71ec2834eb218d10243e0cb24d6573ef19661a454c613ede947dd33eaccc75a61395259533e2aaedb6a3089f565
6
+ metadata.gz: a78872e27a9341f152867b4ee1d281c4512cff485e8c07fd343abab52fd71bb461e0c98c221460e3bce95bf63b7eaff49dd66d1c9166ca4f357eccd65531dcf8
7
+ data.tar.gz: 3b05ceacab2a957f44818338b2b71555d65baa66dd6cf1e5ee55b21cc0e6c8eb307d4c3ea8af9e7d00bc09ea0d3ce0712e8598225e9f952c0422cb2ddad1694c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Unreleased
2
2
 
3
+ # v0.25.4
4
+
5
+ - Minor Ruby 3.2 compatiblity fix (regarding `ruby2_keywords`).
6
+
7
+ # v0.25.3
8
+
3
9
  - Also disable max_records_scan when loading `Compact` records.
4
10
 
5
11
  # v0.25.2
@@ -242,17 +242,13 @@ module FrozenRecord
242
242
  if array_delegable?(method_name)
243
243
  to_a.public_send(method_name, *args, &block)
244
244
  elsif @klass.respond_to?(method_name)
245
- delegate_to_class(method_name, *args, &block)
245
+ scoping { @klass.public_send(method_name, *args, &block) }
246
246
  else
247
247
  super
248
248
  end
249
249
  end
250
250
  ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
251
251
 
252
- def delegate_to_class(*args, &block)
253
- scoping { @klass.public_send(*args, &block) }
254
- end
255
-
256
252
  def array_delegable?(method)
257
253
  Array.method_defined?(method) && !DISALLOWED_ARRAY_METHODS.include?(method)
258
254
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FrozenRecord
4
- VERSION = '0.25.3'
4
+ VERSION = '0.25.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frozen_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.3
4
+ version: 0.25.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier