rroonga 2.0.0 → 2.0.1

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.
Files changed (54) hide show
  1. data/Rakefile +3 -2
  2. data/ext/groonga/rb-grn-expression.c +4 -3
  3. data/ext/groonga/rb-grn-object.c +13 -0
  4. data/ext/groonga/rb-grn-snippet.c +32 -126
  5. data/ext/groonga/rb-grn.h +14 -11
  6. data/rroonga-build.rb +1 -1
  7. metadata +98 -250
  8. data/README.textile +0 -73
  9. data/TODO +0 -0
  10. data/bug.rb +0 -36
  11. data/crash.rb +0 -17
  12. data/ext/groonga/Makefile +0 -260
  13. data/ext/groonga/groonga.so +0 -0
  14. data/ext/groonga/rb-grn-accessor.o +0 -0
  15. data/ext/groonga/rb-grn-array-cursor.o +0 -0
  16. data/ext/groonga/rb-grn-array.o +0 -0
  17. data/ext/groonga/rb-grn-column.o +0 -0
  18. data/ext/groonga/rb-grn-context.o +0 -0
  19. data/ext/groonga/rb-grn-database.o +0 -0
  20. data/ext/groonga/rb-grn-double-array-trie-cursor.o +0 -0
  21. data/ext/groonga/rb-grn-double-array-trie.o +0 -0
  22. data/ext/groonga/rb-grn-encoding-support.o +0 -0
  23. data/ext/groonga/rb-grn-encoding.o +0 -0
  24. data/ext/groonga/rb-grn-exception.o +0 -0
  25. data/ext/groonga/rb-grn-expression-builder.o +0 -0
  26. data/ext/groonga/rb-grn-expression.o +0 -0
  27. data/ext/groonga/rb-grn-fix-size-column.o +0 -0
  28. data/ext/groonga/rb-grn-hash-cursor.o +0 -0
  29. data/ext/groonga/rb-grn-hash.o +0 -0
  30. data/ext/groonga/rb-grn-index-column.o +0 -0
  31. data/ext/groonga/rb-grn-index-cursor.o +0 -0
  32. data/ext/groonga/rb-grn-logger.o +0 -0
  33. data/ext/groonga/rb-grn-object.o +0 -0
  34. data/ext/groonga/rb-grn-operator.o +0 -0
  35. data/ext/groonga/rb-grn-patricia-trie-cursor.o +0 -0
  36. data/ext/groonga/rb-grn-patricia-trie.o +0 -0
  37. data/ext/groonga/rb-grn-plugin.o +0 -0
  38. data/ext/groonga/rb-grn-posting.o +0 -0
  39. data/ext/groonga/rb-grn-procedure.o +0 -0
  40. data/ext/groonga/rb-grn-record.o +0 -0
  41. data/ext/groonga/rb-grn-snippet.o +0 -0
  42. data/ext/groonga/rb-grn-table-cursor-key-support.o +0 -0
  43. data/ext/groonga/rb-grn-table-cursor.o +0 -0
  44. data/ext/groonga/rb-grn-table-key-support.o +0 -0
  45. data/ext/groonga/rb-grn-table.o +0 -0
  46. data/ext/groonga/rb-grn-type.o +0 -0
  47. data/ext/groonga/rb-grn-utils.o +0 -0
  48. data/ext/groonga/rb-grn-variable-size-column.o +0 -0
  49. data/ext/groonga/rb-grn-variable.o +0 -0
  50. data/ext/groonga/rb-grn-view-accessor.o +0 -0
  51. data/ext/groonga/rb-grn-view-cursor.o +0 -0
  52. data/ext/groonga/rb-grn-view-record.o +0 -0
  53. data/ext/groonga/rb-grn-view.o +0 -0
  54. data/ext/groonga/rb-groonga.o +0 -0
data/ext/groonga/Makefile DELETED
@@ -1,260 +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
- n=$(NULLCMD)
9
- ECHO1 = $(V:1=@$n)
10
- ECHO = $(ECHO1:0=@echo)
11
-
12
- #### Start of system configuration section. ####
13
-
14
- srcdir = /home/kou/work/ruby/rroonga/ext/groonga
15
- topdir = /usr/include/ruby-1.9.1
16
- hdrdir = /usr/include/ruby-1.9.1
17
- arch_hdrdir = /usr/include/ruby-1.9.1/$(arch)
18
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = $(DESTDIR)/usr
20
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
21
- exec_prefix = $(prefix)
22
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
23
- sitehdrdir = $(rubyhdrdir)/site_ruby
24
- rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
25
- vendordir = $(DESTDIR)/usr/lib/ruby/vendor_ruby
26
- sitedir = $(DESTDIR)/usr/local/lib/site_ruby
27
- ridir = $(datarootdir)/$(RI_BASE_NAME)
28
- mandir = $(prefix)/share/man
29
- localedir = $(datarootdir)/locale
30
- libdir = $(exec_prefix)/lib
31
- psdir = $(docdir)
32
- pdfdir = $(docdir)
33
- dvidir = $(docdir)
34
- htmldir = $(docdir)
35
- infodir = $(prefix)/share/info
36
- docdir = $(datarootdir)/doc/$(PACKAGE)
37
- oldincludedir = $(DESTDIR)/usr/include
38
- includedir = $(prefix)/include
39
- localstatedir = $(DESTDIR)/var
40
- sharedstatedir = $(prefix)/com
41
- sysconfdir = $(DESTDIR)/etc
42
- datadir = $(datarootdir)
43
- datarootdir = $(prefix)/share
44
- libexecdir = $(prefix)/lib/ruby1.9.1
45
- sbindir = $(exec_prefix)/sbin
46
- bindir = $(exec_prefix)/bin
47
- rubylibdir = $(rubylibprefix)/$(ruby_version)
48
- archdir = $(rubylibdir)/$(arch)
49
- sitelibdir = $(sitedir)/$(ruby_version)
50
- sitearchdir = $(sitelibdir)/$(sitearch)
51
- vendorlibdir = $(vendordir)/$(ruby_version)
52
- vendorarchdir = $(vendorlibdir)/$(sitearch)
53
-
54
- NULLCMD = :
55
-
56
- CC = gcc
57
- CXX = g++
58
- LIBRUBY = $(LIBRUBY_SO)
59
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
60
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
61
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
62
- OUTFLAG = -o
63
- COUTFLAG = -o
64
-
65
- RUBY_EXTCONF_H =
66
- cflags = $(optflags) $(debugflags) $(warnflags)
67
- optflags = -O3
68
- debugflags = -ggdb
69
- warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
70
- CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -Wall -I/tmp/local/include/groonga
71
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
72
- DEFS =
73
- CPPFLAGS = -DRB_GRN_COMPILATION -DGRN_MAJOR_VERSION=1 -DGRN_MINOR_VERSION=3 -DGRN_MICRO_VERSION=0 -DHAVE_RB_ERRINFO -DHAVE_TYPE_ENUM_RUBY_VALUE_TYPE $(DEFS) $(cppflags)
74
- CXXFLAGS = $(CFLAGS) -fno-strict-aliasing -g
75
- ldflags = -L. -rdynamic -Wl,-export-dynamic -L/tmp/local/lib
76
- dldflags =
77
- ARCH_FLAG =
78
- DLDFLAGS = $(ldflags) $(dldflags)
79
- LDSHARED = $(CC) -shared
80
- LDSHAREDXX = $(CXX) -shared
81
- AR = ar
82
- EXEEXT =
83
-
84
- RUBY_BASE_NAME = ruby
85
- RUBY_INSTALL_NAME = ruby1.9.1
86
- RUBY_SO_NAME = ruby-1.9.1
87
- arch = x86_64-linux
88
- sitearch = $(arch)
89
- ruby_version = 1.9.1
90
- ruby = /usr/bin/ruby1.9.1
91
- RUBY = $(ruby)
92
- RM = rm -f
93
- RM_RF = $(RUBY) -run -e rm -- -rf
94
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
95
- MAKEDIRS = /bin/mkdir -p
96
- INSTALL = /usr/bin/install -c
97
- INSTALL_PROG = $(INSTALL) -m 0755
98
- INSTALL_DATA = $(INSTALL) -m 644
99
- COPY = cp
100
-
101
- #### End of system configuration section. ####
102
-
103
- preload =
104
-
105
- libpath = . $(libdir)
106
- LIBPATH = -L. -L$(libdir)
107
- DEFFILE =
108
-
109
- CLEANFILES = mkmf.log
110
- DISTCLEANFILES =
111
- DISTCLEANDIRS =
112
-
113
- extout =
114
- extout_prefix =
115
- target_prefix =
116
- LOCAL_LIBS =
117
- LIBS = $(LIBRUBYARG_SHARED) -lgroonga -lpthread -lrt -ldl -lcrypt -lm -lc
118
- SRCS = rb-grn-procedure.c rb-grn-column.c rb-grn-index-column.c rb-grn-encoding-support.c rb-grn-variable.c rb-grn-table.c rb-grn-hash-cursor.c rb-grn-table-cursor-key-support.c rb-grn-object.c rb-grn-double-array-trie.c rb-grn-view-accessor.c rb-grn-table-key-support.c rb-grn-array.c rb-grn-patricia-trie.c rb-grn-double-array-trie-cursor.c rb-grn-utils.c rb-grn-record.c rb-groonga.c rb-grn-exception.c rb-grn-variable-size-column.c rb-grn-encoding.c rb-grn-expression-builder.c rb-grn-operator.c rb-grn-snippet.c rb-grn-array-cursor.c rb-grn-type.c rb-grn-table-cursor.c rb-grn-fix-size-column.c rb-grn-view-cursor.c rb-grn-logger.c rb-grn-plugin.c rb-grn-database.c rb-grn-view-record.c rb-grn-patricia-trie-cursor.c rb-grn-index-cursor.c rb-grn-view.c rb-grn-accessor.c rb-grn-context.c rb-grn-posting.c rb-grn-expression.c rb-grn-hash.c
119
- OBJS = rb-grn-procedure.o rb-grn-column.o rb-grn-index-column.o rb-grn-encoding-support.o rb-grn-variable.o rb-grn-table.o rb-grn-hash-cursor.o rb-grn-table-cursor-key-support.o rb-grn-object.o rb-grn-double-array-trie.o rb-grn-view-accessor.o rb-grn-table-key-support.o rb-grn-array.o rb-grn-patricia-trie.o rb-grn-double-array-trie-cursor.o rb-grn-utils.o rb-grn-record.o rb-groonga.o rb-grn-exception.o rb-grn-variable-size-column.o rb-grn-encoding.o rb-grn-expression-builder.o rb-grn-operator.o rb-grn-snippet.o rb-grn-array-cursor.o rb-grn-type.o rb-grn-table-cursor.o rb-grn-fix-size-column.o rb-grn-view-cursor.o rb-grn-logger.o rb-grn-plugin.o rb-grn-database.o rb-grn-view-record.o rb-grn-patricia-trie-cursor.o rb-grn-index-cursor.o rb-grn-view.o rb-grn-accessor.o rb-grn-context.o rb-grn-posting.o rb-grn-expression.o rb-grn-hash.o
120
- TARGET = groonga
121
- DLLIB = $(TARGET).so
122
- EXTSTATIC =
123
- STATIC_LIB =
124
-
125
- BINDIR = $(bindir)
126
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
127
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
128
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
129
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
130
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
131
-
132
- TARGET_SO = $(DLLIB)
133
- CLEANLIBS = $(TARGET).so
134
- CLEANOBJS = *.o *.bak
135
-
136
- all: $(DLLIB)
137
- static: $(STATIC_LIB)
138
- .PHONY: all install static install-so install-rb
139
- .PHONY: clean clean-so clean-rb
140
-
141
- clean-rb-default::
142
- clean-rb::
143
- clean-so::
144
- clean: clean-so clean-rb-default clean-rb
145
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
146
-
147
- distclean-rb-default::
148
- distclean-rb::
149
- distclean-so::
150
- distclean: clean distclean-so distclean-rb-default distclean-rb
151
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
152
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
153
- @-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
154
-
155
- realclean: distclean
156
- install: install-so install-rb
157
-
158
- install-so: $(RUBYARCHDIR)
159
- install-so: $(RUBYARCHDIR)/$(DLLIB)
160
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
161
- @-$(MAKEDIRS) $(@D)
162
- $(INSTALL_PROG) $(DLLIB) $(@D)
163
- install-rb: pre-install-rb install-rb-default
164
- install-rb-default: pre-install-rb-default
165
- pre-install-rb: Makefile
166
- pre-install-rb-default: Makefile
167
- pre-install-rb-default:
168
- $(ECHO) installing default groonga libraries
169
- pre-install-rb: $(RUBYLIBDIR)/groonga
170
- install-rb: $(RUBYLIBDIR)/groonga/schema.rb $(RUBYLIBDIR)/groonga
171
- $(RUBYLIBDIR)/groonga/schema.rb: $(srcdir)/../../lib/groonga/schema.rb
172
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/schema.rb $(@D)
173
- install-rb: $(RUBYLIBDIR)/groonga/expression-builder-19.rb $(RUBYLIBDIR)/groonga
174
- $(RUBYLIBDIR)/groonga/expression-builder-19.rb: $(srcdir)/../../lib/groonga/expression-builder-19.rb
175
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/expression-builder-19.rb $(@D)
176
- install-rb: $(RUBYLIBDIR)/groonga/pagination.rb $(RUBYLIBDIR)/groonga
177
- $(RUBYLIBDIR)/groonga/pagination.rb: $(srcdir)/../../lib/groonga/pagination.rb
178
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/pagination.rb $(@D)
179
- install-rb: $(RUBYLIBDIR)/groonga/view-record.rb $(RUBYLIBDIR)/groonga
180
- $(RUBYLIBDIR)/groonga/view-record.rb: $(srcdir)/../../lib/groonga/view-record.rb
181
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/view-record.rb $(@D)
182
- install-rb: $(RUBYLIBDIR)/groonga/query-log.rb $(RUBYLIBDIR)/groonga
183
- $(RUBYLIBDIR)/groonga/query-log.rb: $(srcdir)/../../lib/groonga/query-log.rb
184
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/query-log.rb $(@D)
185
- install-rb: $(RUBYLIBDIR)/groonga/patricia-trie.rb $(RUBYLIBDIR)/groonga
186
- $(RUBYLIBDIR)/groonga/patricia-trie.rb: $(srcdir)/../../lib/groonga/patricia-trie.rb
187
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/patricia-trie.rb $(@D)
188
- install-rb: $(RUBYLIBDIR)/groonga/grntest-log.rb $(RUBYLIBDIR)/groonga
189
- $(RUBYLIBDIR)/groonga/grntest-log.rb: $(srcdir)/../../lib/groonga/grntest-log.rb
190
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/grntest-log.rb $(@D)
191
- install-rb: $(RUBYLIBDIR)/groonga/dumper.rb $(RUBYLIBDIR)/groonga
192
- $(RUBYLIBDIR)/groonga/dumper.rb: $(srcdir)/../../lib/groonga/dumper.rb
193
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/dumper.rb $(@D)
194
- install-rb: $(RUBYLIBDIR)/groonga/posting.rb $(RUBYLIBDIR)/groonga
195
- $(RUBYLIBDIR)/groonga/posting.rb: $(srcdir)/../../lib/groonga/posting.rb
196
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/posting.rb $(@D)
197
- install-rb: $(RUBYLIBDIR)/groonga/context.rb $(RUBYLIBDIR)/groonga
198
- $(RUBYLIBDIR)/groonga/context.rb: $(srcdir)/../../lib/groonga/context.rb
199
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/context.rb $(@D)
200
- install-rb: $(RUBYLIBDIR)/groonga/record.rb $(RUBYLIBDIR)/groonga
201
- $(RUBYLIBDIR)/groonga/record.rb: $(srcdir)/../../lib/groonga/record.rb
202
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/record.rb $(@D)
203
- install-rb: $(RUBYLIBDIR)/groonga/expression-builder.rb $(RUBYLIBDIR)/groonga
204
- $(RUBYLIBDIR)/groonga/expression-builder.rb: $(srcdir)/../../lib/groonga/expression-builder.rb
205
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga/expression-builder.rb $(@D)
206
- pre-install-rb: $(RUBYLIBDIR)
207
- install-rb: $(RUBYLIBDIR)/groonga.rb $(RUBYLIBDIR)
208
- $(RUBYLIBDIR)/groonga.rb: $(srcdir)/../../lib/groonga.rb
209
- $(Q) $(INSTALL_DATA) $(srcdir)/../../lib/groonga.rb $(@D)
210
- pre-install-rb:
211
- $(ECHO) installing groonga libraries
212
- $(RUBYARCHDIR):
213
- $(Q) $(MAKEDIRS) $@
214
- $(RUBYLIBDIR)/groonga:
215
- $(Q) $(MAKEDIRS) $@
216
- $(RUBYLIBDIR):
217
- $(Q) $(MAKEDIRS) $@
218
-
219
- site-install: site-install-so site-install-rb
220
- site-install-so: install-so
221
- site-install-rb: install-rb
222
-
223
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
224
-
225
- .cc.o:
226
- $(ECHO) compiling $(<)
227
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
228
-
229
- .mm.o:
230
- $(ECHO) compiling $(<)
231
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
232
-
233
- .cxx.o:
234
- $(ECHO) compiling $(<)
235
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
236
-
237
- .cpp.o:
238
- $(ECHO) compiling $(<)
239
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
240
-
241
- .C.o:
242
- $(ECHO) compiling $(<)
243
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
244
-
245
- .c.o:
246
- $(ECHO) compiling $(<)
247
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
248
-
249
- .m.o:
250
- $(ECHO) compiling $(<)
251
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
252
-
253
- $(DLLIB): $(OBJS) Makefile
254
- $(ECHO) linking shared-object $(DLLIB)
255
- @-$(RM) $(@)
256
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
257
-
258
-
259
-
260
- $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file