amalgalite 0.12.0-x86-mingw32 → 0.15.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+
3
+ DB="iso-3166.db"
4
+ SCHEMA="iso-3166-schema.sql"
5
+
6
+ rm -f ${DB}
7
+ sqlite3 ${DB} < ${SCHEMA}
8
+ echo ".import iso-3166-country.txt country" | sqlite3 ${DB}
9
+ echo ".import iso-3166-subcountry.txt subcountry" | sqlite3 ${DB}
10
+
11
+ sqlite3 ${DB} "select 'country_count', count(1) from country"
12
+ sqlite3 ${DB} "select 'subcountry_count', count(1) from subcountry"
@@ -9,17 +9,6 @@ require 'amalgalite/taps/console'
9
9
  require 'amalgalite/database'
10
10
 
11
11
  describe Amalgalite::Database do
12
- before(:each) do
13
- @schema = IO.read( SpecInfo.test_schema_file )
14
- @iso_db_file = SpecInfo.make_iso_db
15
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
16
- end
17
-
18
- after(:each) do
19
- File.unlink SpecInfo.test_db if File.exist?( SpecInfo.test_db )
20
- @iso_db.close
21
- File.unlink @iso_db_file if File.exist?( @iso_db_file )
22
- end
23
12
 
24
13
  it "can create a new database" do
25
14
  db = Amalgalite::Database.new( SpecInfo.test_db )
@@ -207,7 +196,6 @@ describe Amalgalite::Database do
207
196
  end
208
197
 
209
198
  it "#reload_schema!" do
210
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
211
199
  schema = @iso_db.schema
212
200
  schema.instance_of?( Amalgalite::Schema ).should eql(true)
213
201
  s2 = @iso_db.reload_schema!
@@ -425,14 +413,17 @@ describe Amalgalite::Database do
425
413
 
426
414
  it "rolls back a savepoint" do
427
415
  all_sub = @iso_db.execute("SELECT count(*) as cnt from subcountry").first['cnt']
416
+ us_sub = @iso_db.execute("SELECT count(*) as cnt from subcountry where country = 'US'").first['cnt']
428
417
  lambda {
429
418
  @iso_db.savepoint( "t1" ) do |s|
430
419
  s.execute("DELETE FROM subcountry where country = 'US'")
420
+ as = @iso_db.execute("SELECT count(*) as cnt from subcountry where country = 'US'").first['cnt']
421
+ as.should == 0
431
422
  raise "sample error"
432
423
  end
433
424
  }.should raise_error( StandardError, /sample error/ )
434
425
 
435
- @iso_db.execute("SELECT count(*) as cnt from subcountry").first['cnt'].should eql(all_sub)
426
+ @iso_db.execute("SELECT count(*) as cnt from subcountry where country = 'US'").first['cnt'].should eql(us_sub)
436
427
  end
437
428
 
438
429
  it "rolling back the outermost savepoint is still 'in_transaction'" do
@@ -1,26 +1,7 @@
1
- require 'rubygems'
2
- require 'spec'
3
-
4
- $: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
5
-
6
1
  require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
7
- require 'amalgalite'
8
- require 'amalgalite/database'
9
2
 
10
3
  describe "Scalar SQL Functions" do
11
4
 
12
- before(:each) do
13
- @schema = IO.read( SpecInfo.test_schema_file )
14
- @iso_db_file = SpecInfo.make_iso_db
15
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
16
- end
17
-
18
- after(:each) do
19
- File.unlink SpecInfo.test_db if File.exist?( SpecInfo.test_db )
20
- @iso_db.close
21
- File.unlink @iso_db_file if File.exist?( @iso_db_file )
22
- end
23
-
24
5
  it "can define a custom SQL function as a block with 0 params" do
25
6
  @iso_db.define_function("foo") do
26
7
  "foo"
@@ -1,23 +1,8 @@
1
- require 'rubygems'
2
- require 'spec'
1
+ require File.expand_path(File.join(File.dirname(__FILE__),"spec_helper.rb"))
3
2
  require 'date'
4
3
  require 'time'
5
4
 
6
- $: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
7
- require 'amalgalite'
8
-
9
5
  describe "Integration specifications" do
10
- before(:each) do
11
- @schema = IO.read( SpecInfo.test_schema_file )
12
- @iso_db_file = SpecInfo.make_iso_db
13
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
14
- end
15
-
16
- after(:each) do
17
- File.unlink SpecInfo.test_db if File.exist?( SpecInfo.test_db )
18
- @iso_db.close
19
- File.unlink @iso_db_file if File.exist?( @iso_db_file )
20
- end
21
6
 
22
7
  describe " - invalid queries" do
23
8
  it "raises error with an invalid syntax" do
@@ -0,0 +1,58 @@
1
+ require 'amalgalite'
2
+
3
+ module Amalgalite
4
+ class Iso3166Database < Database
5
+ def self.country_data_file
6
+ @country_data_file ||= File.expand_path( File.join( File.dirname(__FILE__), "data", "iso-3166-country.txt" ) )
7
+ end
8
+
9
+ def self.subcountry_data_file
10
+ @subcountry_data_file ||= File.expand_path( File.join( File.dirname(__FILE__), "data", "iso-3166-subcountry.txt" ) )
11
+ end
12
+
13
+ def self.schema_file
14
+ @schema_file ||= File.expand_path(File.join(File.dirname(__FILE__), "data", "iso-3166-schema.sql"))
15
+ end
16
+
17
+ def self.default_db_file
18
+ @db_file ||= File.expand_path(File.join(File.dirname(__FILE__), "data", "iso-3166.db"))
19
+
20
+ end
21
+
22
+ def self.memory
23
+ Iso3166Database.new( ":memory:" )
24
+ end
25
+
26
+ def initialize( path = Iso3166Database.default_db_file )
27
+ @path = path
28
+ super( @path )
29
+ install_schema( self )
30
+ populate( self )
31
+ end
32
+
33
+ def duplicate( slug )
34
+ dirname = File.dirname( @path )
35
+ bname = File.basename( @path, ".db" )
36
+ new_name = File.join( dirname, "#{bname}_#{slug}.db" )
37
+ File.unlink( new_name ) if File.exist?( new_name )
38
+ new_db = replicate_to( new_name )
39
+ new_db.close
40
+ return new_name
41
+ end
42
+
43
+ def install_schema( db )
44
+ db.execute_batch( IO.read( Iso3166Database.schema_file ) );
45
+ end
46
+
47
+ def populate( db )
48
+ db.import_csv_to_table( Iso3166Database.country_data_file, "country", :col_sep => "|" )
49
+ db.import_csv_to_table( Iso3166Database.subcountry_data_file, "subcountry", :col_sep => "|" )
50
+ end
51
+
52
+ def remove
53
+ File.unlink( @path ) if File.exist?( @path )
54
+ end
55
+ end
56
+ end
57
+
58
+
@@ -1,9 +1,5 @@
1
- require 'rubygems'
2
- require 'spec'
3
1
  require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
4
2
 
5
- require 'amalgalite'
6
- require 'amalgalite/database'
7
3
  class PH < ::Amalgalite::ProgressHandler
8
4
  attr_reader :call_count
9
5
  def initialize( max = nil )
@@ -32,15 +28,6 @@ def query_thread( db )
32
28
  end
33
29
 
34
30
  describe "Progress Handlers" do
35
- before(:each) do
36
- @db_name = SpecInfo.make_iso_db
37
- @iso_db = Amalgalite::Database.new( @db_name )
38
- end
39
-
40
- after(:each) do
41
- @iso_db.close
42
- File.unlink @db_name if File.exist?( @db_name )
43
- end
44
31
 
45
32
  it "raises NotImplemented if #call is not overwritten" do
46
33
  bh = ::Amalgalite::ProgressHandler.new
data/spec/rtree_spec.rb CHANGED
@@ -1,10 +1,6 @@
1
- require 'rubygems'
2
- require 'spec'
3
1
  require File.expand_path( File.join( File.dirname(__FILE__), 'spec_helper'))
4
2
 
5
3
  $: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
6
- require 'amalgalite'
7
- require 'amalgalite/database'
8
4
 
9
5
  # Example from http://sqlite.org/rtree.html
10
6
  #
data/spec/schema_spec.rb CHANGED
@@ -7,17 +7,6 @@ require 'amalgalite'
7
7
  require 'amalgalite/schema'
8
8
 
9
9
  describe Amalgalite::Schema do
10
- before(:each) do
11
- @schema = IO.read( SpecInfo.test_schema_file )
12
- @iso_db_file = SpecInfo.make_iso_db
13
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
14
- end
15
-
16
- after(:each) do
17
- File.unlink SpecInfo.test_db if File.exist?( SpecInfo.test_db )
18
- @iso_db.close
19
- File.unlink @iso_db_file if File.exist?( @iso_db_file )
20
- end
21
10
 
22
11
  it "loads the schema of a database" do
23
12
  schema = @iso_db.schema
data/spec/spec_helper.rb CHANGED
@@ -4,24 +4,43 @@ require 'spec'
4
4
  $: << File.expand_path(File.join(File.dirname(__FILE__),"..","lib"))
5
5
 
6
6
  require 'amalgalite'
7
+ require File.expand_path( File.join( File.dirname(__FILE__), "iso_3166_database.rb" ) )
7
8
 
8
9
  class SpecInfo
9
10
  class << self
10
11
  def test_db
11
- @test_db ||= File.expand_path(File.join(File.dirname(__FILE__), "test.db"))
12
+ @test_db ||= File.expand_path(File.join(File.dirname(__FILE__), "data", "test.db"))
12
13
  end
13
14
 
14
- def test_schema_file
15
- @test_schema_file ||= File.expand_path(File.join(File.dirname(__FILE__),"iso-3166-schema.sql"))
15
+ def make_master_iso_db
16
+ @master_db ||= Amalgalite::Iso3166Database.new
16
17
  end
17
18
 
18
- def make_iso_db
19
- @iso_db ||= File.expand_path(File.join(File.dirname(__FILE__), "iso-3166.db"))
20
- @new_is_db = File.expand_path(File.join(File.dirname(__FILE__), "iso-3166-testing.db"))
21
- FileUtils.cp @iso_db, @new_is_db
22
- return @new_is_db
19
+ def make_clone_iso_db
20
+ new_path = make_master_iso_db.duplicate( 'testing' )
23
21
  end
22
+ end
23
+ end
24
+
25
+ Spec::Runner.configure do |config|
26
+ config.before(:all) do
27
+ SpecInfo.make_master_iso_db
28
+ end
29
+
30
+ config.after(:all) do
31
+ File.unlink( Amalgalite::Iso3166Database.default_db_file ) if File.exist?( Amalgalite::Iso3166Database.default_db_file )
32
+ end
33
+
34
+ config.before( :each ) do
35
+ @iso_db_path = SpecInfo.make_clone_iso_db
36
+ @iso_db = Amalgalite::Database.new( @iso_db_path )
37
+ @schema = IO.read( Amalgalite::Iso3166Database.schema_file )
38
+ end
24
39
 
40
+ config.after( :each ) do
41
+ @iso_db.close
42
+ File.unlink( @iso_db_path ) if File.exist?( @iso_db_path )
43
+ File.unlink( SpecInfo.test_db ) if File.exist?( SpecInfo.test_db )
25
44
  end
26
45
  end
27
46
 
@@ -7,16 +7,16 @@ describe "Amalgalite::SQLite3::Version" do
7
7
  Amalgalite::SQLite3::Version.to_s.should =~ /\d\.\d\.\d/
8
8
  Amalgalite::SQLite3::Version.runtime_version.should =~ /\d\.\d\.\d/
9
9
 
10
- Amalgalite::SQLite3::Version.to_i.should eql(3006019)
11
- Amalgalite::SQLite3::Version.runtime_version_number.should eql(3006019)
10
+ Amalgalite::SQLite3::Version.to_i.should eql(3007003)
11
+ Amalgalite::SQLite3::Version.runtime_version_number.should eql(3007003)
12
12
 
13
13
  Amalgalite::SQLite3::Version::MAJOR.should eql(3)
14
- Amalgalite::SQLite3::Version::MINOR.should eql(6)
15
- Amalgalite::SQLite3::Version::RELEASE.should eql(19)
14
+ Amalgalite::SQLite3::Version::MINOR.should eql(7)
15
+ Amalgalite::SQLite3::Version::RELEASE.should eql(3)
16
16
  Amalgalite::SQLite3::Version.to_a.should have(3).items
17
17
 
18
- Amalgalite::SQLite3::Version.compiled_version.should == "3.6.19"
19
- Amalgalite::SQLite3::Version.compiled_version_number.should == 3006019
18
+ Amalgalite::SQLite3::Version.compiled_version.should == "3.7.3"
19
+ Amalgalite::SQLite3::Version.compiled_version_number.should == 3007003
20
20
  Amalgalite::SQLite3::Version.compiled_matches_runtime?.should == true
21
21
  end
22
22
  end
@@ -1,24 +1,12 @@
1
- require 'rubygems'
2
- require 'spec'
3
-
4
1
  require File.expand_path( File.join( File.dirname( __FILE__ ), "spec_helper.rb" ) )
5
2
 
6
- require 'amalgalite'
7
-
8
3
  describe Amalgalite::Statement do
9
4
  before(:each) do
10
5
  @db = Amalgalite::Database.new( SpecInfo.test_db )
11
- @schema_sql = IO.read( SpecInfo.test_schema_file )
12
- @iso_db_file = SpecInfo.make_iso_db
13
- @iso_db = Amalgalite::Database.new( SpecInfo.make_iso_db )
14
6
  end
15
7
 
16
8
  after(:each) do
17
9
  @db.close
18
- File.unlink SpecInfo.test_db if File.exist?( SpecInfo.test_db )
19
-
20
- @iso_db.close
21
- File.unlink @iso_db_file if File.exist?( @iso_db_file )
22
10
  end
23
11
 
24
12
  it "a statement has a copy of the sql it was prepared with" do
@@ -138,7 +126,7 @@ describe Amalgalite::Statement do
138
126
 
139
127
  it "can execute a single sql command and say if there is remaining sql to execute" do
140
128
  db = Amalgalite::Database.new( SpecInfo.test_db )
141
- stmt = @db.prepare( @schema_sql )
129
+ stmt = @db.prepare( @schema )
142
130
  stmt.execute
143
131
  stmt.remaining_sql.size.should > 0
144
132
  stmt.close
data/tasks/config.rb CHANGED
@@ -30,8 +30,8 @@ Configuration.for('packaging') {
30
30
  ext FileList["ext/amalgalite/*.{c,h,rb}"]
31
31
  examples FileList["examples/*"]
32
32
  lib FileList["lib/**/*.rb"]
33
- test FileList["spec/**/*.rb", "test/**/*.rb"]
34
- data FileList["data/**/*"]
33
+ test FileList["spec/**/*.rb", "test/**/*.rb", ]
34
+ data FileList["data/**/*", "spec/data/*.{sql,txt,sh}"]
35
35
  tasks FileList["tasks/**/*.r{ake,b}"]
36
36
  rdoc FileList[proj_conf.readme, proj_conf.history,
37
37
  proj_conf.license] + lib + FileList["ext/amalgalite3*.c"]
data/tasks/extension.rake CHANGED
@@ -46,21 +46,20 @@ if ext_config = Configuration.for_if_exist?('extension') then
46
46
  ext_config = Configuration.for("extension")
47
47
  rbconfig = ext_config.cross_rbconfig["rbconfig-#{version}"]
48
48
  raise ArgumentError, "No cross compiler for version #{version}, we have #{ext_config.cross_rbconfig.keys.join(",")}" unless rbconfig
49
- ruby_exe = if version =~ /1\.8/ then
50
- "ruby"
51
- else
52
- "ruby1.9"
53
- end
54
- Amalgalite::GEM_SPEC.extensions.each do |extension|
49
+ Amalgalite::GEM_SPEC.extensions.each do |extension|
55
50
  path = Pathname.new(extension)
56
51
  parts = path.split
57
52
  conf = parts.last
53
+ rvm = File.expand_path( "~/.rvm/bin/rvm" )
58
54
  Dir.chdir(path.dirname) do |d|
59
55
  if File.exist?( "Makefile" ) then
60
56
  sh "make clean distclean"
61
57
  end
62
58
  cp "#{rbconfig}", "rbconfig.rb"
63
- sh "#{ruby_exe} -I. extconf.rb"
59
+ rubylib = ENV['RUBYLIB']
60
+ ENV['RUBYLIB'] = "."
61
+ sh %[ #{rvm} #{version} -S extconf.rb ]
62
+ ENV['RUBYLIB'] = rubylib
64
63
  sh "make"
65
64
  end
66
65
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amalgalite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ hash: 35
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 15
9
+ - 0
10
+ version: 0.15.0
5
11
  platform: x86-mingw32
6
12
  authors:
7
13
  - Jeremy Hinegardner
@@ -9,79 +15,139 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-10-30 00:00:00 +00:00
18
+ date: 2010-10-30 00:00:00 -06:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: arrayfields
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
29
+ hash: 35
30
+ segments:
31
+ - 4
32
+ - 7
33
+ - 0
23
34
  version: 4.7.0
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: fastercsv
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 5
46
+ segments:
47
+ - 1
48
+ - 5
49
+ - 3
50
+ version: 1.5.3
51
+ type: :runtime
52
+ version_requirements: *id002
25
53
  - !ruby/object:Gem::Dependency
26
54
  name: rake
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
30
58
  requirements:
31
59
  - - ~>
32
60
  - !ruby/object:Gem::Version
61
+ hash: 55
62
+ segments:
63
+ - 0
64
+ - 8
65
+ - 4
33
66
  version: 0.8.4
34
- version:
67
+ type: :development
68
+ version_requirements: *id003
35
69
  - !ruby/object:Gem::Dependency
36
70
  name: configuration
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
40
74
  requirements:
41
75
  - - ~>
42
76
  - !ruby/object:Gem::Version
77
+ hash: 21
78
+ segments:
79
+ - 0
80
+ - 0
81
+ - 5
43
82
  version: 0.0.5
44
- version:
83
+ type: :development
84
+ version_requirements: *id004
45
85
  - !ruby/object:Gem::Dependency
46
86
  name: rspec
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
50
90
  requirements:
51
91
  - - ~>
52
92
  - !ruby/object:Gem::Version
93
+ hash: 27
94
+ segments:
95
+ - 1
96
+ - 2
97
+ - 2
53
98
  version: 1.2.2
54
- version:
99
+ type: :development
100
+ version_requirements: *id005
55
101
  - !ruby/object:Gem::Dependency
56
102
  name: rake-compiler
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
60
106
  requirements:
61
107
  - - ~>
62
108
  - !ruby/object:Gem::Version
109
+ hash: 11
110
+ segments:
111
+ - 0
112
+ - 5
113
+ - 0
63
114
  version: 0.5.0
64
- version:
115
+ type: :development
116
+ version_requirements: *id006
65
117
  - !ruby/object:Gem::Dependency
66
118
  name: archive-tar-minitar
67
- type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
119
+ prerelease: false
120
+ requirement: &id007 !ruby/object:Gem::Requirement
121
+ none: false
70
122
  requirements:
71
123
  - - ~>
72
124
  - !ruby/object:Gem::Version
125
+ hash: 15
126
+ segments:
127
+ - 0
128
+ - 5
129
+ - 2
73
130
  version: 0.5.2
74
- version:
131
+ type: :development
132
+ version_requirements: *id007
75
133
  - !ruby/object:Gem::Dependency
76
134
  name: rcov
77
- type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
135
+ prerelease: false
136
+ requirement: &id008 !ruby/object:Gem::Requirement
137
+ none: false
80
138
  requirements:
81
139
  - - ~>
82
140
  - !ruby/object:Gem::Version
141
+ hash: 63
142
+ segments:
143
+ - 0
144
+ - 8
145
+ - 1
146
+ - 2
147
+ - 0
83
148
  version: 0.8.1.2.0
84
- version:
149
+ type: :development
150
+ version_requirements: *id008
85
151
  description: |-
86
152
  Amalgalite embeds the SQLite database engine in a ruby extension. There is no
87
153
  need to install SQLite separately.
@@ -110,136 +176,146 @@ extra_rdoc_files:
110
176
  - README
111
177
  - HISTORY
112
178
  - LICENSE
113
- - lib/amalgalite/taps/io.rb
114
- - lib/amalgalite/taps/console.rb
115
- - lib/amalgalite/statement.rb
179
+ - lib/amalgalite/aggregate.rb
116
180
  - lib/amalgalite/blob.rb
181
+ - lib/amalgalite/boolean.rb
182
+ - lib/amalgalite/busy_timeout.rb
117
183
  - lib/amalgalite/column.rb
118
- - lib/amalgalite/trace_tap.rb
184
+ - lib/amalgalite/core_ext/kernel/require.rb
185
+ - lib/amalgalite/csv_table_importer.rb
186
+ - lib/amalgalite/database.rb
187
+ - lib/amalgalite/function.rb
188
+ - lib/amalgalite/index.rb
189
+ - lib/amalgalite/memory_database.rb
190
+ - lib/amalgalite/packer.rb
191
+ - lib/amalgalite/paths.rb
192
+ - lib/amalgalite/profile_tap.rb
193
+ - lib/amalgalite/progress_handler.rb
194
+ - lib/amalgalite/requires.rb
195
+ - lib/amalgalite/schema.rb
119
196
  - lib/amalgalite/sqlite3/constants.rb
120
197
  - lib/amalgalite/sqlite3/database/function.rb
121
198
  - lib/amalgalite/sqlite3/database/status.rb
122
- - lib/amalgalite/sqlite3/version.rb
123
199
  - lib/amalgalite/sqlite3/status.rb
200
+ - lib/amalgalite/sqlite3/version.rb
201
+ - lib/amalgalite/sqlite3.rb
202
+ - lib/amalgalite/statement.rb
124
203
  - lib/amalgalite/table.rb
204
+ - lib/amalgalite/taps/console.rb
205
+ - lib/amalgalite/taps/io.rb
206
+ - lib/amalgalite/taps.rb
207
+ - lib/amalgalite/trace_tap.rb
208
+ - lib/amalgalite/type_map.rb
125
209
  - lib/amalgalite/type_maps/default_map.rb
126
- - lib/amalgalite/type_maps/text_map.rb
127
210
  - lib/amalgalite/type_maps/storage_map.rb
128
- - lib/amalgalite/type_map.rb
129
- - lib/amalgalite/profile_tap.rb
130
- - lib/amalgalite/requires.rb
131
- - lib/amalgalite/boolean.rb
132
- - lib/amalgalite/aggregate.rb
133
- - lib/amalgalite/index.rb
134
- - lib/amalgalite/sqlite3.rb
135
- - lib/amalgalite/taps.rb
136
- - lib/amalgalite/paths.rb
211
+ - lib/amalgalite/type_maps/text_map.rb
137
212
  - lib/amalgalite/version.rb
138
- - lib/amalgalite/schema.rb
139
- - lib/amalgalite/busy_timeout.rb
140
213
  - lib/amalgalite/view.rb
141
- - lib/amalgalite/function.rb
142
- - lib/amalgalite/database.rb
143
- - lib/amalgalite/progress_handler.rb
144
- - lib/amalgalite/packer.rb
145
- - lib/amalgalite/core_ext/kernel/require.rb
146
214
  - lib/amalgalite.rb
147
215
  files:
148
216
  - bin/amalgalite-pack
149
217
  - ext/amalgalite/amalgalite3.c
150
- - ext/amalgalite/amalgalite3_statement.c
218
+ - ext/amalgalite/amalgalite3_blob.c
219
+ - ext/amalgalite/amalgalite3_constants.c
151
220
  - ext/amalgalite/amalgalite3_database.c
152
221
  - ext/amalgalite/amalgalite3_requires_bootstrap.c
222
+ - ext/amalgalite/amalgalite3_statement.c
153
223
  - ext/amalgalite/sqlite3.c
154
- - ext/amalgalite/amalgalite3_constants.c
155
- - ext/amalgalite/amalgalite3_blob.c
156
- - ext/amalgalite/sqlite3.h
157
224
  - ext/amalgalite/amalgalite3.h
225
+ - ext/amalgalite/sqlite3.h
158
226
  - ext/amalgalite/sqlite3_options.h
159
227
  - ext/amalgalite/sqlite3ext.h
160
- - ext/amalgalite/gen_constants.rb
161
228
  - ext/amalgalite/extconf.rb
229
+ - ext/amalgalite/gen_constants.rb
230
+ - examples/a.rb
162
231
  - examples/blob.rb
163
- - examples/gem-db.rb
164
- - examples/define_function.rb
232
+ - examples/bootstrap.rb
165
233
  - examples/define_aggregate.rb
234
+ - examples/define_function.rb
235
+ - examples/gem-db.rb
236
+ - examples/gems.db
237
+ - examples/require_me.rb
166
238
  - examples/requires.rb
167
- - examples/bootstrap.rb
168
239
  - examples/schema-info.rb
169
- - examples/require_me.rb
170
- - examples/a.rb
171
- - lib/amalgalite/taps/io.rb
172
- - lib/amalgalite/taps/console.rb
173
- - lib/amalgalite/statement.rb
240
+ - lib/amalgalite/aggregate.rb
174
241
  - lib/amalgalite/blob.rb
242
+ - lib/amalgalite/boolean.rb
243
+ - lib/amalgalite/busy_timeout.rb
175
244
  - lib/amalgalite/column.rb
176
- - lib/amalgalite/trace_tap.rb
245
+ - lib/amalgalite/core_ext/kernel/require.rb
246
+ - lib/amalgalite/csv_table_importer.rb
247
+ - lib/amalgalite/database.rb
248
+ - lib/amalgalite/function.rb
249
+ - lib/amalgalite/index.rb
250
+ - lib/amalgalite/memory_database.rb
251
+ - lib/amalgalite/packer.rb
252
+ - lib/amalgalite/paths.rb
253
+ - lib/amalgalite/profile_tap.rb
254
+ - lib/amalgalite/progress_handler.rb
255
+ - lib/amalgalite/requires.rb
256
+ - lib/amalgalite/schema.rb
177
257
  - lib/amalgalite/sqlite3/constants.rb
178
258
  - lib/amalgalite/sqlite3/database/function.rb
179
259
  - lib/amalgalite/sqlite3/database/status.rb
180
- - lib/amalgalite/sqlite3/version.rb
181
260
  - lib/amalgalite/sqlite3/status.rb
261
+ - lib/amalgalite/sqlite3/version.rb
262
+ - lib/amalgalite/sqlite3.rb
263
+ - lib/amalgalite/statement.rb
182
264
  - lib/amalgalite/table.rb
265
+ - lib/amalgalite/taps/console.rb
266
+ - lib/amalgalite/taps/io.rb
267
+ - lib/amalgalite/taps.rb
268
+ - lib/amalgalite/trace_tap.rb
269
+ - lib/amalgalite/type_map.rb
183
270
  - lib/amalgalite/type_maps/default_map.rb
184
- - lib/amalgalite/type_maps/text_map.rb
185
271
  - lib/amalgalite/type_maps/storage_map.rb
186
- - lib/amalgalite/type_map.rb
187
- - lib/amalgalite/profile_tap.rb
188
- - lib/amalgalite/requires.rb
189
- - lib/amalgalite/boolean.rb
190
- - lib/amalgalite/aggregate.rb
191
- - lib/amalgalite/index.rb
192
- - lib/amalgalite/sqlite3.rb
193
- - lib/amalgalite/taps.rb
194
- - lib/amalgalite/paths.rb
272
+ - lib/amalgalite/type_maps/text_map.rb
195
273
  - lib/amalgalite/version.rb
196
- - lib/amalgalite/schema.rb
197
- - lib/amalgalite/busy_timeout.rb
198
274
  - lib/amalgalite/view.rb
199
- - lib/amalgalite/function.rb
200
- - lib/amalgalite/database.rb
201
- - lib/amalgalite/progress_handler.rb
202
- - lib/amalgalite/packer.rb
203
- - lib/amalgalite/core_ext/kernel/require.rb
204
275
  - lib/amalgalite.rb
205
- - spec/requires_spec.rb
206
- - spec/sqlite3_spec.rb
276
+ - spec/aggregate_spec.rb
207
277
  - spec/amalgalite_spec.rb
208
- - spec/busy_handler.rb
209
278
  - spec/blob_spec.rb
279
+ - spec/boolean_spec.rb
280
+ - spec/busy_handler.rb
281
+ - spec/database_spec.rb
210
282
  - spec/default_map_spec.rb
283
+ - spec/function_spec.rb
284
+ - spec/integeration_spec.rb
285
+ - spec/iso_3166_database.rb
286
+ - spec/packer_spec.rb
287
+ - spec/paths_spec.rb
288
+ - spec/progress_handler_spec.rb
289
+ - spec/requires_spec.rb
290
+ - spec/rtree_spec.rb
291
+ - spec/schema_spec.rb
292
+ - spec/spec_helper.rb
211
293
  - spec/sqlite3/constants_spec.rb
212
294
  - spec/sqlite3/database_status_spec.rb
213
- - spec/sqlite3/version_spec.rb
214
295
  - spec/sqlite3/status_spec.rb
215
- - spec/storage_map_spec.rb
216
- - spec/spec_helper.rb
296
+ - spec/sqlite3/version_spec.rb
297
+ - spec/sqlite3_spec.rb
217
298
  - spec/statement_spec.rb
218
- - spec/type_map_spec.rb
219
- - spec/boolean_spec.rb
299
+ - spec/storage_map_spec.rb
300
+ - spec/tap_spec.rb
220
301
  - spec/text_map_spec.rb
221
- - spec/integeration_spec.rb
222
- - spec/rtree_spec.rb
223
- - spec/paths_spec.rb
224
- - spec/aggregate_spec.rb
302
+ - spec/type_map_spec.rb
225
303
  - spec/version_spec.rb
226
- - spec/progress_handler_spec.rb
227
- - spec/tap_spec.rb
228
- - spec/schema_spec.rb
229
- - spec/function_spec.rb
230
- - spec/packer_spec.rb
231
- - spec/database_spec.rb
304
+ - spec/data/iso-3166-schema.sql
305
+ - spec/data/iso-3166-country.txt
306
+ - spec/data/iso-3166-subcountry.txt
307
+ - spec/data/make-iso-db.sh
232
308
  - README
233
309
  - HISTORY
234
310
  - LICENSE
311
+ - tasks/announce.rake
235
312
  - tasks/distribution.rake
236
- - tasks/rspec.rake
237
313
  - tasks/documentation.rake
238
- - tasks/rubyforge.rake
239
- - tasks/announce.rake
240
314
  - tasks/extension.rake
241
- - tasks/utils.rb
315
+ - tasks/rspec.rake
316
+ - tasks/rubyforge.rake
242
317
  - tasks/config.rb
318
+ - tasks/utils.rb
243
319
  - gemspec.rb
244
320
  - lib/amalgalite/1.8/amalgalite3.so
245
321
  - lib/amalgalite/1.9/amalgalite3.so
@@ -254,21 +330,27 @@ rdoc_options:
254
330
  require_paths:
255
331
  - lib
256
332
  required_ruby_version: !ruby/object:Gem::Requirement
333
+ none: false
257
334
  requirements:
258
335
  - - ">="
259
336
  - !ruby/object:Gem::Version
337
+ hash: 3
338
+ segments:
339
+ - 0
260
340
  version: "0"
261
- version:
262
341
  required_rubygems_version: !ruby/object:Gem::Requirement
342
+ none: false
263
343
  requirements:
264
344
  - - ">="
265
345
  - !ruby/object:Gem::Version
346
+ hash: 3
347
+ segments:
348
+ - 0
266
349
  version: "0"
267
- version:
268
350
  requirements: []
269
351
 
270
352
  rubyforge_project: copiousfreetime
271
- rubygems_version: 1.3.5
353
+ rubygems_version: 1.3.7
272
354
  signing_key:
273
355
  specification_version: 3
274
356
  summary: Amalgalite embeds the SQLite database engine in a ruby extension