Each gem has a file in the format of <gem name>.gemspec which contains metadata about the gem and it's files. The format of a gemspec is as follows:
Gem::Specification.new do |s|
# Details about gem. They are added in the format:
s.<detail name> = <detail value>
end
The ...
Once you have created your gem to publish it you have to follow a few steps:
Build your gem with gem build <gem name>.gemspec (the gemspec file must exist)
Create a RubyGems account if you do not already have one here
Check to make sure that no gems exist that share your gems name
Publis...
To list the dependency tree:
gem dependency
To list which gems depend on a specific gem (bundler for example)
gem dependency bundler --reverse-dependencies