serega 0.5.2 → 0.6.1

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: 42245a283d7116d37e451efb4a109617e5748863bc3ff32d0cdbcac3f6e11daa
4
- data.tar.gz: b20cdd0feae632de89ffa0c08c514330e1f52c5d03884b80c89f4c42ddf6f620
3
+ metadata.gz: 23e6466f457dd12a35967fc62aa58e6322dcca3c4a6731f7b3cd7d750f1fec87
4
+ data.tar.gz: 1a669d52eafa9703f5a787d5af8dfa439101f4f6024fbf70095b67c8edd06dcc
5
5
  SHA512:
6
- metadata.gz: 0242c9d4a1c6aa287cc4c4915396238706296f305db1058e4ffda340c7c7b07e0d30a9dc119d85a27a01b3beaa0cda14ed82eec8e72198205b3f5ff2ed9e8ce3
7
- data.tar.gz: 5482ab23a7caa7be5b4d4743538686b03a1d0eb62aaad59ae89e09ff26880f1709f9f96299e89c478151cd1cb43eb0f7338445a6afdfcd11322d47d3d6763d41
6
+ metadata.gz: 68caa2feaa385cf5fb031867bbaed551c770a5883cea1c3494714425244726fc51cfa49e02bd573437fab1d9e3812527e98fec4df04bc5a92ddfdc819209ca5f
7
+ data.tar.gz: 91854118f3058bdf899f2d6a8472b67bf0aefd60767c77f5954892c885d031bc9265423a240b9f19744679a74368bd0586cc30a4e83defa5a32a6e28fb2d9039
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.6.1
@@ -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.nested_points).tap do |vals|
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, points)"
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, points)"
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.5.2
4
+ version: 0.6.1
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-21 00:00:00.000000000 Z
11
+ date: 2022-12-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  JSON Serializer