lib/danger/plugin_support/plugin.rb in danger-8.2.1 vs lib/danger/plugin_support/plugin.rb in danger-8.2.2

- old
+ new

@@ -17,11 +17,15 @@ # Since we have a reference to the Dangerfile containing all the information # We need to redirect the self calls to the Dangerfile # rubocop:disable Style/MethodMissing - def method_missing(method_sym, *arguments, &block) - @dangerfile.send(method_sym, *arguments, &block) + def method_missing(method_sym, *arguments, **keyword_arguments, &block) + if keyword_arguments.empty? + @dangerfile.send(method_sym, *arguments, &block) + else + @dangerfile.send(method_sym, *arguments, **keyword_arguments, &block) + end end def self.all_plugins @all_plugins ||= [] end