active_typed_store 2.4.0 → 2.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89b2c39e6bd9afe68635f920a123392538160c0eb6bbe9484738ced7600b58fa
4
- data.tar.gz: 30ed4d583b2fdb4ebbb4480b479826a54088f6fb2467dc87ba99e393c6c2270a
3
+ metadata.gz: 50bbecd62a4d3aa891d342f43de9e619b0d01a767b975a4fd12b4b529a3c1255
4
+ data.tar.gz: bb70b58ecadd380b1510be0687fc2a89ce709a53f3176538ccedb6cb0393cade
5
5
  SHA512:
6
- metadata.gz: a54b0a60a62d550f6493ac64f36c42d9a5f52eb207572b47b269b2cdd77815a2659b01e16648f1ed53a0ee943b698515ed04a3eb5ed0fcce7ef94b3eda942366
7
- data.tar.gz: d57e21409b72efcc79086186aeb4ee8ea542380738cfdd2ddff94892dcb215b9ac05f509188dc5671e799e92f57b9aadabeb9b4f1473c3137f0b8d0f4f9b888b
6
+ metadata.gz: 47d26171b7aac604865a99ec2bca566093b49314eba00543b75a82e3d415ee2b89a55cbce121086689b4827bcd88937983c1ec24225a6948d7393f984f1aa09e
7
+ data.tar.gz: c8ddba819be92a726cda8ff7cb00cfe2054c4afd69564790899079d85c00c0a395dbca979f32381923e58aed1b76cb55327bcf1319924bc58b43282a2c9e24e5
data/Gemfile.lock CHANGED
@@ -22,7 +22,7 @@ GIT
22
22
  PATH
23
23
  remote: .
24
24
  specs:
25
- active_typed_store (2.3.0)
25
+ active_typed_store (2.5.0)
26
26
  activemodel
27
27
  activerecord
28
28
  activesupport
@@ -75,6 +75,7 @@ GEM
75
75
  json (2.7.2)
76
76
  language_server-protocol (3.17.0.3)
77
77
  logger (1.6.1)
78
+ mini_portile2 (2.8.9)
78
79
  minitest (5.25.1)
79
80
  parallel (1.26.3)
80
81
  parser (3.3.5.0)
@@ -130,9 +131,8 @@ GEM
130
131
  ruby-progressbar (1.13.0)
131
132
  rumoji (0.5.0)
132
133
  securerandom (0.3.1)
133
- sqlite3 (1.7.3-arm64-darwin)
134
- sqlite3 (1.7.3-x86_64-darwin)
135
- sqlite3 (1.7.3-x86_64-linux)
134
+ sqlite3 (1.7.3)
135
+ mini_portile2 (~> 2.8.0)
136
136
  timeout (0.4.1)
137
137
  tzinfo (2.0.6)
138
138
  concurrent-ruby (~> 1.0)
@@ -19,7 +19,7 @@ module ActiveTypedStore
19
19
 
20
20
  # Same interface as ActiveRecord::Store::HashAccessor
21
21
  # Optimized by using object.read_attribute(attribute) instead of object.send(attribute)
22
- class StoreHashAccessor
22
+ class StoreHashAccessor < ActiveRecord::Store::StringKeyedHashAccessor
23
23
  def self.read(object, attribute, key)
24
24
  prepare(object, attribute)
25
25
  object.read_attribute(attribute)[key]
@@ -4,7 +4,7 @@ module ActiveTypedStore
4
4
  module Store
5
5
  class CustomJson < ActiveRecord::Type::Json
6
6
  def changed_in_place?(raw_old_value, new_value)
7
- deserialize(raw_old_value) != new_value.as_json
7
+ deserialize(raw_old_value) != deserialize(serialize(new_value))
8
8
  end
9
9
  end
10
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveTypedStore
4
- VERSION = "2.4.0"
4
+ VERSION = "2.6.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_typed_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ermolaev Andrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-13 00:00:00.000000000 Z
11
+ date: 2026-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel