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: 42245a283d7116d37e451efb4a109617e5748863bc3ff32d0cdbcac3f6e11daa
4
- data.tar.gz: b20cdd0feae632de89ffa0c08c514330e1f52c5d03884b80c89f4c42ddf6f620
3
+ metadata.gz: b72ad9dbc7d5e4c23d627b78d898b5eea3df96eb1b5925b34c99905362727151
4
+ data.tar.gz: c99f2d871340151b6631c659bd6b49687f4b0f1230ca8966b8031d34372a99cb
5
5
  SHA512:
6
- metadata.gz: 0242c9d4a1c6aa287cc4c4915396238706296f305db1058e4ffda340c7c7b07e0d30a9dc119d85a27a01b3beaa0cda14ed82eec8e72198205b3f5ff2ed9e8ce3
7
- data.tar.gz: 5482ab23a7caa7be5b4d4743538686b03a1d0eb62aaad59ae89e09ff26880f1709f9f96299e89c478151cd1cb43eb0f7338445a6afdfcd11322d47d3d6763d41
6
+ metadata.gz: 7a5a3a16c35e75266c4a6f86459605965e237dd7b98ae0c2faa9929bccfee070a7fc62a3aac956a26223236af152990e4e6224b494c0f22cbafefbc35b5812f9
7
+ data.tar.gz: 19bd1265a2c1160b715a457c274ac58f679a201664c31bb0ec3f5316a6b1b480ac6618b2bbcbc56493462a82f9e45059f11fb8618157dd0ed9c36c8574c81a57
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.6.0
@@ -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.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-21 00:00:00.000000000 Z
11
+ date: 2022-12-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  JSON Serializer