lib/fusuma/plugin/manager.rb in fusuma-3.6.1 vs lib/fusuma/plugin/manager.rb in fusuma-3.6.2
- old
+ new
@@ -38,9 +38,10 @@
raise "Not Found: #{match_data[1]}/#{match_data[2]}/*.gemspec" unless plugin_gemspec_path
plugin_gemspec = Gem::Specification.load(plugin_gemspec_path)
fusuma_gemspec_path = File.expand_path("../../../fusuma.gemspec", __dir__)
fusuma_gemspec = Gem::Specification.load(fusuma_gemspec_path)
+ next if plugin_gemspec == fusuma_gemspec
if plugin_gemspec.dependencies.find { |d| d.name == "fusuma" }&.match?(fusuma_gemspec)
siblings_plugin
else
MultiLogger.warn "#{plugin_gemspec.name} #{plugin_gemspec.version} is incompatible with running #{fusuma_gemspec.name} #{fusuma_gemspec.version}"