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 CHANGED
@@ -1,4 +1,10 @@
1
1
  = Changelog
2
+ == Version 0.2.1 - 2008-07-05
3
+
4
+ * Bugfixes
5
+ * make sure that the pthread support in sqlite3 matches that of ruby
6
+ * fix schema reloading in the example scripts
7
+
2
8
  == Version 0.2.0 - 2008-07-04
3
9
 
4
10
  * Major Enhancements
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
@@ -9,7 +9,7 @@ module Amalgalite
9
9
 
10
10
  MAJOR = 0
11
11
  MINOR = 2
12
- BUILD = 0
12
+ BUILD = 1
13
13
 
14
14
  #
15
15
  # return the Version as an array of MAJOR, MINOR, BUILD
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 "says if SQLite3 is in threadsafe mode or not" do
6
- Amalgalite::SQLite3.threadsafe?.should == true
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
@@ -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 -y pkg/#{Amalgalite::GEM_SPEC.full_name}.gem"
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.0
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-04 00:00:00 -06:00
12
+ date: 2008-07-05 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency