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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60deb791f704876c50f895cd02bdbefaf5645e00
4
- data.tar.gz: d3fb432169d4f2aac4297526b59e413f2114ef2c
3
+ metadata.gz: 562f975548e17f7621220480539f493209b44f03
4
+ data.tar.gz: acfde161424352e9b4d0f44923236c7fa5aa2019
5
5
  SHA512:
6
- metadata.gz: 5073af40ac98c059cbb14a211c2d1073badf1461d55d2144c39751772488996546b5c724465c8f8ebf7beaa200a634d043e031da0eec6a7d07b7fe19c3648328
7
- data.tar.gz: 14efb21a95c00b71a818fb0ea1e4130ac9ce408ce54b154fe948ca4a1e61d869fb402eaab2c999f35c493d25ed4e269ee68c806ae2932213684ea43bd8463ea9
6
+ metadata.gz: 9ee871e974b2bf8edfb12b81d1e2758191cd9417ad3551eb0ac58c66a23905a94ed225daae5b4af8c1635fa8d7317ba93157b9bb32620200a2349ed53b98ec0c
7
+ data.tar.gz: e000f095ed40f27947536cf23ead58f2b909c46b0111e30309ddcdfe1ea49f7fa00dddf68eb76e805c90356a1e3c9aa6b86a2643286b88a60eca9e5dd59499b9
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.2.4
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: bundle exec rake spec yard
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
- begin
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
- spaceship_without_rescue(other)
20
- rescue ArgumentError
21
- false
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)
@@ -1,6 +1,6 @@
1
1
  module MetasploitDataModels
2
2
  # VERSION is managed by GemRelease
3
- VERSION = '2.0.6'
3
+ VERSION = '2.0.7'
4
4
 
5
5
  # @return [String]
6
6
  #
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.6
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-10-26 00:00:00.000000000 Z
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