Initial import of validatable-1.6.7.

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.
This commit is contained in:
bernd 2009-08-09 08:33:32 +00:00
parent fe53a474e7
commit a43a09f64a
4 changed files with 211 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/09 08:33:32 bernd Exp $
COMMENT = provide ActiveRecord looking validations
DISTNAME = validatable-1.6.7
PKGNAME = ruby-${DISTNAME}
CATEGORIES = databases
HOMEPAGE = http://validatable.rubyforge.org/
# Ruby license
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_RUBYFORGE:=validatable/}
MODULES = lang/ruby
CONFIGURE_STYLE = ruby gem
PKG_ARCH = *
REGRESS_DEPENDS = ::devel/ruby-mocha \
::devel/ruby-rake
do-regress:
@cd ${WRKBUILD} && ${LOCALBASE}/bin/rake test
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (validatable-1.6.7.gem) = qYzXXHWJjXr40cUKXN0ksQ==
RMD160 (validatable-1.6.7.gem) = oyUoYI+uJ+N+UBXHISAeubvzIEs=
SHA1 (validatable-1.6.7.gem) = o89Y5eRB3obVpTIxb+8LJk8chlU=
SHA256 (validatable-1.6.7.gem) = pFolp+1ubZPH5ZIk1moxBP21VXQ/Qap8AyN1J36XSg4=
SIZE (validatable-1.6.7.gem) = 15872

View File

@ -0,0 +1,4 @@
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.

View File

@ -0,0 +1,171 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/09 08:33:32 bernd Exp $
lib/ruby/gems/${MODRUBY_REV}/cache/${DISTNAME}.gem
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable.src/M000001.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable.src/M000002.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable.src/M000003.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.src/M000015.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.src/M000016.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.src/M000017.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Errors.src/M000018.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000004.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000005.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000006.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000007.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000008.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000009.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000010.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000011.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000012.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000013.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/classes/Validatable/Macros.src/M000014.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/created.rid
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/README.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/child_validation_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/errors_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/included_validation_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/macros_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/object_extension_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/requireable_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/understandable_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validatable_class_methods_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validatable_instance_methods_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validatable_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_acceptance_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_confirmation_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_each_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_format_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_length_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_numericality_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_presence_of_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validates_true_for_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/files/lib/validations/validation_base_rb.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_class_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_file_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/fr_method_index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/index.html
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/rdoc/rdoc-style.css
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/InstanceExecHelper/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/InstanceExecHelper/cdesc-InstanceExecHelper.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Object/cdesc-Object.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ChildValidation/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ChildValidation/cdesc-ChildValidation.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ClassMethods/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ClassMethods/cdesc-ClassMethods.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/cdesc-Errors.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/full_messages-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/on-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/raw-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Errors/replace-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/IncludedValidation/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/IncludedValidation/cdesc-IncludedValidation.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/before_validation-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/cdesc-Macros.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/include_errors_from-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/include_validations_from-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_acceptance_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_confirmation_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_each-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_format_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_length_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_numericality_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_presence_of-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Macros/validates_true_for-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Requireable/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Requireable/ClassMethods/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Requireable/ClassMethods/cdesc-ClassMethods.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Requireable/cdesc-Requireable.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Understandable/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Understandable/ClassMethods/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Understandable/ClassMethods/cdesc-ClassMethods.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/Understandable/cdesc-Understandable.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesAcceptanceOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesAcceptanceOf/cdesc-ValidatesAcceptanceOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesConfirmationOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesConfirmationOf/cdesc-ValidatesConfirmationOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesEach/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesEach/cdesc-ValidatesEach.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesFormatOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesFormatOf/cdesc-ValidatesFormatOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesLengthOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesLengthOf/cdesc-ValidatesLengthOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesNumericalityOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesNumericalityOf/cdesc-ValidatesNumericalityOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesPresenceOf/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesPresenceOf/cdesc-ValidatesPresenceOf.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesTrueFor/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidatesTrueFor/cdesc-ValidatesTrueFor.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidationBase/
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/ValidationBase/cdesc-ValidationBase.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/cdesc-Validatable.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/errors-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/valid%3f-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/Validatable/validate_only-i.yaml
lib/ruby/gems/${MODRUBY_REV}/doc/${DISTNAME}/ri/created.rid
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/README
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/child_validation.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/errors.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/included_validation.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/macros.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/object_extension.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/requireable.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/understandable.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validatable.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validatable_class_methods.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validatable_instance_methods.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_acceptance_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_confirmation_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_each.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_format_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_length_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_numericality_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_presence_of.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validates_true_for.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/lib/validations/validation_base.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/rakefile.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/all_tests.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validatable_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_acceptance_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_confirmation_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_each_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_format_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_length_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_numericality_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_presence_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/functional/validates_true_for_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/test_helper.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/errors_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/understandable_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validatable_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_acceptance_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_confirmation_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_format_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_length_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_numericality_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_presence_of_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validates_true_for_test.rb
lib/ruby/gems/${MODRUBY_REV}/gems/${DISTNAME}/test/unit/validation_base_test.rb
lib/ruby/gems/${MODRUBY_REV}/specifications/${DISTNAME}.gemspec