sqlite3 1.3.12-x64-mingw32 → 1.3.13-x64-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 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3693bd755f39b755d559223394ddbd18d6a550a
|
4
|
+
data.tar.gz: fbb0fd04cc2c713041a6a51eb23afd6d6bd90971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67833c4c4097d3f492524f7fc61b983bcb3fb3c40695f118ef4ea3d565828f3ef35a26c51c2975707f4ca9c43446a66514a40d9ddc6d41ee96fc5e42b63c633
|
7
|
+
data.tar.gz: 83c68834b17e6ea57ba371bb782c1a4a18c37d3e551218d831a330ea56774e2aa0f46680e59c37b6ab324535becf93fcba8e67deea47ce953352450bdbbcded6
|
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: x64-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
|
@@ -159,6 +159,7 @@ files:
|
|
159
159
|
- lib/sqlite3/2.1/sqlite3_native.so
|
160
160
|
- lib/sqlite3/2.2/sqlite3_native.so
|
161
161
|
- lib/sqlite3/2.3/sqlite3_native.so
|
162
|
+
- lib/sqlite3/2.4/sqlite3_native.so
|
162
163
|
- lib/sqlite3/constants.rb
|
163
164
|
- lib/sqlite3/database.rb
|
164
165
|
- lib/sqlite3/errors.rb
|
@@ -211,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
212
|
version: 1.3.5
|
212
213
|
requirements: []
|
213
214
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.6.8
|
215
216
|
signing_key:
|
216
217
|
specification_version: 4
|
217
218
|
summary: This module allows Ruby programs to interface with the SQLite3 database engine
|