interface-dsl 0.1.9 → 0.2.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
  SHA1:
3
- metadata.gz: de5d9a271375025375bb25f8d9992136bb797c4f
4
- data.tar.gz: 24481de4903e288c8ffe6a3405753413003f8a37
3
+ metadata.gz: 04561b69e636a4540d4be50edf6e10d96f718b39
4
+ data.tar.gz: fb2b4f0fa446e28e8d7961594c3b65abf9a33fb3
5
5
  SHA512:
6
- metadata.gz: d07882d510fa4363c736b483b0a1a3ccd8104b5ae3dd7d8d7fe856d28ac688f48f457658b1e3e1545a1238035aa08369548f21f260dd15a1d11045d4a1ca0bf8
7
- data.tar.gz: b7c5c4cbdab4e4efa7e4ee57f492d0c0bf020e3dc21a8d0bf5751231fb18c99331a75f9bd365e92abc5004b15fb011d5e7915cf7a4a699c0c0ba3a6077564cf3
6
+ metadata.gz: cfcc106380eaa7ee00ab1b666cc934b65bad5806a21ab40490fda4c73b4bfe28bee131de4afa733c2e1e323558fb0e4e85dc278176e2f5b03921b1894ff29367
7
+ data.tar.gz: db3589a56179445e059bd37fba20041045f5ba46e6f02667bb2b77a8ec9433cb80bab78b0b1211ed45f0a191dc38b2bbf9ec261656470ef2a5dac71c1e991e27
@@ -1,5 +1,5 @@
1
1
  module Interface
2
2
  module Dsl
3
- VERSION = "0.1.9"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -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.9
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-05 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation