sqlite3-ffi 0.1.6 → 0.1.7
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 +5 -0
- data/LICENSE.txt +1 -1
- data/lib/sqlite3/database.rb +5 -1
- data/lib/sqlite3/ffi/database.rb +1 -3
- data/lib/sqlite3/ffi/version.rb +1 -1
- data/lib/sqlite3/version.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: '0099c7235d3e7b13c26861041a474d279952101488139c9b11c40053658bb095'
|
|
4
|
+
data.tar.gz: e809f4772c73162b7417c79ae56674606c689e2a1fddb3181ac637d958066f04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 916507cb952494f227d6182cf92d9e910cf3534f01995706efff64523eb86750fe7601238b9e4d6c32813cff3a097a073b541bad0632dc74f87e2b35e589ccca
|
|
7
|
+
data.tar.gz: 78586b3eb030fdcb58e4afbcace803efcf78c3e02d3939d73524186148f55cc6b7699c5f15b42df774f6007681ac22bbf82a434887874b1092b3a72ec66efadf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.1.7 (2026-06-07)
|
|
2
|
+
|
|
3
|
+
- Synced with sqlite3-ruby 2.9.5
|
|
4
|
+
- Fixed [GHSA-28hh-pr2h-2w89](https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89) and [GHSA-j7fr-3v8c-3qc3](https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3)
|
|
5
|
+
|
|
1
6
|
## 0.1.6 (2026-02-19)
|
|
2
7
|
|
|
3
8
|
- Fixed memory leaks
|
data/LICENSE.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Copyright (c) 2004-2024, Jamis Buck, Luis Lavena, Aaron Patterson, Mike Dalessio, et al.
|
|
2
|
-
Copyright (c) 2025, Andrew Kane.
|
|
2
|
+
Copyright (c) 2025-2026, Andrew Kane.
|
|
3
3
|
|
|
4
4
|
Redistribution and use in source and binary forms, with or without modification, are permitted
|
|
5
5
|
provided that the following conditions are met:
|
data/lib/sqlite3/database.rb
CHANGED
|
@@ -175,7 +175,7 @@ module SQLite3
|
|
|
175
175
|
@authorizer = nil
|
|
176
176
|
@progress_handler = nil
|
|
177
177
|
@collations = {}
|
|
178
|
-
@functions =
|
|
178
|
+
@functions = []
|
|
179
179
|
@results_as_hash = options[:results_as_hash]
|
|
180
180
|
@readonly = mode & Constants::Open::READONLY != 0
|
|
181
181
|
@default_transaction_mode = options[:default_transaction_mode] || :deferred
|
|
@@ -398,6 +398,8 @@ module SQLite3
|
|
|
398
398
|
# the FunctionProxy#result= method on the +func+ parameter and
|
|
399
399
|
# indicate the return value that way.
|
|
400
400
|
#
|
|
401
|
+
# A reference to the block will be kept for the lifetime of the database object.
|
|
402
|
+
#
|
|
401
403
|
# Example:
|
|
402
404
|
#
|
|
403
405
|
# db.create_function( "maim", 1 ) do |func, value|
|
|
@@ -437,6 +439,8 @@ module SQLite3
|
|
|
437
439
|
# function invocation. It should invoke FunctionProxy#result= to
|
|
438
440
|
# store the result of the function.
|
|
439
441
|
#
|
|
442
|
+
# A reference to the block will be kept for the lifetime of the database object.
|
|
443
|
+
#
|
|
440
444
|
# Example:
|
|
441
445
|
#
|
|
442
446
|
# db.create_aggregate( "lengths", 1 ) do
|
data/lib/sqlite3/ffi/database.rb
CHANGED
|
@@ -2,7 +2,6 @@ module SQLite3
|
|
|
2
2
|
class Database
|
|
3
3
|
def close
|
|
4
4
|
close_or_discard_db
|
|
5
|
-
@aggregators = nil
|
|
6
5
|
self
|
|
7
6
|
end
|
|
8
7
|
|
|
@@ -53,7 +52,7 @@ module SQLite3
|
|
|
53
52
|
|
|
54
53
|
status = FFI::CApi.sqlite3_create_function(@db, FFI.string_value(name), block.arity, flags, FFI.wrap(block), FFI::FUNC, nil, nil)
|
|
55
54
|
FFI.check(@db, status)
|
|
56
|
-
@functions
|
|
55
|
+
@functions << block
|
|
57
56
|
self
|
|
58
57
|
end
|
|
59
58
|
|
|
@@ -236,7 +235,6 @@ module SQLite3
|
|
|
236
235
|
|
|
237
236
|
def discard
|
|
238
237
|
discard_db
|
|
239
|
-
@aggregators = nil
|
|
240
238
|
self
|
|
241
239
|
end
|
|
242
240
|
|
data/lib/sqlite3/ffi/version.rb
CHANGED
data/lib/sqlite3/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sqlite3-ffi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamis Buck
|
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
78
|
version: '0'
|
|
79
79
|
requirements: []
|
|
80
|
-
rubygems_version: 4.0.
|
|
80
|
+
rubygems_version: 4.0.13
|
|
81
81
|
specification_version: 4
|
|
82
82
|
summary: A drop-in replacement for the sqlite3 gem for JRuby
|
|
83
83
|
test_files: []
|