validation_profiler 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9490c77f17ba1d1d2b7def8c794d94f6462f7339
4
- data.tar.gz: b4895489d995672e613269b970ad9af43898947a
3
+ metadata.gz: cc1402be1d084455b493173d1ef7c46c1e41a15e
4
+ data.tar.gz: e6fa95cbf2ff55f75708e184811fa4b8dc399f53
5
5
  SHA512:
6
- metadata.gz: 93465aea3f838984c77b090b0c56dddd0bd6dc1048e9192f518f0a025c1e1144a163a36048cb169cdb6a8ec6287d398b428fda008654e97a9499e9ff6ab160b6
7
- data.tar.gz: b7c9bf9ffabe1674a835bcacfbc2cc9b8a6a2657bcf986640fee74967eb9a6014713165ac70bb92234b9dc5312900d81a85c713f33642cebfd91d7e8a8ae207c
6
+ metadata.gz: 8f7b57a394eac4212a9f258ee6e6f4d7c6756d31f4a207d97c4961ef362d8babcfae28265d1b48b893142082e4bed15b0c9f43f5b36cb5b4dc489046b5ac91b9
7
+ data.tar.gz: ea770e0ef033ac41aa13977cab161fd172b7cfc252d4ebeb6e12d17b9ad3c5fa5ca34de3ffd56820f3704cacce390e6c943d506d18b688402d74731586e569f4
@@ -1,3 +1,3 @@
1
1
  module ValidationProfiler
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -7,8 +7,8 @@ class Class
7
7
  #
8
8
  # @param field [Symbol] The name of the field to validate
9
9
  # @param rule [Symbol] The name of the validation rule to use
10
- # @param attributes [Hash] A has containing the validation rule options
11
- def validates(field, rule, attributes)
10
+ # @param attributes [Hash] [Optional] A has containing the validation rule options
11
+ def validates(field, rule, attributes = {})
12
12
 
13
13
  if !defined?(self.validation_rules)
14
14
  self.class_variable_set(:@@validation_rules, [])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage