foreman_host_extra_validator 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1eabba0847ad99f589822d9f0dac68320256de7e
|
|
4
|
+
data.tar.gz: 97a3f9cf3dc3d2cf95a7e8f8a557f9b4f04778f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c688c43110a0f05f4eb6839608ef36472a28c3e93c5e0a5c45197593a097a43b3054517925fec00d4a3450cd1107e68e34f04540a0b6b89dce96ca8c130171c3
|
|
7
|
+
data.tar.gz: b7ff2aff51281fb38b29d55540151637ffd8667a35af77ce12f0c4fd5572941a24f25a21ba68f4c943235f57581784da6f449d80d2801cbf34bff5126157d38b
|
data/README.md
CHANGED
|
@@ -7,8 +7,7 @@ module ForemanHostExtraValidator
|
|
|
7
7
|
|
|
8
8
|
def validate_name_by_regex
|
|
9
9
|
return unless validate_name_regex
|
|
10
|
-
|
|
11
|
-
errors.add(:name, _('must match regex /%s/') % validate_name_regex)
|
|
10
|
+
errors.add(:name, _('must match regex /%s/') % validate_name_regex) unless shortname =~ /#{validate_name_regex}/
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
def validate_name_regex
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_host_extra_validator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timo Goebel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|