diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-05-23 21:14:04 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-05-24 21:15:01 +0530 |
commit | 867e2d9c6cfc033f689340c2c592db9119dcaa8c (patch) | |
tree | 4b759b3ec547ad91a551cb3a1f2a66458692f36c /lib/bundler/plugin.rb | |
parent | 00098cda3d4b73f3c74199434c889f20e05b0485 (diff) | |
download | bundler-867e2d9c6cfc033f689340c2c592db9119dcaa8c.tar.gz |
Added support for git install
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r-- | lib/bundler/plugin.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index a829084498..ad20094db7 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -15,11 +15,7 @@ module Bundler # @option options [String] :version (optional) the version of the plugin to install def install(name, options) require "bundler/plugin/installer.rb" - - source = options[:source] || raise(ArgumentError, "You need to provide the source") - version = options[:version] || [">= 0"] - - plugin_path = Pathname.new Installer.install(name, source, version) + plugin_path = Pathname.new Installer.install(name, options) validate_plugin! plugin_path @@ -33,7 +29,7 @@ module Bundler # Checks if the gem is good to be a plugin # - # At present it just checks whether it contains plugin.rb file + # At present it only checks whether it contains plugin.rb file # # @param [Pathname] plugin_path the path plugin is installed at # @@ -52,7 +48,7 @@ module Bundler def register_plugin name, path require path.join("plugin.rb") # this shall latter be used to find the actions the plugin performs - index.register_plugin name, path + index.register_plugin name, path.to_s end # The index object used to store the details about the plugin |