lib/lolcommits/gem_plugin.rb in lolcommits-0.9.3 vs lib/lolcommits/gem_plugin.rb in lolcommits-0.9.4.pre1

- old
+ new

@@ -42,14 +42,14 @@ self.class.const_get(plugin_klass_name) rescue => e 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