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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a7ab9e95562191fa0a9dbc1e41206379def028455f2bf5d76332829034bd2ef
4
- data.tar.gz: 7866ba35fb73f902f8c1511046ebbbbe684a537358dd0a8513a0ef5facbbcbb6
3
+ metadata.gz: '0099c7235d3e7b13c26861041a474d279952101488139c9b11c40053658bb095'
4
+ data.tar.gz: e809f4772c73162b7417c79ae56674606c689e2a1fddb3181ac637d958066f04
5
5
  SHA512:
6
- metadata.gz: 9954f178afb06b6d43dc1e3cda5241d3a4c8d7ad57bf43efede58aba563abcfcbc4a56bdc2941b9ac1c9983bb15274de0bfd16fc35fb1b8b4be118f3e4c090c4
7
- data.tar.gz: f7e0486214763d90a26ab03df63be2a45495bb5569b60143b6728da9ce6f81d71a4ac68eb551f2ab32519a29a5c8c0623e227a58ade6b9928db0e7bdf412eaf9
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:
@@ -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
@@ -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[name] = block
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
 
@@ -1,5 +1,5 @@
1
1
  module SQLite3
2
2
  module FFI
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
1
  module SQLite3
2
2
  # (String) the version of the sqlite3 gem, e.g. "2.1.1"
3
- VERSION = "2.9.0"
3
+ VERSION = "2.9.5"
4
4
  end
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.6
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.3
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: []