[DRE-commits] [ruby-protected-attributes] 02/03: update packaging to a reasonable state
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Aug 29 22:03:21 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-protected-attributes.
commit 730954cf0ad2f7a2fc15480bd060780eae7c741d
Author: Antonio Terceiro <terceiro at debian.org>
Date: Fri Aug 29 14:56:29 2014 -0700
update packaging to a reasonable state
---
debian/changelog | 4 ++--
debian/control | 9 ++++----
debian/copyright | 43 ++++++++++++++++-------------------
debian/ruby-protected-attributes.docs | 3 +--
debian/ruby-test-files.yaml | 24 -------------------
debian/ruby-tests.rake | 10 ++++++++
debian/rules | 11 ---------
debian/tests/control | 9 +-------
8 files changed, 38 insertions(+), 75 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9c6fece..6ecad50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-protected-attributes (1.0.8-1) UNRELEASED; urgency=medium
+ruby-protected-attributes (1.0.8-1) unstable; urgency=medium
- * Initial release (Closes: #nnnn)
+ * Initial release
-- Antonio Terceiro <terceiro at debian.org> Fri, 29 Aug 2014 14:43:52 -0700
diff --git a/debian/control b/debian/control
index ba6ec4a..f3a7201 100644
--- a/debian/control
+++ b/debian/control
@@ -3,10 +3,10 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Antonio Terceiro <terceiro at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.9.0~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.9.0~), ruby-rails, ruby-sqlite3, ruby-mocha
Standards-Version: 3.9.5
-#Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-protected-attributes.git
-#Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-protected-attributes.git;a=summary
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-protected-attributes.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-protected-attributes.git;a=summary
Homepage: https://github.com/rails/protected_attributes
Testsuite: autopkgtest
XS-Ruby-Versions: all
@@ -14,7 +14,6 @@ XS-Ruby-Versions: all
Package: ruby-protected-attributes
Architecture: all
XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-# activemodel (< 5.0, >= 4.0.1), activerecord (< 5.0, >= 4.0.1, development), actionpack (< 5.0, >= 4.0.1, development), sqlite3 (>= 0, development), mocha (>= 0, development)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-activemodel
Description: Protect attributes from mass assignment in Active Record models
Protect attributes from mass assignment
diff --git a/debian/copyright b/debian/copyright
index 19ad062..2d899df 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,33 +3,30 @@ Upstream-Name: protected_attributes
Source: FIXME <http://example.com/>
Files: *
-Copyright: <years> <put author's name and email here>
- <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: (c) 2012 Guillermo Iguaran
+License: Expat
Files: debian/*
Copyright: 2014 Antonio Terceiro <terceiro at debian.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/ruby-protected-attributes.docs b/debian/ruby-protected-attributes.docs
index 07b3c9e..b43bf86 100644
--- a/debian/ruby-protected-attributes.docs
+++ b/debian/ruby-protected-attributes.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 639eeaf..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
----
-- test/abstract_unit.rb
-- test/accessible_params_wrapper_test.rb
-- test/ar_helper.rb
-- test/attribute_sanitization_test.rb
-- test/mass_assignment_security/black_list_test.rb
-- test/mass_assignment_security/permission_set_test.rb
-- test/mass_assignment_security/sanitizer_test.rb
-- test/mass_assignment_security/white_list_test.rb
-- test/mass_assignment_security_test.rb
-- test/models/battle.rb
-- test/models/company.rb
-- test/models/group.rb
-- test/models/keyboard.rb
-- test/models/mass_assignment_specific.rb
-- test/models/membership.rb
-- test/models/person.rb
-- test/models/pirate.rb
-- test/models/subscriber.rb
-- test/models/task.rb
-- test/models/team.rb
-- test/models/vampire.rb
-- test/models/wolf.rb
-- test/test_helper.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..f82fd9b
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,10 @@
+require 'rake/testtask'
+
+Rake::TestTask.new do |t|
+ t.libs = ['test']
+ t.pattern = 'test/**/*_test.rb'
+ t.ruby_opts = ['-w']
+end
+
+task default: :test
+
diff --git a/debian/rules b/debian/rules
index d81794d..c6142f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,4 @@
#!/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/tests/control b/debian/tests/control
index ba12c70..d8c67f4 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,9 +1,2 @@
Test-Command: gem2deb-test-runner --autopkgtest 2>&1
-Depends: @, gem2deb-test-runner
-#FIXME: add to Depends ruby-rspec, ruby-test-unit... if needed
-#Restrictions: allow-stderr
-
-#FIXME: replace LIB by the name of the main file of the library
-#Test-Command: ruby -r LIB -e "puts true"
-#Depends: @
-
+Depends: @, gem2deb-test-runner, ruby-rails, ruby-sqlite3
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-protected-attributes.git
More information about the Pkg-ruby-extras-commits
mailing list