metasploit-model 5.0.5 → 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: 43701b03412f1c978617d8cbbc5227942075eb2861e49156284a366b9d6539c5
4
- data.tar.gz: '0816cdc934e763cd30cd20eba366754ef6a816207be9e1412b0a4abdd87a74e7'
3
+ metadata.gz: 77929f6a8ce2d169a2d48ce84f79310cb15d2895c947e83f5b576870c227dd7d
4
+ data.tar.gz: d14e2a3981e1eecd50277401f457a82b105503d38c0c9f9bf868eee949c87381
5
5
  SHA512:
6
- metadata.gz: 82d9ba15ee6a0632211ee0171b974a63a1f00ae06fa8ac9333865e2722d91a3a9a8b3ec83504a67aa807c28144f1f4c7432efaead8da6a0d0048696ce657ac1d
7
- data.tar.gz: 5daf1bf7e8aa649efa851f0e9a4073745b6e86305a155a107f7abb8563de7a4210d1e1d68146761d53b10340c8efcc4e7562f7488e4e67551c12193cd05086db
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.5'
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
@@ -26,13 +26,12 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'e2mmap'
27
27
 
28
28
  # Dependency loading
29
- # Rails 8.0 upgrade: widened from '~> 7.0' (which means >= 7.0, < 8.0) to
30
- # '>= 7.0', '< 8.1' so this gem resolves with both Rails 7.x and 8.0.
31
- # The old pessimistic constraint hard-blocked Bundler from pulling Rails 8.
32
- spec.add_runtime_dependency 'activemodel', '>= 7.0', '< 8.1'
33
- spec.add_runtime_dependency 'activesupport', '>= 7.0', '< 8.1'
29
+ # Rails 8.1 upgrade: widened upper bound to < 9.0 so this gem resolves
30
+ # with Rails 7.x, 8.0, and 8.1.
31
+ spec.add_runtime_dependency 'activemodel', '>= 7.0', '< 9.0'
32
+ spec.add_runtime_dependency 'activesupport', '>= 7.0', '< 9.0'
34
33
 
35
- spec.add_runtime_dependency 'railties', '>= 7.0', '< 8.1'
34
+ spec.add_runtime_dependency 'railties', '>= 7.0', '< 9.0'
36
35
 
37
36
  if RUBY_PLATFORM =~ /java/
38
37
  # markdown formatting for yard
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.5
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-04-14 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
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: '7.0'
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: '8.1'
92
+ version: '9.0'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: '7.0'
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
- version: '8.1'
102
+ version: '9.0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: activesupport
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: '7.0'
110
110
  - - "<"
111
111
  - !ruby/object:Gem::Version
112
- version: '8.1'
112
+ version: '9.0'
113
113
  type: :runtime
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
@@ -119,7 +119,7 @@ dependencies:
119
119
  version: '7.0'
120
120
  - - "<"
121
121
  - !ruby/object:Gem::Version
122
- version: '8.1'
122
+ version: '9.0'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: railties
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ dependencies:
129
129
  version: '7.0'
130
130
  - - "<"
131
131
  - !ruby/object:Gem::Version
132
- version: '8.1'
132
+ version: '9.0'
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
@@ -139,7 +139,7 @@ dependencies:
139
139
  version: '7.0'
140
140
  - - "<"
141
141
  - !ruby/object:Gem::Version
142
- version: '8.1'
142
+ version: '9.0'
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: redcarpet
145
145
  requirement: !ruby/object:Gem::Requirement