omg_validator 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc ADDED
@@ -0,0 +1,53 @@
1
+ # OmgValidator
2
+
3
+ OmgValidator is a collection of custom validators for Rails 3.x. These are simple validators that mostly use regular expressions for common validation requirements, including:
4
+
5
+ * Alpha-dash characters
6
+ * Alphanumeric characters
7
+ * Alpha characters
8
+ * Dates
9
+ * Decimal numbers
10
+ * Email addresses
11
+ * Integer numbers
12
+ * IP addresses
13
+ * Numeric characters
14
+ * US and Canadian (or compatible) Phone numbers
15
+ * US and Canadian (or compatible) Postal/Zip Codes
16
+ * Strong passwords
17
+ * URL
18
+ * US (or compatible) Zip Code
19
+
20
+ Using the gem is easy. Just add it to your gemfile.
21
+
22
+ gem "omg_validator", "~> 0.0.4"
23
+
24
+ Run bundle install and then use them in your models. For example:
25
+
26
+ validates :postal_code, postal_or_zip_code: true
27
+
28
+ Think of this package as a swiss army knife for your validation needs. It larges replaces the need to use validates_format_of validation helper method.
29
+
30
+ The decimal, integer, and numeric validators do overlap with functionality in the validates_numericality_of validation helper method. We have kept these in the gem however, as we personally find them easier to use. The validates_numericality_of method is still immensely useful for more complex numeric validations.
31
+
32
+ ### Contributors
33
+
34
+ * Nickolas Kenyeres
35
+ * Michael Mottola
36
+
37
+ ### How to Contribute
38
+
39
+ This project is in active development. We are using it in real world projects; some parts work well, and others need more work. In other words; test it before using it.
40
+
41
+ We released it hoping that others would find it useful. We encourage you to fork the project and improve on it. We would be most gracious if you send a pull request with your modifications. We will include you in the list of contributors unless you request to not be listed.
42
+
43
+ The source code for this project is here: https://github.com/llwebsol/OmgValidators.
44
+
45
+ ### License
46
+
47
+ Copyright (c) 2011-2012 Nickolas Kenyeres, Michael Mottola.
48
+
49
+ 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:
50
+
51
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
52
+
53
+ 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.
@@ -1,4 +1,4 @@
1
1
  module OmgValidator
2
2
  #Version of Gem
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omg_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-30 00:00:00.000000000Z
13
+ date: 2012-03-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &20595780 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,7 +22,12 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *20595780
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  description: A bunch of Rails validators to extend ActiveModel
27
32
  email:
28
33
  - nkenyeres@gmail.com
@@ -39,6 +44,7 @@ files:
39
44
  - Gemfile.lock
40
45
  - MIT-LICENSE
41
46
  - README.markdown
47
+ - README.rdoc
42
48
  - Rakefile
43
49
  - doc/OmgValidator.html
44
50
  - doc/OmgValidator/Validators.html
@@ -90,6 +96,7 @@ files:
90
96
  - lib/omg_validator/version.rb
91
97
  - lib/tasks/omg_validator_tasks.rake
92
98
  - omg_validator-0.0.4.gem
99
+ - omg_validator-0.0.5.gem
93
100
  - omg_validator.gemspec
94
101
  - test/dummy/Rakefile
95
102
  - test/dummy/app/assets/javascripts/application.js
@@ -144,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
151
  version: '0'
145
152
  requirements: []
146
153
  rubyforge_project: omg_validator
147
- rubygems_version: 1.8.10
154
+ rubygems_version: 1.8.21
148
155
  signing_key:
149
156
  specification_version: 3
150
157
  summary: A bunch of Rails validators to extend ActiveModel