vorpal 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vorpal/identity_map.rb +2 -7
- data/lib/vorpal/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: a6010044c0c80fa3020a1e7a0cd362977b363df6e03bbcc8508028b9bf4e3a2f
|
4
|
+
data.tar.gz: '07708e14f8dc2af434718350a18935ead37232b3a9907338cade26cfd9080b41'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc45b50d694ea28489e2125e8ecae7065a24ba91773771536e01dcb5cbfc4bad93c8e9fabc1be635213b072ca6c9068b0851c37763814ff3cbcebe5037ba8686
|
7
|
+
data.tar.gz: 4b8dc8c8ce5a567a7f563df9d3c478d24f61afd66ab110852cb3fab028089ec6f307d74d9ff5157c478f5f60a349930cce6a8f837f282f56b5d1502af30710cd
|
data/lib/vorpal/identity_map.rb
CHANGED
@@ -28,14 +28,9 @@ module Vorpal
|
|
28
28
|
|
29
29
|
def key(db_row)
|
30
30
|
return nil unless db_row
|
31
|
-
|
32
|
-
raise "Cannot map a DB row without an id '#{db_row.inspect}' to an entity." if primary_key_value.nil?
|
31
|
+
raise "Cannot map a DB row without an id '#{db_row.inspect}' to an entity." if db_row.id.nil?
|
33
32
|
raise "Cannot map a DB row without a Class with a name '#{db_row.inspect}' to an entity." if db_row.class.name.nil?
|
34
|
-
[
|
35
|
-
end
|
36
|
-
|
37
|
-
def get_primary_key_value(db_row)
|
38
|
-
db_row.send(db_row.class.primary_key)
|
33
|
+
[db_row.id, db_row.class.name]
|
39
34
|
end
|
40
35
|
end
|
41
36
|
end
|
data/lib/vorpal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vorpal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Kirby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_serializer
|