ffi-radix_tree 0.3.0 → 0.4.0

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: b44935a7f81323aa80f656cab493c5637d3029a0
4
- data.tar.gz: f2854b861c6c3507110328ce5e291f533938f97c
3
+ metadata.gz: f0887fcf903c2f7aea11bd2e20bb735eee55e64a
4
+ data.tar.gz: b114742ee1c47b730bbb40b93d940cbe42fe5d5d
5
5
  SHA512:
6
- metadata.gz: 45f6f4eb51181c92fedeb6fbfa577b67a73a921196edfc4ce937c251dd9a660d9ff6888c1f17f2afe67cd5d2858997ce947946588448e4d2e87810138bae4764
7
- data.tar.gz: ecb205e7db9b41cf866fce8709d894eebf1b21472fd5546b2fb529dea605bd9a06494c66d83d5d1401e00b601861d72e1108dd34243320d1059595e5b1d4fcb8
6
+ metadata.gz: 376ae7c81530f085a3bd71b3ffb3b6f96adabf2761808e1e92382f14493f1a42bb7d2a4ebd553a1f1860c0312d7d9ede73ca0a8f1b271a6dd18c7b26c0602eaa
7
+ data.tar.gz: 3140d4d7ddac198b0a2bc05b6dee0a5ce75efb03df56fd039e2be24e8398b5bef677933ab31363c76344390d2588993b6f38afb80e61f25beede32aa84e8ea1e
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency "ffi"
36
36
 
37
37
  spec.add_development_dependency "benchmark-ips"
38
- spec.add_development_dependency "bundler", "~> 1.15"
38
+ spec.add_development_dependency "bundler"
39
39
  spec.add_development_dependency "rake", "~> 10.0"
40
40
  spec.add_development_dependency "mocha"
41
41
  spec.add_development_dependency "pry"
@@ -135,6 +135,10 @@ module FFI
135
135
  response
136
136
  end
137
137
 
138
+ def erase(key)
139
+ ::FFI::RadixTree.erase(@ptr, key)
140
+ end
141
+
138
142
  def get(key)
139
143
  return nil unless @first_character_present[key[0]]
140
144
  byte_pointer = get_response = nil
@@ -1,5 +1,5 @@
1
1
  module FFI
2
2
  module RadixTree
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-radix_tree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-17 00:00:00.000000000 Z
11
+ date: 2019-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.15'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.15'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement