typespec 0.1.0.2 → 0.1.0.3
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: 8f5d69ebc2493df499e9fb375a924c77c27f0366
|
4
|
+
data.tar.gz: f5112113fe015643a0e2ece94af526a80f740bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c29021c4eb2f6a4f0ad50b800ced7fa15e8efa35d0470df9e74784ec017c4f1dac780e90535e3faa9cba8227581cd960794571cd022b27b4a6680b7a95d5a90
|
7
|
+
data.tar.gz: 2584c9c74d6b9cb871bd9748db93720e2ebddfef76faa010ed4f6b5367fca5dc9edef85fc46f1d7d1868bbeee75c04f8dc54acc6a18a9e16ee0d9096f465246b
|
data/lib/typespec/gem.rb
CHANGED
data/lib/typespec.rb
CHANGED
@@ -39,7 +39,7 @@ module Typespec
|
|
39
39
|
|
40
40
|
# ...
|
41
41
|
class Or
|
42
|
-
def initialize(expects); @expects = [*expects]; end
|
42
|
+
def initialize(*expects); @expects = [*expects]; end
|
43
43
|
def self.[](*expects); self.new(*expects); end
|
44
44
|
def valid?(value); @expects.any?{|expects| expects.valid?(value)}; end
|
45
45
|
end
|