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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6953ed715bd0d2db888067e9c7d744ea05f322e4
4
- data.tar.gz: 118a5d11504bb2b12938973d4b38918d6f496a32
3
+ metadata.gz: 6e3a1aa1388a975f3bc9cc7e477036f588dc23e1
4
+ data.tar.gz: 5c194deca5b559b87e16c676d9bac46f58302cf3
5
5
  SHA512:
6
- metadata.gz: 79ab79b1fc3ba23add2a188b088bcec8cdda2822ca19c87f2290d49fb9a29e8d437d91b039abaa3d0536f5ea944e65a5b53cb04434b64158789eaea1fb843527
7
- data.tar.gz: 36c7b7141dcd09a844103a5cbe948672c8ff8b1a15a9b37a6ab03d6a69fe964d3d6baed8406b9e160cce6ef2a58fc284804e380070ec481bee9ea9c16f88fe47
6
+ metadata.gz: 88fcf31f60a3b04e1ca4dfdf18bceb449ae6a1018429b05adee1a923d58d485d6cc28b7d9dc483d7a02079172462e10fe6b3f084fda953da532a59ab8676cf56
7
+ data.tar.gz: ae99e1c559175143b091f6dad02bb43f854a19bd6a64c86d7e1305e14569ec054c609732c8d75daeed9ca68be6b6511e302ed8aee059dffae2c2853a3a4ab3db
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, 1]
44
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 0, 2]
45
45
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
46
  end
47
47
 
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
 
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.1
4
+ version: 0.1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Williams