ahaller-sqlite3-ruby 1.2.4
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.
- data/README.rdoc +51 -0
- data/ext/sqlite3_api/extconf.rb +17 -0
- data/test/tests.rb +6 -0
- metadata +54 -0
data/README.rdoc
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
= SQLite3/Ruby Interface
|
2
|
+
|
3
|
+
This module allows Ruby programs to interface with the SQLite3
|
4
|
+
database engine (http://www.sqlite.org). You must have the
|
5
|
+
SQLite engine installed in order to build this module.
|
6
|
+
|
7
|
+
Note that this module is NOT compatible with SQLite 2.x.
|
8
|
+
|
9
|
+
|
10
|
+
== Compilation and Installation
|
11
|
+
|
12
|
+
Simply do the following, after installing SQLite3:
|
13
|
+
|
14
|
+
ruby setup.rb config
|
15
|
+
ruby setup.rb setup
|
16
|
+
ruby setup.rb install
|
17
|
+
|
18
|
+
Alternatively, you can download and install the RubyGem package for
|
19
|
+
SQLite3/Ruby (you must have RubyGems and SQLite3 installed, first):
|
20
|
+
|
21
|
+
gem install sqlite3-ruby
|
22
|
+
|
23
|
+
If you have sqlite3 installed in a non-standard location, you can specify the location of the include and lib files by doing:
|
24
|
+
|
25
|
+
gem install sqlite3-ruby -- --with-sqlite3-include=/opt/local/include \
|
26
|
+
--with-sqlite3-lib=/opt/local/lib
|
27
|
+
|
28
|
+
Also, the gem ships with the C source-code pre-built, so (as of version 1.1.1)
|
29
|
+
you no longer need to have SWIG installed. However, if you have SWIG installed
|
30
|
+
and you want to generate the C file yourself, you can specify the
|
31
|
+
<code>--with-swig</code> option.
|
32
|
+
|
33
|
+
== Usage
|
34
|
+
|
35
|
+
For help figuring out the SQLite3/Ruby interface, check out the
|
36
|
+
FAQ[http://sqlite-ruby.rubyforge.org/sqlite3/faq.html]. It includes examples of
|
37
|
+
usage. If you have any questions that you feel should be address in the
|
38
|
+
FAQ, please send them to jamis@37signals.com
|
39
|
+
|
40
|
+
== Source Code
|
41
|
+
|
42
|
+
The source repository is accessible via git:
|
43
|
+
|
44
|
+
git clone git://github.com/jamis/sqlite3-ruby.git
|
45
|
+
|
46
|
+
== Contact Information
|
47
|
+
|
48
|
+
The project page is http://rubyforge.org/projects/sqlite-ruby. There, you can
|
49
|
+
find links to mailing lists and forums that you can use to discuss this
|
50
|
+
library. Additionally, there are trackers for submitting bugs and feature
|
51
|
+
requests. Feel free to use them!
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'mkmf'
|
2
|
+
|
3
|
+
SWIG_WRAP = "sqlite3_api_wrap.c"
|
4
|
+
|
5
|
+
dir_config( "sqlite3", "/usr/local" )
|
6
|
+
|
7
|
+
have_library( "rt", "fdatasync" )
|
8
|
+
|
9
|
+
if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" )
|
10
|
+
if !File.exists?( SWIG_WRAP ) || with_config( "swig", false )
|
11
|
+
puts "creating #{SWIG_WRAP}"
|
12
|
+
system "swig -ruby sqlite3_api.i" or raise "could not build wrapper via swig (perhaps swig is not installed?)"
|
13
|
+
end
|
14
|
+
|
15
|
+
$CFLAGS << " -fno-strict-aliasing"
|
16
|
+
create_makefile( "sqlite3_api" )
|
17
|
+
end
|
data/test/tests.rb
ADDED
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ahaller-sqlite3-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jamis Buck
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-04-01 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: jamis@37signals.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions:
|
21
|
+
- ext/sqlite3_api/extconf.rb
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
files: []
|
25
|
+
|
26
|
+
has_rdoc: true
|
27
|
+
homepage: http://sqlite-ruby.rubyforge.org/sqlite3
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options:
|
30
|
+
- --main
|
31
|
+
- README.rdoc
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 1.9.1
|
39
|
+
version:
|
40
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: "0"
|
45
|
+
version:
|
46
|
+
requirements: []
|
47
|
+
|
48
|
+
rubyforge_project:
|
49
|
+
rubygems_version: 1.2.0
|
50
|
+
signing_key:
|
51
|
+
specification_version: 2
|
52
|
+
summary: SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database.
|
53
|
+
test_files:
|
54
|
+
- test/tests.rb
|