lib/spandx/rubygems/index.rb in spandx-rubygems-0.1.2 vs lib/spandx/rubygems/index.rb in spandx-rubygems-0.1.3

- old
+ new

@@ -9,10 +9,10 @@ @dir = Spandx::Rubygems.root.join('index') @rubygems_file = DataFile.new(Spandx::Rubygems.root.join('rubygems.index'), default: {}) end def licenses_for(name:, version:) - to_h[index_key_for(name, version)] + to_h.fetch(index_key_for(name, version), []) end def each to_h.each { |key, value| yield key, value } end