sqlite3 2.0.0-x64-mingw32 → 2.0.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dad5eecb43e93776faafdfd313df1c56c08a87292595606036a9f1f94bf5cd2
4
- data.tar.gz: 789ad885536608c9f0c58a85ff8310a8fb63224856aefe0487244f6ddbf4cd1f
3
+ metadata.gz: 8622cd8173474143ef95f53b01b1fe54a600fdbb2f081bef04963f15abe8a414
4
+ data.tar.gz: d67d222cfa886a3b79fc71477861f9db7565329d951cbe221b346274aa6f6e50
5
5
  SHA512:
6
- metadata.gz: 1b945b7f84838567cc387c34cb588ae09e0413dc5db831cdace01a8e436a20cb0a25e4734e90371373590be564fb08a034fa4f7320b4fb8b81b0e3a9889c6f94
7
- data.tar.gz: 0a72ca5ee06487ef46e8e802a5d43db665913d2d3b4a019a4d136d4b8061c0bf34e7b40d603ed8c91af6cdf31f71bf8a1670fd552dc0d14a22938f0b21166f28
6
+ metadata.gz: 3f638df09f42a176111b219aacb1e74232fc88174806dcaf1efd04c511ef0a7bedd500e8a5f7c3b207ee8e4f924093e485547140dd186152331a1ddd8fca799d
7
+ data.tar.gz: 8d395a7d6c07b8f94b464ad36e69f475ff8fb084c8eda29abc64d02b16d4b70b695523742002f98d404b2b581874e0c14d497f89f6606250ac76c3bebf0787c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # sqlite3-ruby Changelog
2
2
 
3
+ ## 2.0.2 / 2024-05-23
4
+
5
+ ### Dependencies
6
+
7
+ - Vendored sqlite is updated to [v3.46.0](https://sqlite.org/releaselog/3_46_0.html) @flavorjones
8
+
9
+
10
+ ## 2.0.1 / 2024-04-20
11
+
12
+ ### Fixed
13
+
14
+ - Raise `ArgumentError` if `Database#execute`, `#execute_batch`, or `#query` are passed multiple bind parameters that are not in an Array. In v2.0.0 these methods would silently swallow additional arguments, and this change makes the failure explicit. See the CHANGELOG notes for v2.0.0 for examples on how to update your code. [#527] @flavorjones
15
+ - Fixed a regression in v2.0.0 that caused `Database#execute_batch` to raise an encoding exception when passed some non-ascii strings. As a result of this fix, `Database#prepare` now ensures the "remainder" string will always be encoded as UTF-8. [#524] @flavorjones
16
+
17
+
3
18
  ## 2.0.0 / 2024-04-17
4
19
 
5
20
  This is a major release which contains some breaking changes, primarily the removal of
data/INSTALLATION.md CHANGED
@@ -65,6 +65,8 @@ If you are on a platform or version of Ruby that is not covered by the Native Ge
65
65
 
66
66
  By default, as of v1.5.0 of this library, the latest available version of libsqlite3 is packaged with the gem and will be compiled and used automatically. This takes a bit longer than the native gem, but will provide a modern, well-supported version of libsqlite3.
67
67
 
68
+ ⚠ A prerequisite to build the gem with the packaged sqlite3 is that you must have `pkgconf` installed.
69
+
68
70
  For example, on a linux system running Ruby 2.5:
69
71
 
70
72
  ``` text
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
- # cc1050780e0266de4d91b31c8deaf4638336908c12c21898e9f1fcae1e2ac303
3
+ # 83d2acf79453deb7d6520338b1f4585f12e39b27cd370fb08593afa198f471fc
4
4
  #
5
- # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3450300.tar.gz
6
- # cc1050780e0266de4d91b31c8deaf4638336908c12c21898e9f1fcae1e2ac303 ports/archives/sqlite-autoconf-3450300.tar.gz
5
+ # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3460000.tar.gz
6
+ # 83d2acf79453deb7d6520338b1f4585f12e39b27cd370fb08593afa198f471fc ports/archives/sqlite-autoconf-3460000.tar.gz
7
7
  #
8
- # $ sha256sum ports/archives/sqlite-autoconf-3450300.tar.gz
9
- # b2809ca53124c19c60f42bf627736eae011afdcc205bb48270a5ee9a38191531 ports/archives/sqlite-autoconf-3450300.tar.gz
10
- version: "3.45.3"
8
+ # $ sha256sum ports/archives/sqlite-autoconf-3460000.tar.gz
9
+ # 6f8e6a7b335273748816f9b3b62bbdc372a889de8782d7f048c653a447417a7d ports/archives/sqlite-autoconf-3460000.tar.gz
10
+ version: "3.46.0"
11
11
  files:
12
- - url: "https://sqlite.org/2024/sqlite-autoconf-3450300.tar.gz"
13
- sha256: "b2809ca53124c19c60f42bf627736eae011afdcc205bb48270a5ee9a38191531"
12
+ - url: "https://sqlite.org/2024/sqlite-autoconf-3460000.tar.gz"
13
+ sha256: "6f8e6a7b335273748816f9b3b62bbdc372a889de8782d7f048c653a447417a7d"
@@ -72,7 +72,7 @@ prepare(VALUE self, VALUE db, VALUE sql)
72
72
  CHECK(db_ctx->db, status);
73
73
  timespecclear(&db_ctx->stmt_deadline);
74
74
 
75
- return rb_str_new2(tail);
75
+ return rb_utf8_str_new_cstr(tail);
76
76
  }
77
77
 
78
78
  /* call-seq: stmt.close
Binary file
@@ -194,7 +194,7 @@ module SQLite3
194
194
  #
195
195
  # See also #execute2, #query, and #execute_batch for additional ways of
196
196
  # executing statements.
197
- def execute sql, bind_vars = [], *args, &block
197
+ def execute sql, bind_vars = [], &block
198
198
  prepare(sql) do |stmt|
199
199
  stmt.bind_params(bind_vars)
200
200
  stmt = build_result_set stmt
@@ -243,7 +243,7 @@ module SQLite3
243
243
  #
244
244
  # See also #execute_batch2 for additional ways of
245
245
  # executing statements.
246
- def execute_batch(sql, bind_vars = [], *args)
246
+ def execute_batch(sql, bind_vars = [])
247
247
  sql = sql.strip
248
248
  result = nil
249
249
  until sql.empty?
@@ -298,7 +298,7 @@ module SQLite3
298
298
  # returned, or you could have problems with locks on the table. If called
299
299
  # with a block, +close+ will be invoked implicitly when the block
300
300
  # terminates.
301
- def query(sql, bind_vars = [], *args)
301
+ def query(sql, bind_vars = [])
302
302
  result = prepare(sql).execute(bind_vars)
303
303
  if block_given?
304
304
  begin
@@ -1,3 +1,3 @@
1
1
  module SQLite3
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.2"
3
3
  end
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.0.0
4
+ version: 2.0.2
5
5
  platform: x64-mingw32
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-04-17 00:00:00.000000000 Z
14
+ date: 2024-05-23 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