metasploit-model 0.27.3-java → 0.27.4-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/app/models/metasploit/model/association/reflection.rb +0 -3
- data/app/models/metasploit/model/module/ancestor/spec/template.rb +0 -3
- data/app/models/metasploit/model/module/class/spec/template.rb +0 -4
- data/app/models/metasploit/model/module/instance/spec/template.rb +0 -4
- data/app/models/metasploit/model/search/group/base.rb +0 -3
- data/app/models/metasploit/model/search/group/intersection.rb +0 -3
- data/app/models/metasploit/model/search/group/union.rb +0 -3
- data/app/models/metasploit/model/search/operation/association.rb +0 -2
- data/app/models/metasploit/model/search/operation/base.rb +0 -3
- data/app/models/metasploit/model/search/operation/boolean.rb +0 -2
- data/app/models/metasploit/model/search/operation/date.rb +0 -2
- data/app/models/metasploit/model/search/operation/group/base.rb +0 -2
- data/app/models/metasploit/model/search/operation/group/intersection.rb +0 -2
- data/app/models/metasploit/model/search/operation/group/union.rb +0 -2
- data/app/models/metasploit/model/search/operation/integer.rb +1 -5
- data/app/models/metasploit/model/search/operation/null.rb +0 -2
- data/app/models/metasploit/model/search/operation/set.rb +5 -2
- data/app/models/metasploit/model/search/operation/set/integer.rb +1 -3
- data/app/models/metasploit/model/search/operation/set/string.rb +1 -3
- data/app/models/metasploit/model/search/operation/string.rb +1 -5
- data/app/models/metasploit/model/search/operator/association.rb +0 -2
- data/app/models/metasploit/model/search/operator/attribute.rb +0 -2
- data/app/models/metasploit/model/search/operator/base.rb +0 -4
- data/app/models/metasploit/model/search/operator/delegation.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/app.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/author.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/authority.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/platform.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/ref.rb +0 -2
- data/app/models/metasploit/model/search/operator/deprecated/text.rb +0 -2
- data/app/models/metasploit/model/search/operator/group/base.rb +0 -2
- data/app/models/metasploit/model/search/operator/group/intersection.rb +0 -2
- data/app/models/metasploit/model/search/operator/group/union.rb +0 -2
- data/app/models/metasploit/model/search/operator/null.rb +0 -2
- data/app/models/metasploit/model/search/operator/single.rb +0 -2
- data/app/models/metasploit/model/search/query.rb +0 -3
- data/app/models/metasploit/model/spec/template.rb +0 -3
- data/app/models/metasploit/model/visitation/visitor.rb +0 -3
- data/lib/metasploit/model.rb +14 -8
- data/lib/metasploit/model/architecture.rb +320 -326
- data/lib/metasploit/model/association.rb +43 -46
- data/lib/metasploit/model/association/error.rb +29 -33
- data/lib/metasploit/model/association/tree.rb +119 -125
- data/lib/metasploit/model/author.rb +45 -51
- data/lib/metasploit/model/authority.rb +139 -146
- data/lib/metasploit/model/authority/bid.rb +0 -2
- data/lib/metasploit/model/authority/cve.rb +0 -2
- data/lib/metasploit/model/authority/msb.rb +0 -2
- data/lib/metasploit/model/authority/osvdb.rb +0 -2
- data/lib/metasploit/model/authority/pmasa.rb +0 -2
- data/lib/metasploit/model/authority/secunia.rb +0 -2
- data/lib/metasploit/model/authority/us_cert_vu.rb +0 -2
- data/lib/metasploit/model/authority/waraxe.rb +0 -2
- data/lib/metasploit/model/authority/zdi.rb +0 -2
- data/lib/metasploit/model/base.rb +0 -2
- data/lib/metasploit/model/derivation.rb +95 -99
- data/lib/metasploit/model/derivation/full_name.rb +16 -22
- data/lib/metasploit/model/email_address.rb +122 -128
- data/lib/metasploit/model/engine.rb +26 -21
- data/lib/metasploit/model/error.rb +3 -7
- data/lib/metasploit/model/file.rb +0 -2
- data/lib/metasploit/model/invalid.rb +11 -17
- data/lib/metasploit/model/login.rb +0 -3
- data/lib/metasploit/model/login/status.rb +0 -2
- data/lib/metasploit/model/module.rb +19 -23
- data/lib/metasploit/model/module/action.rb +50 -58
- data/lib/metasploit/model/module/ancestor.rb +456 -465
- data/lib/metasploit/model/module/ancestor/spec.rb +3 -2
- data/lib/metasploit/model/module/architecture.rb +27 -35
- data/lib/metasploit/model/module/author.rb +38 -47
- data/lib/metasploit/model/module/class.rb +358 -366
- data/lib/metasploit/model/module/class/spec.rb +3 -2
- data/lib/metasploit/model/module/handler.rb +28 -34
- data/lib/metasploit/model/module/instance.rb +586 -596
- data/lib/metasploit/model/module/instance/spec.rb +3 -2
- data/lib/metasploit/model/module/path.rb +157 -166
- data/lib/metasploit/model/module/platform.rb +25 -33
- data/lib/metasploit/model/module/rank.rb +71 -79
- data/lib/metasploit/model/module/reference.rb +25 -33
- data/lib/metasploit/model/module/stance.rb +15 -21
- data/lib/metasploit/model/module/target.rb +76 -84
- data/lib/metasploit/model/module/target/architecture.rb +27 -37
- data/lib/metasploit/model/module/target/platform.rb +27 -37
- data/lib/metasploit/model/module/type.rb +35 -41
- data/lib/metasploit/model/nilify_blanks.rb +39 -43
- data/lib/metasploit/model/platform.rb +231 -237
- data/lib/metasploit/model/real_pathname.rb +12 -16
- data/lib/metasploit/model/realm.rb +0 -2
- data/lib/metasploit/model/realm/key.rb +0 -2
- data/lib/metasploit/model/reference.rb +102 -108
- data/lib/metasploit/model/search.rb +94 -97
- data/lib/metasploit/model/search/association.rb +163 -169
- data/lib/metasploit/model/search/attribute.rb +131 -139
- data/lib/metasploit/model/search/group.rb +5 -2
- data/lib/metasploit/model/search/operation.rb +32 -29
- data/lib/metasploit/model/search/operation/group.rb +5 -2
- data/lib/metasploit/model/search/operation/value.rb +7 -0
- data/lib/metasploit/model/search/operation/{integer/value.rb → value/integer.rb} +1 -1
- data/lib/metasploit/model/search/operation/{string/value.rb → value/string.rb} +1 -1
- data/lib/metasploit/model/search/operator.rb +65 -65
- data/lib/metasploit/model/search/operator/deprecated.rb +8 -2
- data/lib/metasploit/model/search/operator/group.rb +5 -2
- data/lib/metasploit/model/search/operator/help.rb +71 -79
- data/lib/metasploit/model/search/with.rb +72 -78
- data/lib/metasploit/model/spec.rb +133 -136
- data/lib/metasploit/model/spec/error.rb +3 -9
- data/lib/metasploit/model/spec/i18n_exception_handler.rb +0 -2
- data/lib/metasploit/model/spec/pathname_collision.rb +19 -27
- data/lib/metasploit/model/spec/template/write.rb +0 -2
- data/lib/metasploit/model/spec/temporary_pathname.rb +47 -56
- data/lib/metasploit/model/translation.rb +0 -2
- data/lib/metasploit/model/version.rb +1 -1
- data/lib/metasploit/model/visitation.rb +7 -10
- data/lib/metasploit/model/visitation/visit.rb +79 -85
- data/metasploit-model.gemspec +1 -1
- data/spec/app/models/metasploit/model/search/operation/integer_spec.rb +1 -1
- data/spec/app/models/metasploit/model/search/operation/set/integer_spec.rb +1 -1
- data/spec/app/models/metasploit/model/search/operation/set/string_spec.rb +1 -1
- data/spec/app/models/metasploit/model/search/operation/string_spec.rb +1 -1
- data/spec/dummy/config/application.rb +1 -0
- data/spec/lib/metasploit/model/search/operation/{integer/value_spec.rb → value/integer_spec.rb} +2 -2
- data/spec/lib/metasploit/model/search/operation/{string/value_spec.rb → value/string_spec.rb} +2 -2
- data/spec/support/shared/examples/metasploit/model/search/operation/{integer/value.rb → value/integer.rb} +2 -2
- data/spec/support/shared/examples/metasploit/model/search/operation/{string/value.rb → value/string.rb} +2 -2
- metadata +16 -13
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'metasploit/model'
|
2
|
-
|
3
1
|
# ActiveRecord::Translation is a dirty bastard and overrides `ActiveModel::Translation#lookup_ancestors`, so that it
|
4
2
|
# will only count superclasses, and not all ancestors. Metasploit::Model needs the original behavior so that its
|
5
3
|
# {Metasploit::Model::Module} modules can supply translations to both `ActiveRecord::Base` descendants in `Mdm` and
|
@@ -7,7 +7,7 @@ module Metasploit
|
|
7
7
|
# The minor version number, scoped to the {MAJOR} version number.
|
8
8
|
MINOR = 27
|
9
9
|
# The patch number, scoped to the {MINOR} version number.
|
10
|
-
PATCH =
|
10
|
+
PATCH = 4
|
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.
|
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
module Visitation
|
6
|
-
extend ActiveSupport::Autoload
|
1
|
+
# Namespace for `metasploit-model`'s implementation of the {http://en.wikipedia.org/wiki/Visitor_pattern visitor
|
2
|
+
# pattern}.
|
3
|
+
module Metasploit::Model::Visitation
|
4
|
+
extend ActiveSupport::Autoload
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
6
|
+
autoload :Visit
|
7
|
+
autoload :Visitor
|
8
|
+
end
|
@@ -1,103 +1,97 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
# instances of those class and/or modules.
|
7
|
-
module Visit
|
8
|
-
extend ActiveSupport::Concern
|
1
|
+
# {ClassMethods#visit DSL} to declare {Metasploit::Model::Visitation::Visitor visitors} for a given `Module#name`
|
2
|
+
# (or any Class that has an ancestor in `Class#ancestors` with that `Module#name`) and then use then to {#visit}
|
3
|
+
# instances of those class and/or modules.
|
4
|
+
module Metasploit::Model::Visitation::Visit
|
5
|
+
extend ActiveSupport::Concern
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
7
|
+
# Adds {#visit} DSL to class to declare {Metasploit::Model::Visitation::Visitor visitors}.
|
8
|
+
module ClassMethods
|
9
|
+
# Defines how to visit a node with one or more `Module#names` in its `Module#ancestors`.
|
10
|
+
#
|
11
|
+
# @param module_names [Array<String>] Names of class/module to be visited with block.
|
12
|
+
# @yield [node] Block instance_exec'd on instance of the class {#visit} was called.
|
13
|
+
# @yieldparam node [Object]
|
14
|
+
# @return [Array<Metasploit::Model::Visitation::Visitor>] visitors created.
|
15
|
+
# @raise [ArgumentError] if `module_names` is empty
|
16
|
+
# @raise [Metasploit::Model::Invalid] unless `block` is given.
|
17
|
+
def visit(*module_names, &block)
|
18
|
+
if module_names.empty?
|
19
|
+
raise ArgumentError,
|
20
|
+
"At least one Modul#name must be passed to #{__method__} so the visitor(s) knows which Modules " \
|
24
21
|
"it/they can visit."
|
25
|
-
|
22
|
+
end
|
26
23
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
24
|
+
module_names.collect do |module_name|
|
25
|
+
visitor = Metasploit::Model::Visitation::Visitor.new(
|
26
|
+
:module_name => module_name,
|
27
|
+
:parent => self,
|
28
|
+
&block
|
29
|
+
)
|
30
|
+
visitor.valid!
|
34
31
|
|
35
|
-
|
36
|
-
|
37
|
-
|
32
|
+
visitor_by_module_name[visitor.module_name] = visitor
|
33
|
+
end
|
34
|
+
end
|
38
35
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
36
|
+
# {Metasploit::Model::Visitation::Visitor Visitor} for `klass` or one of its `Class#ancestors`.
|
37
|
+
#
|
38
|
+
# @return [Metasploit::Model::Visitation::Visitor]
|
39
|
+
# @raise [TypeError] if there is not visitor for `klass` or one of its ancestors.
|
40
|
+
def visitor(klass)
|
41
|
+
visitor = visitor_by_module[klass]
|
45
42
|
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
unless visitor
|
44
|
+
klass.ancestors.each do |mod|
|
45
|
+
visitor = visitor_by_module[mod]
|
49
46
|
|
50
|
-
|
51
|
-
|
52
|
-
|
47
|
+
unless visitor
|
48
|
+
visitor = visitor_by_module_name[mod.name]
|
49
|
+
end
|
53
50
|
|
54
|
-
|
55
|
-
|
51
|
+
if visitor
|
52
|
+
visitor_by_module[klass] = visitor
|
56
53
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
break
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
61
58
|
|
62
|
-
|
63
|
-
|
64
|
-
|
59
|
+
unless visitor
|
60
|
+
raise TypeError,
|
61
|
+
"No visitor that handles #{klass} or " \
|
65
62
|
"any of its ancestors (#{klass.ancestors.map(&:name).to_sentence})"
|
66
|
-
|
63
|
+
end
|
67
64
|
|
68
|
-
|
69
|
-
|
65
|
+
visitor
|
66
|
+
end
|
70
67
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
68
|
+
# Allows {Metasploit::Model::Visitation::Visitor visitors} to be looked up by Module instead of `Module#name`.
|
69
|
+
#
|
70
|
+
# @return [Hash{Class => Metasploit::Model::Visitation::Visitor}]
|
71
|
+
def visitor_by_module
|
72
|
+
@visitor_by_module ||= {}
|
73
|
+
end
|
77
74
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
75
|
+
# Maps `Module#name` passed to {ClassMethods#visit} through :module_name to the
|
76
|
+
# {Metasploit::Model::Visitation::Visitor} with the `Module#name` as
|
77
|
+
# {Metasploit::Model::Visitation::Visitor#module_name}.
|
78
|
+
#
|
79
|
+
# @return [Hash{String => Metasploit::Model::Visitation::Visitor}]
|
80
|
+
def visitor_by_module_name
|
81
|
+
@visitor_by_module_name ||= {}
|
82
|
+
end
|
83
|
+
end
|
87
84
|
|
88
|
-
|
89
|
-
|
90
|
-
|
85
|
+
#
|
86
|
+
# Instance Methods
|
87
|
+
#
|
91
88
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
89
|
+
# Visits `node`
|
90
|
+
#
|
91
|
+
# @return (see Metasploit::Model::Visitation::Visitor#visit)
|
92
|
+
def visit(node)
|
93
|
+
visitor = self.class.visitor(node.class)
|
97
94
|
|
98
|
-
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
95
|
+
visitor.visit(self, node)
|
102
96
|
end
|
103
|
-
end
|
97
|
+
end
|
data/metasploit-model.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.files = `git ls-files`.split($/)
|
15
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
-
spec.require_paths =
|
17
|
+
spec.require_paths = %w{app/models app/validators lib}
|
18
18
|
|
19
19
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
20
20
|
spec.add_development_dependency 'rake'
|
@@ -5,5 +5,5 @@ describe Metasploit::Model::Search::Operation::Integer do
|
|
5
5
|
it { should validate_numericality_of(:value).only_integer }
|
6
6
|
end
|
7
7
|
|
8
|
-
it_should_behave_like 'Metasploit::Model::Search::Operation::Integer
|
8
|
+
it_should_behave_like 'Metasploit::Model::Search::Operation::Value::Integer'
|
9
9
|
end
|
@@ -3,5 +3,5 @@ require 'spec_helper'
|
|
3
3
|
describe Metasploit::Model::Search::Operation::Set::Integer do
|
4
4
|
it { should be_a Metasploit::Model::Search::Operation::Set }
|
5
5
|
|
6
|
-
it_should_behave_like 'Metasploit::Model::Search::Operation::Integer
|
6
|
+
it_should_behave_like 'Metasploit::Model::Search::Operation::Value::Integer'
|
7
7
|
end
|
@@ -3,5 +3,5 @@ require 'spec_helper'
|
|
3
3
|
describe Metasploit::Model::Search::Operation::Set::String do
|
4
4
|
it { should be_a Metasploit::Model::Search::Operation::Set }
|
5
5
|
|
6
|
-
it_should_behave_like 'Metasploit::Model::Search::Operation::String
|
6
|
+
it_should_behave_like 'Metasploit::Model::Search::Operation::Value::String'
|
7
7
|
end
|
@@ -3,6 +3,7 @@ require File.expand_path('../boot', __FILE__)
|
|
3
3
|
require 'rails/all'
|
4
4
|
|
5
5
|
Bundler.require(*Rails.groups)
|
6
|
+
|
6
7
|
# require the engine being tested. In a non-dummy app this would be handled by the engine's gem being in the Gemfile
|
7
8
|
# for real app and Bundler.require requiring the gem.
|
8
9
|
require 'metasploit/model'
|
data/spec/lib/metasploit/model/search/operation/{integer/value_spec.rb → value/integer_spec.rb}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Metasploit::Model::Search::Operation::Integer
|
4
|
-
it_should_behave_like 'Metasploit::Model::Search::Operation::Integer
|
3
|
+
describe Metasploit::Model::Search::Operation::Value::Integer do
|
4
|
+
it_should_behave_like 'Metasploit::Model::Search::Operation::Value::Integer' do
|
5
5
|
let(:operation_class) do
|
6
6
|
described_class = self.described_class
|
7
7
|
|
data/spec/lib/metasploit/model/search/operation/{string/value_spec.rb → value/string_spec.rb}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Metasploit::Model::Search::Operation::String
|
4
|
-
it_should_behave_like 'Metasploit::Model::Search::Operation::String
|
3
|
+
describe Metasploit::Model::Search::Operation::Value::String do
|
4
|
+
it_should_behave_like 'Metasploit::Model::Search::Operation::Value::String' do
|
5
5
|
let(:operation_class) do
|
6
6
|
described_class = self.described_class
|
7
7
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
shared_examples_for 'Metasploit::Model::Search::Operation::Integer
|
1
|
+
shared_examples_for 'Metasploit::Model::Search::Operation::Value::Integer' do
|
2
2
|
let(:operation_class) do
|
3
3
|
described_class
|
4
4
|
end
|
@@ -8,7 +8,7 @@ shared_examples_for 'Metasploit::Model::Search::Operation::Integer::Value' do
|
|
8
8
|
operation_class
|
9
9
|
end
|
10
10
|
|
11
|
-
it { should include Metasploit::Model::Search::Operation::Integer
|
11
|
+
it { should include Metasploit::Model::Search::Operation::Value::Integer }
|
12
12
|
end
|
13
13
|
|
14
14
|
context '#value' do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
shared_examples_for 'Metasploit::Model::Search::Operation::String
|
1
|
+
shared_examples_for 'Metasploit::Model::Search::Operation::Value::String' do
|
2
2
|
let(:operation_class) do
|
3
3
|
described_class
|
4
4
|
end
|
@@ -8,7 +8,7 @@ shared_examples_for 'Metasploit::Model::Search::Operation::String::Value' do
|
|
8
8
|
operation_class
|
9
9
|
end
|
10
10
|
|
11
|
-
it { should include Metasploit::Model::Search::Operation::String
|
11
|
+
it { should include Metasploit::Model::Search::Operation::Value::String }
|
12
12
|
end
|
13
13
|
|
14
14
|
context '#value' do
|
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.27.
|
4
|
+
version: 0.27.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Luke Imhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -215,8 +215,9 @@ files:
|
|
215
215
|
- lib/metasploit/model/search/group.rb
|
216
216
|
- lib/metasploit/model/search/operation.rb
|
217
217
|
- lib/metasploit/model/search/operation/group.rb
|
218
|
-
- lib/metasploit/model/search/operation/
|
219
|
-
- lib/metasploit/model/search/operation/
|
218
|
+
- lib/metasploit/model/search/operation/value.rb
|
219
|
+
- lib/metasploit/model/search/operation/value/integer.rb
|
220
|
+
- lib/metasploit/model/search/operation/value/string.rb
|
220
221
|
- lib/metasploit/model/search/operator.rb
|
221
222
|
- lib/metasploit/model/search/operator/deprecated.rb
|
222
223
|
- lib/metasploit/model/search/operator/group.rb
|
@@ -415,8 +416,8 @@ files:
|
|
415
416
|
- spec/lib/metasploit/model/search/association/tree_spec.rb
|
416
417
|
- spec/lib/metasploit/model/search/association_spec.rb
|
417
418
|
- spec/lib/metasploit/model/search/attribute_spec.rb
|
418
|
-
- spec/lib/metasploit/model/search/operation/
|
419
|
-
- spec/lib/metasploit/model/search/operation/
|
419
|
+
- spec/lib/metasploit/model/search/operation/value/integer_spec.rb
|
420
|
+
- spec/lib/metasploit/model/search/operation/value/string_spec.rb
|
420
421
|
- spec/lib/metasploit/model/search/operation_spec.rb
|
421
422
|
- spec/lib/metasploit/model/search/operator/help_spec.rb
|
422
423
|
- spec/lib/metasploit/model/search/with_spec.rb
|
@@ -462,8 +463,8 @@ files:
|
|
462
463
|
- spec/support/shared/examples/metasploit/model/platform.rb
|
463
464
|
- spec/support/shared/examples/metasploit/model/real_pathname.rb
|
464
465
|
- spec/support/shared/examples/metasploit/model/reference.rb
|
465
|
-
- spec/support/shared/examples/metasploit/model/search/operation/integer
|
466
|
-
- spec/support/shared/examples/metasploit/model/search/operation/string
|
466
|
+
- spec/support/shared/examples/metasploit/model/search/operation/value/integer.rb
|
467
|
+
- spec/support/shared/examples/metasploit/model/search/operation/value/string.rb
|
467
468
|
- spec/support/shared/examples/metasploit/model/search/operator/help.rb
|
468
469
|
- spec/support/shared/examples/metasploit/model/translation.rb
|
469
470
|
- spec/support/shared/examples/search/query.rb
|
@@ -495,6 +496,8 @@ metadata: {}
|
|
495
496
|
post_install_message:
|
496
497
|
rdoc_options: []
|
497
498
|
require_paths:
|
499
|
+
- app/models
|
500
|
+
- app/validators
|
498
501
|
- lib
|
499
502
|
required_ruby_version: !ruby/object:Gem::Requirement
|
500
503
|
requirements:
|
@@ -508,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
508
511
|
version: '0'
|
509
512
|
requirements: []
|
510
513
|
rubyforge_project:
|
511
|
-
rubygems_version: 2.
|
514
|
+
rubygems_version: 2.3.0
|
512
515
|
signing_key:
|
513
516
|
specification_version: 4
|
514
517
|
summary: Metasploit Model Mixins and Validators
|
@@ -693,8 +696,8 @@ test_files:
|
|
693
696
|
- spec/lib/metasploit/model/search/association/tree_spec.rb
|
694
697
|
- spec/lib/metasploit/model/search/association_spec.rb
|
695
698
|
- spec/lib/metasploit/model/search/attribute_spec.rb
|
696
|
-
- spec/lib/metasploit/model/search/operation/
|
697
|
-
- spec/lib/metasploit/model/search/operation/
|
699
|
+
- spec/lib/metasploit/model/search/operation/value/integer_spec.rb
|
700
|
+
- spec/lib/metasploit/model/search/operation/value/string_spec.rb
|
698
701
|
- spec/lib/metasploit/model/search/operation_spec.rb
|
699
702
|
- spec/lib/metasploit/model/search/operator/help_spec.rb
|
700
703
|
- spec/lib/metasploit/model/search/with_spec.rb
|
@@ -740,8 +743,8 @@ test_files:
|
|
740
743
|
- spec/support/shared/examples/metasploit/model/platform.rb
|
741
744
|
- spec/support/shared/examples/metasploit/model/real_pathname.rb
|
742
745
|
- spec/support/shared/examples/metasploit/model/reference.rb
|
743
|
-
- spec/support/shared/examples/metasploit/model/search/operation/integer
|
744
|
-
- spec/support/shared/examples/metasploit/model/search/operation/string
|
746
|
+
- spec/support/shared/examples/metasploit/model/search/operation/value/integer.rb
|
747
|
+
- spec/support/shared/examples/metasploit/model/search/operation/value/string.rb
|
745
748
|
- spec/support/shared/examples/metasploit/model/search/operator/help.rb
|
746
749
|
- spec/support/shared/examples/metasploit/model/translation.rb
|
747
750
|
- spec/support/shared/examples/search/query.rb
|