From 06357cb3915bb3bd613f56d7453ac387d8219cf7 Mon Sep 17 00:00:00 2001 From: Justin Balthrop Date: Fri, 20 Nov 2009 17:02:02 -0800 Subject: [PATCH] jeweler + gemcutter --- .gitignore | 1 - Rakefile | 1 + bdb.gemspec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 bdb.gemspec diff --git a/.gitignore b/.gitignore index 8c078fa..0c6117d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -bdb.gemspec pkg \ No newline at end of file diff --git a/Rakefile b/Rakefile index 6816258..215069c 100644 --- a/Rakefile +++ b/Rakefile @@ -14,6 +14,7 @@ begin gem.extensions = ["ext/extconf.rb"] gem.require_paths = ["ext", "lib"] end + Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end diff --git a/bdb.gemspec b/bdb.gemspec new file mode 100644 index 0000000..6c4a84d --- /dev/null +++ b/bdb.gemspec @@ -0,0 +1,65 @@ +# Generated by jeweler +# DO NOT EDIT THIS FILE DIRECTLY +# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command +# -*- encoding: utf-8 -*- + +Gem::Specification.new do |s| + s.name = %q{bdb} + s.version = "0.1.0" + + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.authors = ["Justin Balthrop"] + s.date = %q{2009-11-20} + s.description = %q{Advanced Ruby Berkeley DB library.} + s.email = %q{code@justinbalthrop.com} + s.extensions = ["ext/extconf.rb"] + s.extra_rdoc_files = [ + "LICENSE", + "README.textile" + ] + s.files = [ + "VERSION", + "ext/bdb.c", + "ext/bdb.h", + "ext/extconf.rb", + "lib/bdb/base.rb", + "lib/bdb/database.rb", + "lib/bdb/environment.rb", + "lib/bdb/partitioned_database.rb", + "lib/bdb/result_set.rb", + "test/benchmark.rb", + "test/cursor_test.rb", + "test/db_test.rb", + "test/env_test.rb", + "test/simple_test.rb", + "test/stat_test.rb", + "test/test_helper.rb", + "test/txn_test.rb" + ] + s.homepage = %q{http://github.com/ninjudd/bdb} + s.rdoc_options = ["--charset=UTF-8"] + s.require_paths = ["ext", "lib"] + s.rubygems_version = %q{1.3.5} + s.summary = %q{Ruby Berkeley DB} + s.test_files = [ + "test/benchmark.rb", + "test/cursor_test.rb", + "test/db_test.rb", + "test/env_test.rb", + "test/simple_test.rb", + "test/stat_test.rb", + "test/test_helper.rb", + "test/txn_test.rb" + ] + + if s.respond_to? :specification_version then + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION + s.specification_version = 3 + + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + else + end + else + end +end +