librtree 0.9.0 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91ab938275be940bbe12869b5b95266bdd32a503c5aae74ef84e242db8b65cd2
4
- data.tar.gz: 981f9d121d65cb94f3ca42cd09c3841471d9c9c6c4176416d8de639f2ffe9922
3
+ metadata.gz: 3ea7105c3090ca70b99cec081b01ed6f46490208e79ee6ecdaf9045b827280ca
4
+ data.tar.gz: 7071f07e2e9ced00f34d48764e229057a9b69cec6e57b003babc27b5577e5372
5
5
  SHA512:
6
- metadata.gz: 42764d0851e8ddab67468847fc08f8d148ad332a7b8e3d81f26a2eb50d8a79b0e2ac2cfb6e805c7f3d1bd2b17a5ed1bd52c89ed0001c88fb3c9c209fb879fe0f
7
- data.tar.gz: a394efa120788677dbda6d409b07e1a1d6d234692f08ba6371dfbc99c0f82420e2f720214793c6944f0b652cc81739096b06ff5e8822ac5f18d8a0b3f70388ba
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 "libjansson is missing" unless find_library('jansson', 'json_pack')
27
- abort "librtree is missing" unless find_library('rtree', 'rtree_new')
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 case the function to error with errno
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.0
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: 2021-11-07 00:00:00.000000000 Z
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.2
130
+ rubygems_version: 3.1.6
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: R-tree spatial index