lib/busser/command/plugin_install.rb in busser-0.1.0 vs lib/busser/command/plugin_install.rb in busser-0.1.1
- old
+ new
@@ -42,14 +42,15 @@
install_gem(plugin)
end
def install_gem(plugin)
name, version = plugin.split("@")
+ install_arg = name =~ /\.gem$/ ? name : new_dep(name, version)
if gem_installed?(name, version)
info "#{plugin} plugin already installed"
else
- spec = dep_installer.install(new_dep(name, version)).first
+ spec = dep_installer.install(install_arg).first
info "Plugin #{plugin} installed (version #{spec.version})"
end
end
def gem_installed?(name, version)