dato 0.3.14 → 0.3.15

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: f19eda1a40bf5684baf782e3f0067631145cb9b1
4
- data.tar.gz: a6343cac11fa2ae523030ddd137e881a0062645d
3
+ metadata.gz: 0d034c59bfa20a0dec3f23b9f74d6ece9da130f2
4
+ data.tar.gz: ab5566ed36c9fec2e80f8dbc040a33d19359c94f
5
5
  SHA512:
6
- metadata.gz: 888a3a62b58796beb47447348a9d294aeceaa5af2c6b8fcf36779b3c0ae1f9b42220b7d0ebc062d39880f3bc1845cefe242ea837d9aed571f4cd327264767fec
7
- data.tar.gz: bc5257b829dd8457c2ef2ec3d245ac5892eb655e8f556214a081c21ce9027ea344ce2e7b9bcc6b6ebf3755703e32f6659a3a149bfdbc931be3cf032d22cd9951
6
+ metadata.gz: 376075bbd1a06c4c37034c001e24be9dcab13b1de80d61b5479883bce71696ac606ac3eda83b2c47db2ba495c51417f3e93bd3bb7b4278ce6d9819b2b4c3b3d3
7
+ data.tar.gz: 405c4b7e80df6951a7a7c7038c23daddb97b6ae2bed26ff4540eee53791c0bafbf483bfc516950d36f630b74c4c8f17af32f724a30f682ba32debdea8c71b601
@@ -16,9 +16,14 @@ module Dato
16
16
  def initialize(dato, operations, &block)
17
17
  @dato = dato
18
18
  @operations = operations
19
+ @self_before_instance_eval = eval "self", block.binding
19
20
 
20
21
  instance_eval(&block)
21
22
  end
23
+
24
+ def method_missing(method, *args, &block)
25
+ @self_before_instance_eval.send method, *args, &block
26
+ end
22
27
  end
23
28
  end
24
29
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.3.14'
3
+ VERSION = '0.3.15'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.14
4
+ version: 0.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler