serega 0.5.2 → 0.6.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b72ad9dbc7d5e4c23d627b78d898b5eea3df96eb1b5925b34c99905362727151
|
4
|
+
data.tar.gz: c99f2d871340151b6631c659bd6b49687f4b0f1230ca8966b8031d34372a99cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a5a3a16c35e75266c4a6f86459605965e237dd7b98ae0c2faa9929bccfee070a7fc62a3aac956a26223236af152990e4e6224b494c0f22cbafefbc35b5812f9
|
7
|
+
data.tar.gz: 19bd1265a2c1160b715a457c274ac58f679a201664c31bb0ec3f5316a6b1b480ac6618b2bbcbc56493462a82f9e45059f11fb8618157dd0ed9c36c8574c81a57
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
data/lib/serega/map_point.rb
CHANGED
@@ -21,11 +21,6 @@ class Serega
|
|
21
21
|
def nested_object_serializer
|
22
22
|
attribute.serializer::SeregaObjectSerializer
|
23
23
|
end
|
24
|
-
|
25
|
-
# TODO: remove, we use this method in tests only
|
26
|
-
def ==(other)
|
27
|
-
(other.attribute == attribute) && (other.nested_points == nested_points)
|
28
|
-
end
|
29
24
|
end
|
30
25
|
|
31
26
|
extend Serega::SeregaHelpers::SerializerClassHelper
|
@@ -39,7 +39,7 @@ class Serega
|
|
39
39
|
def keys_values
|
40
40
|
ids = keys.keys
|
41
41
|
|
42
|
-
point.batch.loader.call(ids, object_serializer.context, point
|
42
|
+
point.batch.loader.call(ids, object_serializer.context, point).tap do |vals|
|
43
43
|
next if vals.is_a?(Hash)
|
44
44
|
|
45
45
|
attribute_name = "#{point.class.serializer_class}.#{point.name}"
|
@@ -44,11 +44,11 @@ class Serega
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def block_parameters_error
|
47
|
-
"Invalid :batch option :loader. When it is a Proc it can have maximum three regular parameters (keys, context,
|
47
|
+
"Invalid :batch option :loader. When it is a Proc it can have maximum three regular parameters (keys, context, point)"
|
48
48
|
end
|
49
49
|
|
50
50
|
def callable_parameters_error
|
51
|
-
"Invalid :batch option :loader. When it is a callable object it must have three regular parameters (keys, context,
|
51
|
+
"Invalid :batch option :loader. When it is a callable object it must have three regular parameters (keys, context, point)"
|
52
52
|
end
|
53
53
|
|
54
54
|
def must_be_callable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Glushkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
JSON Serializer
|