metasploit_data_models 1.2.9 → 1.2.10

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: b603fe52627dd00db522876b30e304df7ad91a0a
4
- data.tar.gz: 8e6636a7ccdf3aa607fd36efb4fbc6c61e12ca8c
3
+ metadata.gz: a742415475c3ecc46a6eb42ab6624c460e477d38
4
+ data.tar.gz: f54104c06dae59d95ac70a845aff0a84702a583f
5
5
  SHA512:
6
- metadata.gz: a47ac5abb7ce6e1c7ced20212b95ecbc573903dc2e33485af5a30827e263bbc51e22646e02cba06aa05a3a256ee7d07253e75fa26958dfc57ddedfbead01729c
7
- data.tar.gz: d4fb534fca859751de33d74a9f2e8e7b4d74ad8de006cba5a6b3db1524fd1ee909e2b5af03d5d53cafdaa697c20cff29c018823b46da0e44b7e980d8ff2d6e2f
6
+ metadata.gz: 88e35842d34a07e96c3d3bdc09ddd72c2b7297ab517fd455e0df40e7459593b7acd560b5e96f02919b652a8150a21efbc115c5d7eb741643c8619ea0367edaf2
7
+ data.tar.gz: 50b0dd689434c86c8082d923e6dd5853a7eb094dbc5fbc646e0854f8b05923497c8f73117d2905cb081600fa666f6b72ecfe796b1aa1026173618b6f025def27
@@ -463,9 +463,6 @@ class Mdm::Host < ActiveRecord::Base
463
463
  #
464
464
 
465
465
  validates :address,
466
- :exclusion => {
467
- :in => [IPAddr.new('127.0.0.1')]
468
- },
469
466
  :ip_format => true,
470
467
  :presence => true,
471
468
  :uniqueness => {
@@ -10,7 +10,7 @@ module MetasploitDataModels
10
10
  # The minor version number, scoped to the {MAJOR} version number.
11
11
  MINOR = 2
12
12
  # The patch version number, scoped to the {MAJOR} and {MINOR} version numbers.
13
- PATCH = 9
13
+ PATCH = 10
14
14
 
15
15
  #
16
16
  # Module Methods
@@ -383,7 +383,6 @@ RSpec.describe Mdm::Host, type: :model do
383
383
 
384
384
  context 'validations' do
385
385
  context 'address' do
386
- it { is_expected.to validate_exclusion_of(:address).in_array(['127.0.0.1']) }
387
386
  it { is_expected.to validate_presence_of(:address) }
388
387
 
389
388
  # can't use validate_uniqueness_of(:address).scoped_to(:workspace_id) because it will attempt to set workspace_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Huckins
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-22 00:00:00.000000000 Z
14
+ date: 2015-12-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: metasploit-version