sqlite3 1.3.6-x86-mswin32-60 → 1.3.7-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,11 @@
1
+ === 1.3.7
2
+
3
+ * Bugfixes
4
+ * Closing a bad statement twice will not segv.
5
+
6
+ * Internal
7
+ * Unset environment variables that could affect cross compilation.
8
+
1
9
  === 1.3.6 / 2012-04-16
2
10
 
3
11
  * Enhancements
@@ -11,7 +11,7 @@ dir_config("sqlite3")
11
11
 
12
12
  # prioritize local builds
13
13
  if enable_config("local", false)
14
- $LDFLAGS = ENV.fetch("LDFLAGS", nil)
14
+ $LDFLAGS = ENV.fetch("LDFLAGS", "")
15
15
  end
16
16
 
17
17
  if RbConfig::CONFIG["host_os"] =~ /mswin/
@@ -85,9 +85,7 @@ static VALUE sqlite3_rb_close(VALUE self)
85
85
 
86
86
  REQUIRE_OPEN_STMT(ctx);
87
87
 
88
- db = sqlite3_db_handle(ctx->st);
89
- CHECK(db, sqlite3_finalize(ctx->st));
90
-
88
+ sqlite3_finalize(ctx->st);
91
89
  ctx->st = NULL;
92
90
 
93
91
  return self;
@@ -1,12 +1,12 @@
1
1
  module SQLite3
2
2
 
3
- VERSION = '1.3.6'
3
+ VERSION = '1.3.7'
4
4
 
5
5
  module VersionProxy
6
6
 
7
7
  MAJOR = 1
8
8
  MINOR = 3
9
- TINY = 6
9
+ TINY = 7
10
10
  BUILD = nil
11
11
 
12
12
  STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
@@ -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.7.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')
@@ -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
@@ -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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 6
10
- version: 1.3.6
9
+ - 7
10
+ version: 1.3.7
11
11
  platform: x86-mswin32-60
12
12
  authors:
13
13
  - Jamis Buck
@@ -17,12 +17,13 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-04-16 00:00:00 Z
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
- requirement: &id001 !ruby/object:Gem::Requirement
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
- type: :development
36
- version_requirements: *id001
36
+ requirement: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- name: rake-compiler
39
38
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
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: 3
46
+ hash: 59
46
47
  segments:
47
48
  - 0
48
- - 7
49
- - 0
50
- version: 0.7.0
51
- type: :development
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- type: :development
68
- version_requirements: *id003
68
+ requirement: *id003
69
69
  - !ruby/object:Gem::Dependency
70
- name: hoe
71
70
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
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: 7
78
+ hash: 15
78
79
  segments:
79
80
  - 3
80
- - 0
81
- version: "3.0"
82
- type: :development
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
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements: []
195
195
 
196
196
  rubyforge_project: sqlite3
197
- rubygems_version: 1.8.21
197
+ rubygems_version: 1.8.24
198
198
  signing_key:
199
199
  specification_version: 3
200
200
  summary: This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org)