subnet_format 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subnet_format/subnet_format_validator.rb +2 -2
- data/lib/subnet_format/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ec35ceb26d642289784cf4b8e8d837b9217e97
|
4
|
+
data.tar.gz: bda096ad9980617f276cf144361ee6056036cde5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28c386a55546f13c3d5459bcbc39a8af810ab1acce3e8cfe8f0e6f27231018cd49050fadf79424d43c8b510294e22f09b2a36daf9edb9da3feaaec316bf15f1c
|
7
|
+
data.tar.gz: 9a5563df6b570e4c2aacfefab166b3b65f45306125ecec9cc8a91a4f0590b2669b1f7251c00d3c880d479b6aff707420cd261bdfe15b6049df323586d20683e4
|
@@ -40,11 +40,11 @@ class SubnetFormatValidator < ActiveModel::Validator
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def ip_argument_error
|
43
|
-
@record.errors[:base] << (options[:message] || "
|
43
|
+
@record.errors[:base] << (options[:message] || "The ip you provided was invalid")
|
44
44
|
end
|
45
45
|
|
46
46
|
def dhcp_range_error(invalid_ip)
|
47
47
|
@record.errors[:base] << (options[:message] ||
|
48
|
-
"
|
48
|
+
"The DHCP range you provided was invalid, try from #{ invalid_ip.to_range.first } to #{ invalid_ip.to_range.last }")
|
49
49
|
end
|
50
50
|
end
|