diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-06-21 01:21:13 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-07-03 09:40:59 +0530 |
commit | 9c23dcc1896f2b657ea4407998e3c0ee38d83a49 (patch) | |
tree | 940e560fe3c84d45f426db0fe0a8292befd22d0f /lib/bundler/plugin.rb | |
parent | 018704c54fc95f9146c3ac785fa82e337584bc7a (diff) | |
download | bundler-9c23dcc1896f2b657ea4407998e3c0ee38d83a49.tar.gz |
Added doc for source
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r-- | lib/bundler/plugin.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index abeb854abe..4dbf20b21d 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -103,7 +103,7 @@ module Bundler def source(name) raise UnknownSourceError, "Source #{name} not found" unless source? name - load_plugin index.source_plugin name unless @sources.key? name + load_plugin(index.source_plugin(name)) unless @sources.key? name @sources[name] end @@ -168,7 +168,7 @@ module Bundler raise MalformattedPlugin, "#{e.class}: #{e.message}" end - if optional && @sources.keys.any? { |s| source? s } + if optional && @sources.keys.any? {|s| source? s } Bundler.rm_rf(path) else index.register_plugin name, path.to_s, @commands.keys, @sources.keys |