morse_fields_validator 1.1.8 → 1.1.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da527e66cd32bd0328e9822e45654d6ce5d790ae
|
4
|
+
data.tar.gz: 3f4b08bc0c1d0030151100f0c21da54986e70021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8593ec61422230fa5fa832936416c6998a8f641a7539afcb19b32eaa896d1dbe472c141a940db5e9e8cbf6dd083f4a7cd03b0ddebbc1032eaa653e5b4ec26f5e
|
7
|
+
data.tar.gz: efe6627064c3bb65df316f89881c785df9a8b32a5306ed7f6c0d8831fdf7f120247447b9051cc6dac5fd7fcf919c3adbfe1201089d768b9407e32c967da70125
|
data/lib/fields_validator.rb
CHANGED
@@ -29,7 +29,7 @@ module FieldsValidator
|
|
29
29
|
|
30
30
|
def validate_column_names
|
31
31
|
if self.class.required_database_fields and self.class.required_database_fields.any?
|
32
|
-
self.class.required_database_fields.each { |rdf|
|
32
|
+
self.class.required_database_fields.each { |rdf| errors.add(rdf, "does not have a column in the database.") unless self.class.column_names.include?(rdf)} if self.class.required_database_fields.any?
|
33
33
|
end
|
34
34
|
end
|
35
35
|
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.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry S
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -147,7 +147,6 @@ extra_rdoc_files: []
|
|
147
147
|
files:
|
148
148
|
- ".coveralls.yml"
|
149
149
|
- ".gitignore"
|
150
|
-
- ".morse_fields_validator.gemspec.swp"
|
151
150
|
- ".rspec"
|
152
151
|
- ".travis.yml"
|
153
152
|
- Gemfile
|
@@ -156,7 +155,6 @@ files:
|
|
156
155
|
- Rakefile
|
157
156
|
- bin/console
|
158
157
|
- bin/setup
|
159
|
-
- lib/.fields_validator.rb.swp
|
160
158
|
- lib/fields_validator.rb
|
161
159
|
- lib/morse_fields_validator.rb
|
162
160
|
- lib/morse_fields_validator/version.rb
|
Binary file
|
Binary file
|