diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-05-31 18:17:32 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-05-31 18:22:23 +0530 |
commit | e51b967c537ed5deb133c24961ec7a51968be150 (patch) | |
tree | ac52a48c3927ff5932197aded9da0fc5caa79501 | |
parent | b1621fbc91587ae46f2ea0dc3be4e6b0d4858b48 (diff) | |
download | bundler-e51b967c537ed5deb133c24961ec7a51968be150.tar.gz |
Fixed the mistakes pointed out
-rw-r--r-- | lib/bundler/cli/plugin.rb | 2 | ||||
-rw-r--r-- | lib/bundler/dsl.rb | 2 | ||||
-rw-r--r-- | lib/bundler/plugin.rb | 2 | ||||
-rw-r--r-- | lib/bundler/plugin/dsl.rb | 5 |
4 files changed, 5 insertions, 6 deletions
diff --git a/lib/bundler/cli/plugin.rb b/lib/bundler/cli/plugin.rb index 66eacd1d1e..c00e3f1855 100644 --- a/lib/bundler/cli/plugin.rb +++ b/lib/bundler/cli/plugin.rb @@ -9,7 +9,7 @@ module Bundler method_option "source", :type => :string, :default => nil, :banner => "URL of the RubyGems source to fetch the plugin from" method_option "version", :type => :string, :default => nil, :banner => - "The version of the plugin to fetch from" + "The version of the plugin to fetch" method_option "git", :type => :string, :default => nil, :banner => "URL of the git repo to fetch from" method_option "branch", :type => :string, :default => nil, :banner => diff --git a/lib/bundler/dsl.rb b/lib/bundler/dsl.rb index f4aa17c62d..dacfeaa24f 100644 --- a/lib/bundler/dsl.rb +++ b/lib/bundler/dsl.rb @@ -19,7 +19,7 @@ module Bundler def initialize @source = nil - @sources ||= SourceList.new + @sources = SourceList.new @git_sources = {} @dependencies = [] @groups = [] diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index c888dbcd97..978f4a57a4 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module Bundler - class Plugin + module Plugin autoload :Api, "bundler/plugin/api" autoload :Dsl, "bundler/plugin/dsl" autoload :Index, "bundler/plugin/index" diff --git a/lib/bundler/plugin/dsl.rb b/lib/bundler/plugin/dsl.rb index b0fb6735ad..89d9140aed 100644 --- a/lib/bundler/plugin/dsl.rb +++ b/lib/bundler/plugin/dsl.rb @@ -7,13 +7,12 @@ module Bundler # So that we don't have to override all there methods to dummy ones # explicitly. - # They will be handled by missing_methods + # They will be handled by method_missing [:gemspec, :gem, :path, :install_if, :platforms, :env].each {|m| undef_method m } def initialize - @sources = Plugin::SourceList.new - super + @sources = Plugin::SourceList.new end def plugin(name, *args) |