Permalink
Browse files

Gemify.

  • Loading branch information...
1 parent 6aa8054 commit dbfa77b4b97162dc63e1183dafb213f4c5a07a2e @knu committed Dec 26, 2011
Showing with 242 additions and 163 deletions.
  1. +5 −0 .document
  2. +54 −11 .gitignore
  3. +4 −0 Changes
  4. +13 −0 Gemfile
  5. +21 −0 Gemfile.lock
  6. +3 −0 LICENSE.txt
  7. +0 −69 README.en
  8. +76 −0 README.md
  9. +65 −0 Rakefile
  10. +1 −0 VERSION
  11. 0 {src → ext/bdb}/bdb.c
  12. 0 {src → ext/bdb}/bdb.h
  13. 0 {src → ext/bdb}/common.c
  14. 0 {src → ext/bdb}/cursor.c
  15. 0 {src → ext/bdb}/delegator.c
  16. 0 {src → ext/bdb}/env.c
  17. 0 {src → ext/bdb}/extconf.rb
  18. 0 {src → ext/bdb}/features.rb
  19. 0 {src → ext/bdb}/lock.c
  20. 0 {src → ext/bdb}/log.c
  21. 0 {src → ext/bdb}/recnum.c
  22. 0 {src → ext/bdb}/sequence.c
  23. 0 {src → ext/bdb}/transaction.c
  24. 0 { → ext}/bdbxml1/Changes
  25. 0 { → ext}/bdbxml1/README.en
  26. 0 { → ext}/bdbxml1/b.rb
  27. 0 { → ext}/bdbxml1/bdbxml.cc
  28. 0 { → ext}/bdbxml1/bdbxml.h
  29. 0 { → ext}/bdbxml1/bdbxml.rd
  30. 0 { → ext}/bdbxml1/docs/bdbxml.rb
  31. 0 { → ext}/bdbxml1/docs/container.rb
  32. 0 { → ext}/bdbxml1/docs/container.rd
  33. 0 { → ext}/bdbxml1/docs/context.rb
  34. 0 { → ext}/bdbxml1/docs/context.rd
  35. 0 { → ext}/bdbxml1/docs/document.rb
  36. 0 { → ext}/bdbxml1/docs/document.rd
  37. 0 { → ext}/bdbxml1/docs/index.rb
  38. 0 { → ext}/bdbxml1/docs/index.rd
  39. 0 { → ext}/bdbxml1/docs/modify.rb
  40. 0 { → ext}/bdbxml1/docs/modify.rd
  41. 0 { → ext}/bdbxml1/docs/results.rb
  42. 0 { → ext}/bdbxml1/docs/results.rd
  43. 0 { → ext}/bdbxml1/examples/dbxml/README
  44. 0 { → ext}/bdbxml1/examples/dbxml/a.sh
  45. 0 { → ext}/bdbxml1/examples/dbxml/add_index.rb
  46. 0 { → ext}/bdbxml1/examples/dbxml/build_db.rb
  47. 0 { → ext}/bdbxml1/examples/dbxml/context.rb
  48. 0 { → ext}/bdbxml1/examples/dbxml/delete.rb
  49. 0 { → ext}/bdbxml1/examples/dbxml/delete_index.rb
  50. 0 { → ext}/bdbxml1/examples/dbxml/document.rb
  51. 0 { → ext}/bdbxml1/examples/dbxml/load.rb
  52. 0 { → ext}/bdbxml1/examples/dbxml/loadex.rb
  53. 0 { → ext}/bdbxml1/examples/dbxml/metadata.rb
  54. 0 { → ext}/bdbxml1/examples/dbxml/names.rb
  55. 0 { → ext}/bdbxml1/examples/dbxml/query.rb
  56. 0 { → ext}/bdbxml1/examples/dbxml/replace_index.rb
  57. 0 { → ext}/bdbxml1/examples/dbxml/retrieve_db.rb
  58. 0 { → ext}/bdbxml1/examples/dbxml/update.rb
  59. 0 { → ext}/bdbxml1/examples/index.rb
  60. 0 { → ext}/bdbxml1/examples/transaction.rb
  61. 0 { → ext}/bdbxml1/extconf.rb
  62. 0 {bdbxml2 → ext/bdbxml1}/glossary/README
  63. 0 {bdbxml2 → ext/bdbxml1}/glossary/abstract_data_type
  64. 0 {bdbxml2 → ext/bdbxml1}/glossary/associative_array
  65. 0 { → ext}/bdbxml1/glossary/awk
  66. 0 {bdbxml2 → ext/bdbxml1}/glossary/big_endian
  67. 0 {bdbxml2 → ext/bdbxml1}/glossary/block
  68. 0 { → ext}/bdbxml1/glossary/bug
  69. 0 {bdbxml2 → ext/bdbxml1}/glossary/built-in_class
  70. 0 {bdbxml2 → ext/bdbxml1}/glossary/byte_order
  71. 0 { → ext}/bdbxml1/glossary/class
  72. 0 {bdbxml2 → ext/bdbxml1}/glossary/class_method
  73. 0 {bdbxml2 → ext/bdbxml1}/glossary/coerce
  74. 0 {bdbxml2 → ext/bdbxml1}/glossary/constant
  75. 0 {bdbxml2 → ext/bdbxml1}/glossary/data
  76. 0 {bdbxml2 → ext/bdbxml1}/glossary/defined?
  77. 0 {bdbxml2 → ext/bdbxml1}/glossary/destructive
  78. 0 {bdbxml2 → ext/bdbxml1}/glossary/dictionary
  79. 0 {bdbxml2 → ext/bdbxml1}/glossary/document
  80. 0 {bdbxml2 → ext/bdbxml1}/glossary/dynamic_binding
  81. 0 {bdbxml2 → ext/bdbxml1}/glossary/eiffel
  82. 0 {bdbxml2 → ext/bdbxml1}/glossary/encapsulation
  83. 0 {bdbxml2 → ext/bdbxml1}/glossary/end
  84. 0 {bdbxml2 → ext/bdbxml1}/glossary/env
  85. 0 {bdbxml2 → ext/bdbxml1}/glossary/environment_variable
  86. 0 {bdbxml2 → ext/bdbxml1}/glossary/exception
  87. 0 {bdbxml2 → ext/bdbxml1}/glossary/faq
  88. 0 {bdbxml2 → ext/bdbxml1}/glossary/function
  89. 0 {bdbxml2 → ext/bdbxml1}/glossary/global_variable
  90. 0 {bdbxml2 → ext/bdbxml1}/glossary/goto
  91. 0 {bdbxml2 → ext/bdbxml1}/glossary/hash
  92. 0 {bdbxml2 → ext/bdbxml1}/glossary/immediate_value
  93. 0 {bdbxml2 → ext/bdbxml1}/glossary/inheritance
  94. 0 {bdbxml2 → ext/bdbxml1}/glossary/initialize
  95. 0 {bdbxml2 → ext/bdbxml1}/glossary/instance
  96. 0 {bdbxml2 → ext/bdbxml1}/glossary/instance_variable
  97. 0 {bdbxml2 → ext/bdbxml1}/glossary/iterator
  98. 0 {bdbxml2 → ext/bdbxml1}/glossary/japanese_(language)
  99. 0 {bdbxml2 → ext/bdbxml1}/glossary/little_endian
  100. 0 {bdbxml2 → ext/bdbxml1}/glossary/local_variable
  101. 0 {bdbxml2 → ext/bdbxml1}/glossary/main
  102. 0 {bdbxml2 → ext/bdbxml1}/glossary/matchingdata
  103. 0 {bdbxml2 → ext/bdbxml1}/glossary/matz
  104. 0 {bdbxml2 → ext/bdbxml1}/glossary/method
  105. 0 {bdbxml2 → ext/bdbxml1}/glossary/mix-in
  106. 0 {bdbxml2 → ext/bdbxml1}/glossary/module_function
  107. 0 {bdbxml2 → ext/bdbxml1}/glossary/non-local_exit
  108. 0 {bdbxml2 → ext/bdbxml1}/glossary/object
  109. 0 {bdbxml2 → ext/bdbxml1}/glossary/object-oriented
  110. 0 {bdbxml2 → ext/bdbxml1}/glossary/object-oriented_analysis
  111. 0 {bdbxml2 → ext/bdbxml1}/glossary/object-oriented_design
  112. 0 {bdbxml2 → ext/bdbxml1}/glossary/object-oriented_programming
  113. 0 {bdbxml2 → ext/bdbxml1}/glossary/override
  114. 0 {bdbxml2 → ext/bdbxml1}/glossary/paradigm
  115. 0 {bdbxml2 → ext/bdbxml1}/glossary/perl
  116. 0 {bdbxml2 → ext/bdbxml1}/glossary/polymorphism
  117. 0 {bdbxml2 → ext/bdbxml1}/glossary/python
  118. 0 {bdbxml2 → ext/bdbxml1}/glossary/receiver
  119. 0 {bdbxml2 → ext/bdbxml1}/glossary/redefinition
  120. 0 {bdbxml2 → ext/bdbxml1}/glossary/reference
  121. 0 {bdbxml2 → ext/bdbxml1}/glossary/ruby
  122. 0 {bdbxml2 → ext/bdbxml1}/glossary/sather
  123. 0 {bdbxml2 → ext/bdbxml1}/glossary/script
  124. 0 {bdbxml2 → ext/bdbxml1}/glossary/scripting_language
  125. 0 {bdbxml2 → ext/bdbxml1}/glossary/self
  126. 0 {bdbxml2 → ext/bdbxml1}/glossary/singleton_class
  127. 0 {bdbxml2 → ext/bdbxml1}/glossary/singleton_method
  128. 0 {bdbxml2 → ext/bdbxml1}/glossary/smalltalk
  129. 0 {bdbxml2 → ext/bdbxml1}/glossary/sort
  130. 0 {bdbxml2 → ext/bdbxml1}/glossary/super
  131. 0 {bdbxml2 → ext/bdbxml1}/glossary/thread
  132. 0 {bdbxml2 → ext/bdbxml1}/glossary/undef
  133. 0 {bdbxml2 → ext/bdbxml1}/glossary/variable
  134. 0 { → ext}/bdbxml1/myconfig
  135. 0 {bdbxml2 → ext/bdbxml1}/tests/data.e
  136. 0 {bdbxml2 → ext/bdbxml1}/tests/data.t
  137. 0 {bdbxml2 → ext/bdbxml1}/tests/runit_.rb
  138. 0 { → ext}/bdbxml1/tests/xml.rb
  139. 0 { → ext}/bdbxml2/Changes
  140. 0 { → ext}/bdbxml2/README.en
  141. 0 { → ext}/bdbxml2/bdbxml.cc
  142. 0 { → ext}/bdbxml2/bdbxml.h
  143. 0 { → ext}/bdbxml2/bdbxml.rd
  144. 0 { → ext}/bdbxml2/docs/bdbxml.rb
  145. 0 { → ext}/bdbxml2/docs/container.rb
  146. 0 { → ext}/bdbxml2/docs/container.rd
  147. 0 { → ext}/bdbxml2/docs/context.rb
  148. 0 { → ext}/bdbxml2/docs/context.rd
  149. 0 { → ext}/bdbxml2/docs/document.rb
  150. 0 { → ext}/bdbxml2/docs/document.rd
  151. 0 { → ext}/bdbxml2/docs/event_reader.rb
  152. 0 { → ext}/bdbxml2/docs/event_reader.rd
  153. 0 { → ext}/bdbxml2/docs/event_writer.rb
  154. 0 { → ext}/bdbxml2/docs/event_writer.rd
  155. 0 { → ext}/bdbxml2/docs/index.rb
  156. 0 { → ext}/bdbxml2/docs/index.rd
  157. 0 { → ext}/bdbxml2/docs/indexlookup.rb
  158. 0 { → ext}/bdbxml2/docs/indexlookup.rd
  159. 0 { → ext}/bdbxml2/docs/manager.rb
  160. 0 { → ext}/bdbxml2/docs/manager.rd
  161. 0 { → ext}/bdbxml2/docs/modify.rb
  162. 0 { → ext}/bdbxml2/docs/modify.rd
  163. 0 { → ext}/bdbxml2/docs/results.rb
  164. 0 { → ext}/bdbxml2/docs/results.rd
  165. 0 { → ext}/bdbxml2/docs/value.rb
  166. 0 { → ext}/bdbxml2/docs/value.rd
  167. 0 { → ext}/bdbxml2/examples/create.rb
  168. 0 { → ext}/bdbxml2/examples/dbxml/README
  169. 0 { → ext}/bdbxml2/examples/dbxml/a.sh
  170. 0 { → ext}/bdbxml2/examples/dbxml/add_index.rb
  171. 0 { → ext}/bdbxml2/examples/dbxml/build_db.rb
  172. 0 { → ext}/bdbxml2/examples/dbxml/context.rb
  173. 0 { → ext}/bdbxml2/examples/dbxml/delete.rb
  174. 0 { → ext}/bdbxml2/examples/dbxml/delete_index.rb
  175. 0 { → ext}/bdbxml2/examples/dbxml/document.rb
  176. 0 { → ext}/bdbxml2/examples/dbxml/load.rb
  177. 0 { → ext}/bdbxml2/examples/dbxml/loadex.rb
  178. 0 { → ext}/bdbxml2/examples/dbxml/metadata.rb
  179. 0 { → ext}/bdbxml2/examples/dbxml/names.rb
  180. 0 { → ext}/bdbxml2/examples/dbxml/query.rb
  181. 0 { → ext}/bdbxml2/examples/dbxml/replace_index.rb
  182. 0 { → ext}/bdbxml2/examples/dbxml/retrieve_db.rb
  183. 0 { → ext}/bdbxml2/examples/dbxml/update.rb
  184. 0 { → ext}/bdbxml2/examples/event_reader.rb
  185. 0 { → ext}/bdbxml2/examples/event_writer.rb
  186. 0 { → ext}/bdbxml2/examples/index.rb
  187. 0 { → ext}/bdbxml2/examples/indexlookup.rb
  188. 0 { → ext}/bdbxml2/examples/modify.rb
  189. 0 { → ext}/bdbxml2/examples/transaction.rb
  190. 0 { → ext}/bdbxml2/extconf.rb
  191. 0 { → ext}/bdbxml2/features.rb
  192. 0 {bdbxml1 → ext/bdbxml2}/glossary/README
  193. 0 {bdbxml1 → ext/bdbxml2}/glossary/abstract_data_type
  194. 0 {bdbxml1 → ext/bdbxml2}/glossary/associative_array
  195. 0 { → ext}/bdbxml2/glossary/awk
  196. 0 {bdbxml1 → ext/bdbxml2}/glossary/big_endian
  197. 0 {bdbxml1 → ext/bdbxml2}/glossary/block
  198. 0 { → ext}/bdbxml2/glossary/bug
  199. 0 {bdbxml1 → ext/bdbxml2}/glossary/built-in_class
  200. 0 {bdbxml1 → ext/bdbxml2}/glossary/byte_order
  201. 0 { → ext}/bdbxml2/glossary/class
  202. 0 {bdbxml1 → ext/bdbxml2}/glossary/class_method
  203. 0 {bdbxml1 → ext/bdbxml2}/glossary/coerce
  204. 0 {bdbxml1 → ext/bdbxml2}/glossary/constant
  205. 0 {bdbxml1 → ext/bdbxml2}/glossary/data
  206. 0 {bdbxml1 → ext/bdbxml2}/glossary/defined?
  207. 0 {bdbxml1 → ext/bdbxml2}/glossary/destructive
  208. 0 {bdbxml1 → ext/bdbxml2}/glossary/dictionary
  209. 0 {bdbxml1 → ext/bdbxml2}/glossary/document
  210. 0 {bdbxml1 → ext/bdbxml2}/glossary/dynamic_binding
  211. 0 {bdbxml1 → ext/bdbxml2}/glossary/eiffel
  212. 0 {bdbxml1 → ext/bdbxml2}/glossary/encapsulation
  213. 0 {bdbxml1 → ext/bdbxml2}/glossary/end
  214. 0 {bdbxml1 → ext/bdbxml2}/glossary/env
  215. 0 {bdbxml1 → ext/bdbxml2}/glossary/environment_variable
  216. 0 {bdbxml1 → ext/bdbxml2}/glossary/exception
  217. 0 {bdbxml1 → ext/bdbxml2}/glossary/faq
  218. 0 {bdbxml1 → ext/bdbxml2}/glossary/function
  219. 0 {bdbxml1 → ext/bdbxml2}/glossary/global_variable
  220. 0 {bdbxml1 → ext/bdbxml2}/glossary/goto
  221. 0 {bdbxml1 → ext/bdbxml2}/glossary/hash
  222. 0 {bdbxml1 → ext/bdbxml2}/glossary/immediate_value
  223. 0 {bdbxml1 → ext/bdbxml2}/glossary/inheritance
  224. 0 {bdbxml1 → ext/bdbxml2}/glossary/initialize
  225. 0 {bdbxml1 → ext/bdbxml2}/glossary/instance
  226. 0 {bdbxml1 → ext/bdbxml2}/glossary/instance_variable
  227. 0 {bdbxml1 → ext/bdbxml2}/glossary/iterator
  228. 0 {bdbxml1 → ext/bdbxml2}/glossary/japanese_(language)
  229. 0 {bdbxml1 → ext/bdbxml2}/glossary/little_endian
  230. 0 {bdbxml1 → ext/bdbxml2}/glossary/local_variable
  231. 0 {bdbxml1 → ext/bdbxml2}/glossary/main
  232. 0 {bdbxml1 → ext/bdbxml2}/glossary/matchingdata
  233. 0 {bdbxml1 → ext/bdbxml2}/glossary/matz
  234. 0 {bdbxml1 → ext/bdbxml2}/glossary/method
  235. 0 {bdbxml1 → ext/bdbxml2}/glossary/mix-in
  236. 0 {bdbxml1 → ext/bdbxml2}/glossary/module_function
  237. 0 {bdbxml1 → ext/bdbxml2}/glossary/non-local_exit
  238. 0 {bdbxml1 → ext/bdbxml2}/glossary/object
  239. 0 {bdbxml1 → ext/bdbxml2}/glossary/object-oriented
  240. 0 {bdbxml1 → ext/bdbxml2}/glossary/object-oriented_analysis
  241. 0 {bdbxml1 → ext/bdbxml2}/glossary/object-oriented_design
  242. 0 {bdbxml1 → ext/bdbxml2}/glossary/object-oriented_programming
  243. 0 {bdbxml1 → ext/bdbxml2}/glossary/override
  244. 0 {bdbxml1 → ext/bdbxml2}/glossary/paradigm
  245. 0 {bdbxml1 → ext/bdbxml2}/glossary/perl
  246. 0 {bdbxml1 → ext/bdbxml2}/glossary/polymorphism
  247. 0 {bdbxml1 → ext/bdbxml2}/glossary/python
  248. 0 {bdbxml1 → ext/bdbxml2}/glossary/receiver
  249. 0 {bdbxml1 → ext/bdbxml2}/glossary/redefinition
  250. 0 {bdbxml1 → ext/bdbxml2}/glossary/reference
  251. 0 {bdbxml1 → ext/bdbxml2}/glossary/ruby
  252. 0 {bdbxml1 → ext/bdbxml2}/glossary/sather
  253. 0 {bdbxml1 → ext/bdbxml2}/glossary/script
  254. 0 {bdbxml1 → ext/bdbxml2}/glossary/scripting_language
  255. 0 {bdbxml1 → ext/bdbxml2}/glossary/self
  256. 0 {bdbxml1 → ext/bdbxml2}/glossary/singleton_class
  257. 0 {bdbxml1 → ext/bdbxml2}/glossary/singleton_method
  258. 0 {bdbxml1 → ext/bdbxml2}/glossary/smalltalk
  259. 0 {bdbxml1 → ext/bdbxml2}/glossary/sort
  260. 0 {bdbxml1 → ext/bdbxml2}/glossary/super
  261. 0 {bdbxml1 → ext/bdbxml2}/glossary/thread
  262. 0 {bdbxml1 → ext/bdbxml2}/glossary/undef
  263. 0 {bdbxml1 → ext/bdbxml2}/glossary/variable
  264. 0 { → ext}/bdbxml2/myconfig
  265. 0 { → ext}/bdbxml2/myconfig-2.2
  266. 0 { → ext}/bdbxml2/myconfig-2.3
  267. 0 { → ext}/bdbxml2/myconfig-2.4
  268. 0 {bdbxml1 → ext/bdbxml2}/tests/data.e
  269. 0 {bdbxml1 → ext/bdbxml2}/tests/data.t
  270. 0 {bdbxml1 → ext/bdbxml2}/tests/runit_.rb
  271. 0 { → ext}/bdbxml2/tests/xml.rb
  272. +0 −83 extconf.rb
View
@@ -0,0 +1,5 @@
+lib/**/*.rb
+bin/*
+-
+features/**/*.feature
+LICENSE.txt
View
@@ -1,11 +1,54 @@
-*.html
-Makefile
-bdbxml2/bdbxml_features.h
-bdbxml[12]/*.html
-bdbxml[12]/*.so
-bdbxml[12]/docs/*.html
-docs/*.html
-src/Makefile
-src/bdb.so
-src/bdb_features.h
-src/mkmf.log
+# rcov generated
+coverage
+
+# rdoc generated
+rdoc
+
+# yard generated
+doc
+.yardoc
+
+# bundler
+.bundle
+
+# jeweler generated
+pkg
+
+# rake-compiler generated
+tmp
+
+# We have no files under lib at the moment.
+lib
+
+# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
+#
+# * Create a file at ~/.gitignore
+# * Include files you want ignored
+# * Run: git config --global core.excludesfile ~/.gitignore
+#
+# After doing this, these files will be ignored in all your git projects,
+# saving you from having to 'pollute' every project you touch with them
+#
+# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
+#
+# For MacOS:
+#
+#.DS_Store
+
+# For TextMate
+#*.tmproj
+#tmtags
+
+# For emacs:
+#*~
+#\#*
+#.\#*
+
+# For vim:
+#*.swp
+
+# For redcar:
+#.redcar
+
+# For rubinius:
+#*.rbc
View
@@ -289,3 +289,7 @@
--- 0.6.6
* ruby 1.9 support
+
+--- 0.6.7
+
+* gemified.
View
@@ -0,0 +1,13 @@
+source "http://rubygems.org"
+# Add dependencies required to use your gem here.
+# Example:
+# gem "activesupport", ">= 2.3.5"
+
+# Add dependencies to develop your gem here.
+# Include everything needed to run rake, tests, features, etc.
+group :development do
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+ gem "rcov", ">= 0"
+ gem "rake-compiler", ">= 0.7.9"
+end
View
@@ -0,0 +1,21 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ git (1.2.5)
+ jeweler (1.6.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
+ rake (0.9.2.2)
+ rake-compiler (0.7.9)
+ rake
+ rcov (0.9.11)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (~> 1.0.0)
+ jeweler (~> 1.6.4)
+ rake-compiler (>= 0.7.9)
+ rcov
View
@@ -0,0 +1,3 @@
+Copyright (c) 2011 Akinori MUSHA
+
+You can redistribute it and/or modify it under the same term as Ruby.
View
@@ -1,69 +0,0 @@
-
- This is an interface to Berkeley DB, distributed by Sleepycat
- (http://www.sleepycat.com/)
-
-* Prerequisite
-
- db >= 2 (some functionnality like join are not available with db < 2.6)
-
- For Berkeley DB 1.85 and 1.86 see bdb1
-
-* Installation
-
- ruby extconf.rb
- make
- make install
-
- You may need to specify :
-
- --with-db-include=<include file directory for bdb>
-
- --with-db-lib=<library directory for bdb>
-
- --with-db-dir=<prefix for library and include of bdb>
-
- --enable-db-xml
-
- --help
-
- Example :
-
- ruby extconf.rb --with-db-dir=/home/ts/local
-
-* WARNING
-
- With bdb >= 0.5.5 `nil' is stored as an empty string (when marshal is not
- used).
-
- Open the database with
-
- "store_nil_as_null" => true
-
- if you want the old behavior (`nil' stored as `\000')
-
-
-* examples
-
- examples/basic.rb simple access method
- examples/recno.rb access to flat file
- examples/cursor.rb direct cursor access
- examples/txn.rb transaction
- examples/join.rb join (need db >= 2.6)
- examples/log.rb log file
-
-* Documentation : see bdb.rd and bdb.html
-
-* Tests : if you have rubyunit, or testunit
-
- make test
-
-* Copying
-
- This extension module is copyrighted free software by Guy Decoux
-
- You can redistribute it and/or modify it under the same term as
- Ruby.
-
-
-
-Guy Decoux <ts@moulon.inra.fr>
View
@@ -0,0 +1,76 @@
+bdb1
+====
+
+Synopsis
+--------
+
+A Ruby interface to Berkeley DB distributed by Oracle
+
+Prerequisite
+============
+
+* db >= 2 (some functionnality like join are not available with db < 2.6)
+
+For Berkeley DB 1.85 and 1.86 see bdb1
+
+Examples
+--------
+
+See the `examples` directory for code examples.
+
+Installation
+------------
+
+You can install this module simply by:
+
+ gem install bdb
+
+Use the `--with-db-dir=$prefix` option to specify with which libdb
+this extension should be linked.
+
+Notes
+=====
+
+With bdb >= 0.5.5 `nil' is stored as an empty string (when marshal is
+not used).
+
+Open the database with
+
+ "store_nil_as_null" => true
+
+if you want the old behavior (`nil' stored as `\000').
+
+Examples
+========
+
+* examples/basic.rb
+
+ simple access method
+
+* examples/recno.rb
+
+ access to flat file
+
+* examples/cursor.rb
+
+ direct cursor access
+
+* examples/txn.rb
+
+ transaction
+
+* examples/join.rb
+
+ join (need db >= 2.6)
+
+* examples/log.rb
+
+ log file
+
+License
+-------
+
+Copyright (c) 2000-2008 Guy Decoux
+Copyright (c) 2008-2011 Akinori MUSHA
+
+You can redistribute it and/or modify it under the same term as Ruby.
View
@@ -0,0 +1,65 @@
+# encoding: utf-8
+
+require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
+require 'rake'
+
+require 'jeweler'
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "bdb"
+ gem.homepage = "http://github.com/knu/ruby-bdb"
+ gem.license = "Ruby's"
+ gem.summary = %Q{A Ruby interface to Berkeley DB >= 2.0}
+ gem.description = %Q{This is a Ruby interface to Berkeley DB >= 2.0.}
+ gem.email = "knu@idaemons.org"
+ gem.authors = ["Guy Decoux", "Akinori MUSHA"]
+ # dependencies defined in Gemfile
+end
+Jeweler::RubygemsDotOrgTasks.new
+
+def generated_gemspec
+ eval(File.read(Rake.application.jeweler.gemspec_helper.path))
+rescue
+ nil
+end
+
+require 'rake/extensiontask'
+Rake::ExtensionTask.new('bdb', generated_gemspec) do |ext|
+ ext.cross_compile = true
+ ext.cross_platform = 'x86-mingw32'
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+require 'rcov/rcovtask'
+Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ test.rcov_opts << '--exclude "gems/*"'
+end
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "bdb #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
@@ -0,0 +1 @@
+0.6.7
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit dbfa77b

Please sign in to comment.