sqlite3 2.4.0-x86-linux-gnu → 2.5.0.rc1-x86-linux-gnu
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 +31 -0
- data/README.md +5 -5
- data/dependencies.yml +8 -8
- data/lib/sqlite3/3.1/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.2/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.3/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.4/sqlite3_native.so +0 -0
- data/lib/sqlite3/database.rb +9 -0
- data/lib/sqlite3/fork_safety.rb +14 -10
- data/lib/sqlite3/version.rb +1 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57312a3598a1f3d21e486d4bcb98ea8df4e2bc9ba50a7dd438889d629ab43fcb
|
4
|
+
data.tar.gz: 854f8c1dc013018bc53b1346c33779817c6a50e1ce8023890d089750b93ac19d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb18870c931e04a1dcbe69b22a82cb522a6cbf50958e8449dfbb56457dcd1b91c5e707e5a11d2972f9380b7a819808fb11fbcb00f4d5314569ae3b152dcb709f
|
7
|
+
data.tar.gz: 0e3077eb1167e5eb944af333e6f84f01a0d4c08c6271024de5c29dada250d5a45e473be350d633a96dcfc550eb69d11b47e79ced32f80737dee7744fa4a48460
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,36 @@
|
|
1
1
|
# sqlite3-ruby Changelog
|
2
2
|
|
3
|
+
## 2.5.0.rc1 / 2024-12-14
|
4
|
+
|
5
|
+
### Ruby
|
6
|
+
|
7
|
+
This release introduces native gem packages that include Ruby 3.4.
|
8
|
+
|
9
|
+
|
10
|
+
## 2.4.1 / 2024-12-08
|
11
|
+
|
12
|
+
### Dependencies
|
13
|
+
|
14
|
+
- Vendored sqlite is updated to [v3.47.2](https://sqlite.org/releaselog/3_47.2.html) #593 @flavorjones
|
15
|
+
|
16
|
+
The description from the upstream maintainers is:
|
17
|
+
|
18
|
+
> SQLite version 3.47.2, now available, fixes an important bug that first appeared in the 3.47.0
|
19
|
+
> release. In SQLite versions 3.47.0 and 3.47.1, if you try to convert a string into a
|
20
|
+
> floating-point value and the first 16 significant digits of the value are exactly
|
21
|
+
> "1844674407370955", then the floating-point number generated might be incorrect. The problem
|
22
|
+
> only affects x64 and i386 CPUs, so it does not affect you if you are running on ARM. And it only
|
23
|
+
> affects releases 3.47.0 and 3.47.1. **If you are running SQLite versions 3.47.0 or 3.47.1, then
|
24
|
+
> upgrading is recommended.**
|
25
|
+
|
26
|
+
Saving you a click, you should upgrade if you're running sqlite3-ruby v2.1.1 or later.
|
27
|
+
|
28
|
+
|
29
|
+
### Fixed
|
30
|
+
|
31
|
+
- Prevent unnecessary "Invalid Reference" warnings from the `ForkSafety` module when GC runs during the "after fork" hook. #592 @flavorjones
|
32
|
+
|
33
|
+
|
3
34
|
## 2.4.0 / 2024-12-03
|
4
35
|
|
5
36
|
### Added
|
data/README.md
CHANGED
@@ -9,20 +9,20 @@ Note that this module is only compatible with SQLite 3.6.16 or newer.
|
|
9
9
|
* Source code: https://github.com/sparklemotion/sqlite3-ruby
|
10
10
|
* Mailing list: http://groups.google.com/group/sqlite3-ruby
|
11
11
|
* Download: http://rubygems.org/gems/sqlite3
|
12
|
-
* Documentation:
|
12
|
+
* Documentation: https://sparklemotion.github.io/sqlite3-ruby/
|
13
13
|
|
14
14
|
[](https://github.com/sparklemotion/sqlite3-ruby/actions/workflows/ci.yml)
|
15
15
|
|
16
16
|
|
17
17
|
## Quick start
|
18
18
|
|
19
|
-
For help understanding the SQLite3 Ruby API, please read the [FAQ](./FAQ.md) and the [full API documentation](https://
|
19
|
+
For help understanding the SQLite3 Ruby API, please read the [FAQ](./FAQ.md) and the [full API documentation](https://sparklemotion.github.io/sqlite3-ruby/).
|
20
20
|
|
21
21
|
A few key classes whose APIs are often-used are:
|
22
22
|
|
23
|
-
- SQLite3::Database ([rdoc](https://
|
24
|
-
- SQLite3::Statement ([rdoc](https://
|
25
|
-
- SQLite3::ResultSet ([rdoc](https://
|
23
|
+
- SQLite3::Database ([rdoc](https://sparklemotion.github.io/sqlite3-ruby/SQLite3/Database.html))
|
24
|
+
- SQLite3::Statement ([rdoc](https://sparklemotion.github.io/sqlite3-ruby/SQLite3/Statement.html))
|
25
|
+
- SQLite3::ResultSet ([rdoc](https://sparklemotion.github.io/sqlite3-ruby/SQLite3/ResultSet.html))
|
26
26
|
|
27
27
|
If you have any questions that you feel should be addressed in the FAQ, please send them to [the mailing list](http://groups.google.com/group/sqlite3-ruby) or open a [discussion thread](https://github.com/sparklemotion/sqlite3-ruby/discussions/categories/q-a).
|
28
28
|
|
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
|
+
# 52cd4a2304b627abbabe1a438ba853d0f6edb8e2774fcb5773c7af11077afe94
|
4
4
|
#
|
5
|
-
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-
|
6
|
-
#
|
5
|
+
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-3470200.tar.gz
|
6
|
+
# 52cd4a2304b627abbabe1a438ba853d0f6edb8e2774fcb5773c7af11077afe94 ports/archives/sqlite-autoconf-3470200.tar.gz
|
7
7
|
#
|
8
|
-
# $ sha256sum ports/archives/sqlite-autoconf-
|
9
|
-
#
|
10
|
-
version: "3.47.
|
8
|
+
# $ sha256sum ports/archives/sqlite-autoconf-3470200.tar.gz
|
9
|
+
# f1b2ee412c28d7472bc95ba996368d6f0cdcf00362affdadb27ed286c179540b ports/archives/sqlite-autoconf-3470200.tar.gz
|
10
|
+
version: "3.47.2"
|
11
11
|
files:
|
12
|
-
- url: "https://sqlite.org/2024/sqlite-autoconf-
|
13
|
-
sha256: "
|
12
|
+
- url: "https://sqlite.org/2024/sqlite-autoconf-3470200.tar.gz"
|
13
|
+
sha256: "f1b2ee412c28d7472bc95ba996368d6f0cdcf00362affdadb27ed286c179540b"
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/sqlite3/database.rb
CHANGED
@@ -74,6 +74,15 @@ module SQLite3
|
|
74
74
|
# #enable_load_extension; however it is still necessary to call #enable_load_extensions before any
|
75
75
|
# subsequently invocations of #load_extension on the initialized Database object.
|
76
76
|
#
|
77
|
+
# You can load extensions in a Rails application by using the +extensions:+ configuration option:
|
78
|
+
#
|
79
|
+
# # config/database.yml
|
80
|
+
# development:
|
81
|
+
# adapter: sqlite3
|
82
|
+
# extensions:
|
83
|
+
# - .sqlpkg/nalgeon/crypto/crypto.so # a filesystem path
|
84
|
+
# - <%= SQLean::UUID.to_path %> # or ruby code returning a path
|
85
|
+
#
|
77
86
|
class Database
|
78
87
|
attr_reader :collations
|
79
88
|
|
data/lib/sqlite3/fork_safety.rb
CHANGED
@@ -35,17 +35,21 @@ module SQLite3
|
|
35
35
|
@databases.each do |db|
|
36
36
|
next unless db.weakref_alive?
|
37
37
|
|
38
|
-
|
39
|
-
unless
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
38
|
+
begin
|
39
|
+
unless db.closed? || db.readonly?
|
40
|
+
unless warned
|
41
|
+
# If you are here, you may want to read
|
42
|
+
# https://github.com/sparklemotion/sqlite3-ruby/pull/558
|
43
|
+
warn("Writable sqlite database connection(s) were inherited from a forked process. " \
|
44
|
+
"This is unsafe and the connections are being closed to prevent possible data " \
|
45
|
+
"corruption. Please close writable sqlite database connections before forking.",
|
46
|
+
uplevel: 0)
|
47
|
+
warned = true
|
48
|
+
end
|
49
|
+
db.close
|
47
50
|
end
|
48
|
-
|
51
|
+
rescue WeakRef::RefError
|
52
|
+
# GC may run while this method is executing, and that's OK
|
49
53
|
end
|
50
54
|
end
|
51
55
|
@databases.clear
|
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.
|
4
|
+
version: 2.5.0.rc1
|
5
5
|
platform: x86-linux-gnu
|
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-12-
|
14
|
+
date: 2024-12-14 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
|
@@ -55,6 +55,7 @@ files:
|
|
55
55
|
- lib/sqlite3/3.1/sqlite3_native.so
|
56
56
|
- lib/sqlite3/3.2/sqlite3_native.so
|
57
57
|
- lib/sqlite3/3.3/sqlite3_native.so
|
58
|
+
- lib/sqlite3/3.4/sqlite3_native.so
|
58
59
|
- lib/sqlite3/constants.rb
|
59
60
|
- lib/sqlite3/database.rb
|
60
61
|
- lib/sqlite3/errors.rb
|
@@ -71,7 +72,7 @@ licenses:
|
|
71
72
|
metadata:
|
72
73
|
homepage_uri: https://github.com/sparklemotion/sqlite3-ruby
|
73
74
|
bug_tracker_uri: https://github.com/sparklemotion/sqlite3-ruby/issues
|
74
|
-
documentation_uri: https://
|
75
|
+
documentation_uri: https://sparklemotion.github.io/sqlite3-ruby/
|
75
76
|
changelog_uri: https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md
|
76
77
|
source_code_uri: https://github.com/sparklemotion/sqlite3-ruby
|
77
78
|
rubygems_mfa_required: 'true'
|
@@ -88,9 +89,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
89
|
version: '3.1'
|
89
90
|
- - "<"
|
90
91
|
- !ruby/object:Gem::Version
|
91
|
-
version: 3.
|
92
|
+
version: 3.5.dev
|
92
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
94
|
requirements:
|
95
|
+
- - ">"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.3.1
|
94
98
|
- - ">="
|
95
99
|
- !ruby/object:Gem::Version
|
96
100
|
version: 3.3.22
|