From 090b39f2948c9421310e19a249d09c1f5f58bf9d Mon Sep 17 00:00:00 2001 From: Matthew Hutchinson Date: Sat, 15 Apr 2017 16:33:53 +0100 Subject: [PATCH] fix private method (should be public) --- lib/lolcommits/gem_plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lolcommits/gem_plugin.rb b/lib/lolcommits/gem_plugin.rb index 47a4960f..479d8a71 100644 --- a/lib/lolcommits/gem_plugin.rb +++ b/lib/lolcommits/gem_plugin.rb @@ -44,12 +44,12 @@ def plugin_klass warn "failed to load constant from plugin gem '#{plugin_klass_name}: #{e}'" end - private - def gem_name gem_spec.name end + private + def gem_path gem_name.gsub(/-|_/, '/') end