Skip to content

Commit

Permalink
Gemify.
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jan 8, 2012
1 parent 6aa8054 commit dbfa77b
Show file tree
Hide file tree
Showing 272 changed files with 242 additions and 163 deletions.
5 changes: 5 additions & 0 deletions .document
@@ -0,0 +1,5 @@
lib/**/*.rb
bin/*
-
features/**/*.feature
LICENSE.txt
65 changes: 54 additions & 11 deletions .gitignore
@@ -1,11 +1,54 @@
*.html # rcov generated
Makefile coverage
bdbxml2/bdbxml_features.h
bdbxml[12]/*.html # rdoc generated
bdbxml[12]/*.so rdoc
bdbxml[12]/docs/*.html
docs/*.html # yard generated
src/Makefile doc
src/bdb.so .yardoc
src/bdb_features.h
src/mkmf.log # 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
4 changes: 4 additions & 0 deletions Changes
Expand Up @@ -289,3 +289,7 @@
--- 0.6.6 --- 0.6.6


* ruby 1.9 support * ruby 1.9 support

--- 0.6.7

* gemified.
13 changes: 13 additions & 0 deletions Gemfile
@@ -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
21 changes: 21 additions & 0 deletions Gemfile.lock
@@ -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
3 changes: 3 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,3 @@
Copyright (c) 2011 Akinori MUSHA

You can redistribute it and/or modify it under the same term as Ruby.
69 changes: 0 additions & 69 deletions README.en

This file was deleted.

76 changes: 76 additions & 0 deletions README.md
@@ -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.
65 changes: 65 additions & 0 deletions Rakefile
@@ -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
1 change: 1 addition & 0 deletions VERSION
@@ -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.
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.

0 comments on commit dbfa77b

Please sign in to comment.