Add homepage field as output to the gemspec metadata (#215)

https://github.com/anchore/syft/issues/214

Signed-off-by: Toure <tdunnon@gmail.com>
This commit is contained in:
Toure Dunnon
2020-10-12 18:59:56 -04:00
committed by GitHub
parent 1fc46291a6
commit 8d25d44ea9
2 changed files with 2 additions and 0 deletions
@@ -21,6 +21,7 @@ func TestParseGemspec(t *testing.T) {
Files: []string{"exe/bundle", "exe/bundler"},
Authors: []string{"André Arko", "Samuel Giddins", "Colby Swandale", "Hiroshi Shibata", "David Rodríguez", "Grey Baker", "Stephanie Morillo", "Chris Morris", "James Wen", "Tim Moore", "André Medeiros", "Jessica Lynn Suttles", "Terence Lee", "Carl Lerche", "Yehuda Katz"},
Licenses: []string{"MIT"},
Homepage: "https://bundler.io",
},
}
+1
View File
@@ -6,4 +6,5 @@ type GemMetadata struct {
Files []string `mapstructure:"files" json:"files"`
Authors []string `mapstructure:"authors" json:"authors"`
Licenses []string `mapstructure:"licenses" json:"licenses"`
Homepage string `mapstructure:"homepage" json:"homepage"`
}