Skip to content

Commit ae45c1b

Browse files
committed
Msf::Module::Rank -> Msf::Module::Ranking
MSP-11126 So that mixin module won't appear as Rank constant that Msf::Module subclasses are supposed to define.
1 parent a6a2886 commit ae45c1b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/msf/core/module.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Module
2828
autoload :Platform, 'msf/core/module/platform'
2929
autoload :PlatformList, 'msf/core/module/platform_list'
3030
autoload :Privileged, 'msf/core/module/privileged'
31-
autoload :Rank, 'msf/core/module/rank'
31+
autoload :Ranking, 'msf/core/module/ranking'
3232
autoload :Reference, 'msf/core/module/reference'
3333
autoload :Search, 'msf/core/module/search'
3434
autoload :SiteReference, 'msf/core/module/reference'
@@ -47,7 +47,7 @@ class Module
4747
include Msf::Module::Network
4848
include Msf::Module::Options
4949
include Msf::Module::Privileged
50-
include Msf::Module::Rank
50+
include Msf::Module::Ranking
5151
include Msf::Module::Search
5252
include Msf::Module::Type
5353
include Msf::Module::UI

lib/msf/core/module/rank.rb renamed to lib/msf/core/module/ranking.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Msf::Module::Rank
1+
module Msf::Module::Ranking
22
extend ActiveSupport::Concern
33

44
module ClassMethods

spec/lib/msf/core/module_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
it_should_behave_like 'Msf::Module::Network'
2828
it_should_behave_like 'Msf::Module::Options'
2929
it_should_behave_like 'Msf::Module::Privileged'
30-
it_should_behave_like 'Msf::Module::Rank'
30+
it_should_behave_like 'Msf::Module::Ranking'
3131
it_should_behave_like 'Msf::Module::Search'
3232
it_should_behave_like 'Msf::Module::Type'
3333
it_should_behave_like 'Msf::Module::UI'

spec/support/shared/examples/msf/module/rank.rb renamed to spec/support/shared/examples/msf/module/ranking.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
shared_examples_for 'Msf::Module::Rank' do
1+
shared_examples_for 'Msf::Module::Ranking' do
22
it { is_expected.to respond_to :rank }
33
it { is_expected.to respond_to :rank_to_h }
44
it { is_expected.to respond_to :rank_to_s }

0 commit comments

Comments
 (0)