metasploit_data_models 0.22.2-java → 0.22.3-java
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 +4 -4
- data/app/models/mdm/service.rb +8 -13
- data/lib/metasploit_data_models/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: 0c95936fada78f2510c3f2b4feb776c630ee04ba
|
|
4
|
+
data.tar.gz: c861d190758743f8412d34eb451d5719a08740ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aebb116fca12dc00105669f0c5160718bb66c3ed68ab54774c3bc220cf50e6baef4a8cbf4c8f1b5a1f00344c4e8f4c3b7bdbc27dd616b96191459756e33ab900
|
|
7
|
+
data.tar.gz: 22fcef2c702f9b2fa217eb41e344372a710f0d3e2ec01d8f377b61ee27d45bfdb39efbc1691567d24ed2c5bc3458456f7ed1cc007a907b1b8c29b96aaa5658f8
|
data/app/models/mdm/service.rb
CHANGED
|
@@ -222,19 +222,14 @@ class Mdm::Service < ActiveRecord::Base
|
|
|
222
222
|
in: PROTOS
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
unless no_dupes
|
|
234
|
-
errors.add(:port, error_msg)
|
|
235
|
-
errors.add(:proto, error_msg)
|
|
236
|
-
end
|
|
237
|
-
end
|
|
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
|
+
}
|
|
238
233
|
|
|
239
234
|
#
|
|
240
235
|
# Class Methods
|
|
@@ -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 =
|
|
9
|
+
PATCH = 3
|
|
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.
|