lib/danger.rb in danger-9.1.0 vs lib/danger.rb in danger-9.2.0
- old
+ new
@@ -23,9 +23,10 @@
# @return [String] The path to the local gem directory
def self.gem_path
if Gem::Specification.find_all_by_name(GEM_NAME).empty?
raise "Couldn't find gem directory for 'danger'"
end
+
return Gem::Specification.find_by_name(GEM_NAME).gem_dir
end
# @return [String] Latest version of Danger on https://rubygems.org
def self.danger_outdated?