typespec 0.1.0.8 → 0.1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/typespec/gem.rb +1 -1
- data/lib/typespec.rb +9 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61261c655768e47759ab001f83d5e41596a29806
|
4
|
+
data.tar.gz: 64d5725bc1f433c233c04ae4202a4ffeafc671f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2517db1c510b4c3fd4593f44e21dfbce6ccf0cd30b4ba47f1be93432698bebda8ba0daa15432eb4d43669d72f10a8a71c4efc94335e591477c2016f9b164639b
|
7
|
+
data.tar.gz: fa0fdaf7012568d8bf3aa4e268a04083739ece7c781fa9e113fb6adad6693f4da76013fa92a058fea862a7c819a9f91e473b151ee19d514791904e0223b9880b
|
data/lib/typespec/gem.rb
CHANGED
data/lib/typespec.rb
CHANGED
@@ -180,6 +180,15 @@ module Typespec
|
|
180
180
|
def self.[](*can_take_on); Typespec::Enum.new(*can_take_on); end
|
181
181
|
def valid?(value) @can_take_on.include?(value); end
|
182
182
|
end
|
183
|
+
|
184
|
+
# ...
|
185
|
+
def self.fn; Typespec::Function; end
|
186
|
+
def self.function; Typespec::Function; end
|
187
|
+
|
188
|
+
# ...
|
189
|
+
class Function
|
190
|
+
def self.valid?(value) value.responds_to?(:call); end
|
191
|
+
end
|
183
192
|
end
|
184
193
|
|
185
194
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typespec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Typespec is a way to specify complex schema made of types or specific
|
14
14
|
values and validate against them.
|
@@ -51,3 +51,4 @@ signing_key:
|
|
51
51
|
specification_version: 4
|
52
52
|
summary: Specify complex schema made of types or specific values.
|
53
53
|
test_files: []
|
54
|
+
has_rdoc:
|