github.com/anchore/syft@v1.38.2/syft/pkg/ruby.go (about) 1 package pkg 2 3 // RubyGemspec represents all metadata parsed from the *.gemspec file 4 type RubyGemspec struct { 5 // Name is gem name as specified in the gemspec 6 Name string `mapstructure:"name" json:"name"` 7 8 // Version is gem version as specified in the gemspec 9 Version string `mapstructure:"version" json:"version"` 10 11 // Files is logical list of files in the gem (NOT directly usable as filesystem paths. Example: bundler gem lists "lib/bundler/vendor/uri/lib/uri/ldap.rb" but actual path is "/usr/local/lib/ruby/3.2.0/bundler/vendor/uri/lib/uri/ldap.rb". Would need gem installation path, ruby version, and env vars like GEM_HOME to resolve actual paths.) 12 Files []string `mapstructure:"files" json:"files,omitempty"` 13 14 // Authors are the list of gem authors (stored as array regardless of using `author` or `authors` method in gemspec) 15 Authors []string `mapstructure:"authors" json:"authors,omitempty"` 16 17 // Homepage is project homepage URL 18 Homepage string `mapstructure:"homepage" json:"homepage,omitempty"` 19 }