typespec 0.1.0.1 → 0.1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/typespec/gem.rb +1 -1
- data/lib/typespec.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: 6e3a1aa1388a975f3bc9cc7e477036f588dc23e1
|
4
|
+
data.tar.gz: 5c194deca5b559b87e16c676d9bac46f58302cf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88fcf31f60a3b04e1ca4dfdf18bceb449ae6a1018429b05adee1a923d58d485d6cc28b7d9dc483d7a02079172462e10fe6b3f084fda953da532a59ab8676cf56
|
7
|
+
data.tar.gz: ae99e1c559175143b091f6dad02bb43f854a19bd6a64c86d7e1305e14569ec054c609732c8d75daeed9ca68be6b6511e302ed8aee059dffae2c2853a3a4ab3db
|
data/lib/typespec/gem.rb
CHANGED
data/lib/typespec.rb
CHANGED
@@ -40,7 +40,7 @@ module Typespec
|
|
40
40
|
# ...
|
41
41
|
class Or
|
42
42
|
def initialize(expects); @expects = [*expects]; end
|
43
|
-
def self.[](expects); self.new(expects); end
|
43
|
+
def self.[](*expects); self.new(*expects); end
|
44
44
|
def valid?(value); @expects.any?{|expects| expects.valid?(value)}; end
|
45
45
|
end
|
46
46
|
|