bundler_mcp 0.1.0 → 0.2.0

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: 6e512b7990ccd597566b67a7fa65d6ee92347c670d394cec2fa913c243542353
4
- data.tar.gz: 3b1a3d045f42f34a05264d22497cd8e0d588deb58a332227bb68f714bba81ed8
3
+ metadata.gz: ebe099eaeaf47f7e4aea183dc2ef3a13b90f691d6ed502943b5a456c76426b5a
4
+ data.tar.gz: 6e115d99d1921a57fa046902bc57ddc33dbf902abc75e8cf35db84840813dc08
5
5
  SHA512:
6
- metadata.gz: 3417bfa815a0b37472355fda7f4ebe8d6d575efabb73c2bf5be107c367dcfb289997d5495f61f037f2d2cd9140698610226e2d1d44716e4098cd375df98f660e
7
- data.tar.gz: 7fcd767de09ad6691f3fe14c2be1de4b3fa50420dfa34d0af5a9908d310cefa58d1f79a81cdb6a8e5377f80ec11d44434ef7ca47c6aa49dc4239089685a099bc
6
+ metadata.gz: 6df0fcef46000d2139fc810c77f139a4b2e90c8183ee80bb7ab0f4d303a614c114b0c36e41ebb351c5c98a7290dc4d02d4fd83280d2beae7e57113fe4ec11f9d
7
+ data.tar.gz: b0a27c61b03efda0982d3599ee737a9e215515f9fba86517418473e639f1059a105c153fa98f97ddbad03d30e5de1f006ba286437af3a734de18cd3935ae9ef3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
4
4
 
5
+ ## [0.2.0] - 2025-05-18
6
+
7
+ - Fix `BUNDLER_MCP_LOG_FILE` environment variable name bug
8
+ - Use case-insensitive matching to look up gem details
9
+ - Explicitly require `pathname` in files that use it
10
+
5
11
  ## [0.1.0] - 2025-05-18
6
12
 
7
13
  - Initial release
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # BundlerMCP
2
2
 
3
- A Model Context Protocol (MCP) server enabling AI agents to query information about gems in a Ruby project's Gemfile, including source code and metadata. Built with [fast-mcp](https://github.com/yjacquin/fast-mcp).
3
+ A Model Context Protocol (MCP) server enabling AI agents to query information about dependencies in a Ruby project's `Gemfile`. Built with [fast-mcp](https://github.com/yjacquin/fast-mcp).
4
4
 
5
5
  [![CI](https://github.com/subelsky/bundler_mcp/actions/workflows/main.yml/badge.svg)](https://github.com/subelsky/bundler_mcp/actions/workflows/main.yml)
6
+ [![Gem Version](https://badge.fury.io/rb/bundler_mcp.svg)](https://badge.fury.io/rb/bundler_mcp)
6
7
 
7
8
  ## Installation
8
9
 
data/exe/bundler_mcp CHANGED
@@ -8,7 +8,7 @@ require_relative "../lib/bundler_mcp/server"
8
8
  # your client will then able to run `bin/bundler_mcp`
9
9
  # in the correct Bundler environment
10
10
 
11
- logfile_path = ENV.fetch("BUNDLER_MCP_LOGFILE", nil)
11
+ logfile_path = ENV.fetch("BUNDLER_MCP_LOG_FILE", nil)
12
12
  logger = Logger.new(logfile_path || File::NULL)
13
13
 
14
14
  BundlerMCP::Server.run(logger:)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "forwardable"
4
+ require "pathname"
4
5
 
5
6
  module BundlerMCP
6
7
  # Represents a Ruby gem and its associated data
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "pathname"
4
+
3
5
  Pathname(__dir__).glob("tools/*.rb").each do |tool|
4
6
  require tool
5
7
  end
@@ -33,7 +33,7 @@ module BundlerMCP
33
33
  # @return [Hash] Contains the gem's details, or an error message if the gem is not found
34
34
  def call(name:)
35
35
  name = name.to_s.strip
36
- gem_resource = resource_collection.find { |r| r.name == name }
36
+ gem_resource = resource_collection.find { |r| r.name.casecmp?(name) }
37
37
 
38
38
  data = if gem_resource
39
39
  gem_resource.to_h(include_source_files: true)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BundlerMCP
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler_mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Subelsky