sqlite3-ruby 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sqlite3-ruby might be problematic. Click here for more details.
- data/{README → README.rdoc} +2 -6
- data/doc/faq/faq.html +28 -28
- data/doc/faq/faq.rb +1 -33
- data/ext/sqlite3_api/extconf.rb +3 -0
- data/ext/sqlite3_api/sqlite3_api.i +27 -28
- data/ext/sqlite3_api/sqlite3_api_wrap.c +36 -37
- data/ext/sqlite3_api/win32/build.bat +0 -0
- data/lib/sqlite3.rb +0 -32
- data/lib/sqlite3/constants.rb +0 -32
- data/lib/sqlite3/database.rb +7 -37
- data/lib/sqlite3/driver/dl/api.rb +0 -32
- data/lib/sqlite3/driver/dl/driver.rb +1 -32
- data/lib/sqlite3/driver/native/driver.rb +1 -33
- data/lib/sqlite3/errors.rb +1 -33
- data/lib/sqlite3/pragmas.rb +5 -35
- data/lib/sqlite3/resultset.rb +13 -39
- data/lib/sqlite3/statement.rb +5 -33
- data/lib/sqlite3/translator.rb +12 -39
- data/lib/sqlite3/value.rb +0 -32
- data/lib/sqlite3/version.rb +1 -33
- data/test/driver/dl/tc_driver.rb +0 -32
- data/test/mocks.rb +22 -79
- data/test/tc_database.rb +47 -65
- data/test/tc_errors.rb +2 -35
- data/test/tc_integration.rb +112 -64
- data/test/tests.rb +4 -34
- metadata +51 -45
- data/ext/sqlite3_api/Makefile +0 -143
data/ext/sqlite3_api/Makefile
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
#### Start of system configuration section. ####
|
5
|
-
|
6
|
-
srcdir = .
|
7
|
-
topdir = /opt/local/lib/ruby/1.8/i686-darwin8.5.2
|
8
|
-
hdrdir = $(topdir)
|
9
|
-
VPATH = $(srcdir):$(topdir):$(hdrdir)
|
10
|
-
prefix = $(DESTDIR)/opt/local
|
11
|
-
exec_prefix = $(DESTDIR)/opt/local
|
12
|
-
sitedir = $(prefix)/lib/ruby/site_ruby
|
13
|
-
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
14
|
-
archdir = $(rubylibdir)/$(arch)
|
15
|
-
sbindir = $(exec_prefix)/sbin
|
16
|
-
vendordir = $(prefix)/lib/ruby/vendor_ruby
|
17
|
-
datadir = $(prefix)/share
|
18
|
-
includedir = $(prefix)/include
|
19
|
-
infodir = $(prefix)/info
|
20
|
-
sysconfdir = $(prefix)/etc
|
21
|
-
mandir = $(DESTDIR)/opt/local/share/man
|
22
|
-
libdir = $(DESTDIR)/opt/local/lib
|
23
|
-
sharedstatedir = $(prefix)/com
|
24
|
-
oldincludedir = $(DESTDIR)/usr/include
|
25
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
26
|
-
vendorarchdir = $(vendorlibdir)/$(vendorarch)
|
27
|
-
bindir = $(exec_prefix)/bin
|
28
|
-
localstatedir = $(prefix)/var
|
29
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
30
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
31
|
-
libexecdir = $(exec_prefix)/libexec
|
32
|
-
|
33
|
-
CC = gcc
|
34
|
-
LIBRUBY = $(LIBRUBY_SO)
|
35
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
36
|
-
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
37
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
38
|
-
|
39
|
-
CFLAGS = -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common
|
40
|
-
CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) -DHAVE_SQLITE3_H -I/usr/local/include -O -pipe -I/opt/local/include
|
41
|
-
CXXFLAGS = $(CFLAGS)
|
42
|
-
DLDFLAGS = -L/opt/local/lib
|
43
|
-
LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace
|
44
|
-
AR = ar
|
45
|
-
EXEEXT =
|
46
|
-
|
47
|
-
RUBY_INSTALL_NAME = ruby
|
48
|
-
RUBY_SO_NAME = ruby
|
49
|
-
arch = i686-darwin8.5.2
|
50
|
-
sitearch = i686-darwin8.5.2
|
51
|
-
vendorarch = i686-darwin8.5.2
|
52
|
-
ruby_version = 1.8
|
53
|
-
ruby = /opt/local/bin/ruby
|
54
|
-
RUBY = $(ruby)
|
55
|
-
RM = rm -f
|
56
|
-
MAKEDIRS = mkdir -p
|
57
|
-
INSTALL = /usr/bin/install -c
|
58
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
59
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
60
|
-
COPY = cp
|
61
|
-
|
62
|
-
#### End of system configuration section. ####
|
63
|
-
|
64
|
-
preload =
|
65
|
-
|
66
|
-
libpath = /usr/local/lib $(libdir)
|
67
|
-
LIBPATH = -L"/usr/local/lib" -L"$(libdir)"
|
68
|
-
DEFFILE =
|
69
|
-
|
70
|
-
CLEANFILES =
|
71
|
-
DISTCLEANFILES =
|
72
|
-
|
73
|
-
extout =
|
74
|
-
extout_prefix =
|
75
|
-
target_prefix =
|
76
|
-
LOCAL_LIBS =
|
77
|
-
LIBS = $(LIBRUBYARG_SHARED) -lsqlite3 -lpthread -ldl -lobjc
|
78
|
-
SRCS = sqlite3_api_wrap.c
|
79
|
-
OBJS = sqlite3_api_wrap.o
|
80
|
-
TARGET = sqlite3_api
|
81
|
-
DLLIB = $(TARGET).bundle
|
82
|
-
STATIC_LIB =
|
83
|
-
|
84
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
85
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
86
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
87
|
-
|
88
|
-
TARGET_SO = $(DLLIB)
|
89
|
-
CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map
|
90
|
-
CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
|
91
|
-
|
92
|
-
all: $(DLLIB)
|
93
|
-
static: $(STATIC_LIB)
|
94
|
-
|
95
|
-
clean:
|
96
|
-
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
97
|
-
|
98
|
-
distclean: clean
|
99
|
-
@-$(RM) Makefile extconf.h conftest.* mkmf.log
|
100
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
101
|
-
|
102
|
-
realclean: distclean
|
103
|
-
install: install-so install-rb
|
104
|
-
|
105
|
-
install-so: $(RUBYARCHDIR)
|
106
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
107
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
108
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
109
|
-
install-rb: pre-install-rb install-rb-default
|
110
|
-
install-rb-default: pre-install-rb-default
|
111
|
-
pre-install-rb: Makefile
|
112
|
-
pre-install-rb-default: Makefile
|
113
|
-
$(RUBYARCHDIR):
|
114
|
-
$(MAKEDIRS) $@
|
115
|
-
|
116
|
-
site-install: site-install-so site-install-rb
|
117
|
-
site-install-so: install-so
|
118
|
-
site-install-rb: install-rb
|
119
|
-
|
120
|
-
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
121
|
-
|
122
|
-
.cc.o:
|
123
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
124
|
-
|
125
|
-
.cxx.o:
|
126
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
127
|
-
|
128
|
-
.cpp.o:
|
129
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
130
|
-
|
131
|
-
.C.o:
|
132
|
-
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
133
|
-
|
134
|
-
.c.o:
|
135
|
-
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
136
|
-
|
137
|
-
$(DLLIB): $(OBJS)
|
138
|
-
@-$(RM) $@
|
139
|
-
$(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
$(OBJS): ruby.h defines.h
|