sqlite3-ruby 1.3.3.beta.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,177 @@
1
+ === 1.3.3 / 2010-01-16
2
+
3
+ * Bugfixes
4
+ * Abort on installation if sqlite3_backup_init is missing. Fixes #19
5
+ * Gem has been renamed to 'sqlite3'. Please use `gem install sqlite3`
6
+
7
+ === 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
8
+
9
+ * Enhancements:
10
+ * Windows: build against 3.7.3 version of SQLite3
11
+ * SQLite3::Database can now be open as readonly
12
+
13
+ db = SQLite3::Database.new('my.db', :readonly => true)
14
+
15
+ * Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
16
+
17
+ * Bugfixes
18
+ * type_translation= works along with Database#execute and a block
19
+ * defined functions are kept in a hash to prevent GC. #7
20
+ * Removed GCC specific flags from extconf.
21
+
22
+ * DEPRECATIONS
23
+ * SQLite3::Database#type_translation= will be deprecated in the future with
24
+ no replacement.
25
+ * SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
26
+ replacement.
27
+
28
+ === 1.3.1 / 2010-07-09
29
+
30
+ * Enhancements
31
+ * Custom collations may be defined using SQLite3::Database#collation
32
+
33
+ * Bugfixes
34
+ * Statements returning 0 columns are automatically stepped. [RF #28308]
35
+ * SQLite3::Database#encoding works on 1.8 and 1.9
36
+
37
+ === 1.3.0 / 2010-06-06
38
+
39
+ * Enhancements
40
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
41
+ See API_CHANGES document for details.
42
+ This closes: Bug #27300, Bug #27241, Patch #16020
43
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
44
+ * Added support for type translations [tenderlove]
45
+
46
+ @db.translator.add_translator('sometime') do |type, thing|
47
+ 'output' # this will be returned as value for that column
48
+ end
49
+
50
+ * Experimental
51
+ * Added API to access and load extensions. [kashif]
52
+ These functions maps directly into SQLite3 own enable_load_extension()
53
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
54
+ This closes: Patches #9178
55
+
56
+ * Bugfixes
57
+ * Corrected gem dependencies (runtime and development)
58
+ * Fixed threaded tests [Alexey Borzenkov]
59
+ * Removed GitHub gemspec
60
+ * Fixed "No definition for" warnings from RDoc
61
+ * Generate zip and tgz files for releases
62
+ * Added Luis Lavena as gem Author (maintainer)
63
+ * Prevent mkmf interfere with Mighty Snow Leopard
64
+ * Allow extension compilation search for common lib paths [kashif]
65
+ (lookup /usr/local, /opt/local and /usr)
66
+ * Corrected extension compilation under MSVC [romuloceccon]
67
+ * Define load_extension functionality based on availability [tenderlove]
68
+ * Deprecation notices for Database#query. Fixes RF #28192
69
+
70
+ === 1.3.0.beta.2 / 2010-05-15
71
+
72
+ * Enhancements
73
+ * Added support for type translations [tenderlove]
74
+
75
+ @db.translator.add_translator('sometime') do |type, thing|
76
+ 'output' # this will be returned as value for that column
77
+ end
78
+
79
+ * Bugfixes
80
+ * Allow extension compilation search for common lib paths [kashif]
81
+ (lookup /usr/local, /opt/local and /usr)
82
+ * Corrected extension compilation under MSVC [romuloceccon]
83
+ * Define load_extension functionality based on availability [tenderlove]
84
+ * Deprecation notices for Database#query. Fixes RF #28192
85
+
86
+ === 1.3.0.beta.1 / 2010-05-10
87
+
88
+ * Enhancements
89
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
90
+ See API_CHANGES document for details.
91
+ This closes: Bug #27300, Bug #27241, Patch #16020
92
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
93
+
94
+ * Experimental
95
+ * Added API to access and load extensions. [kashif]
96
+ These functions maps directly into SQLite3 own enable_load_extension()
97
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
98
+ This closes: Patches #9178
99
+
100
+ * Bugfixes
101
+ * Corrected gem dependencies (runtime and development)
102
+ * Fixed threaded tests [Alexey Borzenkov]
103
+ * Removed GitHub gemspec
104
+ * Fixed "No definition for" warnings from RDoc
105
+ * Generate zip and tgz files for releases
106
+ * Added Luis Lavena as gem Author (maintainer)
107
+ * Prevent mkmf interfere with Mighty Snow Leopard
108
+
109
+ === 1.2.5 / 25 Jul 2009
110
+
111
+ * Check for illegal nil before executing SQL [Erik Veenstra]
112
+ * Switch to Hoe for gem task management and packaging.
113
+ * Advertise rake-compiler as development dependency.
114
+ * Build gem binaries for Windows.
115
+ * Improved Ruby 1.9 support compatibility.
116
+ * Taint returned values. Patch #20325.
117
+ * Database.open and Database.new now take an optional block [Gerrit Kaiser]
118
+
119
+
120
+ === 1.2.4.1 (internal) / 5 Jul 2009
121
+
122
+ * Check for illegal nil before executing SQL [Erik Veenstra]
123
+ * Switch to Hoe for gem task management and packaging.
124
+ * Advertise rake-compiler as development dependency.
125
+ * Build gem binaries for Windows.
126
+ * Improved Ruby 1.9 support compatibility.
127
+
128
+
129
+ === 1.2.4 / 27 Aug 2008
130
+
131
+ * Package the updated C file for source builds. [Jamis Buck]
132
+
133
+
134
+ === 1.2.3 / 26 Aug 2008
135
+
136
+ * Fix incorrect permissions on database.rb and translator.rb [Various]
137
+
138
+ * Avoid using Object#extend for greater speedups [Erik Veenstra]
139
+
140
+ * Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
141
+
142
+ * Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
143
+
144
+
145
+ === 1.2.2 / 31 May 2008
146
+
147
+ * Make the table_info method adjust the returned default value for the rows
148
+ so that the sqlite3 change in 3.3.8 and greater can be handled
149
+ transparently [Jamis Buck <jamis@37signals.com>]
150
+
151
+ * Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
152
+
153
+ * Various performance enhancements [thanks Erik Veenstra]
154
+
155
+ * Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
156
+
157
+ * Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
158
+
159
+ * Work around a quirk in SQLite's error reporting by calling sqlite3_reset
160
+ to produce a more informative error code upon a failure from
161
+ sqlite3_step. [Rob Holland <rob@inversepath.com>]
162
+
163
+ * Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
164
+
165
+ * Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
166
+
167
+ * Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
168
+
169
+ * Check for the rt library and fdatasync so we link against that when
170
+ needed [Rob Holland <rob@inversepath.com>]
171
+
172
+ * Rename data structures to avoid collision on win32. based on patch
173
+ by: Luis Lavena [Rob Holland <rob@inversepath.com>]
174
+
175
+ * Add test for defaults [Daniel Rodríguez Troitiño]
176
+
177
+ * Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]
@@ -0,0 +1,6 @@
1
+ CHANGELOG.rdoc
2
+ Manifest.txt
3
+ README.rdoc
4
+ Rakefile
5
+ bin/sqlite3_ruby
6
+ lib/sqlite3/dummy.rb
@@ -0,0 +1,103 @@
1
+ = SQLite3/Ruby Interface
2
+
3
+ * http://github.com/luislavena/sqlite3-ruby
4
+ * http://rubyforge.org/projects/sqlite-ruby
5
+ * http://sqlite-ruby.rubyforge.org
6
+ * http://groups.google.com/group/sqlite3-ruby
7
+
8
+ == DESCRIPTION
9
+
10
+ This module allows Ruby programs to interface with the SQLite3
11
+ database engine (http://www.sqlite.org). You must have the
12
+ SQLite engine installed in order to build this module.
13
+
14
+ Note that this module is NOT compatible with SQLite 2.x.
15
+
16
+ == SYNOPSIS
17
+
18
+ require "sqlite3"
19
+
20
+ # Open a database
21
+ db = SQLite3::Database.new "test.db"
22
+
23
+ # Create a database
24
+ rows = db.execute <<-SQL
25
+ create table numbers (
26
+ name varchar(30),
27
+ val int
28
+ );
29
+ SQL
30
+
31
+ # Execute a few inserts
32
+ {
33
+ "one" => 1,
34
+ "two" => 2,
35
+ }.each do |pair|
36
+ db.execute "insert into numbers values ( ?, ? )", pair
37
+ end
38
+
39
+ # Find a few rows
40
+ db.execute( "select * from numbers" ) do |row|
41
+ p row
42
+ end
43
+
44
+
45
+ == Compilation and Installation
46
+
47
+ Install SQLite3, enabling option SQLITE_ENABLE_COLUMN_METADATA (see
48
+ www.sqlite.org/compile.html for details).
49
+
50
+ Then do the following:
51
+
52
+ ruby setup.rb config
53
+ ruby setup.rb setup
54
+ ruby setup.rb install
55
+
56
+ Alternatively, you can download and install the RubyGem package for
57
+ SQLite3/Ruby (you must have RubyGems and SQLite3 installed, first):
58
+
59
+ gem install sqlite3-ruby
60
+
61
+ If you have sqlite3 installed in a non-standard location, you can specify the location of the include and lib files by doing:
62
+
63
+ gem install sqlite3-ruby -- --with-sqlite3-include=/opt/local/include \
64
+ --with-sqlite3-lib=/opt/local/lib
65
+
66
+ = SUPPORT!!!
67
+
68
+ == OMG! Something has gone wrong! Where do I get help?
69
+
70
+ The best place to get help is from the
71
+ {sqlite3-ruby mailing list}[http://groups.google.com/group/sqlite3-ruby] which
72
+ can be found here:
73
+
74
+ * http://groups.google.com/group/sqlite3-ruby
75
+
76
+ == I've found a bug! Where do I file it?
77
+
78
+ Uh oh. After contacting the mailing list, you've found that you've actually
79
+ discovered a bug. You can file the bug at the
80
+ {github issues page}[http://github.com/luislavena/sqlite3-ruby/issues]
81
+ which can be found here:
82
+
83
+ * http://github.com/luislavena/sqlite3-ruby/issues
84
+
85
+ == Usage
86
+
87
+ For help figuring out the SQLite3/Ruby interface, check out the
88
+ FAQ[http://sqlite-ruby.rubyforge.org/sqlite3/faq.html]. It includes examples of
89
+ usage. If you have any questions that you feel should be address in the
90
+ FAQ, please send them to jamis@37signals.com
91
+
92
+ == Source Code
93
+
94
+ The source repository is accessible via git:
95
+
96
+ git clone git://github.com/luislavena/sqlite3-ruby.git
97
+
98
+ == Contact Information
99
+
100
+ The project page is http://rubyforge.org/projects/sqlite-ruby. There, you can
101
+ find links to mailing lists and forums that you can use to discuss this
102
+ library. Additionally, there are trackers for submitting bugs and feature
103
+ requests. Feel free to use them!
@@ -0,0 +1,33 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'rubygems'
4
+ require 'hoe'
5
+
6
+ Hoe.spec 'sqlite3-ruby' do
7
+ developer 'Jamis Buck', 'jamis@37signals.com'
8
+ developer 'Luis Lavena', 'luislavena@gmail.com'
9
+ developer 'Aaron Patterson', 'aaron@tenderlovemaking.com'
10
+
11
+ self.version = '1.3.3'
12
+ self.readme_file = 'README.rdoc'
13
+ self.history_file = 'CHANGELOG.rdoc'
14
+ self.extra_rdoc_files = FileList['*.rdoc']
15
+ extra_deps << ['sqlite3', '>= 1.3.3']
16
+ self.post_install_message = <<-eomessage
17
+
18
+ #######################################################
19
+
20
+ Hello! The sqlite3-ruby gem has changed it's name to just sqlite3. Rather than
21
+ installing `sqlite3-ruby`, you should install `sqlite3`. Please update your
22
+ dependencies accordingly.
23
+
24
+ Thanks from the Ruby sqlite3 team!
25
+
26
+ <3 <3 <3 <3
27
+
28
+ #######################################################
29
+
30
+ eomessage
31
+ end
32
+
33
+ # vim: syntax=ruby
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ abort "you need to write me"
@@ -0,0 +1,8 @@
1
+ # :stopdoc:
2
+ # This dummy class is to keep RDoc and YARD from complaining about an empty
3
+ # lib directory.
4
+ module SQLite3
5
+ class Dummy
6
+ end
7
+ end
8
+ # :startdoc:
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ruby
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ hash: 29
5
+ prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 3
8
9
  - 3
9
- - beta
10
- - 1
11
- version: 1.3.3.beta.1
10
+ version: 1.3.3
12
11
  platform: ruby
13
12
  authors:
14
13
  - Jamis Buck
@@ -18,7 +17,7 @@ autorequire:
18
17
  bindir: bin
19
18
  cert_chain: []
20
19
 
21
- date: 2011-01-14 00:00:00 -08:00
20
+ date: 2011-01-16 00:00:00 -08:00
22
21
  default_executable:
23
22
  dependencies:
24
23
  - !ruby/object:Gem::Dependency
@@ -29,6 +28,7 @@ dependencies:
29
28
  requirements:
30
29
  - - ">="
31
30
  - !ruby/object:Gem::Version
31
+ hash: 29
32
32
  segments:
33
33
  - 1
34
34
  - 3
@@ -36,36 +36,22 @@ dependencies:
36
36
  version: 1.3.3
37
37
  type: :runtime
38
38
  version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: rake-compiler
41
- prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- segments:
48
- - 0
49
- - 7
50
- - 0
51
- version: 0.7.0
52
- type: :development
53
- version_requirements: *id002
54
39
  - !ruby/object:Gem::Dependency
55
40
  name: hoe
56
41
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
42
+ requirement: &id002 !ruby/object:Gem::Requirement
58
43
  none: false
59
44
  requirements:
60
45
  - - ">="
61
46
  - !ruby/object:Gem::Version
47
+ hash: 47
62
48
  segments:
63
49
  - 2
64
50
  - 8
65
51
  - 0
66
52
  version: 2.8.0
67
53
  type: :development
68
- version_requirements: *id003
54
+ version_requirements: *id002
69
55
  description: |-
70
56
  This module allows Ruby programs to interface with the SQLite3
71
57
  database engine (http://www.sqlite.org). You must have the
@@ -76,21 +62,42 @@ email:
76
62
  - jamis@37signals.com
77
63
  - luislavena@gmail.com
78
64
  - aaron@tenderlovemaking.com
79
- executables: []
80
-
65
+ executables:
66
+ - sqlite3_ruby
81
67
  extensions: []
82
68
 
83
- extra_rdoc_files: []
84
-
85
- files: []
86
-
69
+ extra_rdoc_files:
70
+ - Manifest.txt
71
+ - CHANGELOG.rdoc
72
+ - README.rdoc
73
+ files:
74
+ - CHANGELOG.rdoc
75
+ - Manifest.txt
76
+ - README.rdoc
77
+ - Rakefile
78
+ - bin/sqlite3_ruby
79
+ - lib/sqlite3/dummy.rb
87
80
  has_rdoc: true
88
81
  homepage: http://github.com/luislavena/sqlite3-ruby
89
82
  licenses: []
90
83
 
91
- post_install_message:
92
- rdoc_options: []
93
-
84
+ post_install_message: |+
85
+
86
+ #######################################################
87
+
88
+ Hello! The sqlite3-ruby gem has changed it's name to just sqlite3. Rather than
89
+ installing `sqlite3-ruby`, you should install `sqlite3`. Please update your
90
+ dependencies accordingly.
91
+
92
+ Thanks from the Ruby sqlite3 team!
93
+
94
+ <3 <3 <3 <3
95
+
96
+ #######################################################
97
+
98
+ rdoc_options:
99
+ - --main
100
+ - README.rdoc
94
101
  require_paths:
95
102
  - lib
96
103
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -98,21 +105,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
105
  requirements:
99
106
  - - ">="
100
107
  - !ruby/object:Gem::Version
108
+ hash: 3
101
109
  segments:
102
- - 1
103
- - 8
104
- - 7
105
- version: 1.8.7
110
+ - 0
111
+ version: "0"
106
112
  required_rubygems_version: !ruby/object:Gem::Requirement
107
113
  none: false
108
114
  requirements:
109
115
  - - ">="
110
116
  - !ruby/object:Gem::Version
117
+ hash: 3
111
118
  segments:
112
- - 1
113
- - 3
114
- - 5
115
- version: 1.3.5
119
+ - 0
120
+ version: "0"
116
121
  requirements: []
117
122
 
118
123
  rubyforge_project: sqlite3-ruby