lib/danger/commands/runner.rb in danger-0.8.4 vs lib/danger/commands/runner.rb in danger-0.8.5
- old
+ new
@@ -24,11 +24,11 @@
end
def validate!
super
if self.class == Runner && !@dangerfile_path
- help! "Could not find a Dangerfile."
+ help! 'Could not find a Dangerfile.'
end
end
def self.options
[
@@ -53,20 +53,20 @@
dm.env.ensure_danger_branches_are_setup
# Offer the chance for a user to specify a branch through the command line
ci_base = @base || EnvironmentManager.danger_base_branch
ci_head = @head || EnvironmentManager.danger_head_branch
- dm.env.scm.diff_for_folder(".", from: ci_base, to: ci_head)
+ dm.env.scm.diff_for_folder('.', from: ci_base, to: ci_head)
dm.parse Pathname.new(@dangerfile_path)
post_results dm
dm.print_results
ensure
dm.env.clean_up
end
else
- cork.puts "Not a Pull Request - skipping `danger` run"
+ cork.puts 'Not a Pull Request - skipping `danger` run'
end
end
def post_results(dm)
gh = dm.env.request_source