rom-mapper 1.0.0.beta2 → 1.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rom/mapper/version.rb +1 -1
- data/lib/rom/struct_compiler.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ed0e632f8f524f5ea414338cafefd5a836116c
|
4
|
+
data.tar.gz: c951f650a48119ec07b7ba5f6d3bfaed29689d98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457d4192340e27b180fa79949188f736a831d2266c545bc99e122eb7da65560571fd70bb4b9cfba23de88e374879aacb4fcf32a045c7e59d685391c1e66d4601
|
7
|
+
data.tar.gz: 9d263dfdf5227861e2f34920cea183fca25576b712b91012cc0b615e77dc0003e7cb647ce66b5e6de97a52897e456cb48b879f3e1bb25a45aa1733d802008e46
|
data/lib/rom/mapper/version.rb
CHANGED
data/lib/rom/struct_compiler.rb
CHANGED
@@ -7,7 +7,7 @@ require 'rom/types'
|
|
7
7
|
require 'rom/cache'
|
8
8
|
require 'rom/struct'
|
9
9
|
require 'rom/open_struct'
|
10
|
-
require 'rom/
|
10
|
+
require 'rom/attribute'
|
11
11
|
|
12
12
|
module ROM
|
13
13
|
# @api private
|
@@ -23,7 +23,7 @@ module ROM
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def call(*args)
|
26
|
-
cache.fetch_or_store(args
|
26
|
+
cache.fetch_or_store(args) do
|
27
27
|
name, header, ns = args
|
28
28
|
attributes = header.map(&method(:visit)).compact
|
29
29
|
|
@@ -31,8 +31,8 @@ module ROM
|
|
31
31
|
ROM::OpenStruct
|
32
32
|
else
|
33
33
|
build_class(name, ROM::Struct, ns) do |klass|
|
34
|
-
attributes.each do |(
|
35
|
-
klass.attribute(
|
34
|
+
attributes.each do |(attr_name, type)|
|
35
|
+
klass.attribute(attr_name, type)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -70,13 +70,13 @@ module ROM
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def visit_constructor(node)
|
73
|
-
definition,
|
73
|
+
definition, * = node
|
74
74
|
|
75
75
|
visit(definition)
|
76
76
|
end
|
77
77
|
|
78
78
|
def visit_constrained(node)
|
79
|
-
definition,
|
79
|
+
definition, _ = node
|
80
80
|
|
81
81
|
visit(definition)
|
82
82
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rom-mapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Solnica
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-equalizer
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: 1.3.1
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.6.
|
136
|
+
rubygems_version: 2.6.11
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Standalone data mappers integrated with rom-rb
|