mockley_crew 1.1.9 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mockley_crew/version.rb +1 -1
- data/lib/mockley_crew.rb +2 -1
- metadata +1 -67
- data/vendor/gems/sqlite3/cache/sqlite3-1.3.13.gem +0 -0
- data/vendor/gems/sqlite3/extensions/x86_64-linux/2.5.0/sqlite3-1.3.13/gem.build_complete +0 -0
- data/vendor/gems/sqlite3/extensions/x86_64-linux/2.5.0/sqlite3-1.3.13/gem_make.out +0 -33
- data/vendor/gems/sqlite3/extensions/x86_64-linux/2.5.0/sqlite3-1.3.13/mkmf.log +0 -592
- data/vendor/gems/sqlite3/extensions/x86_64-linux/2.5.0/sqlite3-1.3.13/sqlite3/sqlite3_native.so +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/API_CHANGES.rdoc +0 -50
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/CHANGELOG.rdoc +0 -292
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ChangeLog.cvs +0 -88
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/Gemfile +0 -15
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/LICENSE +0 -27
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/Manifest.txt +0 -52
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/README.rdoc +0 -118
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/Rakefile +0 -10
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/Makefile +0 -263
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/backup.c +0 -168
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/backup.h +0 -15
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/backup.o +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/database.c +0 -888
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/database.h +0 -15
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/database.o +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/exception.c +0 -94
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/exception.h +0 -8
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/exception.o +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/extconf.rb +0 -71
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3.c +0 -152
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3.o +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3_native.so +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/sqlite3_ruby.h +0 -52
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/statement.c +0 -447
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/statement.h +0 -16
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/ext/sqlite3/statement.o +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/faq/faq.rb +0 -145
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/faq/faq.yml +0 -426
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/constants.rb +0 -49
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/database.rb +0 -591
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/errors.rb +0 -44
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/pragmas.rb +0 -588
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/resultset.rb +0 -195
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/sqlite3_native.so +0 -0
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/statement.rb +0 -144
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/translator.rb +0 -118
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/value.rb +0 -57
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3/version.rb +0 -25
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/lib/sqlite3.rb +0 -15
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/setup.rb +0 -1333
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/tasks/faq.rake +0 -9
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/tasks/gem.rake +0 -38
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/tasks/native.rake +0 -52
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/tasks/vendor_sqlite3.rake +0 -97
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/helper.rb +0 -18
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_backup.rb +0 -33
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_collation.rb +0 -82
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_database.rb +0 -430
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_database_readonly.rb +0 -36
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_deprecated.rb +0 -44
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_encoding.rb +0 -155
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_integration.rb +0 -576
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_integration_open_close.rb +0 -30
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_integration_pending.rb +0 -115
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_integration_resultset.rb +0 -159
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_integration_statement.rb +0 -194
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_result_set.rb +0 -37
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_sqlite3.rb +0 -21
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_statement.rb +0 -260
- data/vendor/gems/sqlite3/gems/sqlite3-1.3.13/test/test_statement_execute.rb +0 -35
- data/vendor/gems/sqlite3/specifications/sqlite3-1.3.13.gemspec +0 -56
@@ -1,263 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
-
V = 0
|
6
|
-
Q1 = $(V:1=)
|
7
|
-
Q = $(Q1:0=@)
|
8
|
-
ECHO1 = $(V:1=@ :)
|
9
|
-
ECHO = $(ECHO1:0=@ echo)
|
10
|
-
NULLCMD = :
|
11
|
-
|
12
|
-
#### Start of system configuration section. ####
|
13
|
-
|
14
|
-
srcdir = .
|
15
|
-
topdir = /home/arielschvartz/.rvm/rubies/ruby-2.5.0/include/ruby-2.5.0
|
16
|
-
hdrdir = $(topdir)
|
17
|
-
arch_hdrdir = /home/arielschvartz/.rvm/rubies/ruby-2.5.0/include/ruby-2.5.0/x86_64-linux
|
18
|
-
PATH_SEPARATOR = :
|
19
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
20
|
-
prefix = $(DESTDIR)/home/arielschvartz/.rvm/rubies/ruby-2.5.0
|
21
|
-
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
22
|
-
rubyarchprefix = $(rubylibprefix)/$(arch)
|
23
|
-
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
24
|
-
exec_prefix = $(prefix)
|
25
|
-
vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
|
26
|
-
sitearchhdrdir = $(sitehdrdir)/$(sitearch)
|
27
|
-
rubyarchhdrdir = $(rubyhdrdir)/$(arch)
|
28
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
29
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
30
|
-
rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
|
31
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
32
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
33
|
-
vendordir = $(rubylibprefix)/vendor_ruby
|
34
|
-
sitearchdir = $(DESTDIR)./.gem.20180725-32107-jie3zb
|
35
|
-
sitelibdir = $(DESTDIR)./.gem.20180725-32107-jie3zb
|
36
|
-
sitedir = $(rubylibprefix)/site_ruby
|
37
|
-
rubyarchdir = $(rubylibdir)/$(arch)
|
38
|
-
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
39
|
-
sitearchincludedir = $(includedir)/$(sitearch)
|
40
|
-
archincludedir = $(includedir)/$(arch)
|
41
|
-
sitearchlibdir = $(libdir)/$(sitearch)
|
42
|
-
archlibdir = $(libdir)/$(arch)
|
43
|
-
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
44
|
-
mandir = $(datarootdir)/man
|
45
|
-
localedir = $(datarootdir)/locale
|
46
|
-
libdir = $(exec_prefix)/lib
|
47
|
-
psdir = $(docdir)
|
48
|
-
pdfdir = $(docdir)
|
49
|
-
dvidir = $(docdir)
|
50
|
-
htmldir = $(docdir)
|
51
|
-
infodir = $(datarootdir)/info
|
52
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
53
|
-
oldincludedir = $(DESTDIR)/usr/include
|
54
|
-
includedir = $(prefix)/include
|
55
|
-
localstatedir = $(prefix)/var
|
56
|
-
sharedstatedir = $(prefix)/com
|
57
|
-
sysconfdir = $(prefix)/etc
|
58
|
-
datadir = $(datarootdir)
|
59
|
-
datarootdir = $(prefix)/share
|
60
|
-
libexecdir = $(exec_prefix)/libexec
|
61
|
-
sbindir = $(exec_prefix)/sbin
|
62
|
-
bindir = $(exec_prefix)/bin
|
63
|
-
archdir = $(rubyarchdir)
|
64
|
-
|
65
|
-
|
66
|
-
CC = gcc
|
67
|
-
CXX = g++
|
68
|
-
LIBRUBY = $(LIBRUBY_SO)
|
69
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
70
|
-
LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
71
|
-
LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
72
|
-
empty =
|
73
|
-
OUTFLAG = -o $(empty)
|
74
|
-
COUTFLAG = -o $(empty)
|
75
|
-
CSRCFLAG = $(empty)
|
76
|
-
|
77
|
-
RUBY_EXTCONF_H =
|
78
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
79
|
-
cxxflags = $(optflags) $(debugflags) $(warnflags)
|
80
|
-
optflags = -O3
|
81
|
-
debugflags = -ggdb3
|
82
|
-
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict
|
83
|
-
CCDLFLAGS = -fPIC
|
84
|
-
CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
|
85
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
86
|
-
DEFS =
|
87
|
-
CPPFLAGS = -DHAVE_RB_PROC_ARITY -DHAVE_RB_INTEGER_PACK -DHAVE_SQLITE3_INITIALIZE -DHAVE_SQLITE3_BACKUP_INIT -DHAVE_SQLITE3_COLUMN_DATABASE_NAME -DHAVE_SQLITE3_ENABLE_LOAD_EXTENSION -DHAVE_SQLITE3_LOAD_EXTENSION -DHAVE_SQLITE3_OPEN_V2 -DHAVE_SQLITE3_PREPARE_V2 -DHAVE_TYPE_SQLITE3_INT64 -DHAVE_TYPE_SQLITE3_UINT64 $(DEFS) $(cppflags)
|
88
|
-
CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
|
89
|
-
ldflags = -L. -fstack-protector -rdynamic -Wl,-export-dynamic
|
90
|
-
dldflags = -Wl,--compress-debug-sections=zlib
|
91
|
-
ARCH_FLAG =
|
92
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
93
|
-
LDSHARED = $(CC) -shared
|
94
|
-
LDSHAREDXX = $(CXX) -shared
|
95
|
-
AR = ar
|
96
|
-
EXEEXT =
|
97
|
-
|
98
|
-
RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
|
99
|
-
RUBY_SO_NAME = ruby
|
100
|
-
RUBYW_INSTALL_NAME =
|
101
|
-
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
102
|
-
RUBYW_BASE_NAME = rubyw
|
103
|
-
RUBY_BASE_NAME = ruby
|
104
|
-
|
105
|
-
arch = x86_64-linux
|
106
|
-
sitearch = $(arch)
|
107
|
-
ruby_version = 2.5.0
|
108
|
-
ruby = $(bindir)/$(RUBY_BASE_NAME)
|
109
|
-
RUBY = $(ruby)
|
110
|
-
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
|
111
|
-
|
112
|
-
RM = rm -f
|
113
|
-
RM_RF = $(RUBY) -run -e rm -- -rf
|
114
|
-
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
115
|
-
MAKEDIRS = /bin/mkdir -p
|
116
|
-
INSTALL = /bin/install -c
|
117
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
118
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
119
|
-
COPY = cp
|
120
|
-
TOUCH = exit >
|
121
|
-
|
122
|
-
#### End of system configuration section. ####
|
123
|
-
|
124
|
-
preload =
|
125
|
-
libpath = . $(libdir)
|
126
|
-
LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir)
|
127
|
-
DEFFILE =
|
128
|
-
|
129
|
-
CLEANFILES = mkmf.log
|
130
|
-
DISTCLEANFILES =
|
131
|
-
DISTCLEANDIRS =
|
132
|
-
|
133
|
-
extout =
|
134
|
-
extout_prefix =
|
135
|
-
target_prefix = /sqlite3
|
136
|
-
LOCAL_LIBS =
|
137
|
-
LIBS = $(LIBRUBYARG_SHARED) -lsqlite3 -lpthread -lsqlite3 -lpthread -lgmp -ldl -lcrypt -lm -lc
|
138
|
-
ORIG_SRCS = backup.c database.c exception.c sqlite3.c statement.c
|
139
|
-
SRCS = $(ORIG_SRCS)
|
140
|
-
OBJS = backup.o database.o exception.o sqlite3.o statement.o
|
141
|
-
HDRS = $(srcdir)/exception.h $(srcdir)/sqlite3_ruby.h $(srcdir)/backup.h $(srcdir)/database.h $(srcdir)/statement.h
|
142
|
-
LOCAL_HDRS =
|
143
|
-
TARGET = sqlite3_native
|
144
|
-
TARGET_NAME = sqlite3_native
|
145
|
-
TARGET_ENTRY = Init_$(TARGET_NAME)
|
146
|
-
DLLIB = $(TARGET).so
|
147
|
-
EXTSTATIC =
|
148
|
-
STATIC_LIB =
|
149
|
-
|
150
|
-
TIMESTAMP_DIR = .
|
151
|
-
BINDIR = $(bindir)
|
152
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
153
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
154
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
155
|
-
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
156
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
157
|
-
TARGET_SO_DIR =
|
158
|
-
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
159
|
-
CLEANLIBS = $(TARGET_SO)
|
160
|
-
CLEANOBJS = *.o *.bak
|
161
|
-
|
162
|
-
all: $(DLLIB)
|
163
|
-
static: $(STATIC_LIB)
|
164
|
-
.PHONY: all install static install-so install-rb
|
165
|
-
.PHONY: clean clean-so clean-static clean-rb
|
166
|
-
|
167
|
-
clean-static::
|
168
|
-
clean-rb-default::
|
169
|
-
clean-rb::
|
170
|
-
clean-so::
|
171
|
-
clean: clean-so clean-static clean-rb-default clean-rb
|
172
|
-
-$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
173
|
-
|
174
|
-
distclean-rb-default::
|
175
|
-
distclean-rb::
|
176
|
-
distclean-so::
|
177
|
-
distclean-static::
|
178
|
-
distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
179
|
-
-$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
180
|
-
-$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
181
|
-
-$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
182
|
-
|
183
|
-
realclean: distclean
|
184
|
-
install: install-so install-rb
|
185
|
-
|
186
|
-
install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.-.sqlite3.time
|
187
|
-
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
188
|
-
clean-static::
|
189
|
-
-$(Q)$(RM) $(STATIC_LIB)
|
190
|
-
install-rb: pre-install-rb do-install-rb install-rb-default
|
191
|
-
install-rb-default: pre-install-rb-default do-install-rb-default
|
192
|
-
pre-install-rb: Makefile
|
193
|
-
pre-install-rb-default: Makefile
|
194
|
-
do-install-rb:
|
195
|
-
do-install-rb-default:
|
196
|
-
pre-install-rb-default:
|
197
|
-
@$(NULLCMD)
|
198
|
-
$(TIMESTAMP_DIR)/.sitearchdir.-.sqlite3.time:
|
199
|
-
$(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
|
200
|
-
$(Q) $(TOUCH) $@
|
201
|
-
|
202
|
-
site-install: site-install-so site-install-rb
|
203
|
-
site-install-so: install-so
|
204
|
-
site-install-rb: install-rb
|
205
|
-
|
206
|
-
.SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
|
207
|
-
|
208
|
-
.cc.o:
|
209
|
-
$(ECHO) compiling $(<)
|
210
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
211
|
-
|
212
|
-
.cc.S:
|
213
|
-
$(ECHO) translating $(<)
|
214
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
215
|
-
|
216
|
-
.mm.o:
|
217
|
-
$(ECHO) compiling $(<)
|
218
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
219
|
-
|
220
|
-
.mm.S:
|
221
|
-
$(ECHO) translating $(<)
|
222
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
223
|
-
|
224
|
-
.cxx.o:
|
225
|
-
$(ECHO) compiling $(<)
|
226
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
227
|
-
|
228
|
-
.cxx.S:
|
229
|
-
$(ECHO) translating $(<)
|
230
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
231
|
-
|
232
|
-
.cpp.o:
|
233
|
-
$(ECHO) compiling $(<)
|
234
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
235
|
-
|
236
|
-
.cpp.S:
|
237
|
-
$(ECHO) translating $(<)
|
238
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
239
|
-
|
240
|
-
.c.o:
|
241
|
-
$(ECHO) compiling $(<)
|
242
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
243
|
-
|
244
|
-
.c.S:
|
245
|
-
$(ECHO) translating $(<)
|
246
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
247
|
-
|
248
|
-
.m.o:
|
249
|
-
$(ECHO) compiling $(<)
|
250
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
|
251
|
-
|
252
|
-
.m.S:
|
253
|
-
$(ECHO) translating $(<)
|
254
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
|
255
|
-
|
256
|
-
$(TARGET_SO): $(OBJS) Makefile
|
257
|
-
$(ECHO) linking shared-object sqlite3/$(DLLIB)
|
258
|
-
-$(Q)$(RM) $(@)
|
259
|
-
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
$(OBJS): $(HDRS) $(ruby_headers)
|
@@ -1,168 +0,0 @@
|
|
1
|
-
#ifdef HAVE_SQLITE3_BACKUP_INIT
|
2
|
-
|
3
|
-
#include <sqlite3_ruby.h>
|
4
|
-
|
5
|
-
#define REQUIRE_OPEN_BACKUP(_ctxt) \
|
6
|
-
if(!_ctxt->p) \
|
7
|
-
rb_raise(rb_path2class("SQLite3::Exception"), "cannot use a closed backup");
|
8
|
-
|
9
|
-
VALUE cSqlite3Backup;
|
10
|
-
|
11
|
-
static void deallocate(void * ctx)
|
12
|
-
{
|
13
|
-
sqlite3BackupRubyPtr c = (sqlite3BackupRubyPtr)ctx;
|
14
|
-
xfree(c);
|
15
|
-
}
|
16
|
-
|
17
|
-
static VALUE allocate(VALUE klass)
|
18
|
-
{
|
19
|
-
sqlite3BackupRubyPtr ctx = xcalloc((size_t)1, sizeof(sqlite3BackupRuby));
|
20
|
-
return Data_Wrap_Struct(klass, NULL, deallocate, ctx);
|
21
|
-
}
|
22
|
-
|
23
|
-
/* call-seq: SQLite3::Backup.new(dstdb, dstname, srcdb, srcname)
|
24
|
-
*
|
25
|
-
* Initialize backup the backup.
|
26
|
-
*
|
27
|
-
* dstdb:
|
28
|
-
* the destination SQLite3::Database object.
|
29
|
-
* dstname:
|
30
|
-
* the destination's database name.
|
31
|
-
* srcdb:
|
32
|
-
* the source SQLite3::Database object.
|
33
|
-
* srcname:
|
34
|
-
* the source's database name.
|
35
|
-
*
|
36
|
-
* The database name is "main", "temp", or the name specified in an
|
37
|
-
* ATTACH statement.
|
38
|
-
*
|
39
|
-
* This feature requires SQLite 3.6.11 or later.
|
40
|
-
*
|
41
|
-
* require 'sqlite3'
|
42
|
-
* sdb = SQLite3::Database.new('src.sqlite3')
|
43
|
-
*
|
44
|
-
* ddb = SQLite3::Database.new(':memory:')
|
45
|
-
* b = SQLite3::Backup.new(ddb, 'main', sdb, 'main')
|
46
|
-
* p [b.remaining, b.pagecount] # invalid value; for example [0, 0]
|
47
|
-
* begin
|
48
|
-
* p b.step(1) #=> OK or DONE
|
49
|
-
* p [b.remaining, b.pagecount]
|
50
|
-
* end while b.remaining > 0
|
51
|
-
* b.finish
|
52
|
-
*
|
53
|
-
* ddb = SQLite3::Database.new(':memory:')
|
54
|
-
* b = SQLite3::Backup.new(ddb, 'main', sdb, 'main')
|
55
|
-
* b.step(-1) #=> DONE
|
56
|
-
* b.finish
|
57
|
-
*
|
58
|
-
*/
|
59
|
-
static VALUE initialize(VALUE self, VALUE dstdb, VALUE dstname, VALUE srcdb, VALUE srcname)
|
60
|
-
{
|
61
|
-
sqlite3BackupRubyPtr ctx;
|
62
|
-
sqlite3RubyPtr ddb_ctx, sdb_ctx;
|
63
|
-
sqlite3_backup *pBackup;
|
64
|
-
|
65
|
-
Data_Get_Struct(self, sqlite3BackupRuby, ctx);
|
66
|
-
Data_Get_Struct(dstdb, sqlite3Ruby, ddb_ctx);
|
67
|
-
Data_Get_Struct(srcdb, sqlite3Ruby, sdb_ctx);
|
68
|
-
|
69
|
-
if(!sdb_ctx->db)
|
70
|
-
rb_raise(rb_eArgError, "cannot backup from a closed database");
|
71
|
-
if(!ddb_ctx->db)
|
72
|
-
rb_raise(rb_eArgError, "cannot backup to a closed database");
|
73
|
-
|
74
|
-
pBackup = sqlite3_backup_init(ddb_ctx->db, StringValuePtr(dstname),
|
75
|
-
sdb_ctx->db, StringValuePtr(srcname));
|
76
|
-
if( pBackup ){
|
77
|
-
ctx->p = pBackup;
|
78
|
-
}
|
79
|
-
else {
|
80
|
-
CHECK(ddb_ctx->db, sqlite3_errcode(ddb_ctx->db));
|
81
|
-
}
|
82
|
-
|
83
|
-
return self;
|
84
|
-
}
|
85
|
-
|
86
|
-
/* call-seq: SQLite3::Backup#step(nPage)
|
87
|
-
*
|
88
|
-
* Copy database pages up to +nPage+.
|
89
|
-
* If negative, copy all remaining source pages.
|
90
|
-
*
|
91
|
-
* If all pages are copied, it returns SQLite3::Constants::ErrorCode::DONE.
|
92
|
-
* When coping is not done, it returns SQLite3::Constants::ErrorCode::OK.
|
93
|
-
* When some errors occur, it returns the error code.
|
94
|
-
*/
|
95
|
-
static VALUE step(VALUE self, VALUE nPage)
|
96
|
-
{
|
97
|
-
sqlite3BackupRubyPtr ctx;
|
98
|
-
int status;
|
99
|
-
|
100
|
-
Data_Get_Struct(self, sqlite3BackupRuby, ctx);
|
101
|
-
REQUIRE_OPEN_BACKUP(ctx);
|
102
|
-
status = sqlite3_backup_step(ctx->p, NUM2INT(nPage));
|
103
|
-
return INT2NUM(status);
|
104
|
-
}
|
105
|
-
|
106
|
-
/* call-seq: SQLite3::Backup#finish
|
107
|
-
*
|
108
|
-
* Destroy the backup object.
|
109
|
-
*/
|
110
|
-
static VALUE finish(VALUE self)
|
111
|
-
{
|
112
|
-
sqlite3BackupRubyPtr ctx;
|
113
|
-
|
114
|
-
Data_Get_Struct(self, sqlite3BackupRuby, ctx);
|
115
|
-
REQUIRE_OPEN_BACKUP(ctx);
|
116
|
-
(void)sqlite3_backup_finish(ctx->p);
|
117
|
-
ctx->p = NULL;
|
118
|
-
return Qnil;
|
119
|
-
}
|
120
|
-
|
121
|
-
/* call-seq: SQLite3::Backup#remaining
|
122
|
-
*
|
123
|
-
* Returns the number of pages still to be backed up.
|
124
|
-
*
|
125
|
-
* Note that the value is only updated after step() is called,
|
126
|
-
* so before calling step() returned value is invalid.
|
127
|
-
*/
|
128
|
-
static VALUE remaining(VALUE self)
|
129
|
-
{
|
130
|
-
sqlite3BackupRubyPtr ctx;
|
131
|
-
|
132
|
-
Data_Get_Struct(self, sqlite3BackupRuby, ctx);
|
133
|
-
REQUIRE_OPEN_BACKUP(ctx);
|
134
|
-
return INT2NUM(sqlite3_backup_remaining(ctx->p));
|
135
|
-
}
|
136
|
-
|
137
|
-
/* call-seq: SQLite3::Backup#pagecount
|
138
|
-
*
|
139
|
-
* Returns the total number of pages in the source database file.
|
140
|
-
*
|
141
|
-
* Note that the value is only updated after step() is called,
|
142
|
-
* so before calling step() returned value is invalid.
|
143
|
-
*/
|
144
|
-
static VALUE pagecount(VALUE self)
|
145
|
-
{
|
146
|
-
sqlite3BackupRubyPtr ctx;
|
147
|
-
|
148
|
-
Data_Get_Struct(self, sqlite3BackupRuby, ctx);
|
149
|
-
REQUIRE_OPEN_BACKUP(ctx);
|
150
|
-
return INT2NUM(sqlite3_backup_pagecount(ctx->p));
|
151
|
-
}
|
152
|
-
|
153
|
-
void init_sqlite3_backup()
|
154
|
-
{
|
155
|
-
#if 0
|
156
|
-
VALUE mSqlite3 = rb_define_module("SQLite3");
|
157
|
-
#endif
|
158
|
-
cSqlite3Backup = rb_define_class_under(mSqlite3, "Backup", rb_cObject);
|
159
|
-
|
160
|
-
rb_define_alloc_func(cSqlite3Backup, allocate);
|
161
|
-
rb_define_method(cSqlite3Backup, "initialize", initialize, 4);
|
162
|
-
rb_define_method(cSqlite3Backup, "step", step, 1);
|
163
|
-
rb_define_method(cSqlite3Backup, "finish", finish, 0);
|
164
|
-
rb_define_method(cSqlite3Backup, "remaining", remaining, 0);
|
165
|
-
rb_define_method(cSqlite3Backup, "pagecount", pagecount, 0);
|
166
|
-
}
|
167
|
-
|
168
|
-
#endif
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#if !defined(SQLITE3_BACKUP_RUBY) && defined(HAVE_SQLITE3_BACKUP_INIT)
|
2
|
-
#define SQLITE3_BACKUP_RUBY
|
3
|
-
|
4
|
-
#include <sqlite3_ruby.h>
|
5
|
-
|
6
|
-
struct _sqlite3BackupRuby {
|
7
|
-
sqlite3_backup *p;
|
8
|
-
};
|
9
|
-
|
10
|
-
typedef struct _sqlite3BackupRuby sqlite3BackupRuby;
|
11
|
-
typedef sqlite3BackupRuby * sqlite3BackupRubyPtr;
|
12
|
-
|
13
|
-
void init_sqlite3_backup();
|
14
|
-
|
15
|
-
#endif
|
Binary file
|