Skip to content

Commit 8a9ab0f

Browse files
committed
Merge branch '1-3-stable'
2 parents b73fae5 + bf19b89 commit 8a9ab0f

File tree

8 files changed

+61
-24
lines changed

8 files changed

+61
-24
lines changed

CHANGELOG.rdoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
=== (in Git)
22

3+
* Enhancements:
4+
* Windows: build against SQLite 3.8.6. Closes #135 [Hubro]
5+
6+
=== 1.3.9 / 2014-02-25
7+
38
* Bugfixes:
49
* Reset exception message. Closes #80
510
* Reduce warnings due unused pointers. Closes #89

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
source "https://rubygems.org/"
66

77

8-
gem "minitest", "~>5.0", :group => [:development, :test]
9-
gem "rdoc", "~>4.0", :group => [:development, :test]
10-
gem "rake-compiler", "~>0.9.1", :group => [:development, :test]
11-
gem "mini_portile", "~>0.5.1", :group => [:development, :test]
8+
gem "mini_portile", "~>0.6.1", :group => [:development, :test]
9+
gem "minitest", "~>5.4", :group => [:development, :test]
1210
gem "hoe-bundler", "~>1.0", :group => [:development, :test]
13-
gem "hoe", "~>3.7", :group => [:development, :test]
11+
gem "rake-compiler", "~>0.9.3", :group => [:development, :test]
12+
gem "rdoc", "~>4.0", :group => [:development, :test]
13+
gem "hoe", "~>3.12", :group => [:development, :test]
1414

1515
# vim: syntax=ruby

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
version: "{build}"
3+
branches:
4+
only:
5+
- master
6+
- 1-3-stable
7+
clone_depth: 10
8+
install:
9+
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
10+
- ruby --version
11+
- gem --version
12+
- gem install bundler --quiet --no-ri --no-rdoc
13+
- bundler --version
14+
- bundle install
15+
build_script:
16+
- rake native gem
17+
test_script:
18+
- rake test
19+
artifacts:
20+
- path: pkg\*.gem
21+
22+
environment:
23+
matrix:
24+
- ruby_version: "193"
25+
- ruby_version: "200"
26+
- ruby_version: "200-x64"

ext/sqlite3/extconf.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
# --with-sqlite3-{dir,include,lib}
1010
dir_config("sqlite3")
1111

12-
# prioritize local builds
13-
if enable_config("local", false)
14-
$LDFLAGS = ENV.fetch("LDFLAGS", "")
15-
end
16-
1712
if RbConfig::CONFIG["host_os"] =~ /mswin/
1813
$CFLAGS << ' -W3'
1914
end

lib/sqlite3/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module SQLite3
22

3-
VERSION = '1.3.8'
3+
VERSION = '1.3.9'
44

55
module VersionProxy
66

77
MAJOR = 1
88
MINOR = 3
9-
TINY = 8
9+
TINY = 9
1010
BUILD = nil
1111

1212
STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )

tasks/gem.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ HOE = Hoe.spec 'sqlite3' do
2424

2525
spec_extras[:extensions] = ["ext/sqlite3/extconf.rb"]
2626

27-
extra_dev_deps << ['rake-compiler', "~> 0.9.1"]
28-
extra_dev_deps << ["mini_portile", "~> 0.5.1"]
27+
extra_dev_deps << ['rake-compiler', "~> 0.9.3"]
28+
extra_dev_deps << ["mini_portile", "~> 0.6.1"]
2929
extra_dev_deps << ["minitest", "~> 5.0"]
3030
extra_dev_deps << ["hoe-bundler", "~> 1.0"]
3131

tasks/native.rake

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ require 'rake/extensioncompiler'
55
# NOTE: version used by cross compilation of Windows native extension
66
# It do not affect compilation under other operating systems
77
# The version indicated is the minimum DLL suggested for correct functionality
8-
BINARY_VERSION = "3.7.17"
9-
URL_VERSION = "3071700"
10-
URL_PATH = "/2013"
8+
BINARY_VERSION = "3.8.6"
9+
URL_VERSION = "3080600"
10+
URL_PATH = "/2014"
11+
12+
task :devkit do
13+
begin
14+
require "devkit"
15+
rescue LoadError => e
16+
abort "Failed to activate RubyInstaller's DevKit required for compilation."
17+
end
18+
end
1119

1220
# build sqlite3_native C extension
1321
RUBY_EXTENSION = Rake::ExtensionTask.new('sqlite3_native', HOE.spec) do |ext|
@@ -25,7 +33,6 @@ RUBY_EXTENSION = Rake::ExtensionTask.new('sqlite3_native', HOE.spec) do |ext|
2533
# define target for extension (supporting fat binaries)
2634
RUBY_VERSION =~ /(\d+\.\d+)/
2735
ext.lib_dir = "lib/sqlite3/#{$1}"
28-
ext.config_options << "--enable-local"
2936
else
3037

3138
# detect cross-compiler available

tasks/vendor_sqlite3.rake

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,16 @@ def define_sqlite_task(platform, host)
2828
end
2929

3030
# native sqlite3 compilation
31-
define_sqlite_task RUBY_PLATFORM, RbConfig::CONFIG["host"]
31+
recipe = define_sqlite_task(RUBY_PLATFORM, RbConfig::CONFIG["host"])
32+
33+
# force compilation of sqlite3 when working natively under MinGW
34+
if RUBY_PLATFORM =~ /mingw/
35+
RUBY_EXTENSION.config_options << "--with-opt-dir=#{recipe.path}"
36+
37+
# also prepend DevKit into compilation phase
38+
Rake::Task["compile"].prerequisites.unshift "devkit", "ports:sqlite3:#{RUBY_PLATFORM}"
39+
Rake::Task["native"].prerequisites.unshift "devkit", "ports:sqlite3:#{RUBY_PLATFORM}"
40+
end
3241

3342
# trick to test local compilation of sqlite3
3443
if ENV["USE_MINI_PORTILE"] == "true"
@@ -42,11 +51,6 @@ if ENV["USE_MINI_PORTILE"] == "true"
4251
Rake::Task["compile"].prerequisites.unshift "ports:sqlite3:#{RUBY_PLATFORM}"
4352
end
4453

45-
# force compilation of sqlite3 when working natively under MinGW
46-
if RUBY_PLATFORM =~ /mingw/
47-
Rake::Task['compile'].prerequisites.unshift "ports:sqlite3:#{RUBY_PLATFORM}"
48-
end
49-
5054
# iterate over all cross-compilation platforms and define the proper
5155
# sqlite3 recipe for it.
5256
if RUBY_EXTENSION.cross_compile

0 commit comments

Comments
 (0)