[DRE-commits] [ruby-active-model-serializers] 02/02: Change control, changelog, copyright files and add pactch for bundler

Balasankar C balasankarc-guest at moszumanska.debian.org
Wed Jan 28 18:11:08 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-active-model-serializers.

commit a738de22bbb1332c0686c72953a973c258961f38
Author: Balasankar C <balasankarc at autistici.org>
Date:   Wed Jan 28 23:34:33 2015 +0530

    Change control,changelog,copyright files and add pactch for bundler
---
 debian/changelog                          |  6 ++---
 debian/control                            | 18 ++++++++-----
 debian/copyright                          | 44 ++++++++++++++-----------------
 debian/patches/bundler                    | 13 +++++++++
 debian/patches/series                     |  1 +
 debian/ruby-active-model-serializers.docs |  3 +--
 debian/ruby-test-files.yaml               | 36 -------------------------
 debian/ruby-tests.rake                    |  6 +++++
 debian/rules                              |  5 ++++
 debian/watch                              |  3 ++-
 test/test_helper.rb                       |  1 -
 11 files changed, 62 insertions(+), 74 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5ae6482..ea08731 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-active-model-serializers (0.9.3-1) UNRELEASED; urgency=medium
+ruby-active-model-serializers (0.9.3-1) unstable; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #776500)
 
- -- Balasankar C <balasankarc at autistici.org>  Wed, 28 Jan 2015 23:32:43 +0530
+ -- Balasankar C <balasankarc at autistici.org>  Wed, 28 Jan 2015 22:09:44 +0530
diff --git a/debian/control b/debian/control
index 5eec136..1e1ad30 100644
--- a/debian/control
+++ b/debian/control
@@ -3,18 +3,22 @@ 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-activemodel, ruby-rails, ruby-sqlite3
+Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-active-model-serializers.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-active-model-serializers.git;a=summary
 Homepage: https://github.com/rails-api/active_model_serializers
-Testsuite: autopkgtest
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-active-model-serializers
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-# activemodel (>= 3.2), rails (>= 3.2, development)
-Description: Bringing consistency and object orientation to model serialization. Works great for client-side MVC frameworks!
- Making it easy to serialize models for client-side use
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-activemodel
+Description: Making it easy to serialize models for client-side use
+ Bringing consistency and object orientation to model serialization. Works 
+ great for client-side MVC frameworks! ActiveModel::Serializers brings 
+ convention over configuration to your JSON generation. AMS does this through 
+ two components: serializers and adapters. Serializers describe which 
+ attributes and relationships should be serialized. Adapters describe how 
+ attributes and relationships should be serialized.
diff --git a/debian/copyright b/debian/copyright
index 4f6eac2..26ca673 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: active_model_serializers
-Source: FIXME <http://example.com/>
+Source: https://github.com/rails-api/active_model_serializers
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2014 Steve Klabnik <steve at steveklabnik.com>
+License: Expat
 
 Files: debian/*
 Copyright: 2015 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..dff5832
--- /dev/null
+++ b/debian/patches/bundler
@@ -0,0 +1,13 @@
+Description: Remove bundler dependency
+ Remove bundler dependency from the test_helper file.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-01-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,4 +1,3 @@
+-require 'bundler/setup'
+ require 'minitest/autorun'
+ require 'active_model_serializers'
+ require 'fixtures/poro'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b841526
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+bundler
diff --git a/debian/ruby-active-model-serializers.docs b/debian/ruby-active-model-serializers.docs
index 07b3c9e..b43bf86 100644
--- a/debian/ruby-active-model-serializers.docs
+++ b/debian/ruby-active-model-serializers.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 f797299..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
----
-- test/test_app.rb
-- test/fixtures/poro.rb
-- test/fixtures/active_record.rb
-- test/test_helper.rb
-- test/unit/active_model/array_serializer/only_test.rb
-- test/unit/active_model/array_serializer/scope_test.rb
-- test/unit/active_model/array_serializer/key_format_test.rb
-- test/unit/active_model/array_serializer/meta_test.rb
-- test/unit/active_model/array_serializer/root_test.rb
-- test/unit/active_model/array_serializer/except_test.rb
-- test/unit/active_model/array_serializer/serialization_test.rb
-- test/unit/active_model/serializer/has_one_test.rb
-- test/unit/active_model/serializer/has_many_test.rb
-- test/unit/active_model/serializer/has_many_polymorphic_test.rb
-- test/unit/active_model/serializer/has_one_polymorphic_test.rb
-- test/unit/active_model/serializer/scope_test.rb
-- test/unit/active_model/serializer/key_format_test.rb
-- test/unit/active_model/serializer/config_test.rb
-- test/unit/active_model/serializer/associations_test.rb
-- test/unit/active_model/serializer/options_test.rb
-- test/unit/active_model/serializer/filter_test.rb
-- test/unit/active_model/serializer/url_helpers_test.rb
-- test/unit/active_model/serializer/meta_test.rb
-- test/unit/active_model/serializer/attributes_test.rb
-- test/unit/active_model/serializer/associations/build_serializer_test.rb
-- test/unit/active_model/serializer/root_test.rb
-- test/unit/active_model/serializer/has_one_and_has_many_test.rb
-- test/unit/active_model/default_serializer_test.rb
-- test/integration/action_controller/namespaced_serialization_test.rb
-- test/integration/action_controller/serialization_test_case_test.rb
-- test/integration/action_controller/serialization_test.rb
-- test/integration/generators/scaffold_controller_generator_test.rb
-- test/integration/generators/resource_generator_test.rb
-- test/integration/generators/serializer_generator_test.rb
-- test/integration/active_record/active_record_test.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..e83b2ba
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs << 'lib' << 'test'
+  t.test_files = FileList['test/**/*_test.rb']
+end
diff --git a/debian/rules b/debian/rules
index d81794d..50847ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,8 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.md
+override_dh_auto_clean:
+	rm -rf test/tmp
+	dh_auto_clean
diff --git a/debian/watch b/debian/watch
index 3659892..4277026 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,3 @@
 version=3
-http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/active_model_serializers .*/active_model_serializers-(.*).tar.gz
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb|gh)\d*$// \
+https://github.com/rails-api/active_model_serializers/tags .*/v?(\d[\d\.]+)\.tar\.gz
diff --git a/test/test_helper.rb b/test/test_helper.rb
index d207b04..09bf1ef 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,4 +1,3 @@
-require 'bundler/setup'
 require 'minitest/autorun'
 require 'active_model_serializers'
 require 'fixtures/poro'

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



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