uinit-type 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uinit/type/context.rb +2 -2
- data/lib/uinit/type/{extend.rb → type_of.rb} +2 -2
- data/lib/uinit/type/version.rb +1 -1
- data/lib/uinit/type.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb64282929e802a3990850303298f7ef0d760a4ba0de2f76238c7fcdae78be34
|
4
|
+
data.tar.gz: 56b41392670ebf1a6d75821dc35566efebc76237bc7f40add95a042208b873d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40959dc6b5d6eb837add87f3773d0b68bbb5763793454ec0a5efed2bb97a3a664e0fed858d35afc05b9729e32bc439ec59019c2cfca778a6bb2806d61ebedd36
|
7
|
+
data.tar.gz: cbc772cc6614ca3c8ad07293d3e0f0f50be232e6d7b85e35beeda0352a61b945fb9485e88f2e50bc16650f5b0a37c9b0bb0c15ce51437d243a06a019629ec830
|
data/lib/uinit/type/context.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Uinit
|
4
4
|
module Type
|
5
|
-
class
|
5
|
+
class TypeOf < Base
|
6
6
|
def self.from?(value)
|
7
7
|
value.is_a?(Class) || value.is_a?(Module)
|
8
8
|
end
|
@@ -33,7 +33,7 @@ module Uinit
|
|
33
33
|
|
34
34
|
return value if value.ancestors.include?(class_module)
|
35
35
|
|
36
|
-
type_error!("#{value.inspect} does not extend #{class_module}", depth)
|
36
|
+
type_error!("#{value.inspect} does not extend or include or preprend #{class_module}", depth)
|
37
37
|
end
|
38
38
|
|
39
39
|
def inspect
|
data/lib/uinit/type/version.rb
CHANGED
data/lib/uinit/type.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uinit-type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kimoja
|
@@ -112,7 +112,6 @@ files:
|
|
112
112
|
- lib/uinit/type/const.rb
|
113
113
|
- lib/uinit/type/context.rb
|
114
114
|
- lib/uinit/type/error.rb
|
115
|
-
- lib/uinit/type/extend.rb
|
116
115
|
- lib/uinit/type/extensions.rb
|
117
116
|
- lib/uinit/type/fn.rb
|
118
117
|
- lib/uinit/type/generic.rb
|
@@ -121,6 +120,7 @@ files:
|
|
121
120
|
- lib/uinit/type/instance.rb
|
122
121
|
- lib/uinit/type/operators.rb
|
123
122
|
- lib/uinit/type/set_of.rb
|
123
|
+
- lib/uinit/type/type_of.rb
|
124
124
|
- lib/uinit/type/version.rb
|
125
125
|
- uinit-type.gemspec
|
126
126
|
homepage: https://github.com/Kimoja/uinit-type
|