diff options
Diffstat (limited to 'lib/bundler/plugin/dsl.rb')
-rw-r--r-- | lib/bundler/plugin/dsl.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bundler/plugin/dsl.rb b/lib/bundler/plugin/dsl.rb index f59c051f..b0fb6735 100644 --- a/lib/bundler/plugin/dsl.rb +++ b/lib/bundler/plugin/dsl.rb @@ -1,12 +1,14 @@ # frozen_string_literal: true module Bundler + # Dsl to parse the Gemfile looking for plugins to install class Plugin::Dsl < Bundler::Dsl alias_method :_gem, :gem # To use for plugin installation as gem - # So that we don't have to overwrite all there methods to dummy ones - [:gemspec, :gem, :path, :install_if, :platforms, :env] - .each {|m| undef_method m} + # So that we don't have to override all there methods to dummy ones + # explicitly. + # They will be handled by missing_methods + [:gemspec, :gem, :path, :install_if, :platforms, :env].each {|m| undef_method m } def initialize @sources = Plugin::SourceList.new |