interface-dsl 0.1.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/interface/dsl/version.rb +1 -1
- data/lib/interface/port_entity.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04561b69e636a4540d4be50edf6e10d96f718b39
|
|
4
|
+
data.tar.gz: fb2b4f0fa446e28e8d7961594c3b65abf9a33fb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfcc106380eaa7ee00ab1b666cc934b65bad5806a21ab40490fda4c73b4bfe28bee131de4afa733c2e1e323558fb0e4e85dc278176e2f5b03921b1894ff29367
|
|
7
|
+
data.tar.gz: db3589a56179445e059bd37fba20041045f5ba46e6f02667bb2b77a8ec9433cb80bab78b0b1211ed45f0a191dc38b2bbf9ec261656470ef2a5dac71c1e991e27
|
|
@@ -21,9 +21,13 @@ module Interface
|
|
|
21
21
|
@proxy_factory = klass
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
def proxy_model(name)
|
|
25
|
+
@proxy_model = name
|
|
26
|
+
end
|
|
27
|
+
|
|
24
28
|
def proxy(obj, options={})
|
|
25
29
|
return nil unless @proxy_factory
|
|
26
|
-
@proxy_factory.call(struct: @struct, contract: @contract, handler: @handler).new(obj, options)
|
|
30
|
+
@proxy_factory.call(struct: @struct, contract: @contract, handler: @handler, proxy_model: @proxy_model).new(obj, options)
|
|
27
31
|
end
|
|
28
32
|
|
|
29
33
|
def call(*args, &block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: interface-dsl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oleksiy Kurnenkov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-validation
|