formvalidator 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,30 @@
1
+ {
2
+ :customer =>
3
+ {
4
+ :required_regexp => /name/,
5
+ :required => [ :home_phone, :age, :password ],
6
+ :optional => %w{fax email paytype check_no country},
7
+ :optional_regexp => /street|city|state|zipcode/,
8
+ :require_some => { :check_or_cc => [1, %w{cc_num check_no}] },
9
+ :dependencies => { :paytype => { :CC => [ :cc_type, :cc_exp ],
10
+ :Check => :check_no },
11
+ :street => [ :city, :state, :zipcode ]
12
+ },
13
+ :dependency_groups => { :password_group => [ :password,
14
+ :password_confirmation ]
15
+ },
16
+ :filters => :strip,
17
+ :field_filters => { :home_phone => :phone,
18
+ :check_no => :digit,
19
+ :cc_no => :digit
20
+ },
21
+ :field_filter_regexp_map => { /name/ => :capitalize },
22
+ :constraints => { :age => /^1?\d{1,2}$/,
23
+ :fax => :american_phone,
24
+ :state => :state_or_province,
25
+ :email => :email },
26
+ :defaults => { :country => "USA" },
27
+ :constraint_regexp_map => { /code/ => :zip },
28
+ :untaint_all_constraints => true
29
+ }
30
+ }
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: "0.8"
3
+ specification_version: 1
4
+ name: formvalidator
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.3
7
+ date: 2004-10-23
8
+ summary: "FormValidator is a Ruby port of Perl's Data::FormValidator library."
9
+ require_paths:
10
+ - "."
11
+ author: Travis Whitton
12
+ email: whitton@atlantic.net
13
+ homepage: http://grub.ath.cx/formvalidator/
14
+ rubyforge_project:
15
+ description:
16
+ autorequire: formvalidator
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - tests
30
+ - README
31
+ - examples
32
+ - CHANGELOG
33
+ - TODO
34
+ - formvalidator.rb
35
+ - README.rdoc
36
+ - install.rb
37
+ - AUTHORS
38
+ - formvalidator.gemspec
39
+ - tests/testprofile.rb
40
+ - tests/regress.rb
41
+ - examples/file.rb
42
+ - examples/standard.rb
43
+ - examples/profiles
44
+ - examples/extend.rb
45
+ - examples/simple.rb
46
+ - examples/README
47
+ - examples/profiles/my_profile.rb
48
+ - examples/profiles/extension.rb
49
+ test_files:
50
+ - tests/regress.rb
51
+ rdoc_options:
52
+ - "--main"
53
+ - README.rdoc
54
+ extra_rdoc_files:
55
+ - README.rdoc
56
+ executables: []
57
+ extensions: []
58
+ requirements: []
59
+ dependencies: []