do_sqlite3 0.10.0-x86-mingw32 → 0.10.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.markdown +32 -0
- data/LICENSE +1 -1
- data/README.markdown +101 -3
- data/Rakefile +56 -9
- data/ext/do_sqlite3/compat.h +55 -0
- data/ext/{do_sqlite3_ext/do_sqlite3_ext.c → do_sqlite3/do_sqlite3.c} +46 -34
- data/ext/{do_sqlite3_ext → do_sqlite3}/error.h +0 -0
- data/ext/{do_sqlite3_ext → do_sqlite3}/extconf.rb +3 -3
- data/lib/do_sqlite3.rb +19 -11
- data/lib/do_sqlite3/1.8/do_sqlite3.so +0 -0
- data/lib/do_sqlite3/1.9/do_sqlite3.so +0 -0
- data/lib/do_sqlite3/version.rb +1 -1
- data/spec/command_spec.rb +1 -1
- data/spec/connection_spec.rb +8 -6
- data/spec/reader_spec.rb +1 -1
- data/spec/result_spec.rb +3 -3
- data/spec/spec_helper.rb +19 -32
- data/spec/typecast/array_spec.rb +1 -1
- data/spec/typecast/bigdecimal_spec.rb +1 -1
- data/spec/typecast/boolean_spec.rb +1 -1
- data/spec/typecast/byte_array_spec.rb +1 -2
- data/spec/typecast/class_spec.rb +1 -1
- data/spec/typecast/date_spec.rb +1 -1
- data/spec/typecast/datetime_spec.rb +1 -1
- data/spec/typecast/float_spec.rb +2 -2
- data/spec/typecast/integer_spec.rb +1 -1
- data/spec/typecast/nil_spec.rb +4 -4
- data/spec/typecast/other_spec.rb +8 -0
- data/spec/typecast/range_spec.rb +1 -1
- data/spec/typecast/string_spec.rb +1 -1
- data/spec/typecast/time_spec.rb +1 -1
- data/tasks/compile.rake +64 -0
- data/tasks/release.rake +12 -71
- data/tasks/retrieve.rake +1 -1
- data/tasks/spec.rake +19 -15
- metadata +64 -38
- data/HISTORY.markdown +0 -22
- data/Manifest.txt +0 -31
- data/lib/do_sqlite3_ext.so +0 -0
- data/spec/lib/rspec_immediate_feedback_formatter.rb +0 -3
- data/tasks/gem.rake +0 -8
- data/tasks/install.rake +0 -15
- data/tasks/native.rake +0 -35
data/tasks/retrieve.rake
CHANGED
data/tasks/spec.rake
CHANGED
@@ -1,19 +1,23 @@
|
|
1
|
-
|
2
|
-
require 'spec/rake/spectask'
|
1
|
+
require 'rake/testtask'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
spec_defaults = lambda do |spec|
|
4
|
+
spec.libs << 'lib' << 'spec'
|
5
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
6
|
+
spec.verbose = true
|
7
|
+
end
|
8
|
+
|
9
|
+
Rake::TestTask.new(:spec => [ :clean, :compile ], &spec_defaults)
|
10
|
+
Rake::TestTask.new(:spec_no_compile, &spec_defaults)
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
12
|
+
begin
|
13
|
+
require 'rcov/rcovtask'
|
14
|
+
Rcov::RcovTask.new do |spec|
|
15
|
+
spec.libs << 'spec'
|
16
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
17
|
+
spec.verbose = true
|
18
|
+
end
|
19
|
+
rescue LoadError
|
20
|
+
task :rcov do
|
21
|
+
abort 'RCov is not available. In order to run rcov, you must: gem install rcov'
|
18
22
|
end
|
19
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_sqlite3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Dirkjan Bussink
|
@@ -9,48 +9,38 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-09 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: data_objects
|
17
17
|
type: :runtime
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.10.1
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
type: :
|
26
|
+
name: bacon
|
27
|
+
type: :development
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: "1.1"
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
type: :runtime
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - "="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.10.0
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: rspec
|
36
|
+
name: rake-compiler
|
47
37
|
type: :development
|
48
38
|
version_requirement:
|
49
39
|
version_requirements: !ruby/object:Gem::Requirement
|
50
40
|
requirements:
|
51
41
|
- - ~>
|
52
42
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
43
|
+
version: "0.7"
|
54
44
|
version:
|
55
45
|
description: Implements the DataObjects API for Sqlite3
|
56
46
|
email: d.bussink@gmail.com
|
@@ -58,15 +48,16 @@ executables: []
|
|
58
48
|
|
59
49
|
extensions: []
|
60
50
|
|
61
|
-
extra_rdoc_files:
|
62
|
-
|
51
|
+
extra_rdoc_files:
|
52
|
+
- README.markdown
|
53
|
+
- ChangeLog.markdown
|
54
|
+
- LICENSE
|
63
55
|
files:
|
64
56
|
- lib/do_sqlite3/transaction.rb
|
65
57
|
- lib/do_sqlite3/version.rb
|
66
58
|
- lib/do_sqlite3.rb
|
67
59
|
- spec/command_spec.rb
|
68
60
|
- spec/connection_spec.rb
|
69
|
-
- spec/lib/rspec_immediate_feedback_formatter.rb
|
70
61
|
- spec/reader_spec.rb
|
71
62
|
- spec/result_spec.rb
|
72
63
|
- spec/spec_helper.rb
|
@@ -80,31 +71,48 @@ files:
|
|
80
71
|
- spec/typecast/float_spec.rb
|
81
72
|
- spec/typecast/integer_spec.rb
|
82
73
|
- spec/typecast/nil_spec.rb
|
74
|
+
- spec/typecast/other_spec.rb
|
83
75
|
- spec/typecast/range_spec.rb
|
84
76
|
- spec/typecast/string_spec.rb
|
85
77
|
- spec/typecast/time_spec.rb
|
86
|
-
- tasks/
|
87
|
-
- tasks/install.rake
|
88
|
-
- tasks/native.rake
|
78
|
+
- tasks/compile.rake
|
89
79
|
- tasks/release.rake
|
90
80
|
- tasks/retrieve.rake
|
91
81
|
- tasks/spec.rake
|
92
|
-
- ext/
|
93
|
-
- ext/
|
94
|
-
- ext/
|
82
|
+
- ext/do_sqlite3/extconf.rb
|
83
|
+
- ext/do_sqlite3/do_sqlite3.c
|
84
|
+
- ext/do_sqlite3/compat.h
|
85
|
+
- ext/do_sqlite3/error.h
|
95
86
|
- LICENSE
|
96
87
|
- Rakefile
|
97
|
-
-
|
88
|
+
- ChangeLog.markdown
|
98
89
|
- README.markdown
|
99
|
-
-
|
100
|
-
- lib/
|
90
|
+
- lib/do_sqlite3/1.8/do_sqlite3.so
|
91
|
+
- lib/do_sqlite3/1.9/do_sqlite3.so
|
101
92
|
has_rdoc: false
|
102
|
-
homepage:
|
93
|
+
homepage:
|
103
94
|
licenses: []
|
104
95
|
|
105
|
-
post_install_message:
|
106
|
-
|
107
|
-
|
96
|
+
post_install_message: |+
|
97
|
+
|
98
|
+
=============================================================================
|
99
|
+
|
100
|
+
You've installed the binary version of do_sqlite3.
|
101
|
+
It was built using Sqlite3 version 3_6_21.
|
102
|
+
It's recommended to use the exact same version to avoid potential issues.
|
103
|
+
|
104
|
+
At the time of building this gem, the necessary DLL files where available
|
105
|
+
in the following download:
|
106
|
+
|
107
|
+
http://www.sqlite.org/sqlitedll-3_6_21.zip
|
108
|
+
|
109
|
+
You can put the sqlite3.dll available in this package in your Ruby bin
|
110
|
+
directory, for example C:\Ruby\bin
|
111
|
+
|
112
|
+
=============================================================================
|
113
|
+
|
114
|
+
rdoc_options:
|
115
|
+
- --charset=UTF-8
|
108
116
|
require_paths:
|
109
117
|
- lib
|
110
118
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -126,5 +134,23 @@ rubygems_version: 1.3.5
|
|
126
134
|
signing_key:
|
127
135
|
specification_version: 3
|
128
136
|
summary: DataObjects Sqlite3 Driver
|
129
|
-
test_files:
|
130
|
-
|
137
|
+
test_files:
|
138
|
+
- spec/command_spec.rb
|
139
|
+
- spec/connection_spec.rb
|
140
|
+
- spec/reader_spec.rb
|
141
|
+
- spec/result_spec.rb
|
142
|
+
- spec/spec_helper.rb
|
143
|
+
- spec/typecast/array_spec.rb
|
144
|
+
- spec/typecast/bigdecimal_spec.rb
|
145
|
+
- spec/typecast/boolean_spec.rb
|
146
|
+
- spec/typecast/byte_array_spec.rb
|
147
|
+
- spec/typecast/class_spec.rb
|
148
|
+
- spec/typecast/date_spec.rb
|
149
|
+
- spec/typecast/datetime_spec.rb
|
150
|
+
- spec/typecast/float_spec.rb
|
151
|
+
- spec/typecast/integer_spec.rb
|
152
|
+
- spec/typecast/nil_spec.rb
|
153
|
+
- spec/typecast/other_spec.rb
|
154
|
+
- spec/typecast/range_spec.rb
|
155
|
+
- spec/typecast/string_spec.rb
|
156
|
+
- spec/typecast/time_spec.rb
|
data/HISTORY.markdown
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
## 0.10.0 2009-10-15
|
2
|
-
* Improvements
|
3
|
-
* JRuby Support (using *do_jdbc*)
|
4
|
-
|
5
|
-
## 0.9.12 2009-05-17
|
6
|
-
* Improvements
|
7
|
-
* rake-compiler for Windows support
|
8
|
-
|
9
|
-
## 0.9.11 2009-01-19
|
10
|
-
* Improvements
|
11
|
-
* Ruby 1.9 support
|
12
|
-
* Fixes
|
13
|
-
* Fix Windows gem
|
14
|
-
|
15
|
-
## 0.9.9 2008-11-27
|
16
|
-
* Improvements
|
17
|
-
* Added cross compile rake tasks for Windows gems [Jonathan Stott, Luis Lavena]
|
18
|
-
* Added initial support for Ruby 1.9 [John Harrison]
|
19
|
-
|
20
|
-
* Bug Fixes
|
21
|
-
* Removed sqlite3.dll from source gem [Dan Kubb]
|
22
|
-
* Removed hard coded .bundle from source [Dirkjan Bussink]
|
data/Manifest.txt
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
.gitignore
|
2
|
-
HISTORY.markdown
|
3
|
-
LICENSE
|
4
|
-
Manifest.txt
|
5
|
-
README.markdown
|
6
|
-
Rakefile
|
7
|
-
buildfile
|
8
|
-
ext-java/src/main/java/DoSqlite3ExtService.java
|
9
|
-
ext-java/src/main/java/do_sqlite3/Sqlite3DriverDefinition.java
|
10
|
-
ext/do_sqlite3_ext/do_sqlite3_ext.c
|
11
|
-
ext/do_sqlite3_ext/extconf.rb
|
12
|
-
lib/do_sqlite3.rb
|
13
|
-
lib/do_sqlite3/transaction.rb
|
14
|
-
lib/do_sqlite3/version.rb
|
15
|
-
spec/command_spec.rb
|
16
|
-
spec/connection_spec.rb
|
17
|
-
spec/reader_spec.rb
|
18
|
-
spec/result_spec.rb
|
19
|
-
spec/spec.opts
|
20
|
-
spec/spec_helper.rb
|
21
|
-
spec/typecast/bigdecimal_spec.rb
|
22
|
-
spec/typecast/boolean_spec.rb
|
23
|
-
spec/typecast/byte_array_spec.rb
|
24
|
-
spec/typecast/class_spec.rb
|
25
|
-
spec/typecast/date_spec.rb
|
26
|
-
spec/typecast/datetime_spec.rb
|
27
|
-
spec/typecast/float_spec.rb
|
28
|
-
spec/typecast/integer_spec.rb
|
29
|
-
spec/typecast/nil_spec.rb
|
30
|
-
spec/typecast/string_spec.rb
|
31
|
-
spec/typecast/time_spec.rb
|
data/lib/do_sqlite3_ext.so
DELETED
Binary file
|
data/tasks/gem.rake
DELETED
data/tasks/install.rake
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
def sudo_gem(cmd)
|
2
|
-
sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
|
3
|
-
end
|
4
|
-
|
5
|
-
# Installation
|
6
|
-
|
7
|
-
desc "Install #{GEM_SPEC.name} #{GEM_SPEC.version}"
|
8
|
-
task :install => [ :package ] do
|
9
|
-
sudo_gem "install pkg/#{GEM_SPEC.name}-#{GEM_SPEC.version} --no-update-sources"
|
10
|
-
end
|
11
|
-
|
12
|
-
desc "Uninstall #{GEM_SPEC.name} #{GEM_SPEC.version}"
|
13
|
-
task :uninstall => [ :clean ] do
|
14
|
-
sudo_gem "uninstall #{GEM_SPEC.name} -v#{GEM_SPEC.version} -I -x"
|
15
|
-
end
|
data/tasks/native.rake
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
gem('rake-compiler')
|
3
|
-
require 'rake/extensiontask'
|
4
|
-
|
5
|
-
# compile the extension
|
6
|
-
if JRUBY
|
7
|
-
# XXX: is it necessary to run this everytime?
|
8
|
-
Rake::Task['compile:jruby'].invoke
|
9
|
-
end
|
10
|
-
|
11
|
-
Rake::ExtensionTask.new('do_sqlite3_ext', GEM_SPEC) do |ext|
|
12
|
-
|
13
|
-
sqlite3_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'sqlite3'))
|
14
|
-
|
15
|
-
ext.cross_compile = true
|
16
|
-
ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
|
17
|
-
ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
|
18
|
-
|
19
|
-
# automatically add build options to avoid need of manual input
|
20
|
-
if RUBY_PLATFORM =~ /mswin|mingw/ then
|
21
|
-
ext.config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
rescue LoadError
|
26
|
-
warn "To cross-compile, install rake-compiler (gem install rake-compiler)"
|
27
|
-
|
28
|
-
if (tasks_dir = ROOT.parent + 'tasks').directory?
|
29
|
-
require tasks_dir + 'ext_helper'
|
30
|
-
require tasks_dir + 'ext_helper_java'
|
31
|
-
|
32
|
-
setup_c_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
|
33
|
-
setup_java_extension("#{GEM_SPEC.name}_ext", GEM_SPEC)
|
34
|
-
end
|
35
|
-
end
|