assert_type 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ module AssertType
|
|
26
26
|
Token = Struct.new :name, :value
|
27
27
|
|
28
28
|
TOKEN_MATCHERS = [
|
29
|
-
{:token_name => :word, :matcher =>
|
29
|
+
{:token_name => :word, :matcher => /^[\w:\d]+/},
|
30
30
|
{:token_name => :open_angle, :matcher => /^</},
|
31
31
|
{:token_name => :close_angle, :matcher => /^>/},
|
32
32
|
{:token_name => :comma, :matcher => /^,/}
|
data/lib/assert_type/version.rb
CHANGED
@@ -49,6 +49,12 @@ module AssertType
|
|
49
49
|
root.children[1].children.length.should == 0
|
50
50
|
end
|
51
51
|
|
52
|
+
it "example: AssertType::TypeStringParser" do
|
53
|
+
root = TypeStringParser.parse("AssertType::TypeStringParser")
|
54
|
+
root.children.length.should == 1
|
55
|
+
root.children[0].name.should == "AssertType::TypeStringParser"
|
56
|
+
root.children[0].children.length.should == 0
|
57
|
+
end
|
52
58
|
end
|
53
59
|
|
54
60
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assert_type
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joel Plane
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-01
|
18
|
+
date: 2013-07-01 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: A method for very basic nested type assertions
|