sqlite3 2.1.0.rc2-arm64-darwin → 2.1.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -6
- data/README.md +1 -1
- data/dependencies.yml +8 -8
- data/lib/sqlite3/3.1/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.2/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.3/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/fork_safety.rb +7 -1
- data/lib/sqlite3/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '022585da172eb7b8860b9b33a64c344fba00f58f9bf014dcd175e41bd450d2ab'
|
4
|
+
data.tar.gz: 41a41421d335b21f535ba6c2093363c166a924e6db0dac0829112e42d17dbb43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f771674ebd90324d8f9471b80ca389916e1ea4c64c1aa6ba0b7d9357e5a975a18bfca94b7264fa9fd91ad87bb0e5d78e6ff1884b9d1568dc6cc4dd14fde3ac
|
7
|
+
data.tar.gz: 6beb3b11add59b6759b90581b02b92a05bd0d9256874632ef8e8530976401c0fabf4dd748bd72ccd0626e3f5d55ef7b062674874811680a2249f63bd5c575701
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# sqlite3-ruby Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 2.1.1 / 2024-10-22
|
4
4
|
|
5
|
-
###
|
5
|
+
### Dependencies
|
6
6
|
|
7
|
-
-
|
7
|
+
- Vendored sqlite is updated to [v3.47.0](https://sqlite.org/releaselog/3_47_0.html) [#570] @flavorjones
|
8
8
|
|
9
9
|
|
10
|
-
##
|
10
|
+
## 2.1.0 / 2024-09-24
|
11
11
|
|
12
12
|
### Ruby
|
13
13
|
|
@@ -21,9 +21,9 @@ Sqlite itself is [not fork-safe](https://www.sqlite.org/howtocorrupt.html#_carry
|
|
21
21
|
- All open writable database connections carried across a `fork()` will immediately be closed in the child process to mitigate the risk of corrupting the database file.
|
22
22
|
- These connections will be incompletely closed ("discarded") which will result in a one-time memory leak in the child process.
|
23
23
|
|
24
|
-
If it's at all possible, we strongly recommend that you close writable database connections in the parent before forking.
|
24
|
+
If it's at all possible, we strongly recommend that you close writable database connections in the parent before forking. If absolutely necessary (and you know what you're doing), you may suppress the fork safety warnings by calling `SQLite3::ForkSafety.suppress_warnings!`.
|
25
25
|
|
26
|
-
See the README "Fork Safety" section and `adr/2024-09-fork-safety.md` for more information. [#558] @flavorjones
|
26
|
+
See the README's "Fork Safety" section and `adr/2024-09-fork-safety.md` for more information. [#558, #565, #566] @flavorjones
|
27
27
|
|
28
28
|
|
29
29
|
### Improved
|
@@ -32,6 +32,11 @@ See the README "Fork Safety" section and `adr/2024-09-fork-safety.md` for more i
|
|
32
32
|
- When setting a Database `busy_handler`, fire the write barrier to prevent potential crashes during the GC mark phase. [#556] @jhawthorn
|
33
33
|
|
34
34
|
|
35
|
+
### Documentation
|
36
|
+
|
37
|
+
- The `FAQ.md` has been updated to fix some inaccuracies. [#562] @rickhull
|
38
|
+
|
39
|
+
|
35
40
|
## 2.0.4 / 2024-08-13
|
36
41
|
|
37
42
|
### Dependencies
|
data/README.md
CHANGED
@@ -160,7 +160,7 @@ To help protect users of this gem from accidental corruption due to this lack of
|
|
160
160
|
connections in the child will incur a small one-time memory leak per connection, but that's
|
161
161
|
preferable to potentially corrupting your database.
|
162
162
|
|
163
|
-
Whenever possible, close writable connections in the parent before forking.
|
163
|
+
Whenever possible, close writable connections in the parent before forking. If absolutely necessary (and you know what you're doing), you may suppress the fork safety warnings by calling `SQLite3::ForkSafety.suppress_warnings!`.
|
164
164
|
|
165
165
|
See [./adr/2024-09-fork-safety.md](./adr/2024-09-fork-safety.md) for more information and context.
|
166
166
|
|
data/dependencies.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
sqlite3:
|
2
2
|
# checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html:
|
3
|
-
#
|
3
|
+
# a9166e017ef8bc33379b1c2eed346bf43cded6d40df0feb984a33fba1a828ba9
|
4
4
|
#
|
5
|
-
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-
|
6
|
-
#
|
5
|
+
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-3470000.tar.gz
|
6
|
+
# a9166e017ef8bc33379b1c2eed346bf43cded6d40df0feb984a33fba1a828ba9 ports/archives/sqlite-autoconf-3470000.tar.gz
|
7
7
|
#
|
8
|
-
# $ sha256sum ports/archives/sqlite-autoconf-
|
9
|
-
#
|
10
|
-
version: "3.
|
8
|
+
# $ sha256sum ports/archives/sqlite-autoconf-3470000.tar.gz
|
9
|
+
# 83eb21a6f6a649f506df8bd3aab85a08f7556ceed5dbd8dea743ea003fc3a957 ports/archives/sqlite-autoconf-3470000.tar.gz
|
10
|
+
version: "3.47.0"
|
11
11
|
files:
|
12
|
-
- url: "https://sqlite.org/2024/sqlite-autoconf-
|
13
|
-
sha256: "
|
12
|
+
- url: "https://sqlite.org/2024/sqlite-autoconf-3470000.tar.gz"
|
13
|
+
sha256: "83eb21a6f6a649f506df8bd3aab85a08f7556ceed5dbd8dea743ea003fc3a957"
|
Binary file
|
Binary file
|
Binary file
|
data/lib/sqlite3/fork_safety.rb
CHANGED
@@ -17,6 +17,7 @@ module SQLite3
|
|
17
17
|
|
18
18
|
@databases = []
|
19
19
|
@mutex = Mutex.new
|
20
|
+
@suppress = false
|
20
21
|
|
21
22
|
class << self
|
22
23
|
def hook!
|
@@ -30,7 +31,7 @@ module SQLite3
|
|
30
31
|
end
|
31
32
|
|
32
33
|
def discard
|
33
|
-
warned =
|
34
|
+
warned = @suppress
|
34
35
|
@databases.each do |db|
|
35
36
|
next unless db.weakref_alive?
|
36
37
|
|
@@ -49,6 +50,11 @@ module SQLite3
|
|
49
50
|
end
|
50
51
|
@databases.clear
|
51
52
|
end
|
53
|
+
|
54
|
+
# Call to suppress the fork-related warnings.
|
55
|
+
def suppress_warnings!
|
56
|
+
@suppress = true
|
57
|
+
end
|
52
58
|
end
|
53
59
|
end
|
54
60
|
end
|
data/lib/sqlite3/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlite3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2024-
|
14
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: |
|
17
17
|
Ruby library to interface with the SQLite3 database engine (http://www.sqlite.org). Precompiled
|
@@ -90,9 +90,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: 3.4.dev
|
91
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubygems_version: 3.3.26
|
98
98
|
signing_key:
|