active_typed_store 2.1.0 → 2.2.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/active_typed_store/store.rb +3 -6
- data/lib/active_typed_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e918d13d52a6a9f552268e94d638b32654d63dc9ab20d299b163c6ad84ff548
|
4
|
+
data.tar.gz: 0bf50c0a8b76af41801b7ada33a7b8748a33b99a9ec0095a3a4b6c513cd9e1a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c99c23d0ac8876b192a71ef57e07fc5668123d1af4865048ce575b657a1761bf54958220bee6ec3c8ecae5ad102c16f605c32fcf9c11294b7c94aea18fc83c54
|
7
|
+
data.tar.gz: 76b28e162bf1c42c9b9eb47aa338c3708e27e54123461577fe50570925ad6a1c8b46db66f71b6800378056cba5d3dfef976e33ba24d7052edfcaa5b6dd912012
|
data/Gemfile.lock
CHANGED
@@ -8,16 +8,13 @@ module ActiveTypedStore
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
+
CUSTOM_JSON = CustomJson.new
|
12
|
+
|
11
13
|
def typed_store(store_attribute, &)
|
12
14
|
attrs = Attrs.new(store_attribute)
|
13
15
|
attrs.instance_eval(&)
|
14
16
|
|
15
|
-
|
16
|
-
def self.type_for_column(connection, column) # rubocop:disable Lint/NestedMethodDefinition
|
17
|
-
return ActiveTypedStore::Store::CustomJson.new if column.name == "params"
|
18
|
-
|
19
|
-
super
|
20
|
-
end
|
17
|
+
define_attribute(store_attribute.name, CUSTOM_JSON)
|
21
18
|
store_accessor store_attribute, attrs.fields
|
22
19
|
|
23
20
|
if ActiveTypedStore.config.hash_safety == :disallow_symbol_keys
|
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
|
+
version: 2.2.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-05-
|
11
|
+
date: 2025-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|