[DRE-commits] [ruby-redis-rack] 02/02: Initial Commit

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat Nov 29 08:32:52 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-rack.

commit 0a18f54f2e433afa32cc7a175c68a2cfc1076a09
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat Nov 29 13:54:33 2014 +0530

    Initial Commit
---
 debian/changelog                |  6 +++---
 debian/control                  |  7 +++----
 debian/copyright                | 44 +++++++++++++++++++----------------------
 debian/patches/Bundler          | 33 +++++++++++++++++++++++++++++++
 debian/patches/Version          | 34 +++++++++++++++++++++++++++++++
 debian/patches/series           |  2 ++
 debian/ruby-redis-rack.docs     |  3 +--
 debian/ruby-test-files.yaml     |  4 ----
 debian/ruby-tests.rake          |  7 +++++++
 debian/rules                    | 12 +++++++++++
 debian/start-redis-server.sh    |  7 +++++++
 debian/stop-redis-server.sh     |  5 +++++
 test/redis/rack/version_test.rb |  2 +-
 test/test_helper.rb             |  2 +-
 14 files changed, 129 insertions(+), 39 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9c63071..a0d9ac7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-redis-rack (1.5.0-1) UNRELEASED; urgency=medium
+ruby-redis-rack (1.5.0-1) unstable; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #771401)
 
- -- Balasankar C <balasankarc at autistici.org>  Sat, 29 Nov 2014 13:53:05 +0530
+ -- Balasankar C <balasankarc at autistici.org>  Sat, 29 Nov 2014 12:50:22 +0530
diff --git a/debian/control b/debian/control
index d80bc75..e29a5ce 100644
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,17 @@ 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
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-redis-store, ruby-rack, ruby-mocha
 Standards-Version: 3.9.5
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-redis-rack.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-redis-rack.git;a=summary
 Homepage: http://redis-store.org/redis-rack
-Testsuite: autopkgtest
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-redis-rack
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-# redis-store (~> 1.1.0), rack (~> 1.5), rake (~> 10, development), bundler (~> 1.3, development), mocha (~> 0.14.0, development), minitest (~> 5, development)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-rack, ruby-redis-store
 Description: Redis Store for Rack
  Redis Store for Rack
diff --git a/debian/copyright b/debian/copyright
index 0a710f3..e65e25f 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-rack
-Source: FIXME <http://example.com/>
+Source: https://github.com/redis-store/redis-rack
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2009 - 2013 Luca Guidi <me at 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..18150c6
--- /dev/null
+++ b/debian/patches/Bundler
@@ -0,0 +1,33 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ ruby-redis-rack (1.5.0-1) UNRELEASED; urgency=medium
+ .
+   * Initial release (Closes: #nnnn)
+Author: Balasankar C <balasankarc at autistici.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- ruby-redis-rack-1.5.0.orig/test/test_helper.rb
++++ ruby-redis-rack-1.5.0/test/test_helper.rb
+@@ -1,4 +1,4 @@
+-require 'bundler/setup'
++#require 'bundler/setup'
+ require 'minitest/autorun'
+ require 'mocha/setup'
+ require 'rack'
diff --git a/debian/patches/Version b/debian/patches/Version
new file mode 100644
index 0000000..fbaaf8b
--- /dev/null
+++ b/debian/patches/Version
@@ -0,0 +1,34 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ ruby-redis-rack (1.5.0-1) UNRELEASED; urgency=medium
+ .
+   * Initial release (Closes: #nnnn)
+Author: Balasankar C <balasankarc at autistici.org>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- ruby-redis-rack-1.5.0.orig/test/redis/rack/version_test.rb
++++ ruby-redis-rack-1.5.0/test/redis/rack/version_test.rb
+@@ -1,5 +1,5 @@
+ require 'test_helper'
+-
++require 'version'
+ describe Redis::Rack::VERSION do
+   it 'returns current version' do
+     Redis::Rack::VERSION.must_equal '1.5.0'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..31913e5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Bundler
+Version
diff --git a/debian/ruby-redis-rack.docs b/debian/ruby-redis-rack.docs
index 07b3c9e..b43bf86 100644
--- a/debian/ruby-redis-rack.docs
+++ b/debian/ruby-redis-rack.docs
@@ -1,2 +1 @@
-# FIXME: READMEs found
-# README.md
+README.md
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index c9a215d..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- test/rack/session/redis_test.rb
-- test/redis/rack/version_test.rb
-- test/test_helper.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..f168dc5
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+
+require 'gem2deb/rake/testtask'
+Gem2Deb::Rake::TestTask.new do |t|
+    t.libs << 'lib/redis/rack'
+    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/redis/rack/version_test.rb b/test/redis/rack/version_test.rb
index 44e2e83..cb172b2 100644
--- a/test/redis/rack/version_test.rb
+++ b/test/redis/rack/version_test.rb
@@ -1,5 +1,5 @@
 require 'test_helper'
-
+require 'version'
 describe Redis::Rack::VERSION do
   it 'returns current version' do
     Redis::Rack::VERSION.must_equal '1.5.0'
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 7b6ca4f..0a579f4 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 'rack'

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



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