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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d46112fe51a28d355117c170daac9d438b24a56c
4
- data.tar.gz: b284b21e8ad17328c6a90d260070fef6390d07c7
3
+ metadata.gz: c8ec35ceb26d642289784cf4b8e8d837b9217e97
4
+ data.tar.gz: bda096ad9980617f276cf144361ee6056036cde5
5
5
  SHA512:
6
- metadata.gz: 1c366a0ac25813dc6aa116f14c634b9e0922bd40b49d255d50b776805fa2e8b0b7cb7529ccd7c5fcfc63e47c6fae4d2bc78852f20efe9cd89ae4b8f438918317
7
- data.tar.gz: 8f9847d322f030be0b5cf3d98670cc2cb298a2e14d91584c5b1443bfde95ec342a295d7b5d5a4a06a1d27f89319af22450255ac0d307fc474eee167d3fa965a5
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] || "is an invalid ip")
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
- "has an invalid DHCP range, valid range: #{ invalid_ip.to_range.first } to #{ invalid_ip.to_range.last }")
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
@@ -1,3 +1,3 @@
1
1
  module SubnetFormat
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subnet_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander