deterministic 0.12.0 → 0.12.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: 02bcfb726015c3bfd566bb7ac4fa2ec7827f9916
4
- data.tar.gz: 41febde66849c34ad23f4d031b0ca4cdd91b26fd
3
+ metadata.gz: 3c142a92639ccc4051cc59535565f1acb5816a25
4
+ data.tar.gz: c916f4398175f4a5a0d3fc2142263d9c999d7ac8
5
5
  SHA512:
6
- metadata.gz: 04113508f25059be7d25c184acedd3dfe20b9d2f2e267c5d7e5a62ee658f5049f11650da4d8a8565c4b1fccf9084b700ea6477fef32a3a36cf6b87face2136f8
7
- data.tar.gz: 3c3bf38b691b39a7fd8f3a510738a9dbe8662796ccf509b20666f2d422f26452c70159e3291303eac44a9db62f142bba8ef08dd4e2cee1f65db6bf4184362f36
6
+ metadata.gz: 5da47c489e0c973dfb02aa9d3f1a968b812855b3af4001f8c70ea72aa5ed8188a587713bf13df63b9af0dfadbd5f4420c93b90592e8442997e21dc9590b7b2a3
7
+ data.tar.gz: c7252b32ba1889a08a32c05aadb0c76469822f2a646f1bb1f54bf54a6e7c081c3e43640a57e66b68da0c6d88da5092638ac7a19de1fb56a397de741d72d3057d
@@ -10,7 +10,7 @@ module Deterministic
10
10
 
11
11
  %w[Some None Option].each do |s|
12
12
  define_method s.downcase.to_sym do |value=nil, &block|
13
- klas = Module.const_get("Deterministic::Option::#{s}")
13
+ klas = self.class.module_eval(s)
14
14
  push(klas, value, block)
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module Deterministic
10
10
 
11
11
  %w[Success Failure Result].each do |s|
12
12
  define_method s.downcase.to_sym do |value=nil, &block|
13
- klas = Module.const_get("Deterministic::Result::#{s}")
13
+ klas = klas = self.class.module_eval(s)
14
14
  push(klas, value, block)
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Deterministic
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deterministic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Zolnierek