validates_host 1.0.0 → 1.1.0

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: 9119afe646e4f4c22c958cbe83bdbd5a20816d14
4
- data.tar.gz: 9c469eff107d97f76f5a5030fcc28023ba404656
3
+ metadata.gz: 3ccfaaef4bc3d52a9b8fa2ca185639ac9e8eef1b
4
+ data.tar.gz: 1a847e877ae09a88eb3ef62434a52fb9cb672f4c
5
5
  SHA512:
6
- metadata.gz: 1246fba586ce19f532bb2d02ac0d26156354d723e612994b717e5b4b18fdd280664722492317ef9a728c996023c4a8886d638ddf39acb967c0e011295c1816a7
7
- data.tar.gz: af59833df940100079fb42086ae9cd4503a383ad9cde070446bfd43aa75a360a3560ca8bf2cd49f54cd602b6f6da5638e282331c0277e29fab03f4c0c563fdc0
6
+ metadata.gz: 6911acf25d66107a291d5883753e1fc1e01565fd2312eedc15c97edc6bd627d959b25fc05ae00306241479ee0b94f682b46b0e8ce310e5a9ad9c682a2b9bf889
7
+ data.tar.gz: dda6fca0b134fbeda2248a265b627e1b54c6d06944b497089d2ef6593ab7d4e8a51340bc73cfab98e2e67ada6fcc6a3684a8811df60c0a8d3bc4c3e432dde1cd
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.3.6
data/.travis.yml CHANGED
@@ -1,19 +1,22 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.0
7
- - jruby
8
- - ree
2
+ - 2.0
3
+ - 2.1
4
+ - 2.2
5
+ - 2.3
6
+ - 2.4
9
7
  gemfile:
10
8
  - gemfiles/Gemfile.rails3
11
9
  - gemfiles/Gemfile.rails4
10
+ - gemfiles/Gemfile.rails5
12
11
  matrix:
13
12
  exclude:
14
- - rvm: 1.8.7
15
- gemfile: gemfiles/Gemfile.rails4
16
- - rvm: 1.9.2
17
- gemfile: gemfiles/Gemfile.rails4
18
- - rvm: ree
19
- gemfile: gemfiles/Gemfile.rails4
13
+ - rvm: 2.2
14
+ gemfile: gemfiles/Gemfile.rails3
15
+ - rvm: 2.3
16
+ gemfile: gemfiles/Gemfile.rails3
17
+ - rvm: 2.4
18
+ gemfile: gemfiles/Gemfile.rails3
19
+ - rvm: 2.0
20
+ gemfile: gemfiles/Gemfile.rails5
21
+ - rvm: 2.1
22
+ gemfile: gemfiles/Gemfile.rails5
@@ -1,5 +1,5 @@
1
1
  source :rubygems
2
2
 
3
- gem 'activesupport', '>= 4.0.0'
3
+ gem 'activesupport', '>= 4.0.0', '< 5.0.0'
4
4
 
5
5
  gemspec :path => '../'
@@ -0,0 +1,5 @@
1
+ source :rubygems
2
+
3
+ gem 'activesupport', '>= 5.0.0'
4
+
5
+ gemspec :path => '../'
@@ -8,9 +8,5 @@ module ValidatesHost
8
8
  return true if @domain_name.blank?
9
9
  @domain_name =~ /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/
10
10
  end
11
-
12
- def domain_name
13
- @domain_name
14
- end
15
11
  end
16
12
  end
@@ -8,9 +8,5 @@ module ValidatesHost
8
8
  return true if @host_name.blank?
9
9
  @host_name =~ /^[a-z][a-z0-9-]+$/
10
10
  end
11
-
12
- def host_name
13
- @host_name
14
- end
15
11
  end
16
12
  end
@@ -8,9 +8,5 @@ module ValidatesHost
8
8
  return true if @ip.blank?
9
9
  @ip =~ /^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$/
10
10
  end
11
-
12
- def ip
13
- @ip
14
- end
15
11
  end
16
12
  end
@@ -8,10 +8,6 @@ module Shoulda
8
8
  end
9
9
 
10
10
  class RequireAValidDomainNameMatcher < ValidationMatcher
11
- def initialize(attribute)
12
- @attribute = attribute
13
- end
14
-
15
11
  def description
16
12
  "require #{@attribute} to be a valid domain name"
17
13
  end
@@ -8,10 +8,6 @@ module Shoulda
8
8
  end
9
9
 
10
10
  class RequireAValidHostNameMatcher < ValidationMatcher
11
- def initialize(attribute)
12
- @attribute = attribute
13
- end
14
-
15
11
  def description
16
12
  "require #{@attribute} to be a valid host name"
17
13
  end
@@ -8,10 +8,6 @@ module Shoulda
8
8
  end
9
9
 
10
10
  class RequireAValidIpMatcher < ValidationMatcher
11
- def initialize(attribute)
12
- @attribute = attribute
13
- end
14
-
15
11
  def description
16
12
  "require #{@attribute} to be a valid ip"
17
13
  end
@@ -8,10 +8,6 @@ module Shoulda
8
8
  end
9
9
 
10
10
  class RequireAValidSubnetMatcher < ValidationMatcher
11
- def initialize(attribute)
12
- @attribute = attribute
13
- end
14
-
15
11
  def description
16
12
  "require #{@attribute} to be a valid subnet"
17
13
  end
@@ -8,9 +8,5 @@ module ValidatesHost
8
8
  return true if @subnet.blank?
9
9
  @subnet =~ /^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}\/(2[4-9]|30)$/
10
10
  end
11
-
12
- def subnet
13
- @subnet
14
- end
15
11
  end
16
12
  end
@@ -1,3 +1,3 @@
1
1
  module ValidatesHost
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -7,4 +7,6 @@ Coveralls.wear!
7
7
 
8
8
  require 'validates_host'
9
9
  require 'fake_app/server'
10
- require 'fake_app/subnet'
10
+ require 'fake_app/subnet'
11
+
12
+ include Shoulda::Matchers::ActiveModel
@@ -1,40 +1,38 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe DomainNameValidator do
4
- context "when domain_name is invalid" do
4
+ context 'when domain_name is invalid' do
5
5
  before :each do
6
- @server = Server.new(:domain_name => "http://")
7
- I18n.stub(:t).with(:"activerecord.errors.models.server.attributes.domain_name.invalid",
8
- :default => :"activerecord.errors.messages.invalid").and_return("is invalid")
6
+ @server = Server.new(:domain_name => 'http://')
9
7
  end
10
8
 
11
- it "should set object as invalid" do
12
- @server.valid?.should be_false
9
+ it 'should set object as invalid' do
10
+ expect(@server.valid?).to be_falsey
13
11
  end
14
12
 
15
- it "should set an error" do
13
+ it 'should set an error' do
16
14
  @server.valid?
17
- @server.errors[:domain_name].should == ['is invalid']
15
+ expect(@server.errors[:domain_name]).to eq(['is invalid'])
18
16
  end
19
17
  end
20
18
 
21
- context "when domain_name is valid" do
19
+ context 'when domain_name is valid' do
22
20
  before :each do
23
- @server = Server.new(:domain_name => "example.com")
21
+ @server = Server.new(:domain_name => 'example.com')
24
22
  end
25
23
 
26
- it "should set object as valid" do
27
- @server.valid?.should be_true
24
+ it 'should set object as valid' do
25
+ expect(@server.valid?).to be_truthy
28
26
  end
29
27
 
30
- it "should not set an error on attribute" do
28
+ it 'should not set an error on attribute' do
31
29
  @server.valid?
32
- @server.errors[:domain_name].should be_blank
30
+ expect(@server.errors[:domain_name]).to be_blank
33
31
  end
34
32
  end
35
33
 
36
- it "should be valid with a nil value" do
34
+ it 'should be valid with a nil value' do
37
35
  @server = Server.new(:domain_name => nil)
38
- @server.valid?.should be_true
36
+ expect(@server.valid?).to be_truthy
39
37
  end
40
38
  end
@@ -1,40 +1,38 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe HostNameValidator do
4
- context "when host_name is invalid" do
4
+ context 'when host_name is invalid' do
5
5
  before :each do
6
- @server = Server.new(:host_name => "http://")
7
- I18n.stub(:t).with(:"activerecord.errors.models.server.attributes.host_name.invalid",
8
- :default => :"activerecord.errors.messages.invalid").and_return("is invalid")
6
+ @server = Server.new(:host_name => 'http://')
9
7
  end
10
8
 
11
- it "should set object as invalid" do
12
- @server.valid?.should be_false
9
+ it 'should set object as invalid' do
10
+ expect(@server.valid?).to be_falsey
13
11
  end
14
12
 
15
- it "should set an error" do
13
+ it 'should set an error' do
16
14
  @server.valid?
17
- @server.errors[:host_name].should == ['is invalid']
15
+ expect(@server.errors[:host_name]).to eq(['is invalid'])
18
16
  end
19
17
  end
20
18
 
21
- context "when host_name is valid" do
19
+ context 'when host_name is valid' do
22
20
  before :each do
23
- @server = Server.new(:host_name => "bd01")
21
+ @server = Server.new(:host_name => 'bd01')
24
22
  end
25
23
 
26
- it "should set object as valid" do
27
- @server.valid?.should be_true
24
+ it 'should set object as valid' do
25
+ expect(@server.valid?).to be_truthy
28
26
  end
29
27
 
30
- it "should not set an error on attribute" do
28
+ it 'should not set an error on attribute' do
31
29
  @server.valid?
32
- @server.errors[:host_name].should be_blank
30
+ expect(@server.errors[:host_name]).to be_blank
33
31
  end
34
32
  end
35
33
 
36
- it "should be valid with a nil value" do
34
+ it 'should be valid with a nil value' do
37
35
  @server = Server.new(:host_name => nil)
38
- @server.valid?.should be_true
36
+ expect(@server.valid?).to be_truthy
39
37
  end
40
38
  end
@@ -1,40 +1,38 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe IpValidator do
4
- context "when ip is invalid" do
4
+ context 'when ip is invalid' do
5
5
  before :each do
6
- @server = Server.new(:ip => "127.0.0")
7
- I18n.stub(:t).with(:"activerecord.errors.models.server.attributes.ip.invalid",
8
- :default => :"activerecord.errors.messages.invalid").and_return("is invalid")
6
+ @server = Server.new(:ip => '127.0.0')
9
7
  end
10
8
 
11
- it "should set object as invalid" do
12
- @server.valid?.should be_false
9
+ it 'should set object as invalid' do
10
+ expect(@server.valid?).to be_falsey
13
11
  end
14
12
 
15
- it "should set an error" do
13
+ it 'should set an error' do
16
14
  @server.valid?
17
- @server.errors[:ip].should == ['is invalid']
15
+ expect(@server.errors[:ip]).to eq(['is invalid'])
18
16
  end
19
17
  end
20
18
 
21
- context "when ip is valid" do
19
+ context 'when ip is valid' do
22
20
  before :each do
23
- @server = Server.new(:ip => "10.10.10.1")
21
+ @server = Server.new(:ip => '10.10.10.1')
24
22
  end
25
23
 
26
- it "should set object as valid" do
27
- @server.valid?.should be_true
24
+ it 'should set object as valid' do
25
+ expect(@server.valid?).to be_truthy
28
26
  end
29
27
 
30
- it "should not set an error on attribute" do
28
+ it 'should not set an error on attribute' do
31
29
  @server.valid?
32
- @server.errors[:ip].should be_blank
30
+ expect(@server.errors[:ip]).to be_blank
33
31
  end
34
32
  end
35
33
 
36
- it "should be valid with a nil value" do
34
+ it 'should be valid with a nil value' do
37
35
  @server = Server.new(:ip => nil)
38
- @server.valid?.should be_true
36
+ expect(@server.valid?).to be_truthy
39
37
  end
40
38
  end
@@ -5,15 +5,19 @@ describe Shoulda::Matchers::ActiveModel::RequireAValidDomainNameMatcher do
5
5
  @server = Server.new
6
6
  end
7
7
 
8
- it "should accept on domain_name" do
9
- @server.should require_a_valid_domain_name(:domain_name)
8
+ it 'should accept on domain_name' do
9
+ expect(@server).to require_a_valid_domain_name(:domain_name)
10
10
  end
11
11
 
12
- it "should accept without a specified attribute" do
13
- @server.should require_a_valid_domain_name
12
+ it 'should accept without a specified attribute' do
13
+ expect(@server).to require_a_valid_domain_name
14
14
  end
15
15
 
16
- it "should reject on host_name" do
17
- @server.should_not require_a_valid_domain_name(:host_name)
16
+ it 'should reject on host_name' do
17
+ expect(@server).not_to require_a_valid_domain_name(:host_name)
18
+ end
19
+
20
+ it 'should have a description message' do
21
+ expect(require_a_valid_domain_name.description).to eq('require domain_name to be a valid domain name')
18
22
  end
19
23
  end
@@ -5,15 +5,19 @@ describe Shoulda::Matchers::ActiveModel::RequireAValidHostNameMatcher do
5
5
  @server = Server.new
6
6
  end
7
7
 
8
- it "should accept on host_name" do
9
- @server.should require_a_valid_host_name(:host_name)
8
+ it 'should accept on host_name' do
9
+ expect(@server).to require_a_valid_host_name(:host_name)
10
10
  end
11
11
 
12
- it "should accept without a specified attribute" do
13
- @server.should require_a_valid_host_name
12
+ it 'should accept without a specified attribute' do
13
+ expect(@server).to require_a_valid_host_name
14
14
  end
15
15
 
16
- it "should reject on domain_name" do
17
- @server.should_not require_a_valid_host_name(:domain_name)
16
+ it 'should reject on domain_name' do
17
+ expect(@server).not_to require_a_valid_host_name(:domain_name)
18
+ end
19
+
20
+ it 'should have a description message' do
21
+ expect(require_a_valid_host_name.description).to eq('require host_name to be a valid host name')
18
22
  end
19
23
  end
@@ -5,15 +5,19 @@ describe Shoulda::Matchers::ActiveModel::RequireAValidIpMatcher do
5
5
  @server = Server.new
6
6
  end
7
7
 
8
- it "should accept on ip" do
9
- @server.should require_a_valid_ip(:ip)
8
+ it 'should accept on ip' do
9
+ expect(@server).to require_a_valid_ip(:ip)
10
10
  end
11
11
 
12
- it "should accept without a specified attribute" do
13
- @server.should require_a_valid_ip
12
+ it 'should accept without a specified attribute' do
13
+ expect(@server).to require_a_valid_ip
14
14
  end
15
15
 
16
- it "should reject on domain_name" do
17
- @server.should_not require_a_valid_ip(:domain_name)
16
+ it 'should reject on domain_name' do
17
+ expect(@server).not_to require_a_valid_ip(:domain_name)
18
+ end
19
+
20
+ it 'should have a description message' do
21
+ expect(require_a_valid_ip.description).to eq('require ip to be a valid ip')
18
22
  end
19
23
  end
@@ -5,15 +5,19 @@ describe Shoulda::Matchers::ActiveModel::RequireAValidSubnetMatcher do
5
5
  @subnet = Subnet.new
6
6
  end
7
7
 
8
- it "should accept on value" do
9
- @subnet.should require_a_valid_subnet(:value)
8
+ it 'should accept on value' do
9
+ expect(@subnet).to require_a_valid_subnet(:value)
10
10
  end
11
11
 
12
- it "should accept without a specified attribute" do
13
- @subnet.should require_a_valid_subnet
12
+ it 'should accept without a specified attribute' do
13
+ expect(@subnet).to require_a_valid_subnet
14
14
  end
15
15
 
16
- it "should reject on id" do
17
- @subnet.should_not require_a_valid_subnet(:id)
16
+ it 'should reject on id' do
17
+ expect(@subnet).not_to require_a_valid_subnet(:id)
18
+ end
19
+
20
+ it 'should have a description message' do
21
+ expect(require_a_valid_subnet.description).to eq('require value to be a valid subnet')
18
22
  end
19
23
  end
@@ -1,40 +1,38 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SubnetValidator do
4
- context "when subnet is invalid" do
4
+ context 'when subnet is invalid' do
5
5
  before :each do
6
- @subnet = Subnet.new(:value => "127.0.0")
7
- I18n.stub(:t).with(:"activerecord.errors.models.subnet.attributes.value.invalid",
8
- :default => :"activerecord.errors.messages.invalid").and_return("is invalid")
6
+ @subnet = Subnet.new(:value => '127.0.0')
9
7
  end
10
8
 
11
- it "should set object as invalid" do
12
- @subnet.valid?.should be_false
9
+ it 'should set object as invalid' do
10
+ expect(@subnet.valid?).to be_falsey
13
11
  end
14
12
 
15
- it "should set an error" do
13
+ it 'should set an error' do
16
14
  @subnet.valid?
17
- @subnet.errors[:value].should == ['is invalid']
15
+ expect(@subnet.errors[:value]).to eq(['is invalid'])
18
16
  end
19
17
  end
20
18
 
21
- context "when subnet is valid" do
19
+ context 'when subnet is valid' do
22
20
  before :each do
23
- @subnet = Subnet.new(:value => "10.10.10.1/28")
21
+ @subnet = Subnet.new(:value => '10.10.10.1/28')
24
22
  end
25
23
 
26
- it "should set object as valid" do
27
- @subnet.valid?.should be_true
24
+ it 'should set object as valid' do
25
+ expect(@subnet.valid?).to be_truthy
28
26
  end
29
27
 
30
- it "should not set an error on attribute" do
28
+ it 'should not set an error on attribute' do
31
29
  @subnet.valid?
32
- @subnet.errors[:value].should be_blank
30
+ expect(@subnet.errors[:value]).to be_blank
33
31
  end
34
32
  end
35
33
 
36
- it "should be valid with a nil value" do
34
+ it 'should be valid with a nil value' do
37
35
  @subnet = Subnet.new(:value => nil)
38
- @subnet.valid?.should be_true
36
+ expect(@subnet.valid?).to be_truthy
39
37
  end
40
38
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_development_dependency 'rake'
19
19
  gem.add_development_dependency 'rspec'
20
- gem.add_development_dependency 'shoulda-matchers', '2.0.0'
20
+ gem.add_development_dependency 'shoulda-matchers'
21
21
  gem.add_development_dependency 'coveralls'
22
22
 
23
23
  gem.add_dependency 'activemodel', '>= 3.0.0'
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_host
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Henrique Lopes Ribeiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-24 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: shoulda-matchers
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.0.0
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.0.0
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 3.0.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.0.0
83
83
  description:
@@ -86,17 +86,18 @@ executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
- - .gitignore
90
- - .rspec
91
- - .ruby-gemset
92
- - .ruby-version
93
- - .travis.yml
89
+ - ".gitignore"
90
+ - ".rspec"
91
+ - ".ruby-gemset"
92
+ - ".ruby-version"
93
+ - ".travis.yml"
94
94
  - Gemfile
95
95
  - LICENSE
96
96
  - README.md
97
97
  - Rakefile
98
98
  - gemfiles/Gemfile.rails3
99
99
  - gemfiles/Gemfile.rails4
100
+ - gemfiles/Gemfile.rails5
100
101
  - lib/validates_host.rb
101
102
  - lib/validates_host/domain_name.rb
102
103
  - lib/validates_host/domain_name_validator.rb
@@ -133,23 +134,24 @@ require_paths:
133
134
  - lib
134
135
  required_ruby_version: !ruby/object:Gem::Requirement
135
136
  requirements:
136
- - - '>='
137
+ - - ">="
137
138
  - !ruby/object:Gem::Version
138
139
  version: '0'
139
140
  required_rubygems_version: !ruby/object:Gem::Requirement
140
141
  requirements:
141
- - - '>='
142
+ - - ">="
142
143
  - !ruby/object:Gem::Version
143
144
  version: '0'
144
145
  requirements: []
145
146
  rubyforge_project:
146
- rubygems_version: 2.1.11
147
+ rubygems_version: 2.6.14
147
148
  signing_key:
148
149
  specification_version: 4
149
150
  summary: Validates Host, Domain and IP and test it with matchers in a simple way.
150
151
  test_files:
151
152
  - gemfiles/Gemfile.rails3
152
153
  - gemfiles/Gemfile.rails4
154
+ - gemfiles/Gemfile.rails5
153
155
  - spec/fake_app/server.rb
154
156
  - spec/fake_app/subnet.rb
155
157
  - spec/spec_helper.rb