sqlite3 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +8 -0
- data/ext/sqlite3/extconf.rb +1 -1
- data/ext/sqlite3/statement.c +1 -3
- data/lib/sqlite3/version.rb +2 -2
- data/tasks/gem.rake +1 -1
- data/tasks/vendor_sqlite3.rake +4 -1
- data/test/test_statement.rb +11 -0
- metadata +28 -28
data/CHANGELOG.rdoc
CHANGED
data/ext/sqlite3/extconf.rb
CHANGED
data/ext/sqlite3/statement.c
CHANGED
data/lib/sqlite3/version.rb
CHANGED
data/tasks/gem.rake
CHANGED
@@ -21,7 +21,7 @@ HOE = Hoe.spec 'sqlite3' do
|
|
21
21
|
spec_extras[:required_rubygems_version] = '>= 1.3.5'
|
22
22
|
spec_extras[:extensions] = ["ext/sqlite3/extconf.rb"]
|
23
23
|
|
24
|
-
extra_dev_deps << ['rake-compiler', "~> 0.
|
24
|
+
extra_dev_deps << ['rake-compiler', "~> 0.8.2"]
|
25
25
|
extra_dev_deps << ["mini_portile", "~> 0.2.2"]
|
26
26
|
|
27
27
|
clean_globs.push('**/test.db')
|
data/tasks/vendor_sqlite3.rake
CHANGED
@@ -17,7 +17,7 @@ namespace :ports do
|
|
17
17
|
|
18
18
|
unless File.exist?(checkpoint)
|
19
19
|
cflags = "-O2 -DSQLITE_ENABLE_COLUMN_METADATA"
|
20
|
-
cflags << " -fPIC" if recipe.host.include?("x86_64")
|
20
|
+
cflags << " -fPIC" if recipe.host && recipe.host.include?("x86_64")
|
21
21
|
recipe.configure_options << "CFLAGS='#{cflags}'"
|
22
22
|
recipe.cook
|
23
23
|
touch checkpoint
|
@@ -36,6 +36,9 @@ if ENV["USE_MINI_PORTILE"] == "true"
|
|
36
36
|
end
|
37
37
|
|
38
38
|
task :cross do
|
39
|
+
["CC", "CXX", "LDFLAGS", "CPPFLAGS", "RUBYOPT"].each do |var|
|
40
|
+
ENV.delete(var)
|
41
|
+
end
|
39
42
|
host = ENV.fetch("HOST", Rake::ExtensionCompiler.mingw_host)
|
40
43
|
$recipes.each do |_, recipe|
|
41
44
|
recipe.host = host
|
data/test/test_statement.rb
CHANGED
@@ -7,6 +7,17 @@ module SQLite3
|
|
7
7
|
@stmt = SQLite3::Statement.new(@db, "select 'foo'")
|
8
8
|
end
|
9
9
|
|
10
|
+
def test_double_close_does_not_segv
|
11
|
+
@db.execute 'CREATE TABLE "things" ("number" float NOT NULL)'
|
12
|
+
|
13
|
+
stmt = @db.prepare 'INSERT INTO things (number) VALUES (?)'
|
14
|
+
assert_raises(SQLite3::ConstraintException) { stmt.execute(nil) }
|
15
|
+
|
16
|
+
stmt.close
|
17
|
+
|
18
|
+
assert_raises(SQLite3::Exception) { stmt.close }
|
19
|
+
end
|
20
|
+
|
10
21
|
def test_raises_type_error
|
11
22
|
assert_raises(TypeError) do
|
12
23
|
SQLite3::Statement.new( @db, nil )
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlite3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 7
|
10
|
+
version: 1.3.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jamis Buck
|
@@ -17,12 +17,13 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date:
|
20
|
+
date: 2013-01-12 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name: rdoc
|
24
23
|
prerelease: false
|
25
|
-
|
24
|
+
type: :development
|
25
|
+
name: rdoc
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
27
|
none: false
|
27
28
|
requirements:
|
28
29
|
- - ~>
|
@@ -32,28 +33,28 @@ dependencies:
|
|
32
33
|
- 3
|
33
34
|
- 10
|
34
35
|
version: "3.10"
|
35
|
-
|
36
|
-
version_requirements: *id001
|
36
|
+
requirement: *id001
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name: rake-compiler
|
39
38
|
prerelease: false
|
40
|
-
|
39
|
+
type: :development
|
40
|
+
name: rake-compiler
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
43
|
requirements:
|
43
44
|
- - ~>
|
44
45
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
46
|
+
hash: 59
|
46
47
|
segments:
|
47
48
|
- 0
|
48
|
-
-
|
49
|
-
-
|
50
|
-
version: 0.
|
51
|
-
|
52
|
-
version_requirements: *id002
|
49
|
+
- 8
|
50
|
+
- 2
|
51
|
+
version: 0.8.2
|
52
|
+
requirement: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
name: mini_portile
|
55
54
|
prerelease: false
|
56
|
-
|
55
|
+
type: :development
|
56
|
+
name: mini_portile
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
57
58
|
none: false
|
58
59
|
requirements:
|
59
60
|
- - ~>
|
@@ -64,23 +65,22 @@ dependencies:
|
|
64
65
|
- 2
|
65
66
|
- 2
|
66
67
|
version: 0.2.2
|
67
|
-
|
68
|
-
version_requirements: *id003
|
68
|
+
requirement: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: hoe
|
71
70
|
prerelease: false
|
72
|
-
|
71
|
+
type: :development
|
72
|
+
name: hoe
|
73
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
73
74
|
none: false
|
74
75
|
requirements:
|
75
76
|
- - ~>
|
76
77
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
78
|
+
hash: 15
|
78
79
|
segments:
|
79
80
|
- 3
|
80
|
-
-
|
81
|
-
version: "3.
|
82
|
-
|
83
|
-
version_requirements: *id004
|
81
|
+
- 4
|
82
|
+
version: "3.4"
|
83
|
+
requirement: *id004
|
84
84
|
description: |-
|
85
85
|
This module allows Ruby programs to interface with the SQLite3
|
86
86
|
database engine (http://www.sqlite.org). You must have the
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
requirements: []
|
193
193
|
|
194
194
|
rubyforge_project: sqlite3
|
195
|
-
rubygems_version: 1.8.
|
195
|
+
rubygems_version: 1.8.24
|
196
196
|
signing_key:
|
197
197
|
specification_version: 3
|
198
198
|
summary: This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org)
|