morse_fields_validator 1.1.6 → 1.1.7

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: fae7e32bd29a406410a84493323e2b7c68805f99
4
- data.tar.gz: 170f6a090e9dfffebe2fbc6f5dc0635b400b8b86
3
+ metadata.gz: 7da678fba665d9e6213556534125c8bddaa99c17
4
+ data.tar.gz: 509f9535b741b94e7cabceb1a346c5fb03892020
5
5
  SHA512:
6
- metadata.gz: 0a870cd37480322eaa46c3e5104178da6fafdbb7a9e9d572c005230606ad62355bd76a695ff7c16be74b834c9e9a1e66ba1b0a47e6582eb4aed7b7e0b6426b4b
7
- data.tar.gz: 0c054c0b8a55afe2e3a6e7ac84ce517c25838e55b19c7b0fbe284b7415b42b2b38432bd5cc3d1805357504ff6458a631bf28c355bbdf8068cf4fb8740a636450
6
+ metadata.gz: 31c3042b9c4f7282449f6041dac72c37b24aba34698ff9dd9c6a463545167f26621285f1ddb4401a1a9af6bbca5eb9fe3e83751f128eeec010ed04f36306266f
7
+ data.tar.gz: 01c2bec4b757ecf481e55e7e9da7d0664baba92370d03fdc67cf7c31e29d22b08d3d95b979ba05c7c1f1c820d8f989df42e3532bc6208f1a5ac51575a1e81e37
Binary file
@@ -8,9 +8,11 @@ module FieldsValidator
8
8
 
9
9
  class_methods do
10
10
  def validate_required_attributes
11
- required_attributes.each do |a|
12
- validates a.to_sym, presence: true
13
- end if required_attributes and required_attributes.any?
11
+ if required_attributes and required_attributes.any?
12
+ required_attributes.each do |a|
13
+ validates a.to_sym, presence: true
14
+ end
15
+ end
14
16
  end
15
17
 
16
18
  def required_attributes
@@ -1,3 +1,3 @@
1
1
  module MorseFieldsValidator
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morse_fields_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terry S