sqlite3-ruby 1.3.2 → 1.3.3.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. metadata +25 -100
  2. data/API_CHANGES.rdoc +0 -50
  3. data/CHANGELOG.rdoc +0 -171
  4. data/ChangeLog.cvs +0 -88
  5. data/LICENSE +0 -27
  6. data/Manifest.txt +0 -50
  7. data/README.rdoc +0 -74
  8. data/Rakefile +0 -10
  9. data/ext/sqlite3/backup.c +0 -164
  10. data/ext/sqlite3/backup.h +0 -15
  11. data/ext/sqlite3/database.c +0 -762
  12. data/ext/sqlite3/database.h +0 -15
  13. data/ext/sqlite3/exception.c +0 -94
  14. data/ext/sqlite3/exception.h +0 -8
  15. data/ext/sqlite3/extconf.rb +0 -43
  16. data/ext/sqlite3/sqlite3.c +0 -36
  17. data/ext/sqlite3/sqlite3_ruby.h +0 -44
  18. data/ext/sqlite3/statement.c +0 -419
  19. data/ext/sqlite3/statement.h +0 -16
  20. data/faq/faq.rb +0 -145
  21. data/faq/faq.yml +0 -426
  22. data/lib/sqlite3.rb +0 -10
  23. data/lib/sqlite3/constants.rb +0 -49
  24. data/lib/sqlite3/database.rb +0 -587
  25. data/lib/sqlite3/errors.rb +0 -44
  26. data/lib/sqlite3/pragmas.rb +0 -280
  27. data/lib/sqlite3/resultset.rb +0 -126
  28. data/lib/sqlite3/statement.rb +0 -148
  29. data/lib/sqlite3/translator.rb +0 -118
  30. data/lib/sqlite3/value.rb +0 -57
  31. data/lib/sqlite3/version.rb +0 -25
  32. data/setup.rb +0 -1333
  33. data/tasks/faq.rake +0 -9
  34. data/tasks/gem.rake +0 -31
  35. data/tasks/native.rake +0 -61
  36. data/tasks/vendor_sqlite3.rake +0 -104
  37. data/test/helper.rb +0 -3
  38. data/test/test_backup.rb +0 -33
  39. data/test/test_collation.rb +0 -82
  40. data/test/test_database.rb +0 -312
  41. data/test/test_database_readonly.rb +0 -29
  42. data/test/test_deprecated.rb +0 -33
  43. data/test/test_encoding.rb +0 -119
  44. data/test/test_integration.rb +0 -544
  45. data/test/test_integration_open_close.rb +0 -30
  46. data/test/test_integration_pending.rb +0 -115
  47. data/test/test_integration_resultset.rb +0 -156
  48. data/test/test_integration_statement.rb +0 -194
  49. data/test/test_sqlite3.rb +0 -9
  50. data/test/test_statement.rb +0 -207
  51. data/test/test_statement_execute.rb +0 -35
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ prerelease: true
6
5
  segments:
7
6
  - 1
8
7
  - 3
9
- - 2
10
- version: 1.3.2
8
+ - 3
9
+ - beta
10
+ - 1
11
+ version: 1.3.3.beta.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Jamis Buck
@@ -17,24 +18,23 @@ autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-10-30 00:00:00 -07:00
21
+ date: 2011-01-14 00:00:00 -08:00
21
22
  default_executable:
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency
24
- name: rubyforge
25
+ name: sqlite3
25
26
  prerelease: false
26
27
  requirement: &id001 !ruby/object:Gem::Requirement
27
28
  none: false
28
29
  requirements:
29
30
  - - ">="
30
31
  - !ruby/object:Gem::Version
31
- hash: 7
32
32
  segments:
33
- - 2
34
- - 0
35
- - 4
36
- version: 2.0.4
37
- type: :development
33
+ - 1
34
+ - 3
35
+ - 3
36
+ version: 1.3.3
37
+ type: :runtime
38
38
  version_requirements: *id001
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rake-compiler
@@ -44,7 +44,6 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- hash: 3
48
47
  segments:
49
48
  - 0
50
49
  - 7
@@ -60,12 +59,11 @@ dependencies:
60
59
  requirements:
61
60
  - - ">="
62
61
  - !ruby/object:Gem::Version
63
- hash: 19
64
62
  segments:
65
63
  - 2
66
- - 6
67
- - 2
68
- version: 2.6.2
64
+ - 8
65
+ - 0
66
+ version: 2.8.0
69
67
  type: :development
70
68
  version_requirements: *id003
71
69
  description: |-
@@ -80,77 +78,19 @@ email:
80
78
  - aaron@tenderlovemaking.com
81
79
  executables: []
82
80
 
83
- extensions:
84
- - ext/sqlite3/extconf.rb
85
- extra_rdoc_files:
86
- - Manifest.txt
87
- - API_CHANGES.rdoc
88
- - CHANGELOG.rdoc
89
- - README.rdoc
90
- - ext/sqlite3/backup.c
91
- - ext/sqlite3/database.c
92
- - ext/sqlite3/exception.c
93
- - ext/sqlite3/sqlite3.c
94
- - ext/sqlite3/statement.c
95
- files:
96
- - API_CHANGES.rdoc
97
- - CHANGELOG.rdoc
98
- - ChangeLog.cvs
99
- - LICENSE
100
- - Manifest.txt
101
- - README.rdoc
102
- - Rakefile
103
- - ext/sqlite3/backup.c
104
- - ext/sqlite3/backup.h
105
- - ext/sqlite3/database.c
106
- - ext/sqlite3/database.h
107
- - ext/sqlite3/exception.c
108
- - ext/sqlite3/exception.h
109
- - ext/sqlite3/extconf.rb
110
- - ext/sqlite3/sqlite3.c
111
- - ext/sqlite3/sqlite3_ruby.h
112
- - ext/sqlite3/statement.c
113
- - ext/sqlite3/statement.h
114
- - faq/faq.rb
115
- - faq/faq.yml
116
- - lib/sqlite3.rb
117
- - lib/sqlite3/constants.rb
118
- - lib/sqlite3/database.rb
119
- - lib/sqlite3/errors.rb
120
- - lib/sqlite3/pragmas.rb
121
- - lib/sqlite3/resultset.rb
122
- - lib/sqlite3/statement.rb
123
- - lib/sqlite3/translator.rb
124
- - lib/sqlite3/value.rb
125
- - lib/sqlite3/version.rb
126
- - setup.rb
127
- - tasks/faq.rake
128
- - tasks/gem.rake
129
- - tasks/native.rake
130
- - tasks/vendor_sqlite3.rake
131
- - test/helper.rb
132
- - test/test_backup.rb
133
- - test/test_collation.rb
134
- - test/test_database.rb
135
- - test/test_database_readonly.rb
136
- - test/test_deprecated.rb
137
- - test/test_encoding.rb
138
- - test/test_integration.rb
139
- - test/test_integration_open_close.rb
140
- - test/test_integration_pending.rb
141
- - test/test_integration_resultset.rb
142
- - test/test_integration_statement.rb
143
- - test/test_sqlite3.rb
144
- - test/test_statement.rb
145
- - test/test_statement_execute.rb
81
+ extensions: []
82
+
83
+ extra_rdoc_files: []
84
+
85
+ files: []
86
+
146
87
  has_rdoc: true
147
88
  homepage: http://github.com/luislavena/sqlite3-ruby
148
89
  licenses: []
149
90
 
150
91
  post_install_message:
151
- rdoc_options:
152
- - --main
153
- - README.rdoc
92
+ rdoc_options: []
93
+
154
94
  require_paths:
155
95
  - lib
156
96
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -158,7 +98,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
98
  requirements:
159
99
  - - ">="
160
100
  - !ruby/object:Gem::Version
161
- hash: 57
162
101
  segments:
163
102
  - 1
164
103
  - 8
@@ -169,7 +108,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
108
  requirements:
170
109
  - - ">="
171
110
  - !ruby/object:Gem::Version
172
- hash: 17
173
111
  segments:
174
112
  - 1
175
113
  - 3
@@ -182,18 +120,5 @@ rubygems_version: 1.3.7
182
120
  signing_key:
183
121
  specification_version: 3
184
122
  summary: This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org)
185
- test_files:
186
- - test/test_backup.rb
187
- - test/test_collation.rb
188
- - test/test_database.rb
189
- - test/test_database_readonly.rb
190
- - test/test_deprecated.rb
191
- - test/test_encoding.rb
192
- - test/test_integration.rb
193
- - test/test_integration_open_close.rb
194
- - test/test_integration_pending.rb
195
- - test/test_integration_resultset.rb
196
- - test/test_integration_statement.rb
197
- - test/test_sqlite3.rb
198
- - test/test_statement.rb
199
- - test/test_statement_execute.rb
123
+ test_files: []
124
+
@@ -1,50 +0,0 @@
1
- = API Changes
2
-
3
- * SQLite3::Database#execute only accepts an array for bind parameters.
4
-
5
- * SQLite3::ResultSet used to query the database for the first row, regardless
6
- of whether the user asked for it or not. I have removed that so that rows
7
- will not be returned until the user asks for them. This is a subtle but
8
- sometimes important change in behavior.
9
-
10
- 83882d2208ed189361617d5ab8532a325aaf729d
11
-
12
- * SQLite3::Database#trace now takes either a block or an object that responds
13
- to "call". The previous implementation passed around a VALUE that was cast
14
- to a void *. This is dangerous because the value could get garbage collected
15
- before the proc was called. If the user wants data passed around with the
16
- block, they should use variables available to the closure or create an
17
- object.
18
-
19
- * SQLite3::Statement#step automatically converts to ruby types, where before
20
- all values were automatically yielded as strings. This will only be a
21
- problem for people who were accessing information about the database that
22
- wasn't previously passed through the pure ruby conversion code.
23
-
24
- * SQLite3::Database#errmsg no longer takes a parameter to return error
25
- messages as UTF-16. Do people even use that? I opt for staying UTF-8 when
26
- possible. See test_integration.rb test_errmsg_utf16
27
-
28
- * SQLite3::Database#authorize same changes as trace
29
-
30
- * test/test_tc_database.rb was removed because we no longer use the Driver
31
- design pattern.
32
-
33
- = Garbage Collection Strategy
34
-
35
- All statements keep pointers back to their respective database connections.
36
- The @connection instance variable on the Statement handle keeps the database
37
- connection alive. Memory allocated for a statement handler will be freed in
38
- two cases:
39
-
40
- * close is called on the statement
41
- * The SQLite3::Database object gets garbage collected
42
-
43
- We can't free the memory for the statement in the garbage collection function
44
- for the statement handler. The reason is because there exists a race
45
- condition. We cannot guarantee the order in which objects will be garbage
46
- collected. So, it is possible that a connection and a statement are up for
47
- garbage collection. If the database connection were to be free'd before the
48
- statement, then boom. Instead we'll be conservative and free unclosed
49
- statements when the connection is terminated.
50
-
@@ -1,171 +0,0 @@
1
- === 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
2
-
3
- * Enhancements:
4
- * Windows: build against 3.7.3 version of SQLite3
5
- * SQLite3::Database can now be open as readonly
6
-
7
- db = SQLite3::Database.new('my.db', :readonly => true)
8
-
9
- * Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
10
-
11
- * Bugfixes
12
- * type_translation= works along with Database#execute and a block
13
- * defined functions are kept in a hash to prevent GC. #7
14
- * Removed GCC specific flags from extconf.
15
-
16
- * DEPRECATIONS
17
- * SQLite3::Database#type_translation= will be deprecated in the future with
18
- no replacement.
19
- * SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
20
- replacement.
21
-
22
- === 1.3.1 / 2010-07-09
23
-
24
- * Enhancements
25
- * Custom collations may be defined using SQLite3::Database#collation
26
-
27
- * Bugfixes
28
- * Statements returning 0 columns are automatically stepped. [RF #28308]
29
- * SQLite3::Database#encoding works on 1.8 and 1.9
30
-
31
- === 1.3.0 / 2010-06-06
32
-
33
- * Enhancements
34
- * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
35
- See API_CHANGES document for details.
36
- This closes: Bug #27300, Bug #27241, Patch #16020
37
- * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
38
- * Added support for type translations [tenderlove]
39
-
40
- @db.translator.add_translator('sometime') do |type, thing|
41
- 'output' # this will be returned as value for that column
42
- end
43
-
44
- * Experimental
45
- * Added API to access and load extensions. [kashif]
46
- These functions maps directly into SQLite3 own enable_load_extension()
47
- and load_extension() C-API functions. See SQLite3::Database API documentation for details.
48
- This closes: Patches #9178
49
-
50
- * Bugfixes
51
- * Corrected gem dependencies (runtime and development)
52
- * Fixed threaded tests [Alexey Borzenkov]
53
- * Removed GitHub gemspec
54
- * Fixed "No definition for" warnings from RDoc
55
- * Generate zip and tgz files for releases
56
- * Added Luis Lavena as gem Author (maintainer)
57
- * Prevent mkmf interfere with Mighty Snow Leopard
58
- * Allow extension compilation search for common lib paths [kashif]
59
- (lookup /usr/local, /opt/local and /usr)
60
- * Corrected extension compilation under MSVC [romuloceccon]
61
- * Define load_extension functionality based on availability [tenderlove]
62
- * Deprecation notices for Database#query. Fixes RF #28192
63
-
64
- === 1.3.0.beta.2 / 2010-05-15
65
-
66
- * Enhancements
67
- * Added support for type translations [tenderlove]
68
-
69
- @db.translator.add_translator('sometime') do |type, thing|
70
- 'output' # this will be returned as value for that column
71
- end
72
-
73
- * Bugfixes
74
- * Allow extension compilation search for common lib paths [kashif]
75
- (lookup /usr/local, /opt/local and /usr)
76
- * Corrected extension compilation under MSVC [romuloceccon]
77
- * Define load_extension functionality based on availability [tenderlove]
78
- * Deprecation notices for Database#query. Fixes RF #28192
79
-
80
- === 1.3.0.beta.1 / 2010-05-10
81
-
82
- * Enhancements
83
- * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
84
- See API_CHANGES document for details.
85
- This closes: Bug #27300, Bug #27241, Patch #16020
86
- * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
87
-
88
- * Experimental
89
- * Added API to access and load extensions. [kashif]
90
- These functions maps directly into SQLite3 own enable_load_extension()
91
- and load_extension() C-API functions. See SQLite3::Database API documentation for details.
92
- This closes: Patches #9178
93
-
94
- * Bugfixes
95
- * Corrected gem dependencies (runtime and development)
96
- * Fixed threaded tests [Alexey Borzenkov]
97
- * Removed GitHub gemspec
98
- * Fixed "No definition for" warnings from RDoc
99
- * Generate zip and tgz files for releases
100
- * Added Luis Lavena as gem Author (maintainer)
101
- * Prevent mkmf interfere with Mighty Snow Leopard
102
-
103
- === 1.2.5 / 25 Jul 2009
104
-
105
- * Check for illegal nil before executing SQL [Erik Veenstra]
106
- * Switch to Hoe for gem task management and packaging.
107
- * Advertise rake-compiler as development dependency.
108
- * Build gem binaries for Windows.
109
- * Improved Ruby 1.9 support compatibility.
110
- * Taint returned values. Patch #20325.
111
- * Database.open and Database.new now take an optional block [Gerrit Kaiser]
112
-
113
-
114
- === 1.2.4.1 (internal) / 5 Jul 2009
115
-
116
- * Check for illegal nil before executing SQL [Erik Veenstra]
117
- * Switch to Hoe for gem task management and packaging.
118
- * Advertise rake-compiler as development dependency.
119
- * Build gem binaries for Windows.
120
- * Improved Ruby 1.9 support compatibility.
121
-
122
-
123
- === 1.2.4 / 27 Aug 2008
124
-
125
- * Package the updated C file for source builds. [Jamis Buck]
126
-
127
-
128
- === 1.2.3 / 26 Aug 2008
129
-
130
- * Fix incorrect permissions on database.rb and translator.rb [Various]
131
-
132
- * Avoid using Object#extend for greater speedups [Erik Veenstra]
133
-
134
- * Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
135
-
136
- * Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
137
-
138
-
139
- === 1.2.2 / 31 May 2008
140
-
141
- * Make the table_info method adjust the returned default value for the rows
142
- so that the sqlite3 change in 3.3.8 and greater can be handled
143
- transparently [Jamis Buck <jamis@37signals.com>]
144
-
145
- * Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
146
-
147
- * Various performance enhancements [thanks Erik Veenstra]
148
-
149
- * Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
150
-
151
- * Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
152
-
153
- * Work around a quirk in SQLite's error reporting by calling sqlite3_reset
154
- to produce a more informative error code upon a failure from
155
- sqlite3_step. [Rob Holland <rob@inversepath.com>]
156
-
157
- * Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
158
-
159
- * Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
160
-
161
- * Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
162
-
163
- * Check for the rt library and fdatasync so we link against that when
164
- needed [Rob Holland <rob@inversepath.com>]
165
-
166
- * Rename data structures to avoid collision on win32. based on patch
167
- by: Luis Lavena [Rob Holland <rob@inversepath.com>]
168
-
169
- * Add test for defaults [Daniel Rodríguez Troitiño]
170
-
171
- * Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]
@@ -1,88 +0,0 @@
1
- 2005-01-05 09:40 minam
2
-
3
- * Rakefile, sqlite3-ruby-win32.gemspec, sqlite3-ruby.gemspec: Added
4
- win32 gem.
5
-
6
- 2005-01-05 07:31 minam
7
-
8
- * Rakefile, test/tc_integration.rb, test/tests.rb: Added
9
- native-vs-dl benchmark to Rakefile. Added SQLITE3_DRIVERS
10
- environment variable to integration test to specify which
11
- driver(s) should be tested (defaults to "Native").
12
-
13
- 2005-01-04 14:26 minam
14
-
15
- * ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
16
- lib/sqlite3/driver/native/driver.rb, test/tc_database.rb,
17
- test/tc_integration.rb, test/tests.rb: Unit tests: done. Bugs:
18
- fixed.
19
-
20
- 2005-01-03 23:13 minam
21
-
22
- * ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
23
- lib/sqlite3/driver/dl/driver.rb,
24
- lib/sqlite3/driver/native/driver.rb, test/tc_integration.rb:
25
- Custom functions (aggregate and otherwise) are supported by the
26
- native driver now. Test cases for the same.
27
-
28
- 2005-01-03 13:51 minam
29
-
30
- * ext/sqlite3_api/MANIFEST, ext/sqlite3_api/extconf.rb,
31
- ext/sqlite3_api/post-clean.rb, ext/sqlite3_api/post-distclean.rb,
32
- ext/sqlite3_api/sqlite3_api.i, lib/sqlite3/database.rb,
33
- lib/sqlite3/resultset.rb, lib/sqlite3/version.rb,
34
- lib/sqlite3/driver/dl/driver.rb,
35
- lib/sqlite3/driver/native/driver.rb, test/native-vs-dl.rb,
36
- test/tc_integration.rb: Added preliminary implementation of
37
- native driver (swig-based), and integration tests.
38
-
39
- 2004-12-29 19:37 minam
40
-
41
- * lib/sqlite3/driver/dl/driver.rb: Some fixes to allow the DL
42
- driver to work with Ruby 1.8.1.
43
-
44
- 2004-12-29 14:52 minam
45
-
46
- * lib/sqlite3/: database.rb, version.rb: Made #quote a class method
47
- (again). Bumped version to 0.6.
48
-
49
- 2004-12-25 22:59 minam
50
-
51
- * lib/sqlite3/driver/dl/api.rb: Added check for darwin in supported
52
- platforms (thanks to bitsweat).
53
-
54
- 2004-12-22 12:38 minam
55
-
56
- * Rakefile: Rakefile wasn't packaging the README file.
57
-
58
- 2004-12-21 22:28 minam
59
-
60
- * Rakefile, sqlite3-ruby.gemspec, test/bm.rb: Packaging now works.
61
- Added benchmarks.
62
-
63
- 2004-12-21 21:45 minam
64
-
65
- * LICENSE, README, Rakefile, setup.rb, sqlite3-ruby.gemspec,
66
- doc/faq/faq.rb, doc/faq/faq.yml, lib/sqlite3.rb,
67
- lib/sqlite3/statement.rb, lib/sqlite3/constants.rb,
68
- lib/sqlite3/database.rb, lib/sqlite3/resultset.rb,
69
- lib/sqlite3/translator.rb, lib/sqlite3/value.rb,
70
- lib/sqlite3/version.rb, lib/sqlite3/errors.rb,
71
- lib/sqlite3/pragmas.rb, lib/sqlite3/driver/dl/api.rb,
72
- lib/sqlite3/driver/dl/driver.rb, test/mocks.rb,
73
- test/tc_database.rb, test/tests.rb, test/driver/dl/tc_driver.rb:
74
- Initial import
75
-
76
- 2004-12-21 21:45 minam
77
-
78
- * LICENSE, README, Rakefile, setup.rb, sqlite3-ruby.gemspec,
79
- doc/faq/faq.rb, doc/faq/faq.yml, lib/sqlite3.rb,
80
- lib/sqlite3/statement.rb, lib/sqlite3/constants.rb,
81
- lib/sqlite3/database.rb, lib/sqlite3/resultset.rb,
82
- lib/sqlite3/translator.rb, lib/sqlite3/value.rb,
83
- lib/sqlite3/version.rb, lib/sqlite3/errors.rb,
84
- lib/sqlite3/pragmas.rb, lib/sqlite3/driver/dl/api.rb,
85
- lib/sqlite3/driver/dl/driver.rb, test/mocks.rb,
86
- test/tc_database.rb, test/tests.rb, test/driver/dl/tc_driver.rb:
87
- Initial revision
88
-