metasploit_data_models 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +9 -5
- data/config/initializers/ipaddr.rb +13 -24
- data/lib/metasploit_data_models/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562f975548e17f7621220480539f493209b44f03
|
4
|
+
data.tar.gz: acfde161424352e9b4d0f44923236c7fa5aa2019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee871e974b2bf8edfb12b81d1e2758191cd9417ad3551eb0ac58c66a23905a94ed225daae5b4af8c1635fa8d7317ba93157b9bb32620200a2349ed53b98ec0c
|
7
|
+
data.tar.gz: e000f095ed40f27947536cf23ead58f2b909c46b0111e30309ddcdfe1ea49f7fa00dddf68eb76e805c90356a1e3c9aa6b86a2643286b88a60eca9e5dd59499b9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
@@ -1,17 +1,21 @@
|
|
1
|
-
addons:
|
2
|
-
postgresql: '9.5'
|
3
|
-
group: stable
|
4
1
|
sudo: false
|
2
|
+
group: stable
|
5
3
|
cache: bundler
|
6
4
|
addons:
|
5
|
+
postgresql: '9.3'
|
7
6
|
apt:
|
8
7
|
packages:
|
8
|
+
- libpcap-dev
|
9
9
|
- graphviz
|
10
10
|
language: ruby
|
11
11
|
rvm:
|
12
|
-
- 2.
|
12
|
+
- '2.3.1'
|
13
|
+
|
13
14
|
before_script:
|
14
15
|
- cp spec/dummy/config/database.yml.travis spec/dummy/config/database.yml
|
15
16
|
- bundle exec rake --version
|
16
17
|
- bundle exec rake db:create db:migrate
|
17
|
-
script:
|
18
|
+
script:
|
19
|
+
- git diff --exit-code spec/dummy/db/structure.sql
|
20
|
+
- bundle exec rake spec
|
21
|
+
- bundle exec rake yard
|
@@ -1,35 +1,24 @@
|
|
1
1
|
module IPAddrExtensions
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
included do
|
4
|
-
|
5
|
-
remove_method :==
|
6
|
-
rescue NameError => e
|
7
|
-
puts e.message
|
8
|
-
end
|
9
|
-
|
10
|
-
alias_method :spaceship_without_rescue, :<=>
|
11
|
-
alias_method :<=>, :spaceship_with_rescue
|
12
|
-
|
13
|
-
alias_method_chain :include?, :rescue
|
4
|
+
alias_method_chain :coerce_other, :rescue
|
14
5
|
end
|
15
6
|
|
16
|
-
|
17
|
-
def spaceship_with_rescue(other)
|
7
|
+
def coerce_other_with_rescue(other)
|
18
8
|
begin
|
19
|
-
|
20
|
-
|
21
|
-
|
9
|
+
case other
|
10
|
+
when IPAddr
|
11
|
+
other
|
12
|
+
when String
|
13
|
+
self.class.new(other)
|
14
|
+
else
|
15
|
+
self.class.new(other, @family)
|
16
|
+
end
|
17
|
+
rescue ArgumentError => e
|
18
|
+
OpenStruct.new(family: false, to_i: false)
|
22
19
|
end
|
23
20
|
end
|
24
|
-
|
25
|
-
def include_with_rescue?(other)
|
26
|
-
begin
|
27
|
-
include_without_rescue?(other)
|
28
|
-
rescue ArgumentError
|
29
|
-
false
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
21
|
+
|
33
22
|
end
|
34
23
|
|
35
24
|
IPAddr.send(:include, IPAddrExtensions)
|
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: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Huckins
|
@@ -91,7 +91,7 @@ cert_chain:
|
|
91
91
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
92
92
|
8mVuTXnyJOKRJA==
|
93
93
|
-----END CERTIFICATE-----
|
94
|
-
date: 2016-
|
94
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
95
95
|
dependencies:
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: metasploit-yard
|
metadata.gz.sig
CHANGED
Binary file
|