lib/prospectus_gems.rb in prospectus_gems-0.1.0 vs lib/prospectus_gems.rb in prospectus_gems-0.1.1
- old
+ new
@@ -41,9 +41,10 @@
[x.name, current, latest]
end
end
def runtime_deps
+ @runtime_deps ||= [] unless gemfile.read =~ /^gemspec$/
@runtime_deps ||= bundle.resolve[dev_deps.first.name].first.dependencies
end
def dev_deps
@dev_deps ||= bundle.dependencies