evt-subst_attr 1.1.0.1 → 1.1.0.2

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
  SHA256:
3
- metadata.gz: 1de75f94680ddd345b5c76a8cc87bffe79d12317b5f383c0900f5b303c386b96
4
- data.tar.gz: 2f2ff46b476d38d14cba79627a982f1a02f8d3e1cddd2a57799edf174b353183
3
+ metadata.gz: 4927e454dd0d6e681a0978c6b91da5828d7c2d2ef17c294993999957f76a1d27
4
+ data.tar.gz: 18259bd7bb14806699f0e5538b3206828b0ae5b9af2eefc88809675546dc5ef3
5
5
  SHA512:
6
- metadata.gz: 23022ebcf6f6f7c914c0aa05d244b5309e0d3d9a4fb645c277b34ac05e08a7b4d685656aa7f84b1c3d3b833f84a027d15bd7105e3aeb2367b903f8833d356c5e
7
- data.tar.gz: 7f73fd01e6bbbe9278f8ab708da09b759b2492e8d861f84694effc7bfaf846755a7d9616d6ecd2c9c3ceeb4f2649431a64744950a6bf06966bb0dfcdb3e081e7
6
+ metadata.gz: 6ad5814dd1f7f206b5477678be2e9326458697c6b323b4a7d168296cd4c31e710e25337032ba6f6aa63dc0b77531aa08eb94485839ee59014a7e9b97002d9bc6
7
+ data.tar.gz: 1e690eaa41fc38202a623e63d884b37461bb55ca1e994540e51c8790d3a9d319842aa63806624b40a937ded737239860f9425bce8163f7a6bebfc15f7df47e2a
@@ -11,21 +11,17 @@ module SubstAttr
11
11
  weak
12
12
  end
13
13
 
14
- def weak
15
- unless self.const_defined?(:Weak, false) ## Why tf would :Weak be defined??
16
- cls = Mimic::Build.(Object, record: false) do
17
- def method_missing(*)
18
- end
19
- end
20
-
21
- const_set(:Weak, cls)
22
- end
14
+ def strict(interface)
15
+ Mimic.(interface, record: false)
16
+ end
23
17
 
18
+ def weak
24
19
  Weak.new
25
20
  end
26
21
 
27
- def strict(interface)
28
- Mimic.(interface, record: false)
22
+ Weak = Mimic::Build.(Object, record: false) do
23
+ def method_missing(*)
24
+ end
29
25
  end
30
26
  end
31
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-subst_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.1
4
+ version: 1.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project