fried-typings 0.2.0 → 1.0.0
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/fried/typings/meta_type.rb +0 -8
- data/lib/fried/typings/one_of.rb +0 -1
- data/lib/fried/typings/strictly_one_of.rb +0 -1
- data/lib/fried/typings/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fdad342c7e4505ad1f879fa13beff53c4452509b
|
|
4
|
+
data.tar.gz: 64c059ec678fbf509b0124bdce734c629c395c23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eec2126b69867be8d088e212ff2149ff666f26b1b2a535d86dfdde20e4235ec726320dc8b2a89fdb17d0b8fd27964ae0139219a3ad3a41bf3a1181f9b50bc300
|
|
7
|
+
data.tar.gz: e1450577b4a5a69c435c561d99064e8548dff406bf304cbdb90561f1d2b82bfb3dc3418aee93ff793fe7e467118e34ef5a2d3a57efcb0ffc37933a2da4586a74
|
|
@@ -4,8 +4,6 @@ require "fried/core"
|
|
|
4
4
|
module Fried::Typings
|
|
5
5
|
# Protocol to generate {Type}
|
|
6
6
|
module MetaType
|
|
7
|
-
MissingTypeError = Class.new(StandardError)
|
|
8
|
-
|
|
9
7
|
def self.included(klass)
|
|
10
8
|
klass.instance_eval do
|
|
11
9
|
class << self
|
|
@@ -18,11 +16,5 @@ module Fried::Typings
|
|
|
18
16
|
end
|
|
19
17
|
end
|
|
20
18
|
end
|
|
21
|
-
|
|
22
|
-
protected
|
|
23
|
-
|
|
24
|
-
def missing_type!
|
|
25
|
-
raise MissingTypeError, "No type(s) configured for the meta type"
|
|
26
|
-
end
|
|
27
19
|
end
|
|
28
20
|
end
|
data/lib/fried/typings/one_of.rb
CHANGED