Update vendored Sqlite3-ruby to 1.3.0

Also, some tweaks to Maruku.
This commit is contained in:
Jacques Distler 2010-06-10 22:42:33 -05:00
parent 9a80cacc34
commit 4f8759cdf3
55 changed files with 3071 additions and 8028 deletions

View file

@ -1,11 +1,11 @@
require File.join(File.dirname(__FILE__), 'helper')
require 'helper'
require 'thread'
require 'benchmark'
class TC_Integration_Pending < Test::Unit::TestCase
def setup
@db = SQLite3::Database.new( "test.db" )
@db = SQLite3::Database.new("test.db")
@db.transaction do
@db.execute "create table foo ( a integer primary key, b text )"
@db.execute "insert into foo ( b ) values ( 'foo' )"
@ -65,8 +65,9 @@ class TC_Integration_Pending < Test::Unit::TestCase
db2.close if db2
end
end
sleep 1
@db.busy_handler do |data, count|
@db.busy_handler do |count|
handler_call_count += 1
false
end
@ -97,6 +98,7 @@ class TC_Integration_Pending < Test::Unit::TestCase
end
end
sleep 1
time = Benchmark.measure do
assert_raise( SQLite3::BusyException ) do
@db.execute "insert into foo (b) values ( 'from 2' )"
@ -108,4 +110,4 @@ class TC_Integration_Pending < Test::Unit::TestCase
assert time.real*1000 >= 1000
end
end
end