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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96025d513e4fed1c7d44d6240b98a2ff679b7ab1
4
- data.tar.gz: 7a6fa93f0aa7afce3ce599cdddb521adec3b1a08
3
+ metadata.gz: 61261c655768e47759ab001f83d5e41596a29806
4
+ data.tar.gz: 64d5725bc1f433c233c04ae4202a4ffeafc671f3
5
5
  SHA512:
6
- metadata.gz: 951aad976d5e801b1748d266ffaf6bb8e4686d8ce5acf5134d0da32fdce86c1968bf9e9cbd7172fc18222c453af2ab227c499c39497a30affe4783ba033a9848
7
- data.tar.gz: 7fb2355a44485f67db63a05a85c77d96cfe85e935d24f2b8be3ca8101222e81ebb729ba118a36bb702c53d36a52743995f4fe59b7b0ed0e4c5a94de1198fb5aa
6
+ metadata.gz: 2517db1c510b4c3fd4593f44e21dfbce6ccf0cd30b4ba47f1be93432698bebda8ba0daa15432eb4d43669d72f10a8a71c4efc94335e591477c2016f9b164639b
7
+ data.tar.gz: fa0fdaf7012568d8bf3aa4e268a04083739ece7c781fa9e113fb6adad6693f4da76013fa92a058fea862a7c819a9f91e473b151ee19d514791904e0223b9880b
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, 8]
44
+ MAJOR, MINOR, PATCH, PRE = [0, 1, 1, 0]
45
45
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
46
46
  end
47
47
 
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.8
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-05 00:00:00.000000000 Z
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: