metasploit-model 0.25.6 → 0.25.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzQ5ZTQ5ZTE0OWUyM2ZjMmYyNTNkM2NjNDgxZDE2YjkwMjg2OWYxMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWEyNjhlMmQwYzkwMzAyY2U1M2Q5MmNlNTAzOGFmYjQzYmE0YjlmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzE0OTc5MGM1MDM0MmI5MTBmM2U3Y2U2NjZkY2Q5Y2FkNjM2ZGM1YWViZTgx
|
10
|
+
ZjllODJiMGIwOTQyNGNiNTEzNTZiMzRiNjk3NWE1ZjkxOGE4NTU4NDk3NjA1
|
11
|
+
NDhiNjI2NTMyYzBjZWE1NTJkMTZhM2IyNDRhZDZlNTQ4MGE1MmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGZmNDQxZTczOWJiMTA4ZmU2ODgwOWEwNTViNjBiY2YyNjMyNGZkYTRmNjIy
|
14
|
+
ODA2NDRlOThlMzNiODU4NGU4Y2IzMzlkZmVmNDE4N2E0YTM1ZTc2NTk0NjM5
|
15
|
+
YTA4NTY2YTU2ZWZhYmIwNmFlNWYyNmRiMDk2NzBlM2Q2YzhhMTM=
|
@@ -34,4 +34,13 @@ module Metasploit::Model::Realm::Key
|
|
34
34
|
ORACLE_SYSTEM_IDENTIFIER,
|
35
35
|
POSTGRESQL_DATABASE
|
36
36
|
]
|
37
|
+
|
38
|
+
# A map of short names, suitable for use on the command line, to the
|
39
|
+
# full human-readable constants above.
|
40
|
+
SHORT_NAMES = {
|
41
|
+
'domain' => ACTIVE_DIRECTORY_DOMAIN,
|
42
|
+
'db2db' => DB2_DATABASE,
|
43
|
+
'sid' => ORACLE_SYSTEM_IDENTIFIER,
|
44
|
+
'pgdb' => POSTGRESQL_DATABASE,
|
45
|
+
}
|
37
46
|
end
|
@@ -7,7 +7,7 @@ module Metasploit
|
|
7
7
|
# The minor version number, scoped to the {MAJOR} version number.
|
8
8
|
MINOR = 25
|
9
9
|
# The patch number, scoped to the {MINOR} version number.
|
10
|
-
PATCH =
|
10
|
+
PATCH = 7
|
11
11
|
|
12
12
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
|
13
13
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|
@@ -23,8 +23,20 @@ module Metasploit
|
|
23
23
|
|
24
24
|
version
|
25
25
|
end
|
26
|
+
|
27
|
+
# The full gem version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
|
28
|
+
# {http://guides.rubygems.org/specification-reference/#version RubyGems versioning} format.
|
29
|
+
#
|
30
|
+
# @return [String] '{MAJOR}.{MINOR}.{PATCH}' on master. '{MAJOR}.{MINOR}.{PATCH}.{PRERELEASE}' on any branch
|
31
|
+
# other than master.
|
32
|
+
def self.gem
|
33
|
+
full.gsub('-', '.pre.')
|
34
|
+
end
|
26
35
|
end
|
27
36
|
|
37
|
+
# @see Version.gem
|
38
|
+
GEM_VERSION = Version.gem
|
39
|
+
|
28
40
|
# @see Version.full
|
29
41
|
VERSION = Version.full
|
30
42
|
end
|
data/metasploit-model.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'metasploit/model/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'metasploit-model'
|
8
|
-
spec.version = Metasploit::Model::
|
8
|
+
spec.version = Metasploit::Model::GEM_VERSION
|
9
9
|
spec.authors = ['Luke Imhoff']
|
10
10
|
spec.email = ['luke_imhoff@rapid7.com']
|
11
11
|
spec.description = %q{Common code, such as validators and mixins, that are shared between ActiveModels in metasploit-framework and ActiveRecords in metasploit_data_models.}
|
@@ -38,5 +38,18 @@ describe Metasploit::Model::Realm::Key do
|
|
38
38
|
it { should == 'PostgreSQL Database' }
|
39
39
|
it { should be_in described_class::ALL }
|
40
40
|
end
|
41
|
+
|
42
|
+
context 'SHORT_NAMES' do
|
43
|
+
subject { described_class::SHORT_NAMES }
|
44
|
+
it 'should have String keys' do
|
45
|
+
subject.keys.each { |key|
|
46
|
+
key.should be_a(String)
|
47
|
+
}
|
48
|
+
end
|
49
|
+
context 'values' do
|
50
|
+
subject { described_class::SHORT_NAMES.values.sort }
|
51
|
+
it { should match_array(described_class::ALL.sort) }
|
52
|
+
end
|
53
|
+
end
|
41
54
|
end
|
42
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
4
|
+
version: 0.25.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Imhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|