[DRE-commits] [ruby-redis-store] 03/03: Initial Upload

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Nov 27 15:33:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-redis-store.

commit 461861e690ece7b03807cd031a852fd1d56da21d
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Nov 27 20:59:17 2014 +0530

    Initial Upload
---
 debian/changelog             |  6 +++---
 debian/control               | 16 +++++++++-------
 debian/copyright             | 44 ++++++++++++++++++++------------------------
 debian/patches/Bundler       | 17 +++++++++++++++++
 debian/patches/series        |  1 +
 debian/ruby-redis-store.docs |  3 +--
 debian/ruby-tests.rake       |  5 +++++
 debian/rules                 | 12 ++++++++++++
 debian/start-redis-server.sh |  7 +++++++
 debian/stop-redis-server.sh  |  5 +++++
 test/test_helper.rb          |  2 +-
 11 files changed, 81 insertions(+), 37 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5eca668..6eae7e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-redis-store (1.1.4-1) UNRELEASED; urgency=medium
+ruby-redis-store (1.1.4-1) unstable; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #771202)
 
- -- Balasankar C <balasankarc at autistici.org>  Thu, 27 Nov 2014 20:57:16 +0530
+ -- Balasankar C <balasankarc at autistici.org>  Mon, 03 Nov 2014 01:46:58 +0530
diff --git a/debian/control b/debian/control
index b1aa598..cbd7e98 100644
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,20 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Balasankar C <balasankarc at autistici.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb
-Standards-Version: 3.9.5
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-mocha, ruby-redis, redis-server, procps
+Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-redis-store.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-redis-store.git;a=summary
 Homepage: http://redis-store.org/redis-store
-Testsuite: autopkgtest
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-redis-store
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-# redis (>= 2.2), rake (~> 10, development), bundler (~> 1.3, development), mocha (~> 0.14.0, development), minitest (~> 5, development), git (~> 1.2, development)
-Description: Redis stores for Ruby frameworks
- Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for Ruby web frameworks.
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,ruby-redis, redis-server
+Description: redis stores for Ruby frameworks
+ Redis Store provides a full set of stores (*Cache*, I18n, Session, HTTP Cache) 
+ for modern Ruby frameworks like: Ruby on Rails, Sinatra, Rack, Rack::Cache and 
+ I18n. It supports object marshalling, timeouts, single or multiple nodes, and 
+ namespaces.
diff --git a/debian/copyright b/debian/copyright
index a97be55..723bb86 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,35 +1,31 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: redis-store
-Source: FIXME <http://example.com/>
+Source: https://github.com/redis-store/redis-store
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2009 - 2013 Luca Guidi - http://lucaguidi.com
+License: Expat
 
 Files: debian/*
 Copyright: 2014 Balasankar C <balasankarc at autistici.org>
-License: GPL-2+ (FIXME)
+License: Expat
 Comment: the Debian packaging is licensed under the same terms as the original package.
 
-License: GPL-2+ (FIXME)
- This program is free software; you can redistribute it
- and/or modify it under the terms of the GNU General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later
- version.
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
  .
- This program is distributed in the hope that it will be
- useful, but WITHOUT ANY WARRANTY; without even the implied
- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE.  See the GNU General Public License for more
- details.
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
  .
- You should have received a copy of the GNU General Public
- License along with this package; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA  02110-1301 USA
- .
- On Debian systems, the full text of the GNU General Public
- License version 2 can be found in the file
- `/usr/share/common-licenses/GPL-2'.
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
diff --git a/debian/patches/Bundler b/debian/patches/Bundler
new file mode 100644
index 0000000..8f7099b
--- /dev/null
+++ b/debian/patches/Bundler
@@ -0,0 +1,17 @@
+Description: Removing Bundler dependency
+ Removing the bundler requirement from the tests.
+ .
+ ruby-redis-store (1.1.4-1) UNRELEASED; urgency=medium
+ .
+   * Initial release (Closes: #nnnn)
+Author: Balasankar C <balasankarc at autistici.org>
+
+
+--- ruby-redis-store-1.1.4.orig/test/test_helper.rb
++++ ruby-redis-store-1.1.4/test/test_helper.rb
+@@ -1,4 +1,4 @@
+-require 'bundler/setup'
++#require 'bundler/setup'
+ require 'minitest/autorun'
+ require 'mocha/setup'
+ require 'redis'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a51ad82
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Bundler
diff --git a/debian/ruby-redis-store.docs b/debian/ruby-redis-store.docs
index 07b3c9e..b43bf86 100644
--- a/debian/ruby-redis-store.docs
+++ b/debian/ruby-redis-store.docs
@@ -1,2 +1 @@
-# FIXME: READMEs found
-# README.md
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..17650ac
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/testtask'
+Gem2Deb::Rake::TestTask.new do |t|
+    t.libs << 'test'
+  t.test_files = FileList['test/*/*_test.rb']
+end
diff --git a/debian/rules b/debian/rules
index d81794d..c4e9118 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,15 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_clean:
+	dh_auto_clean -O--buildsystem=ruby
+	# kill redis server for tests, don't fail if not started
+	debian/stop-redis-server.sh || true
+
+override_dh_auto_install:
+	# start redis server for tests
+	debian/start-redis-server.sh
+	dh_auto_install -O--buildsystem=ruby
+	# kill redis server used for tests
+	debian/stop-redis-server.sh
diff --git a/debian/start-redis-server.sh b/debian/start-redis-server.sh
new file mode 100755
index 0000000..796f1a7
--- /dev/null
+++ b/debian/start-redis-server.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+redis-server --daemonize yes --port 6379&
+redis-server --daemonize yes --port 6380&
+redis-server --daemonize yes --port 6381&
diff --git a/debian/stop-redis-server.sh b/debian/stop-redis-server.sh
new file mode 100755
index 0000000..4174aee
--- /dev/null
+++ b/debian/stop-redis-server.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+pkill redis-server
diff --git a/test/test_helper.rb b/test/test_helper.rb
index c115a98..1cc0bc6 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,4 +1,4 @@
-require 'bundler/setup'
+#require 'bundler/setup'
 require 'minitest/autorun'
 require 'mocha/setup'
 require 'redis'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-redis-store.git



More information about the Pkg-ruby-extras-commits mailing list