lib/hrw/scanner/pipfile.rb in hrw-0.2.2 vs lib/hrw/scanner/pipfile.rb in hrw-0.2.3
- old
+ new
@@ -24,9 +24,10 @@
def scan
deps = []
lock = JSON.parse(File.read(File.join(@root, @lockfile)))
lock['default'].each_pair do |name, info|
+ next if info['version'].nil?
deps << {
name: name,
version: info['version']
}
end
\ No newline at end of file