rr3 0.1.1 → 0.1.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: 79cf5b768741ab760688cc79a7e065ee19a0e4aa
4
- data.tar.gz: 910a647c96a6d64c2379982835c23998aa1a7dba
3
+ metadata.gz: f88a6bc4a0d78aea6096a4032a238ba557c62440
4
+ data.tar.gz: 8f6c0cddd83f63196cb7c0fd7bb2a102ceb6cce2
5
5
  SHA512:
6
- metadata.gz: e34fac7bb2ca9bd2a3daee072f54087e9bfb9f3d2f828e622e0b6a27eeb4fe217f2872f96d3f92ba35d41e628b63c0153450a8e35ae06d73fd53eaa09e0ce987
7
- data.tar.gz: 292b90c3e2c83e11e149626aff81c0ea69fe6c4081b73133b2375b29749e76c2df28093818631ade0a4cf04c93578f13672e8478e18b7be6dd76d645b7b58f99
6
+ metadata.gz: 733665e37388405a206c79a5a5fc5649907f4b0bd367dc77730511e9c60709f53c090cb45d35a6a7e11963711c4f28a78ee3773b8d2720802ec3ab9ea5726763
7
+ data.tar.gz: 7d40fa398ca6f54e12f433db0ad7be096fe710ff2f493c68caf7a9107a42e09cbf03f0f6b6e2b57c72fb74a3208f4c156520493847081bdd9e6ad51c48e3e2ed
@@ -11,6 +11,7 @@ void init_tree(){
11
11
  rb_define_method(cTree, "initialize", initialize, 1);
12
12
  rb_define_method(cTree, "insert_path", insert_path, 1);
13
13
  rb_define_method(cTree, "compile", compile, 0);
14
+ rb_define_method(cTree, "match", match, 1);
14
15
  rb_define_method(cTree, "dump", dump, 1);
15
16
  }
16
17
 
@@ -1,3 +1,3 @@
1
1
  module Rr3
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,6 +6,8 @@ describe Rr3 do
6
6
  t = Rr3::Tree.new(10)
7
7
  t.insert_path "/foo/bar"
8
8
  t.compile
9
+ expect(t.match("/foo/bar")).to be true
10
+ expect(t.match("/foo/barr")).to be false
9
11
  t.dump(0)
10
12
  end
11
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rr3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Jian