debian/0000755000000000000000000000000011771447726007206 5ustar debian/watch0000644000000000000000000000015311771437315010227 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/validatable .*/validatable-(.*).tar.gz debian/ruby-validatable.docs0000644000000000000000000000000711771437315013275 0ustar README debian/rules0000755000000000000000000000153511771437315010263 0ustar #!/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=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec VENDORDIR = $(CURDIR)/debian/ruby-validatable/usr/lib/ruby/vendor_ruby FILES_TO_MOVE=validations *_validation.rb errors.rb macros.rb object_extension.rb requireable.rb understandable.rb validatable_class_methods.rb validatable_instance_methods.rb %: dh $@ --buildsystem=ruby --with ruby override_dh_install: dh_install mkdir $(VENDORDIR)/validatable for x in $(FILES_TO_MOVE) ; do \ mv $(VENDORDIR)/$$x $(VENDORDIR)/validatable/ ; \ done debian/TODO0000644000000000000000000000032611771437315007670 0ustar To run the tests, this package needs the 'expectations' gem. If this gem is considered as worth being packaged, it should be added, together with ruby-mocha, ruby-dust and ruby-test-unit to the build-dependencies. debian/control0000644000000000000000000000420711771447724010612 0ustar Source: ruby-validatable Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Deepak Tripathi , Cédric Boutillier DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-validatable.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-validatable.git;a=summary Homepage: http://validatable.rubyforge.org XS-Ruby-Versions: all Package: ruby-validatable Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Replaces: libvalidatable-ruby1.8 (<< 1.6.7-7~), libvalidatable-ruby1.9.1 (<< 1.6.7-7~), libvalidatable-ruby (<< 1.6.7-7~) Breaks: libvalidatable-ruby1.8 (<< 1.6.7-7~), libvalidatable-ruby1.9.1 (<< 1.6.7-7~), libvalidatable-ruby (<< 1.6.7-7~) Provides: libvalidatable-ruby1.8, libvalidatable-ruby1.9.1, libvalidatable-ruby Description: Ruby library for adding validations The validatable library can be included with any Ruby class and provide ActiveRecord looking validations. The library follows ActiveRecord's lead for features that are similar and introduce new features. Package: libvalidatable-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-validatable Description: Transitional package for ruby-validatable This is a transitional package to ease upgrades to the ruby-validatable package. It can safely be removed. Package: libvalidatable-ruby1.9.1 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-validatable Description: Transitional package for ruby-validatable This is a transitional package to ease upgrades to the ruby-validatable package. It can safely be removed. Package: libvalidatable-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-validatable Description: Transitional package for ruby-validatable This is a transitional package to ease upgrades to the ruby-validatable package. It can safely be removed. debian/patches/0000755000000000000000000000000011771437315010626 5ustar debian/patches/move_some_rb_files_to_lib_validatable.patch0000644000000000000000000000670611771437315021376 0ustar Description: secondary Ruby files moved to validatable/ subdir in order to avoid name clash, e.g. with ruby-dust Require statement are updated accordingly with this patch Bug-Debian: http://bugs.debian.org/673738 Forwarded: not-needed Author: Cédric Boutillier Last-Update: 2012-06-13 --- a/lib/validatable.rb +++ b/lib/validatable.rb @@ -1,19 +1,19 @@ require 'forwardable' -require File.expand_path(File.dirname(__FILE__) + '/object_extension') -require File.expand_path(File.dirname(__FILE__) + '/errors') -require File.expand_path(File.dirname(__FILE__) + '/validatable_class_methods') -require File.expand_path(File.dirname(__FILE__) + '/macros') -require File.expand_path(File.dirname(__FILE__) + '/validatable_instance_methods') -require File.expand_path(File.dirname(__FILE__) + '/included_validation') -require File.expand_path(File.dirname(__FILE__) + '/child_validation') -require File.expand_path(File.dirname(__FILE__) + '/understandable') -require File.expand_path(File.dirname(__FILE__) + '/requireable') -require File.expand_path(File.dirname(__FILE__) + '/validations/validation_base') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_format_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_presence_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_acceptance_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_confirmation_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_length_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_true_for') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_numericality_of') -require File.expand_path(File.dirname(__FILE__) + '/validations/validates_each') \ No newline at end of file +require File.expand_path(File.dirname(__FILE__) + '/validatable/object_extension') +require File.expand_path(File.dirname(__FILE__) + '/validatable/errors') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validatable_class_methods') +require File.expand_path(File.dirname(__FILE__) + '/validatable/macros') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validatable_instance_methods') +require File.expand_path(File.dirname(__FILE__) + '/validatable/included_validation') +require File.expand_path(File.dirname(__FILE__) + '/validatable/child_validation') +require File.expand_path(File.dirname(__FILE__) + '/validatable/understandable') +require File.expand_path(File.dirname(__FILE__) + '/validatable/requireable') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validation_base') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_format_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_presence_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_acceptance_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_confirmation_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_length_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_true_for') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_numericality_of') +require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_each') debian/patches/series0000644000000000000000000000005411771437315012042 0ustar move_some_rb_files_to_lib_validatable.patch debian/copyright0000644000000000000000000000220111771437315011125 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: validatable Source: http://validatable.rubyforge.org Files: * Copyright: 2007 Jay Fields License: GPL-2 Files: debian/* Copyright: 2010 Deepak Tripathi 2012 Cédric Boutillier License: GPL-2 License: GPL-2 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. . 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. . 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'. debian/changelog0000644000000000000000000000541511771447726011065 0ustar ruby-validatable (1.6.7-9) unstable; urgency=low * Team upload. * Rebuild with newer gem2deb -- Vincent Fourmond Sun, 24 Jun 2012 01:22:47 +0200 ruby-validatable (1.6.7-8) unstable; urgency=high * Move secondary Ruby files into /usr/lib/ruby/vendor_ruby/validatable/ to avoid name clash (Closes: #673738). + override dh_install in rules to move the files + add debian/patches/move_some_rb_files_to_lib_validatable.patch to adapt require statements * Set urgency to high, as this version solves an RC bug * Adapt versions in Breaks: and Replaces: fields to match the last version of the package not following the new Ruby policy. -- Cédric Boutillier Wed, 13 Jun 2012 23:47:54 +0200 ruby-validatable (1.6.7-7) unstable; urgency=low * Transition to new Ruby policy + renaming source and binary packages + using gem2deb packaging tool * Add myself to Uploaders: * Bump Standards-Version: to 3.9.3 (no particular changes needed) * Convert copyright file to DEP-5 * Deactivate tests (needs ruby-expectations, unpackaged) * Override lintian warning about duplicate descriptions of transitional packages -- Cédric Boutillier Sat, 19 May 2012 17:34:34 +0200 libvalidatable-ruby (1.6.7-6) unstable; urgency=low * Taking over from Sebestien. * Keeping under pkg-ruby-extras group. * Added test for ruby1.9.1 and remove comments + Changes in debian/rules * Removed unnecessary file from debian/ * Added Homepage and Vcs-* entry + Changes in debian/control -- Deepak Tripathi Sun, 21 Feb 2010 17:11:15 +0000 libvalidatable-ruby (1.6.7-5) unstable; urgency=low * Move to ruby1.9.1 (Closes: #569870). * Bumped up Standards-Version. * Removed unused lintian override. -- Sebastien Delafond Tue, 16 Feb 2010 11:28:18 +0100 libvalidatable-ruby (1.6.7-4) unstable; urgency=low * Lintian cleanups. * Bumped up Standards revision. * Moved to cdbs. -- Sebastien Delafond Mon, 19 Oct 2009 13:37:32 +0200 libvalidatable-ruby (1.6.7-3) unstable; urgency=low * Updated description to actually describe validatable (Closes: #499210). -- Sebastien Delafond Wed, 17 Sep 2008 10:28:14 -0700 libvalidatable-ruby (1.6.7-2) unstable; urgency=low * Updated description and dependencies to reflect that we are in fact not using ruby inline (Closes: #499210). * Bumped up Standards-Version. * Added debian/watch file. -- Sebastien Delafond Tue, 16 Sep 2008 19:00:49 -0700 libvalidatable-ruby (1.6.7-1) unstable; urgency=low * Initial Release (Closes: #480966). -- Sebastien Delafond Mon, 12 May 2008 16:12:45 -0700 debian/compat0000644000000000000000000000000211771437315010375 0ustar 7 debian/source/0000755000000000000000000000000011771437315010477 5ustar debian/source/lintian-overrides0000644000000000000000000000036111771437315014060 0ustar ruby-validatable source: duplicate-short-description libvalidatable-ruby libvalidatable-ruby1.8 libvalidatable-ruby1.9.1 ruby-validatable source: duplicate-long-description libvalidatable-ruby libvalidatable-ruby1.8 libvalidatable-ruby1.9.1 debian/source/format0000644000000000000000000000001411771437315011705 0ustar 3.0 (quilt)