amalgalite 1.8.0-x64-mingw-ucrt → 1.9.0-x64-mingw-ucrt
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/HISTORY.md +13 -0
- data/ext/amalgalite/c/amalgalite_requires_bootstrap.c +2 -1
- data/ext/amalgalite/c/extconf.rb +17 -4
- data/ext/amalgalite/c/sqlite3.c +2962 -1322
- data/ext/amalgalite/c/sqlite3.h +157 -81
- data/ext/amalgalite/c/sqlite3ext.h +4 -0
- data/lib/amalgalite/3.1/amalgalite.so +0 -0
- data/lib/amalgalite/sqlite3/version.rb +3 -3
- data/lib/amalgalite/version.rb +1 -1
- data/spec/sqlite3/version_spec.rb +7 -7
- data/tasks/default.rake +17 -4
- data/tasks/this.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51b23e2b4538183eda42d0579770ff3091127903ae1130c2d9cefab90ab38a4a
|
4
|
+
data.tar.gz: 759a7e280feda597cab8ba522ada7938ad132b02970d2e1627c05831743974d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c03623b35e536b9d7b001d853d8bfe257e76116781b222718d98d545d00c55488af2d581afcbeb476d13f686569c1cbe834b832f364a3582f8eabcfb03c0702
|
7
|
+
data.tar.gz: 0c991c340ef5f6ce50c1cea1b6810bf1220ec16ec72ab11a9deab2003bc92ab72a783320b10b26078bd50faaef5bd51fb226913306044d1aa8638e3849c5a859
|
data/HISTORY.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Amalgalite Changelog
|
2
2
|
|
3
|
+
## Version 1.9.0 - 2023-04-20
|
4
|
+
* Update SQLite to 3.41.2
|
5
|
+
* Update required_ruby_version in gemspec to >= 2.3.0
|
6
|
+
* Update ruby compatability testing matrix to latest patch versions
|
7
|
+
* update compile time options
|
8
|
+
* remove SQLITE_ENABLE_DESERIALIZE - it is now default on
|
9
|
+
* remove SQLITE_ENABLE_JSON1 - it is now default on
|
10
|
+
* add SQLITE_ENABLE_MATH_FUNCTIONS
|
11
|
+
* add SQLITE_ENABLE_NORMALIZE
|
12
|
+
* add SQLITE_ENABLE_SOUNDEX
|
13
|
+
* add -Wundef to reduce compiler warnings from sqlite on clang
|
14
|
+
* fix a compiler warning in the extension code
|
15
|
+
|
3
16
|
## Version 1.8.0 - 2023-02-06
|
4
17
|
* Update SQLite to 3.40.1
|
5
18
|
* Update ruby compaibility to 2.5 -> 3.2
|
@@ -7,6 +7,7 @@
|
|
7
7
|
|
8
8
|
#include "amalgalite.h"
|
9
9
|
#include <stdio.h>
|
10
|
+
#include <stdnoreturn.h>
|
10
11
|
extern VALUE mA;
|
11
12
|
VALUE cAR;
|
12
13
|
VALUE cARB;
|
@@ -18,7 +19,7 @@ VALUE eARB_Error;
|
|
18
19
|
* allocated via malloc() or the like. It should be a local static buffer
|
19
20
|
* that we do not have to worry about freeing.
|
20
21
|
*/
|
21
|
-
void am_bootstrap_cleanup_and_raise( const char* msg, sqlite3* db, sqlite3_stmt* stmt )
|
22
|
+
noreturn void am_bootstrap_cleanup_and_raise( const char* msg, sqlite3* db, sqlite3_stmt* stmt )
|
22
23
|
{
|
23
24
|
|
24
25
|
if ( NULL != stmt ) { sqlite3_finalize( stmt ); stmt = NULL; }
|
data/ext/amalgalite/c/extconf.rb
CHANGED
@@ -10,15 +10,15 @@ $CFLAGS += " -DSQLITE_ENABLE_BYTECODE_VTAB=1"
|
|
10
10
|
$CFLAGS += " -DSQLITE_ENABLE_COLUMN_METADATA=1"
|
11
11
|
$CFLAGS += " -DSQLITE_ENABLE_DBSTAT_VTAB=1"
|
12
12
|
$CFLAGS += " -DSQLITE_ENABLE_DBPAGE_VTAB=1"
|
13
|
-
$CFLAGS += " -DSQLITE_ENABLE_DESERIALIZE=1"
|
14
13
|
$CFLAGS += " -DSQLITE_ENABLE_EXPLAIN_COMMENTS=1"
|
15
14
|
$CFLAGS += " -DSQLITE_ENABLE_FTS3=1"
|
16
15
|
$CFLAGS += " -DSQLITE_ENABLE_FTS3_PARENTHESIS=1"
|
17
16
|
$CFLAGS += " -DSQLITE_ENABLE_FTS4=1"
|
18
17
|
$CFLAGS += " -DSQLITE_ENABLE_FTS5=1"
|
19
18
|
$CFLAGS += " -DSQLITE_ENABLE_GEOPOLY=1"
|
20
|
-
$CFLAGS += " -
|
19
|
+
$CFLAGS += " -DSQLITE_ENABLE_MATH_FUNCTIONS=1"
|
21
20
|
$CFLAGS += " -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1"
|
21
|
+
$CFLAGS += " -DSQLITE_ENABLE_NORMALIZE=1"
|
22
22
|
$CFLAGS += " -DSQLITE_ENABLE_NULL_TRIM=1"
|
23
23
|
$CFLAGS += " -DSQLITE_ENABLE_PREUPDATE_HOOK=1"
|
24
24
|
$CFLAGS ++ " -DSQLITE_EANBLE_QPSG=1"
|
@@ -29,7 +29,9 @@ $CFLAGS += " -DSQLITE_ENABLE_SNAPSHOT=1"
|
|
29
29
|
$CFLAGS += " -DSQLITE_ENABLE_STMTVTAB=1"
|
30
30
|
$CFLAGS += " -DSQLITE_ENABLE_STAT4=1"
|
31
31
|
$CFLAGS += " -DSQLITE_ENABLE_UNLOCK_NOTIFY=1"
|
32
|
+
$CFLAGS += " -DSQLITE_ENABLE_SOUNDEX=1"
|
32
33
|
|
34
|
+
$CFLAGS += " -DSQLITE_USE_ALLOCA=1"
|
33
35
|
$CFLAGS += " -DSQLITE_OMIT_DEPRECATED=1"
|
34
36
|
|
35
37
|
# we compile sqlite the same way that the installation of ruby is compiled.
|
@@ -54,7 +56,18 @@ ignore_by_compiler = {
|
|
54
56
|
sign-compare
|
55
57
|
unused-const-variable
|
56
58
|
unused-variable
|
57
|
-
|
59
|
+
unused-but-set-variable
|
60
|
+
undef
|
61
|
+
],
|
62
|
+
"gcc" => %w[
|
63
|
+
declaration-after-statement
|
64
|
+
implicit-function-declaration
|
65
|
+
unused-variable
|
66
|
+
unused-but-set-variable
|
67
|
+
maybe-uninitialized
|
68
|
+
old-style-definition
|
69
|
+
undef
|
70
|
+
]
|
58
71
|
}
|
59
72
|
|
60
73
|
if extras = ignore_by_compiler[RbConfig::MAKEFILE_CONFIG["CC"]] then
|
@@ -63,7 +76,7 @@ end
|
|
63
76
|
|
64
77
|
ignoreable_warnings.each do |warning|
|
65
78
|
$CFLAGS = $CFLAGS.gsub(/-W#{warning}/,'')
|
66
|
-
RbConfig::MAKEFILE_CONFIG['warnflags'] = RbConfig::MAKEFILE_CONFIG['warnflags'].gsub(/-W#{warning}/,'') if RbConfig::MAKEFILE_CONFIG['warnflags']
|
79
|
+
RbConfig::MAKEFILE_CONFIG['warnflags'] = RbConfig::MAKEFILE_CONFIG['warnflags'].gsub(/-W#{warning}/,'') if RbConfig::MAKEFILE_CONFIG['warnflags']
|
67
80
|
$CFLAGS += " -Wno-#{warning}"
|
68
81
|
end
|
69
82
|
|