lib/danger/commands/local.rb in danger-0.3.0 vs lib/danger/commands/local.rb in danger-0.5.0
- old
+ new
@@ -1,8 +1,8 @@
module Danger
class Local < Runner
- self.description = 'Run the Dangerfile locally.'
+ self.summary = 'Run the Dangerfile locally.'
self.command = 'local'
def initialize(argv)
@dangerfile_path = "Dangerfile" if File.exist? "Dangerfile"
super
@@ -43,10 +43,11 @@
gh.fetch_details
dm.env.request_source = gh
dm.env.scm = GitRepo.new
- dm.env.scm.diff_for_folder(".", dm.env.ci_source.base_commit, dm.env.ci_source.head_commit)
+
+ dm.env.scm.diff_for_folder(".", from: dm.env.ci_source.base_commit, to: dm.env.ci_source.head_commit)
dm.parse Pathname.new(@dangerfile_path)
end
end
end