assert_type 0.1.0 → 0.1.1

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.
@@ -26,7 +26,7 @@ module AssertType
26
26
  Token = Struct.new :name, :value
27
27
 
28
28
  TOKEN_MATCHERS = [
29
- {:token_name => :word, :matcher => /^\w+/},
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 => /^,/}
@@ -1,3 +1,3 @@
1
1
  module AssertType
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-15 00:00:00 Z
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