maxmind-db-rust 0.4.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +113 -0
- data/README.md +114 -18
- data/ext/maxmind_db_rust/Cargo.toml +1 -1
- data/ext/maxmind_db_rust/extconf.rb +1 -1
- data/ext/maxmind_db_rust/lib/maxmind/db/rust.rb +1 -1
- data/ext/maxmind_db_rust/src/decoder.rs +324 -0
- data/ext/maxmind_db_rust/src/initialization.rs +75 -0
- data/ext/maxmind_db_rust/src/lib.rs +12 -1084
- data/ext/maxmind_db_rust/src/metadata.rs +123 -0
- data/ext/maxmind_db_rust/src/path.rs +157 -0
- data/ext/maxmind_db_rust/src/reader.rs +940 -0
- data/lib/maxmind/db/rust.rb +2 -2
- metadata +21 -2
data/lib/maxmind/db/rust.rb
CHANGED
|
@@ -66,7 +66,7 @@ module MaxMind
|
|
|
66
66
|
# - Reader class
|
|
67
67
|
# - Metadata class
|
|
68
68
|
# - InvalidDatabaseError exception
|
|
69
|
-
# - MODE_AUTO, MODE_MEMORY, MODE_MMAP constants
|
|
69
|
+
# - MODE_AUTO, MODE_FILE, MODE_MEMORY, MODE_MMAP, MODE_PARAM_IS_BUFFER constants
|
|
70
70
|
end
|
|
71
71
|
else
|
|
72
72
|
# Official gem not loaded - define DB as a module
|
|
@@ -128,7 +128,7 @@ module MaxMind
|
|
|
128
128
|
# - Reader class
|
|
129
129
|
# - Metadata class
|
|
130
130
|
# - InvalidDatabaseError exception
|
|
131
|
-
# - MODE_AUTO, MODE_MEMORY, MODE_MMAP constants
|
|
131
|
+
# - MODE_AUTO, MODE_FILE, MODE_MEMORY, MODE_MMAP, MODE_PARAM_IS_BUFFER constants
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maxmind-db-rust
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gregory Oschwald
|
|
@@ -37,6 +37,20 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '6.0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: parallel
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "<"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '2.0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - "<"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '2.0'
|
|
40
54
|
- !ruby/object:Gem::Dependency
|
|
41
55
|
name: rake
|
|
42
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -165,7 +179,12 @@ files:
|
|
|
165
179
|
- ext/maxmind_db_rust/Cargo.toml
|
|
166
180
|
- ext/maxmind_db_rust/extconf.rb
|
|
167
181
|
- ext/maxmind_db_rust/lib/maxmind/db/rust.rb
|
|
182
|
+
- ext/maxmind_db_rust/src/decoder.rs
|
|
183
|
+
- ext/maxmind_db_rust/src/initialization.rs
|
|
168
184
|
- ext/maxmind_db_rust/src/lib.rs
|
|
185
|
+
- ext/maxmind_db_rust/src/metadata.rs
|
|
186
|
+
- ext/maxmind_db_rust/src/path.rs
|
|
187
|
+
- ext/maxmind_db_rust/src/reader.rs
|
|
169
188
|
- lib/maxmind/db/rust.rb
|
|
170
189
|
homepage: https://github.com/oschwald/maxmind-db-rust-ruby
|
|
171
190
|
licenses:
|
|
@@ -191,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
191
210
|
- !ruby/object:Gem::Version
|
|
192
211
|
version: '0'
|
|
193
212
|
requirements: []
|
|
194
|
-
rubygems_version: 4.0.
|
|
213
|
+
rubygems_version: 4.0.10
|
|
195
214
|
specification_version: 4
|
|
196
215
|
summary: Unofficial high-performance Rust-based MaxMind DB reader for Ruby
|
|
197
216
|
test_files: []
|