Class: RosettAi::Tooling::VersionChecker
- Inherits:
-
Object
- Object
- RosettAi::Tooling::VersionChecker
- Defined in:
- lib/rosett_ai/tooling/version_checker.rb
Overview
MCP-facing facade for tool version checking.
Delegates to VersionConsistencyChecker and GemConsistencyChecker for the actual version checks, providing the simplified interface expected by Mcp::Tools::ToolingTool.
Instance Method Summary collapse
-
#check ⇒ Hash
Checks tool and gem versions for consistency.
-
#initialize(project_dir: Dir.pwd) ⇒ VersionChecker
constructor
A new instance of VersionChecker.
Constructor Details
#initialize(project_dir: Dir.pwd) ⇒ VersionChecker
Returns a new instance of VersionChecker.
18 19 20 |
# File 'lib/rosett_ai/tooling/version_checker.rb', line 18 def initialize(project_dir: Dir.pwd) @project_dir = project_dir end |
Instance Method Details
#check ⇒ Hash
Checks tool and gem versions for consistency.
25 26 27 28 29 30 31 32 33 |
# File 'lib/rosett_ai/tooling/version_checker.rb', line 25 def check checker = RosettAi::VersionConsistencyChecker.new(project_dir: @project_dir) result = checker.check outdated = result[:mismatches] || [] { outdated: outdated, tools: result[:references] || [] } end |