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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e3a1aa1388a975f3bc9cc7e477036f588dc23e1
4
- data.tar.gz: 5c194deca5b559b87e16c676d9bac46f58302cf3
3
+ metadata.gz: 8f5d69ebc2493df499e9fb375a924c77c27f0366
4
+ data.tar.gz: f5112113fe015643a0e2ece94af526a80f740bc9
5
5
  SHA512:
6
- metadata.gz: 88fcf31f60a3b04e1ca4dfdf18bceb449ae6a1018429b05adee1a923d58d485d6cc28b7d9dc483d7a02079172462e10fe6b3f084fda953da532a59ab8676cf56
7
- data.tar.gz: ae99e1c559175143b091f6dad02bb43f854a19bd6a64c86d7e1305e14569ec054c609732c8d75daeed9ca68be6b6511e302ed8aee059dffae2c2853a3a4ab3db
6
+ metadata.gz: 3c29021c4eb2f6a4f0ad50b800ced7fa15e8efa35d0470df9e74784ec017c4f1dac780e90535e3faa9cba8227581cd960794571cd022b27b4a6680b7a95d5a90
7
+ data.tar.gz: 2584c9c74d6b9cb871bd9748db93720e2ebddfef76faa010ed4f6b5367fca5dc9edef85fc46f1d7d1868bbeee75c04f8dc54acc6a18a9e16ee0d9096f465246b
data/lib/typespec/gem.rb CHANGED
@@ -41,7 +41,7 @@ module Typespec
41
41
  end
42
42
 
43
43
  module VERSION #:nodoc:
44
- MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 2]
44
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 3]
45
45
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
46
  end
47
47
 
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typespec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.2
4
+ version: 0.1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Williams