metasploit_data_models 0.22.5 → 0.22.6

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: 859e35cb4e65777beae4ee82aa2441a6e5fe735d
4
- data.tar.gz: 1f874280a23afc1dfa4db4f757ebc4e7e9dd37fc
3
+ metadata.gz: cc2e8b1ff8ffd14664cefae910ad86700b70c8bd
4
+ data.tar.gz: ced0deab5f82315af5229df943eb32b7943d4ad3
5
5
  SHA512:
6
- metadata.gz: f5689d9ca36fcdfe73a62b0ab6b37877e9fcd5198cbb5bea8ef56945ed22e706e9d5c14e23eb8543409c036378813443a8984c0678171874550f8bde9950a94f
7
- data.tar.gz: b0a7331848d191634b1d20b19b16d7d68fcca1e2bbc9434ee3c2c3e0668cf87ab1750356efa6a9268a8d547450b1cdd0c63a773d9500cc2a3ee54db2f40e5407
6
+ metadata.gz: 2648c040cd1debecb2685a63a7f593b52b7b1c1e4cf798e904f9aef2ce2b420b01c1f9d4f410ddf0b0ff5834bd1adcdd1ba26d44080d8b04b28423c0c6246a31
7
+ data.tar.gz: 473af760fd318ef2c4707ad6ff0456110e6176b8860b808f8561c389ae358d6497e03f6b8761fe6ce797152adfec930ab5dc86479859672b99933e126fe28c22
@@ -222,14 +222,6 @@ class Mdm::Service < ActiveRecord::Base
222
222
  in: PROTOS
223
223
  }
224
224
 
225
- validates :host_id,
226
- uniqueness: {
227
- message: 'already has a service with this port and proto',
228
- scope: [
229
- :port,
230
- :proto
231
- ]
232
- }
233
225
 
234
226
  #
235
227
  # Class Methods
@@ -0,0 +1,5 @@
1
+ class DropServiceUniquenessIndex < ActiveRecord::Migration
2
+ def change
3
+ remove_index(:services, :host_id_and_port_and_proto)
4
+ end
5
+ end
@@ -6,7 +6,7 @@ module MetasploitDataModels
6
6
  # The minor version number, scoped to the {MAJOR} version number.
7
7
  MINOR = 22
8
8
  # The patch number, scoped to the {MINOR} version number.
9
- PATCH = 5
9
+ PATCH = 6
10
10
 
11
11
  # The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
12
12
  # {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
@@ -154,12 +154,5 @@ describe Mdm::Service do
154
154
  it { should validate_numericality_of(:port).only_integer }
155
155
  it { should ensure_inclusion_of(:proto).in_array(described_class::PROTOS) }
156
156
 
157
- context 'when a duplicate service already exists' do
158
- let(:service1) { FactoryGirl.create(:mdm_service)}
159
- let(:service2) { FactoryGirl.build(:mdm_service, :host => service1.host, :port => service1.port, :proto => service1.proto )}
160
- it 'is not valid' do
161
- expect(service2).to_not be_valid
162
- end
163
- end
164
157
  end
165
158
  end
@@ -2686,13 +2686,6 @@ CREATE INDEX index_notes_on_ntype ON notes USING btree (ntype);
2686
2686
  CREATE INDEX index_refs_on_name ON refs USING btree (name);
2687
2687
 
2688
2688
 
2689
- --
2690
- -- Name: index_services_on_host_id_and_port_and_proto; Type: INDEX; Schema: public; Owner: -; Tablespace:
2691
- --
2692
-
2693
- CREATE UNIQUE INDEX index_services_on_host_id_and_port_and_proto ON services USING btree (host_id, port, proto);
2694
-
2695
-
2696
2689
  --
2697
2690
  -- Name: index_services_on_name; Type: INDEX; Schema: public; Owner: -; Tablespace:
2698
2691
  --
@@ -2996,6 +2989,8 @@ INSERT INTO schema_migrations (version) VALUES ('20140905031549');
2996
2989
 
2997
2990
  INSERT INTO schema_migrations (version) VALUES ('20150112203945');
2998
2991
 
2992
+ INSERT INTO schema_migrations (version) VALUES ('20150205192745');
2993
+
2999
2994
  INSERT INTO schema_migrations (version) VALUES ('21');
3000
2995
 
3001
2996
  INSERT INTO schema_migrations (version) VALUES ('22');
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: 0.22.5
4
+ version: 0.22.6
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-02-01 00:00:00.000000000 Z
14
+ date: 2015-02-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -394,6 +394,7 @@ files:
394
394
  - db/migrate/20130717150737_remove_pname_validation.rb
395
395
  - db/migrate/20140905031549_add_detected_arch_to_host.rb
396
396
  - db/migrate/20150112203945_remove_duplicate_services.rb
397
+ - db/migrate/20150205192745_drop_service_uniqueness_index.rb
397
398
  - lib/mdm.rb
398
399
  - lib/mdm/host/operating_system_normalization.rb
399
400
  - lib/mdm/module.rb