[DRE-commits] [ruby-moneta] 01/02: Disable KyotoCabinet support. see #680038.
Daisuke Higuchi
dai at moszumanska.debian.org
Sun Dec 11 04:02:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
dai pushed a commit to branch master
in repository ruby-moneta.
commit e429fa16f4cc96e312c2b73e22b55a673da4e80d
Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
Date: Sun Dec 11 13:01:22 2016 +0900
Disable KyotoCabinet support. see #680038.
- remove ruby-kyotocabinet from B-D-I: and Suggests:.
- add 0300-disable-kyotocabinet-support.patch.
---
debian/control | 2 -
.../0300-disable-kyotocabinet-support.patch | 64 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 65 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index b12ff05..6327197 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,6 @@ Build-Depends-Indep: lsof,
netcat,
ruby-activesupport (>= 2:3.2.11~),
ruby-fog,
- ruby-kyotocabinet,
ruby-multi-json,
ruby-mysql2,
ruby-rack,
@@ -36,7 +35,6 @@ Depends: ruby | ruby-interpreter,
${shlibs:Depends}
Suggests: ruby-activerecord (>= 3.2),
ruby-fog,
- ruby-kyotocabinet,
ruby-multi-json,
ruby-rack,
ruby-rack-cache,
diff --git a/debian/patches/0300-disable-kyotocabinet-support.patch b/debian/patches/0300-disable-kyotocabinet-support.patch
new file mode 100644
index 0000000..94b0e7c
--- /dev/null
+++ b/debian/patches/0300-disable-kyotocabinet-support.patch
@@ -0,0 +1,64 @@
+Description: Disable KyotoCabinet support
+Author: HIGUCHI Daisuke (VDR dai) <dai at debian.org>
+
+Index: ruby-moneta/lib/moneta.rb
+===================================================================
+--- ruby-moneta.orig/lib/moneta.rb
++++ ruby-moneta/lib/moneta.rb
+@@ -38,7 +38,6 @@ module Moneta
+ autoload :GDBM, 'moneta/adapters/gdbm'
+ autoload :HBase, 'moneta/adapters/hbase'
+ autoload :LRUHash, 'moneta/adapters/lruhash'
+- autoload :KyotoCabinet, 'moneta/adapters/kyotocabinet'
+ autoload :LevelDB, 'moneta/adapters/leveldb'
+ autoload :LMDB, 'moneta/adapters/lmdb'
+ autoload :LocalMemCache, 'moneta/adapters/localmemcache'
+Index: ruby-moneta/lib/moneta/adapters/kyotocabinet.rb
+===================================================================
+--- ruby-moneta.orig/lib/moneta/adapters/kyotocabinet.rb
++++ /dev/null
+@@ -1,44 +0,0 @@
+-require 'kyotocabinet'
+-
+-module Moneta
+- module Adapters
+- # KyotoCabinet backend
+- # @api public
+- class KyotoCabinet < Memory
+- # @param [Hash] options
+- # @option options [String] :file Database file
+- # @option options [::KyotoCabinet::DB] :backend Use existing backend instance
+- def initialize(options = {})
+- if options[:backend]
+- @backend = options[:backend]
+- else
+- raise ArgumentError, 'Option :file is required' unless options[:file]
+- @backend = ::KyotoCabinet::DB.new
+- raise @backend.error.to_s unless @backend.open(options[:file],
+- ::KyotoCabinet::DB::OWRITER | ::KyotoCabinet::DB::OCREATE)
+- end
+- end
+-
+- # (see Proxy#key?)
+- def key?(key, options = {})
+- @backend.check(key) >= 0
+- end
+-
+- # (see Proxy#delete)
+- def delete(key, options = {})
+- @backend.seize(key)
+- end
+-
+- # (see Proxy#create)
+- def create(key, value, options = {})
+- @backend.add(key, value)
+- end
+-
+- # (see Proxy#close)
+- def close
+- @backend.close
+- nil
+- end
+- end
+- end
+-end
diff --git a/debian/patches/series b/debian/patches/series
index 80823fa..54c942c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
0099-Re-generate-specs-using-script-generate-specs.patch
0100-Do-not-run-action_dispatch-specs.patch
0200-transition-to-rspec3.patch
+0300-disable-kyotocabinet-support.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-moneta.git
More information about the Pkg-ruby-extras-commits
mailing list