[DRE-commits] [ruby-globalid] 01/03: first debianization

Cédric Boutillier boutil at moszumanska.debian.org
Fri Apr 24 22:50:58 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-globalid.

commit 0068e2f66b135365ca1db1df5b606537c9993a32
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sat Apr 25 00:30:12 2015 +0200

    first debianization
---
 debian/changelog                     |  5 +++++
 debian/compat                        |  1 +
 debian/control                       | 29 +++++++++++++++++++++++++++++
 debian/copyright                     | 32 ++++++++++++++++++++++++++++++++
 debian/patches/fix_test_helper.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 debian/ruby-globalid.docs            |  1 +
 debian/ruby-tests.rake               | 10 ++++++++++
 debian/rules                         | 15 +++++++++++++++
 debian/source/format                 |  1 +
 debian/watch                         |  2 ++
 11 files changed, 125 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..12bdb25
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-globalid (0.3.5-1) UNRELEASED; urgency=medium
+
+  * Initial release
+
+ -- Cédric Boutillier <boutil at debian.org>  Fri, 24 Apr 2015 22:39:45 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4890a90
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: ruby-globalid
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Cédric Boutillier <boutil at debian.org>
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-activesupport (>= 4.1~), ruby-railties, ruby-activemodel, ruby-minitest, ruby-test-unit
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-globalid.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-globalid.git;a=summary
+Homepage: http://www.rubyonrails.org
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-globalid
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-activesupport (>= 4.1~)
+Recommends: ruby-railties
+Description: reference models by URI for Ruby on Rails
+ A Global ID is an app wide URI of the form gid://YourApp/Some::Model/id
+ that uniquely identifies a model instance.
+ .
+ This is helpful when you need a single identifier to reference different
+ classes of objects, for example in job scheduling, when one needs to reference
+ a model object rather than serialize the object itself. An other example is a
+ drop-down list of options, consisting of both Users and Groups. One has then a
+ universal identifier that works for objects of both classes.
+ .
+ This package is part of the dependencies for the Ruby on Rails framework.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0d381af
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: globalid
+Source: https://github.com/rails/globalid
+
+Files: *
+Copyright: 2014 David Heinemeier Hansson <david at loudthinking.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Cédric Boutillier <boutil at debian.org>
+License: Expat
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+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:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ 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/fix_test_helper.patch b/debian/patches/fix_test_helper.patch
new file mode 100644
index 0000000..e954d67
--- /dev/null
+++ b/debian/patches/fix_test_helper.patch
@@ -0,0 +1,28 @@
+Description: small tweaks for test/helper.rb
+ - remove bundler usage
+ - require forwardable to have the Forwardable module defined
+ - ActiveSupport::TestCase responds to test_order but not
+   test_order= with ruby-activesupport 4.1 and ruby-minitest 5.5.x
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: not-needed
+Last-Update: 2015-04-24
+
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -1,6 +1,6 @@
+-require 'bundler/setup'
+ require 'active_support'
+ require 'active_support/testing/autorun'
++require 'forwardable'
+ 
+ require 'global_id'
+ require 'models/person'
+@@ -8,7 +8,7 @@
+ 
+ require 'json'
+ 
+-if ActiveSupport::TestCase.respond_to?(:test_order)
++if ActiveSupport::TestCase.respond_to?(:test_order=)
+   # TODO: remove check once ActiveSupport depencency is at least 4.2
+   ActiveSupport::TestCase.test_order = :random
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..613ac64
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_test_helper.patch
diff --git a/debian/ruby-globalid.docs b/debian/ruby-globalid.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-globalid.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..4aefad9
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,10 @@
+require 'rake/testtask'
+
+task :default => :test
+
+Rake::TestTask.new do |t|
+  t.libs << 'test'
+  t.test_files = FileList['test/cases/**/*_test.rb']
+  t.verbose = true
+  t.warning = true
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d81794d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+#export DH_RUBY_IGNORE_TESTS=ruby2.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5c2d186
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/rails/globalid/releases .*/v(.*).tar.gz

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



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