tg_geometry 0.1.0 → 0.2.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 +18 -79
- data/README.md +82 -191
- data/Rakefile +3 -3
- data/benchmark/falcon_concurrency.rb +1 -1
- data/benchmark/feature_source.rb +92 -0
- data/docs/ARCHITECTURE.md +29 -107
- data/docs/BENCHMARKING.md +20 -1
- data/docs/CASUAL_EXAMPLE.md +71 -458
- data/docs/CONCURRENCY.md +13 -7
- data/docs/ERROR_HANDLING.md +30 -0
- data/docs/FEATURE_SOURCE.md +166 -0
- data/docs/LIMITATIONS.md +11 -50
- data/docs/MEMORY_OWNERSHIP.md +20 -2
- data/ext/tg_geometry/extconf.rb +46 -4
- data/ext/tg_geometry/tg_geometry_ext.c +2453 -150
- data/ext/tg_geometry/tg_geometry_vendor_json.c +17 -0
- data/ext/tg_geometry/tg_geometry_vendor_tg.c +3 -0
- data/ext/tg_geometry/vendor/.vendored +8 -2
- data/ext/tg_geometry/vendor/json/LICENSE +20 -0
- data/ext/tg_geometry/vendor/json/VERSION +3 -0
- data/ext/tg_geometry/vendor/json/json.c +1024 -0
- data/ext/tg_geometry/vendor/json/json.h +207 -0
- data/lib/tg/geometry/registry.rb +3 -3
- data/lib/tg/geometry/version.rb +1 -1
- data/script/vendor_libs.rb +22 -6
- data/spec/{expansion_a_auto_strategy_spec.rb → auto_strategy_spec.rb} +1 -1
- data/spec/{block_12_batch_packed_spec.rb → batch_packed_spec.rb} +1 -1
- data/spec/{block_20_concurrency_spec.rb → concurrency_spec.rb} +1 -1
- data/spec/{block_13_error_hardening_spec.rb → error_hardening_spec.rb} +1 -1
- data/spec/feature_source_nogvl_spec.rb +51 -0
- data/spec/feature_source_spec.rb +268 -0
- data/spec/{expansion_d_format_coverage_spec.rb → format_coverage_spec.rb} +1 -1
- data/spec/{block_20_fuzz_spec.rb → fuzz_spec.rb} +1 -1
- data/spec/{block_4_geom_api_spec.rb → geom_api_spec.rb} +1 -1
- data/spec/{block_3_geom_parse_spec.rb → geom_parse_spec.rb} +1 -1
- data/spec/{block_8_index_borrowed_geometry_spec.rb → index_borrowed_geometry_spec.rb} +1 -1
- data/spec/{block_6_index_build_spec.rb → index_build_spec.rb} +2 -2
- data/spec/{block_9_flat_query_spec.rb → index_flat_query_spec.rb} +1 -1
- data/spec/{block_7_index_owned_geometry_spec.rb → index_owned_geometry_spec.rb} +1 -1
- data/spec/{block_10_rtree_strategy_spec.rb → index_rtree_accounting_spec.rb} +1 -1
- data/spec/{block_11_rtree_order_spec.rb → index_rtree_order_spec.rb} +1 -1
- data/spec/{block_1_skeleton_spec.rb → load_and_errors_spec.rb} +1 -1
- data/spec/{expansion_e_low_level_geometry_spec.rb → low_level_geometry_spec.rb} +1 -1
- data/spec/{block_14_memory_gc_hardening_spec.rb → memory_gc_spec.rb} +1 -1
- data/spec/{expansion_i_ractor_spec.rb → ractor_spec.rb} +1 -1
- data/spec/{block_5_rect_api_spec.rb → rect_api_spec.rb} +1 -1
- data/spec/{expansion_b_registry_spec.rb → registry_spec.rb} +1 -1
- data/spec/{expansion_j_full_tg_api_coverage_spec.rb → tg_api_coverage_spec.rb} +1 -1
- data/spec/{block_2_vendor_spec.rb → vendor_sources_spec.rb} +4 -4
- metadata +39 -38
- data/docs/ACTIVE_RECORD.md +0 -26
- data/docs/AUTO_STRATEGY.md +0 -15
- data/docs/EXPANSION_E_TO_H_STATUS.md +0 -51
- data/docs/FORMAT_COVERAGE.md +0 -23
- data/docs/FULL_TG_API_COVERAGE.md +0 -109
- data/docs/LOW_LEVEL_GEOMETRY.md +0 -121
- data/docs/RACTOR.md +0 -40
- data/docs/REGISTRY.md +0 -37
- data/docs/RELEASE_CHECKLIST.md +0 -39
- /data/spec/{expansion_c_active_record_source_spec.rb → active_record_source_spec.rb} +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#if defined(__clang__)
|
|
2
|
+
#pragma clang diagnostic push
|
|
3
|
+
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
|
4
|
+
#pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
|
|
5
|
+
#elif defined(__GNUC__)
|
|
6
|
+
#pragma GCC diagnostic push
|
|
7
|
+
#pragma GCC diagnostic ignored "-Wconversion"
|
|
8
|
+
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
|
|
9
|
+
#endif
|
|
10
|
+
|
|
11
|
+
#include "vendor/json/json.c"
|
|
12
|
+
|
|
13
|
+
#if defined(__clang__)
|
|
14
|
+
#pragma clang diagnostic pop
|
|
15
|
+
#elif defined(__GNUC__)
|
|
16
|
+
#pragma GCC diagnostic pop
|
|
17
|
+
#endif
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
#pragma clang diagnostic push
|
|
3
3
|
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
|
4
4
|
#pragma clang diagnostic ignored "-Wincompatible-pointer-types-discards-qualifiers"
|
|
5
|
+
#pragma clang diagnostic ignored "-Wformat-nonliteral"
|
|
5
6
|
#elif defined(__GNUC__)
|
|
6
7
|
#pragma GCC diagnostic push
|
|
7
8
|
#pragma GCC diagnostic ignored "-Wconversion"
|
|
9
|
+
#pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
|
|
10
|
+
#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
|
|
8
11
|
#endif
|
|
9
12
|
|
|
10
13
|
#ifndef asm
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tg_geometry vendor manifest. Do not edit by hand. Regenerate with: ruby script/vendor_libs.rb --sync
|
|
2
2
|
gem=tg_geometry
|
|
3
|
-
libraries=tg,rtree
|
|
3
|
+
libraries=tg,rtree,json
|
|
4
4
|
tg_repo=https://github.com/tidwall/tg.git
|
|
5
5
|
tg_ref=main
|
|
6
6
|
tg_commit=caf840504eaab4563280cf4ab16d618f69a23720
|
|
@@ -13,4 +13,10 @@ rtree_commit=5717a8a1eb373428ebaae8c1c623f186ec46461f
|
|
|
13
13
|
rtree_target=rtree
|
|
14
14
|
rtree_files=rtree.c,rtree.h,LICENSE,README.md,VERSION
|
|
15
15
|
rtree_tree_sha256=4afc86cbd3abe03730206031a5aff5b8b29d37b055fc356052f6f06e1d1f9a61
|
|
16
|
-
|
|
16
|
+
json_repo=https://github.com/tidwall/json.c.git
|
|
17
|
+
json_ref=main
|
|
18
|
+
json_commit=4aaf99b5c08e4e1364f97500fe5c5d5a2617b4a6
|
|
19
|
+
json_target=json
|
|
20
|
+
json_files=json.c,json.h,LICENSE,VERSION
|
|
21
|
+
json_tree_sha256=059393302de9325ab6ccf79c298234f2b688a59d138103305da317d2d0176fe2
|
|
22
|
+
manifest_sha256=6507e2591cadf17ce01616ff54ccbdbb4589ef6130b9edace33cde093d6ae0d5
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Josh Baker
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|