metasploit-model 5.0.6 → 5.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71c7072d9d33b6f6a7242fd215a3ffb9926ef18125d5ba343d5f822a91d4c9a4
4
- data.tar.gz: ecfd3d773674691614cf83a4d770068a92b9ac05ac1298101dc3032c55bd1f3e
3
+ metadata.gz: 77929f6a8ce2d169a2d48ce84f79310cb15d2895c947e83f5b576870c227dd7d
4
+ data.tar.gz: d14e2a3981e1eecd50277401f457a82b105503d38c0c9f9bf868eee949c87381
5
5
  SHA512:
6
- metadata.gz: b1ec0868af03c84b6e6a6c6712324277ea42b614107ea55595d70d1774fdc46a1abdfb54dcb1141495a527314fb4f51ec8d6111da8b937c34e86a9b9341d622f
7
- data.tar.gz: 25391a7a01c6e4e69903e126183bf02cc8f80da5480711ea9eb24efe82a97788257e12f4674ad8b6f6ac6c3cf4f1431711dd4c744af96779c588f8266941f362
6
+ metadata.gz: ae932e70812b213fded1812f874688577cfbceb22253f1d692ebe0fa1cf1e426e03d906f743e2a7754e11cc9dce57c80a575f552fd61a1bb01c4edde919a7365
7
+ data.tar.gz: 96ee57573e8ce31385355415d91f51d155ee5907e7b90145abff3a534c063e27909c9f2ee79f0e4878b0afaebdc5bcd798283c6ec8037ff253872968f400bcba
@@ -1,4 +1,4 @@
1
- # If all you want do is customize the name and operation `Class` that your custom operator class returns from
1
+ # If all you want to do is customize the name and operation `Class` that your custom operator class returns from
2
2
  # `#operate_on`, then you can subclass {Metasploit::Model::Search::Operator::Single} instead of
3
3
  # {Metasploit::Model::Search::Operator::Base}.
4
4
  #
@@ -59,7 +59,7 @@ class Metasploit::Model::Search::Query < Metasploit::Model::Base
59
59
  :length => {
60
60
  :minimum => 1
61
61
  }
62
- # validate recursive so misnamed operators or bad values for operator's types cause the query to be invalid as a whole
62
+ # validate recursively so misnamed operators or bad values for operator's types cause the query to be invalid as a whole
63
63
  validate :operations_valid
64
64
 
65
65
  #
@@ -85,7 +85,7 @@ class Metasploit::Model::Search::Query < Metasploit::Model::Base
85
85
  end
86
86
 
87
87
  # Parses {#formatted} to create search operations that can validate if the
88
- # {Metasploit::Model::Search::Operation::Base#value value} is correct the operation's
88
+ # {Metasploit::Model::Search::Operation::Base#value value} is correct for the operation's
89
89
  # {Metasploit::Model::Search::Operation::Base#operator operator's} type.
90
90
  #
91
91
  # @return [Array<Metasploit::Model::Search::Operation::Base>] an Array of operation parsed from {#formatted}.
@@ -85,7 +85,7 @@ class ParametersValidator < ActiveModel::EachValidator
85
85
 
86
86
  private
87
87
 
88
- # Generates error message for element at the given index. Prefix is prepened to {#location_clause} to make a
88
+ # Generates error message for element at the given index. Prefix is prepended to {#location_clause} to make a
89
89
  # sentence. {TYPE_SIGNATURE_SENTENCE} is appended to that sentence.
90
90
  #
91
91
  # @param options [Hash{Symbol => Object}]
@@ -79,7 +79,7 @@ class PasswordIsStrongValidator < ActiveModel::EachValidator
79
79
  # Returns a leet mutated variant of the original password
80
80
  #
81
81
  # @param password [String]
82
- # @return [String] containing the password with leet mutations
82
+ # @return [Array<String>] containing the password with leet mutations
83
83
  def mutate_pass(password)
84
84
  mutations = {
85
85
  'a' => '@',
@@ -1,4 +1,4 @@
1
- # Functions for turning a compact tree of compact as passed to
1
+ # Functions for turning a compact tree of associations as passed to
2
2
  # {Metasploit::Model::Search::Association::ClassMethods#search_associations} into an expanded
3
3
  # {Metasploit::Model::Search::Association::ClassMethods#search_association_tree}.
4
4
  module Metasploit::Model::Association::Tree
@@ -2,7 +2,7 @@
2
2
  # {Metasploit::Model::Search::Attribute::ClassMethods#search_attribute},
3
3
  # {Metasploit::Model::Search::With::ClassMethods#search_with}.
4
4
  #
5
- # Searchable associations are declared explicitly so that associations cycles can be avoided and the search
5
+ # Searchable associations are declared explicitly so that association cycles can be avoided and the search
6
6
  # interface can be tuned for clarity and complexity.
7
7
  #
8
8
  # # Testing
@@ -109,7 +109,7 @@ module Metasploit::Model::Search::Association
109
109
  end
110
110
 
111
111
  # Registers a tree of near and far associations for search. When a tree is used, all intermediate association
112
- # on the paths are used, so `search_association children: :grandchildren` makes both `children.granchildren`
112
+ # on the paths are used, so `search_association children: :grandchildren` makes both `children.grandchildren`
113
113
  # *and* `children` as search operator prefixes.
114
114
  #
115
115
  # @example a single search association
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # # Set attributes
7
7
  #
8
- # Search attributes declared as having an integer set or string set type integer or string set require a
8
+ # Search attributes declared as having an integer set or string set type require a
9
9
  # `<attribute>_set` method to be defined on the `Class`, which returns the set of allowed values for the search
10
10
  # attribute's operation. This method will be called, indirectly by
11
11
  # {Metasploit::Model::Search::Operation::Set::Integer}'s and {Metasploit::Model::Search::Operation::Set::String}'s
@@ -13,7 +13,7 @@
13
13
  #
14
14
  # # Help
15
15
  #
16
- # The help for each operator is uses the `I18n` system, so the help for an attribute operator on a given class can
16
+ # The help for each operator uses the `I18n` system, so the help for an attribute operator on a given class can
17
17
  # added to `config/locales/<lang>.yml`. The scope of the lookup, under the language key is the `Class`'s
18
18
  # `i18n_scope`, which is `metasploit.model` if the `Class` includes {Metasploit::Model::Translation} or
19
19
  # `active_record` for `ApplicationRecord` subclasses. Under the `i18n_scope`, any `Module#ancestor`'s
@@ -106,7 +106,7 @@
106
106
  # @endianness_set ||= Set.new(['big', 'litte'])
107
107
  # end
108
108
  #
109
- # @example search an attribute by substring (case-insensitve LIKE)
109
+ # @example search an attribute by substring (case-insensitive LIKE)
110
110
  # search_attribute :description,
111
111
  # type: :string
112
112
  module Metasploit::Model::Search::Attribute
@@ -15,7 +15,7 @@
15
15
  # require path
16
16
  # end
17
17
  #
18
- # In the spec fo the `Class` that called `search_with`, use the 'search_with' shared example by passing the
18
+ # In the spec for the `Class` that called `search_with`, use the 'search_with' shared example by passing the
19
19
  # arguments passed to {ClassMethods#search_attribute}.
20
20
  #
21
21
  # # app/models/my_class.rb
@@ -48,11 +48,11 @@ module Metasploit::Model::Search::With
48
48
  # Defines `search_with` DSL, which is a lower-level way than search_attribute to add operators. `search_with`
49
49
  # allows instance of arbitrary operator_classes to be registered in {#search_with_operator_by_name}.
50
50
  module ClassMethods
51
- # Declares that this class should be search with an instance of the given `operator_class`.
51
+ # Declares that this class should be searched with an instance of the given `operator_class`.
52
52
  #
53
53
  # @param operator_class [Class<Metasploit::Model::Search::Operator::Base>] a class to initialize.
54
54
  # @param options [Hash] Options passed to `operator_class.new` along with `{:klass => self}`, so that the
55
- # `operator_class` instance knows it was registered as search this class.
55
+ # `operator_class` instance knows it was registered as searching this class.
56
56
  # @return [Metasploit::Model::Search::Operator::Base]
57
57
  # @raise (see Metasploit::Model::Base#invalid!)
58
58
  def search_with(operator_class, options={})
@@ -22,8 +22,8 @@
22
22
  #
23
23
  # ## Custom search operators
24
24
  #
25
- # If a search operator does not directly correspond to an attribute or a the attribute needs custom validation, then
26
- # a custom {Metasploit::Model::Search::Operator operator class} can be setup as the search operator
25
+ # If a search operator does not directly correspond to an attribute or the attribute needs custom validation, then
26
+ # a custom {Metasploit::Model::Search::Operator operator class} can be set up as the search operator
27
27
  #
28
28
  # class Search::Operator::UUID
29
29
  # def name
@@ -1,7 +1,7 @@
1
1
  module Metasploit
2
2
  module Model
3
3
  # VERSION is managed by GemRelease
4
- VERSION = '5.0.6'
4
+ VERSION = '5.0.7'
5
5
 
6
6
  # @return [String]
7
7
  #
@@ -1,5 +1,5 @@
1
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}
2
+ # (or any Class that has an ancestor in `Class#ancestors` with that `Module#name`) and then use them to {#visit}
3
3
  # instances of those class and/or modules.
4
4
  module Metasploit::Model::Visitation::Visit
5
5
  extend ActiveSupport::Concern
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: 5.0.6
4
+ version: 5.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-18 00:00:00.000000000 Z
11
+ date: 2026-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metasploit-yard