librtree 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rtree/extconf.rb +2 -4
- data/ext/rtree/rtree.c +2 -1
- data/lib/rtree.rb +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ea7105c3090ca70b99cec081b01ed6f46490208e79ee6ecdaf9045b827280ca
|
4
|
+
data.tar.gz: 7071f07e2e9ced00f34d48764e229057a9b69cec6e57b003babc27b5577e5372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96d9eb0c8d21ef03a8d716f544ec34d84dabe4f598e606af99184e7cfb951c5a80f55e058b0d20ebafd4d2f173bae76bf230fac8489d8e71cbbe2a57c5170fa
|
7
|
+
data.tar.gz: cd2d89976e36b6c0aadf7b0d95c823c4f39869d480886746aa8e1f2a402bdaf7e9f7e0b87695beacd75aad7655bfeaa8b65bca11fed80e9a15464de854da3a94
|
data/ext/rtree/extconf.rb
CHANGED
@@ -16,14 +16,12 @@ LIB_DIRS = [
|
|
16
16
|
'/usr/lib'
|
17
17
|
]
|
18
18
|
|
19
|
-
puts LIB_DIRS.inspect
|
20
|
-
|
21
19
|
dir_config('librtree', HEADER_DIRS, LIB_DIRS)
|
22
20
|
|
23
21
|
abort 'missing jansson.h' unless find_header('jansson.h')
|
24
22
|
abort 'missing rtree.h' unless find_header('rtree.h')
|
25
23
|
|
26
|
-
abort
|
27
|
-
abort
|
24
|
+
abort 'libjansson is missing' unless find_library('jansson', 'json_pack')
|
25
|
+
abort 'librtree is missing' unless find_library('rtree', 'rtree_new')
|
28
26
|
|
29
27
|
create_makefile 'rtree/rtree'
|
data/ext/rtree/rtree.c
CHANGED
@@ -24,7 +24,7 @@ static size_t rt_dsize(const void *p)
|
|
24
24
|
|
25
25
|
static VALUE rt_alloc(VALUE cls)
|
26
26
|
{
|
27
|
-
rtree_t *rtree
|
27
|
+
rtree_t *rtree;
|
28
28
|
if ((rtree = rtree_alloc()) == NULL)
|
29
29
|
rb_raise(rb_eNoMemError, "failed to alloc rtree");
|
30
30
|
return TypedData_Wrap_Struct(cls, &rtree_type, rtree);
|
@@ -534,6 +534,7 @@ void Init_rtree(void)
|
|
534
534
|
|
535
535
|
VALUE cRTreeStyleBase = rb_const_get(rb_cObject, rb_intern("RTreeStyleBase"));
|
536
536
|
|
537
|
+
rb_undef_alloc_func(cRTreeStyleBase);
|
537
538
|
rb_define_method(cRTreeStyleBase, "free", st_release, 0);
|
538
539
|
rb_define_singleton_method(cRTreeStyleBase, "json_read", st_json_read, 1);
|
539
540
|
}
|
data/lib/rtree.rb
CHANGED
@@ -271,7 +271,7 @@ class RTree < RTreeBase
|
|
271
271
|
# @param node_page [Integer] the nodes-per-page value. This value can
|
272
272
|
# affect performance quite dramatically, particularly build time. A
|
273
273
|
# value which is too large would result in an infeasible branching
|
274
|
-
# factor for the R-tree and will
|
274
|
+
# factor for the R-tree and will cause the function to error with errno
|
275
275
|
# set to EINVAL. A value of zero is permitted and the default; in
|
276
276
|
# this case the function will choose a good value based on heuristics.
|
277
277
|
# You may get better performance for your use-case by manual
|
@@ -482,8 +482,6 @@ class RTree < RTreeBase
|
|
482
482
|
# @param margin [Float] extra space around the plot in units of
|
483
483
|
# PostScript point (1/72 inch), default zero
|
484
484
|
#
|
485
|
-
# rdoc-image:img/cb-bupu3.png
|
486
|
-
#
|
487
485
|
def postscript(io, style, height: nil, width: nil, margin: 0)
|
488
486
|
if height && width then
|
489
487
|
raise ArgumentError, 'cannot specify both height and width'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librtree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- J.J. Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements:
|
129
129
|
- The librtree library (1.0.6 or later)
|
130
|
-
rubygems_version: 3.1.
|
130
|
+
rubygems_version: 3.1.6
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: R-tree spatial index
|