amalgalite 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +6 -0
- data/ext/mkrf_conf.rb +8 -0
- data/lib/amalgalite/version.rb +1 -1
- data/spec/sqlite3_spec.rb +3 -2
- data/tasks/distribution.rake +1 -1
- metadata +2 -2
data/HISTORY
CHANGED
data/ext/mkrf_conf.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'mkrf'
|
3
|
+
require 'rbconfig'
|
3
4
|
Mkrf::Generator.new('amalgalite3') do |g|
|
4
5
|
# turn on some compilation options
|
5
6
|
g.cflags << " -DSQLITE_ENABLE_COLUMN_METADATA=1" # make available table and column meta data api
|
7
|
+
|
8
|
+
# we compile sqlite the same way that the installation of ruby is compiled.
|
9
|
+
if Config::CONFIG['configure_args'].include?( "--enable-pthread" ) then
|
10
|
+
g.cflags << " -DSQLITE_THREADSAFE=1"
|
11
|
+
else
|
12
|
+
g.cflags << " -DSQLITE_THREADSAFE=0"
|
13
|
+
end
|
6
14
|
end
|
data/lib/amalgalite/version.rb
CHANGED
data/spec/sqlite3_spec.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
|
2
2
|
require 'amalgalite/sqlite3'
|
3
|
+
require 'rbconfig'
|
3
4
|
|
4
5
|
describe "Amalgalite::SQLite3" do
|
5
|
-
it "
|
6
|
-
Amalgalite::SQLite3.threadsafe?.should ==
|
6
|
+
it "is threadsafe is ruby is compiled with pthread support, in this case that is (#{Config::CONFIG['configure_args'].include?( "--enable-pthread" )})" do
|
7
|
+
Amalgalite::SQLite3.threadsafe?.should == Config::CONFIG['configure_args'].include?( "--enable-pthread" )
|
7
8
|
end
|
8
9
|
|
9
10
|
it "knows if an SQL statement is complete" do
|
data/tasks/distribution.rake
CHANGED
@@ -18,7 +18,7 @@ if pkg_config = Configuration.for_if_exist?("packaging") then
|
|
18
18
|
|
19
19
|
desc "Install as a gem"
|
20
20
|
task :install => [:clobber, :package] do
|
21
|
-
sh "sudo gem install
|
21
|
+
sh "sudo gem install --local pkg/#{Amalgalite::GEM_SPEC.full_name}.gem"
|
22
22
|
end
|
23
23
|
|
24
24
|
desc "Uninstall gem"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amalgalite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07-
|
12
|
+
date: 2008-07-05 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|