actionmcp 0.110.1 → 0.110.2

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: 8d42c4cca6055186c9f9b7e586eae350da05e54418bf7a1c5017bfeb5a7ac192
4
- data.tar.gz: 4e33174b5d925280c963f973fa342447379bff27caeddcbaa7b39909109c420b
3
+ metadata.gz: f18a19a33b307301a158d77b9fb5bfede2a9dfa9f3d316be439db3f58b313b6b
4
+ data.tar.gz: 5623ce4489efa81032fac7c1a9baad1a6ebe27b74593d6a25b022143f2d40d0c
5
5
  SHA512:
6
- metadata.gz: 3122421b19a6fba275f2508237b8c241f8baecefac049f6ba30c08a8c4bc70c1831a3e6fe46983e6fe4368bb55d5bf4b1e5823d606df9d6b485cb47e3bb966af
7
- data.tar.gz: 32f4cb79bb1a4f591f6f074d59fa8f4f9575fa2d559a970ef5fb92a04f8a589f89b315619b03d323d544377c4c945bd87a04eb84280c376c17c77ef431357c6f
6
+ metadata.gz: fe04793ecfdad4d4c90041d3834b52fdf0956b152c51a4c5a866380bba60d327c560c427962eaac2259c6087a22daa7d97244adc75a5f7e7099ae0a37ec44fbf
7
+ data.tar.gz: 75ece96abe7f14658da802e3b295cb085bd7c736e900a7339f42c91b65c1ddd2422e10c650bac99121201ccd1b3abaaa0a39c2ad4665bafc5f7748493ce45a5c
@@ -474,35 +474,8 @@ module ActionMCP
474
474
  # Only load if we haven't loaded yet - but in development, always reload
475
475
  return if @mcp_components_loaded && !Rails.env.development?
476
476
 
477
- # Use Zeitwerk eager loading if available (in to_prepare phase)
478
477
  mcp_path = Rails.root.join("app/mcp")
479
- if mcp_path.exist? && Rails.autoloaders.main.respond_to?(:eager_load_dir)
480
- # This will trigger all inherited hooks properly
481
- Rails.autoloaders.main.eager_load_dir(mcp_path)
482
- elsif mcp_path.exist?
483
- # Fallback for initialization phase - use require_dependency
484
- # Load base classes first in specific order
485
- base_files = [
486
- mcp_path.join("application_gateway.rb"),
487
- mcp_path.join("tools/application_mcp_tool.rb"),
488
- mcp_path.join("prompts/application_mcp_prompt.rb"),
489
- mcp_path.join("resource_templates/application_mcp_res_template.rb"),
490
- # Load ArithmeticTool before other tools that inherit from it
491
- mcp_path.join("tools/arithmetic_tool.rb")
492
- ]
493
-
494
- base_files.each do |file|
495
- require_dependency file.to_s if file.exist?
496
- end
497
-
498
- # Then load all other files
499
- Dir.glob(mcp_path.join("**/*.rb")).sort.each do |file|
500
- # Skip base classes we already loaded
501
- next if base_files.any? { |base| file == base.to_s }
502
-
503
- require_dependency file
504
- end
505
- end
478
+ Rails.autoloaders.main.eager_load_dir(mcp_path) if mcp_path.exist?
506
479
  @mcp_components_loaded = true unless Rails.env.development?
507
480
  end
508
481
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "gem_version"
4
4
  module ActionMCP
5
- VERSION = "0.110.1"
5
+ VERSION = "0.110.2"
6
6
 
7
7
  class << self
8
8
  alias version gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.110.1
4
+ version: 0.110.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
@@ -97,16 +97,22 @@ dependencies:
97
97
  name: zeitwerk
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - "~>"
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 2.6.2
103
+ - - "<"
101
104
  - !ruby/object:Gem::Version
102
- version: '2.6'
105
+ version: '3.0'
103
106
  type: :runtime
104
107
  prerelease: false
105
108
  version_requirements: !ruby/object:Gem::Requirement
106
109
  requirements:
107
- - - "~>"
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 2.6.2
113
+ - - "<"
108
114
  - !ruby/object:Gem::Version
109
- version: '2.6'
115
+ version: '3.0'
110
116
  - !ruby/object:Gem::Dependency
111
117
  name: state_machines-activerecord
112
118
  requirement: !ruby/object:Gem::Requirement
@@ -301,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
307
  - !ruby/object:Gem::Version
302
308
  version: '0'
303
309
  requirements: []
304
- rubygems_version: 4.0.6
310
+ rubygems_version: 4.0.10
305
311
  specification_version: 4
306
312
  summary: Lightweight Model Context Protocol (MCP) server toolkit for Ruby/Rails
307
313
  test_files: []