sqlite3 1.5.4-x86-linux → 1.6.0.rc1-x86-linux
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 +19 -0
- data/CONTRIBUTING.md +2 -2
- data/README.md +1 -1
- data/dependencies.yml +8 -7
- data/ext/sqlite3/extconf.rb +25 -6
- data/lib/sqlite3/2.7/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.0/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.1/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.2/sqlite3_native.so +0 -0
- data/lib/sqlite3/pragmas.rb +3 -3
- data/lib/sqlite3/version.rb +4 -4
- data/test/test_pragmas.rb +22 -0
- metadata +27 -12
- data/lib/sqlite3/2.6/sqlite3_native.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5825d2358368aa3dd752e2746e67f0daf989438b4ea91457dd2e3300961ee01
|
4
|
+
data.tar.gz: 8ccb30dc38937fa8c15ed05997d67f02fbcbfad26aee68585abecf03f830f52d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5e59a90283488c388a8083ed3a65a714456d52ff9ff26a2d1a5dc6806c016d2571f57148fc5436c6f306390515f28d106e7c22640a68b194f545dcf158f429
|
7
|
+
data.tar.gz: cf69a2b736608917ddaefe2f59f89edb80b9f9a3417b349bbcedc59f62e5869e016312653168586294c72a3db2af31a7fa7ff9339e7a43261de040d34b8ad86b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# sqlite3-ruby Changelog
|
2
2
|
|
3
|
+
## 1.6.0 / unreleased
|
4
|
+
|
5
|
+
### Ruby
|
6
|
+
|
7
|
+
This release introduces native gem support for Ruby 3.2.
|
8
|
+
|
9
|
+
This release ends native gem support for Ruby 2.6, for which [upstream support ended 2022-04-12](https://www.ruby-lang.org/en/downloads/branches/).
|
10
|
+
|
11
|
+
|
12
|
+
### Dependencies
|
13
|
+
|
14
|
+
* Vendored sqlite3 is updated to [v3.40.1](https://sqlite.org/releaselog/3_40_1.html).
|
15
|
+
|
16
|
+
|
17
|
+
### Fixes
|
18
|
+
|
19
|
+
* `get_boolean_pragma` now returns the correct value. Previously, it always returned true. [#275] (Thank you, @Edouard-chin!)
|
20
|
+
|
21
|
+
|
3
22
|
## 1.5.4 / 2022-11-18
|
4
23
|
|
5
24
|
### Dependencies
|
data/CONTRIBUTING.md
CHANGED
@@ -17,8 +17,8 @@ Run `bin/build-gems` which will package gems for all supported platforms, and ru
|
|
17
17
|
A quick checklist:
|
18
18
|
|
19
19
|
- [ ] make sure CI is green!
|
20
|
-
- [
|
21
|
-
- [
|
20
|
+
- [ ] update `CHANGELOG.md` and `lib/sqlite3/version.rb` including `VersionProxy::{MINOR,TINY}`
|
21
|
+
- [ ] create a git tag using a format that matches the pattern `v\d+\.\d+\.\d+`, e.g. `v1.3.13`
|
22
22
|
- [ ] run `bin/build-gems` and make sure it completes and all the tests pass
|
23
23
|
- [ ] `for g in gems/*.gem ; do gem push $g ; done`
|
24
24
|
- [ ] create a release at https://github.com/sparklemotion/sqlite3-ruby/releases and include sha2 checksums
|
data/README.md
CHANGED
@@ -71,7 +71,7 @@ end
|
|
71
71
|
|
72
72
|
### Native Gems (recommended)
|
73
73
|
|
74
|
-
|
74
|
+
In v1.5.0 and later, native (precompiled) gems are available for recent Ruby versions on these platforms:
|
75
75
|
|
76
76
|
- `aarch64-linux`
|
77
77
|
- `arm-linux`
|
data/dependencies.yml
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
:sqlite3:
|
3
3
|
# checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html:
|
4
4
|
#
|
5
|
-
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-
|
6
|
-
#
|
5
|
+
# $ sha3sum -a 256 ports/archives/sqlite-autoconf-3400100.tar.gz
|
6
|
+
# 3136db4bcd9e9e1e485c291380a3d86f0f21cae0eff9f714c0ef4821e2e5cdf7 ports/archives/sqlite-autoconf-3400100.tar.gz
|
7
7
|
#
|
8
|
-
#
|
9
|
-
#
|
8
|
+
# juno in sqlite3-ruby on flavorjones-update-sqlite-3.40.1 [$!?] via 💎 v3.1.2
|
9
|
+
# $ sha256sum ports/archives/sqlite-autoconf-3400100.tar.gz
|
10
|
+
# 2c5dea207fa508d765af1ef620b637dcb06572afa6f01f0815bd5bbf864b33d9 ports/archives/sqlite-autoconf-3400100.tar.gz
|
10
11
|
#
|
11
|
-
:version: "3.40.
|
12
|
+
:version: "3.40.1"
|
12
13
|
:files:
|
13
|
-
- :url: "https://sqlite.org/2022/sqlite-autoconf-
|
14
|
-
:sha256: "
|
14
|
+
- :url: "https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz"
|
15
|
+
:sha256: "2c5dea207fa508d765af1ef620b637dcb06572afa6f01f0815bd5bbf864b33d9"
|
data/ext/sqlite3/extconf.rb
CHANGED
@@ -69,21 +69,29 @@ module Sqlite3
|
|
69
69
|
# on macos, pkg-config will not return --cflags without this
|
70
70
|
ENV["PKG_CONFIG_ALLOW_SYSTEM_CFLAGS"] = "t"
|
71
71
|
|
72
|
+
# only needed for Ruby 3.1.3, see https://bugs.ruby-lang.org/issues/19233
|
73
|
+
RbConfig::CONFIG["PKG_CONFIG"] = config_string("PKG_CONFIG") || "pkg-config"
|
74
|
+
|
72
75
|
lib_path = File.join(recipe.path, "lib")
|
73
76
|
pcfile = File.join(lib_path, "pkgconfig", "sqlite3.pc")
|
74
77
|
abort_pkg_config("pkg_config") unless pkg_config(pcfile)
|
75
78
|
|
76
79
|
# see https://bugs.ruby-lang.org/issues/18490
|
77
|
-
|
80
|
+
ldflags = xpopen(["pkg-config", "--libs", "--static", pcfile], err: [:child, :out], &:read)
|
78
81
|
abort_pkg_config("xpopen") unless $?.success?
|
79
|
-
|
82
|
+
ldflags = ldflags.split
|
80
83
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
+
if needs_darwin_linker_hack
|
85
|
+
ldflags.delete("-lsqlite3")
|
86
|
+
ldflags.prepend("-Wl,-flat_namespace", "-Wl,-hidden-lsqlite3")
|
87
|
+
else
|
88
|
+
# see https://github.com/flavorjones/mini_portile/issues/118
|
89
|
+
"-L#{lib_path}".tap do |lib_path_flag|
|
90
|
+
ldflags.prepend(lib_path_flag) unless ldflags.include?(lib_path_flag)
|
91
|
+
end
|
84
92
|
end
|
85
93
|
|
86
|
-
|
94
|
+
ldflags.each { |ldflag| append_ldflags(ldflag) }
|
87
95
|
end
|
88
96
|
end
|
89
97
|
|
@@ -169,6 +177,17 @@ module Sqlite3
|
|
169
177
|
minimal_recipe.download
|
170
178
|
end
|
171
179
|
|
180
|
+
def needs_darwin_linker_hack
|
181
|
+
# See https://github.com/rake-compiler/rake-compiler-dock/issues/87 for more info.
|
182
|
+
cross_build? &&
|
183
|
+
darwin? &&
|
184
|
+
RbConfig::CONFIG["ruby_version"] >= "3.2"
|
185
|
+
end
|
186
|
+
|
187
|
+
def darwin?
|
188
|
+
RbConfig::CONFIG["target_os"].include?("darwin")
|
189
|
+
end
|
190
|
+
|
172
191
|
def print_help
|
173
192
|
print(<<~TEXT)
|
174
193
|
USAGE: ruby #{$PROGRAM_NAME} [options]
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/sqlite3/pragmas.rb
CHANGED
@@ -11,7 +11,7 @@ module SQLite3
|
|
11
11
|
|
12
12
|
# Returns +true+ or +false+ depending on the value of the named pragma.
|
13
13
|
def get_boolean_pragma( name )
|
14
|
-
get_first_value( "PRAGMA #{name}" ) !=
|
14
|
+
get_first_value( "PRAGMA #{name}" ) != 0
|
15
15
|
end
|
16
16
|
|
17
17
|
# Sets the given pragma to the given boolean value. The value itself
|
@@ -260,7 +260,7 @@ module SQLite3
|
|
260
260
|
def full_column_names=( mode )
|
261
261
|
set_boolean_pragma "full_column_names", mode
|
262
262
|
end
|
263
|
-
|
263
|
+
|
264
264
|
def fullfsync
|
265
265
|
get_boolean_pragma "fullfsync"
|
266
266
|
end
|
@@ -356,7 +356,7 @@ module SQLite3
|
|
356
356
|
def parser_trace=( mode )
|
357
357
|
set_boolean_pragma "parser_trace", mode
|
358
358
|
end
|
359
|
-
|
359
|
+
|
360
360
|
def query_only
|
361
361
|
get_boolean_pragma "query_only"
|
362
362
|
end
|
data/lib/sqlite3/version.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
module SQLite3
|
4
|
+
class TestPragmas < SQLite3::TestCase
|
5
|
+
def setup
|
6
|
+
super
|
7
|
+
@db = SQLite3::Database.new(":memory:")
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_get_boolean_pragma
|
11
|
+
refute(@db.get_boolean_pragma("read_uncommitted"))
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_set_boolean_pragma
|
15
|
+
@db.set_boolean_pragma("read_uncommitted", 1)
|
16
|
+
|
17
|
+
assert(@db.get_boolean_pragma("read_uncommitted"))
|
18
|
+
ensure
|
19
|
+
@db.set_boolean_pragma("read_uncommitted", 0)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlite3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0.rc1
|
5
5
|
platform: x86-linux
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
8
8
|
- Luis Lavena
|
9
9
|
- Aaron Patterson
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2023-01-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -74,13 +74,27 @@ dependencies:
|
|
74
74
|
- - "<"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '7'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: psych
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '4.0'
|
84
|
+
type: :development
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '4.0'
|
77
91
|
description: |-
|
78
92
|
This module allows Ruby programs to interface with the SQLite3
|
79
93
|
database engine (http://www.sqlite.org). You must have the
|
80
94
|
SQLite engine installed in order to build this module.
|
81
95
|
|
82
96
|
Note that this module is only compatible with SQLite 3.6.16 or newer.
|
83
|
-
email:
|
97
|
+
email:
|
84
98
|
executables: []
|
85
99
|
extensions: []
|
86
100
|
extra_rdoc_files:
|
@@ -121,10 +135,10 @@ files:
|
|
121
135
|
- faq/faq.rb
|
122
136
|
- faq/faq.yml
|
123
137
|
- lib/sqlite3.rb
|
124
|
-
- lib/sqlite3/2.6/sqlite3_native.so
|
125
138
|
- lib/sqlite3/2.7/sqlite3_native.so
|
126
139
|
- lib/sqlite3/3.0/sqlite3_native.so
|
127
140
|
- lib/sqlite3/3.1/sqlite3_native.so
|
141
|
+
- lib/sqlite3/3.2/sqlite3_native.so
|
128
142
|
- lib/sqlite3/constants.rb
|
129
143
|
- lib/sqlite3/database.rb
|
130
144
|
- lib/sqlite3/errors.rb
|
@@ -149,6 +163,7 @@ files:
|
|
149
163
|
- test/test_integration_pending.rb
|
150
164
|
- test/test_integration_resultset.rb
|
151
165
|
- test/test_integration_statement.rb
|
166
|
+
- test/test_pragmas.rb
|
152
167
|
- test/test_result_set.rb
|
153
168
|
- test/test_sqlite3.rb
|
154
169
|
- test/test_statement.rb
|
@@ -163,7 +178,7 @@ metadata:
|
|
163
178
|
changelog_uri: https://github.com/sparklemotion/sqlite3-ruby/blob/master/CHANGELOG.md
|
164
179
|
source_code_uri: https://github.com/sparklemotion/sqlite3-ruby
|
165
180
|
rubygems_mfa_required: 'true'
|
166
|
-
post_install_message:
|
181
|
+
post_install_message:
|
167
182
|
rdoc_options:
|
168
183
|
- "--main"
|
169
184
|
- README.md
|
@@ -173,18 +188,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
173
188
|
requirements:
|
174
189
|
- - ">="
|
175
190
|
- !ruby/object:Gem::Version
|
176
|
-
version: '2.
|
191
|
+
version: '2.7'
|
177
192
|
- - "<"
|
178
193
|
- !ruby/object:Gem::Version
|
179
|
-
version: 3.
|
194
|
+
version: 3.3.dev
|
180
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
196
|
requirements:
|
182
|
-
- - "
|
197
|
+
- - ">"
|
183
198
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
199
|
+
version: 1.3.1
|
185
200
|
requirements: []
|
186
|
-
rubygems_version: 3.3.
|
187
|
-
signing_key:
|
201
|
+
rubygems_version: 3.3.26
|
202
|
+
signing_key:
|
188
203
|
specification_version: 4
|
189
204
|
summary: This module allows Ruby programs to interface with the SQLite3 database engine
|
190
205
|
(http://www.sqlite.org)
|
Binary file
|