lib/danger/commands/runner.rb in danger-0.3.0 vs lib/danger/commands/runner.rb in danger-0.5.0
- old
+ new
@@ -1,11 +1,11 @@
module Danger
class Runner < CLAide::Command
require 'danger/commands/init'
require 'danger/commands/local'
- self.description = 'Run the Dangerfile.'
+ self.summary = 'Run the Dangerfile.'
self.command = 'danger'
def initialize(argv)
@dangerfile_path = "Dangerfile" if File.exist? "Dangerfile"
@base = argv.option('base')
@@ -37,10 +37,11 @@
gh = dm.env.request_source
ci_base = @base || gh.base_commit
ci_head = @head || gh.head_commit
- dm.env.scm.diff_for_folder(".", ci_base, ci_head)
+ dm.env.scm.diff_for_folder(".", from: ci_base, to: ci_head)
+
dm.parse Pathname.new(@dangerfile_path)
post_results(dm)
end