sqlite3 1.3.12-x86-mingw32 → 1.3.13-x86-mingw32
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.rdoc +1 -1
- data/ext/sqlite3/database.c +1 -1
- data/ext/sqlite3/extconf.rb +4 -4
- data/lib/sqlite3/2.0/sqlite3_native.so +0 -0
- data/lib/sqlite3/2.1/sqlite3_native.so +0 -0
- data/lib/sqlite3/2.2/sqlite3_native.so +0 -0
- data/lib/sqlite3/2.3/sqlite3_native.so +0 -0
- data/lib/sqlite3/2.4/sqlite3_native.so +0 -0
- data/lib/sqlite3/pragmas.rb +0 -9
- data/lib/sqlite3/version.rb +2 -2
- data/test/test_database.rb +4 -3
- data/test/test_statement.rb +1 -1
- metadata +4 -5
- data/lib/sqlite3/1.8/sqlite3_native.so +0 -0
- data/lib/sqlite3/1.9/sqlite3_native.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8443fb80e43d95b3f078045b6d5c7c3b7f8c3680
|
4
|
+
data.tar.gz: b02b67c42a56c2a8573206d7c2807e492e651204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce04b1cb6d002d5aed6be51e15ee4d7ffa3c387ab9762ca69d43ee7c9195e8892a18f620c39eb7a0f05a23d2563aaf5039c6155fb91faa293a79781f645b8075
|
7
|
+
data.tar.gz: 703acb490ed291c1853796d89f1f2c1ede3e12fe7932c72176a5b3a2a0826cfd3d269b1acc46287aaa7b61b2493ad40362349bcd84337dd01f6169b78c383154
|
data/CHANGELOG.rdoc
CHANGED
data/ext/sqlite3/database.c
CHANGED
@@ -46,8 +46,8 @@ static VALUE initialize(int argc, VALUE *argv, VALUE self)
|
|
46
46
|
VALUE file;
|
47
47
|
VALUE opts;
|
48
48
|
VALUE zvfs;
|
49
|
-
#ifdef HAVE_SQLITE3_OPEN_V2
|
50
49
|
VALUE flags;
|
50
|
+
#ifdef HAVE_SQLITE3_OPEN_V2
|
51
51
|
int mode = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
|
52
52
|
#endif
|
53
53
|
int status;
|
data/ext/sqlite3/extconf.rb
CHANGED
@@ -11,10 +11,10 @@ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
|
11
11
|
ldflags = cppflags = nil
|
12
12
|
if RbConfig::CONFIG["host_os"] =~ /darwin/
|
13
13
|
begin
|
14
|
-
|
15
|
-
ldflags =
|
16
|
-
cppflags =
|
17
|
-
pkg_conf =
|
14
|
+
brew_prefix = `brew --prefix sqlite3`.chomp
|
15
|
+
ldflags = "#{brew_prefix}/lib"
|
16
|
+
cppflags = "#{brew_prefix}/include"
|
17
|
+
pkg_conf = "#{brew_prefix}/lib/pkgconfig"
|
18
18
|
|
19
19
|
# pkg_config should be less error prone than parsing compiler
|
20
20
|
# commandline options, but we need to set default ldflags and cpp flags
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/sqlite3/pragmas.rb
CHANGED
@@ -101,15 +101,6 @@ module SQLite3
|
|
101
101
|
# The list of valid WAL checkpoints.
|
102
102
|
WAL_CHECKPOINTS = [ [ 'passive' ], [ 'full' ], [ 'restart' ], [ 'truncate' ] ]
|
103
103
|
|
104
|
-
# Does an integrity check on the database. If the check fails, a
|
105
|
-
# SQLite3::Exception will be raised. Otherwise it
|
106
|
-
# returns silently.
|
107
|
-
def integrity_check
|
108
|
-
execute( "PRAGMA integrity_check" ) do |row|
|
109
|
-
raise Exception, row[0] if row[0] != "ok"
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
104
|
def application_id
|
114
105
|
get_int_pragma "application_id"
|
115
106
|
end
|
data/lib/sqlite3/version.rb
CHANGED
data/test/test_database.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
require 'tempfile'
|
3
|
+
require 'pathname'
|
3
4
|
|
4
5
|
module SQLite3
|
5
6
|
class TestDatabase < SQLite3::TestCase
|
@@ -19,7 +20,7 @@ module SQLite3
|
|
19
20
|
assert_equal '', @db.filename('main')
|
20
21
|
tf = Tempfile.new 'thing'
|
21
22
|
@db = SQLite3::Database.new tf.path
|
22
|
-
assert_equal tf.path, @db.filename('main')
|
23
|
+
assert_equal File.expand_path(tf.path), File.expand_path(@db.filename('main'))
|
23
24
|
ensure
|
24
25
|
tf.unlink if tf
|
25
26
|
end
|
@@ -29,7 +30,7 @@ module SQLite3
|
|
29
30
|
assert_equal '', @db.filename
|
30
31
|
tf = Tempfile.new 'thing'
|
31
32
|
@db = SQLite3::Database.new tf.path
|
32
|
-
assert_equal tf.path, @db.filename
|
33
|
+
assert_equal File.expand_path(tf.path), File.expand_path(@db.filename)
|
33
34
|
ensure
|
34
35
|
tf.unlink if tf
|
35
36
|
end
|
@@ -39,7 +40,7 @@ module SQLite3
|
|
39
40
|
assert_equal '', @db.filename
|
40
41
|
tf = Tempfile.new 'thing'
|
41
42
|
@db.execute "ATTACH DATABASE '#{tf.path}' AS 'testing'"
|
42
|
-
assert_equal tf.path, @db.filename('testing')
|
43
|
+
assert_equal File.expand_path(tf.path), File.expand_path(@db.filename('testing'))
|
43
44
|
ensure
|
44
45
|
tf.unlink if tf
|
45
46
|
end
|
data/test/test_statement.rb
CHANGED
@@ -34,7 +34,7 @@ module SQLite3
|
|
34
34
|
# UNIQUE constraint failed: *table_name*.*column_name*
|
35
35
|
# Older versions of SQLite return:
|
36
36
|
# column *column_name* is not unique
|
37
|
-
assert_match
|
37
|
+
assert_match(/(column(s)? .* (is|are) not unique|UNIQUE constraint failed: .*)/, exception.message)
|
38
38
|
end
|
39
39
|
|
40
40
|
###
|
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: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Jamis Buck
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-01-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -155,12 +155,11 @@ files:
|
|
155
155
|
- faq/faq.rb
|
156
156
|
- faq/faq.yml
|
157
157
|
- lib/sqlite3.rb
|
158
|
-
- lib/sqlite3/1.8/sqlite3_native.so
|
159
|
-
- lib/sqlite3/1.9/sqlite3_native.so
|
160
158
|
- lib/sqlite3/2.0/sqlite3_native.so
|
161
159
|
- lib/sqlite3/2.1/sqlite3_native.so
|
162
160
|
- lib/sqlite3/2.2/sqlite3_native.so
|
163
161
|
- lib/sqlite3/2.3/sqlite3_native.so
|
162
|
+
- lib/sqlite3/2.4/sqlite3_native.so
|
164
163
|
- lib/sqlite3/constants.rb
|
165
164
|
- lib/sqlite3/database.rb
|
166
165
|
- lib/sqlite3/errors.rb
|
@@ -213,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
212
|
version: 1.3.5
|
214
213
|
requirements: []
|
215
214
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.6.8
|
217
216
|
signing_key:
|
218
217
|
specification_version: 4
|
219
218
|
summary: This module allows Ruby programs to interface with the SQLite3 database engine
|
Binary file
|
Binary file
|